Fehlerkorrekturen und Erweiterungen
This commit is contained in:
1 parent
a16a8fcf28
commit
1207d9c517
12 files changed
+158
-60
No files matched your search
+24
-9
@@ -211,7 +211,7 @@ class _MainState extends State<Main> with SingleTickerProviderStateMixin, Produc
|
||||
|
||||
final ValueNotifier<bool> _connectionLostValueNotifier = ValueNotifier<bool>(true);
|
||||
|
||||
late AnimationController? _animationController = null;
|
||||
late AnimationController? _animationController;
|
||||
late Animation<double> _animation;
|
||||
|
||||
Timer? _checkForNewState0JobsJobsTimer;
|
||||
@@ -426,20 +426,28 @@ class _MainState extends State<Main> with SingleTickerProviderStateMixin, Produc
|
||||
}
|
||||
|
||||
void _replaceContentView(ContentViewWidget widget) async {
|
||||
final currentContext = context;
|
||||
Future.delayed(const Duration(seconds: 0), () async {
|
||||
contentStack.clear();
|
||||
|
||||
setState(() {
|
||||
_currentContent = widget;
|
||||
});
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
_currentContent = widget;
|
||||
});
|
||||
}
|
||||
|
||||
_currentTitleWidget = await _currentContent.getHeaderWidget(context);
|
||||
if (mounted) {
|
||||
_currentTitleWidget = await _currentContent.getHeaderWidget(currentContext);
|
||||
}
|
||||
|
||||
setState(() {});
|
||||
if (mounted) {
|
||||
setState(() {});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void _popContentView(int count) {
|
||||
final currentContext = context;
|
||||
Future.delayed(const Duration(seconds: 0), () async {
|
||||
for (int i = 0; i < count - 1; i++) {
|
||||
contentStack.pop();
|
||||
@@ -449,19 +457,26 @@ class _MainState extends State<Main> with SingleTickerProviderStateMixin, Produc
|
||||
|
||||
_currentContent = previousContentView;
|
||||
|
||||
_currentTitleWidget = await _currentContent.getHeaderWidget(context);
|
||||
if (mounted) {
|
||||
_currentTitleWidget = await _currentContent.getHeaderWidget(currentContext);
|
||||
}
|
||||
|
||||
setState(() {});
|
||||
if (mounted) {
|
||||
setState(() {});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void _pushContentView(ContentViewWidget widget) {
|
||||
final currentContext = context;
|
||||
Future.delayed(const Duration(seconds: 0), () async {
|
||||
contentStack.push(_currentContent);
|
||||
|
||||
_currentContent = widget;
|
||||
|
||||
_currentTitleWidget = await _currentContent.getHeaderWidget(context);
|
||||
if (mounted) {
|
||||
_currentTitleWidget = await _currentContent.getHeaderWidget(currentContext);
|
||||
}
|
||||
|
||||
if (mounted) {
|
||||
setState(() {});
|
||||
|
||||
Reference in new issue
Block a user