mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-04 20:30:35 +00:00
Fixed some issues
This commit is contained in:
parent
aca78bf89a
commit
e795050a95
4 changed files with 30 additions and 9 deletions
|
@ -3,9 +3,12 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:animations/animations.dart';
|
import 'package:animations/animations.dart';
|
||||||
|
import 'package:flutter_dotenv/flutter_dotenv.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
import 'package:sentry_flutter/sentry_flutter.dart';
|
||||||
import 'package:store_checker/store_checker.dart';
|
import 'package:store_checker/store_checker.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
|
|
||||||
|
@ -112,6 +115,10 @@ class _BaseState extends State<Base> with WidgetsBindingObserver {
|
||||||
? screensServerConnected
|
? screensServerConnected
|
||||||
: screensSelectServer;
|
: screensSelectServer;
|
||||||
|
|
||||||
|
if (kDebugMode && dotenv.env['ENABLE_SENTRY'] == "true") {
|
||||||
|
Sentry.captureMessage("Debug mode");
|
||||||
|
}
|
||||||
|
|
||||||
return CustomMenuBar(
|
return CustomMenuBar(
|
||||||
child: AnnotatedRegion<SystemUiOverlayStyle>(
|
child: AnnotatedRegion<SystemUiOverlayStyle>(
|
||||||
value: SystemUiOverlayStyle(
|
value: SystemUiOverlayStyle(
|
||||||
|
|
|
@ -21,7 +21,11 @@ bool compareVersions({
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
Sentry.captureException(e);
|
Sentry.captureException(e, hint: Hint.withMap({
|
||||||
|
"fn": "compareVersions",
|
||||||
|
"currentVersion": currentVersion,
|
||||||
|
"newVersion": newVersion,
|
||||||
|
}));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -53,7 +57,11 @@ bool compareBetaVersions({
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
Sentry.captureException(e);
|
Sentry.captureException(e, hint: Hint.withMap({
|
||||||
|
"fn": "compareBetaVersions",
|
||||||
|
"currentVersion": currentVersion,
|
||||||
|
"newVersion": newVersion,
|
||||||
|
}));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -120,7 +128,12 @@ bool serverVersionIsAhead({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
Sentry.captureException(e);
|
Sentry.captureException(e, hint: Hint.withMap({
|
||||||
|
"fn": "serverVersionIsAhead",
|
||||||
|
"currentVersion": currentVersion,
|
||||||
|
"referenceVersion": referenceVersion,
|
||||||
|
"referenceVersionBeta": referenceVersionBeta ?? ""
|
||||||
|
}));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -24,10 +24,12 @@ class ProcessDialog extends StatelessWidget {
|
||||||
children: [
|
children: [
|
||||||
const CircularProgressIndicator(),
|
const CircularProgressIndicator(),
|
||||||
const SizedBox(width: 40),
|
const SizedBox(width: 40),
|
||||||
Text(
|
Expanded(
|
||||||
message,
|
child: Text(
|
||||||
style: TextStyle(
|
message,
|
||||||
color: Theme.of(context).colorScheme.onSurface
|
style: TextStyle(
|
||||||
|
color: Theme.of(context).colorScheme.onSurface
|
||||||
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
|
|
@ -53,8 +53,7 @@ class _ServersListItemState extends State<ServersListItem> with SingleTickerProv
|
||||||
animationController = AnimationController(
|
animationController = AnimationController(
|
||||||
duration: const Duration(milliseconds: 200),
|
duration: const Duration(milliseconds: 200),
|
||||||
vsync: this,
|
vsync: this,
|
||||||
)
|
);
|
||||||
..addListener(() => setState(() => {}));
|
|
||||||
animation = Tween(
|
animation = Tween(
|
||||||
begin: 0.0,
|
begin: 0.0,
|
||||||
end: 0.5,
|
end: 0.5,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue