moved reload actions out of error context

This commit is contained in:
MineTec committed 2024-05-11 17:52:53 +02:00
1 parent 9fa711e460
commit 181682a424
14 files changed
+129 -93

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
import 'package:flutter/material.dart';
class ConditionalWrapper extends StatelessWidget {
final bool condition;
final Widget child;
final Widget Function(Widget child) wrapper;
const ConditionalWrapper({
required this.condition,
required this.child,
required this.wrapper,
super.key,
});
@override
Widget build(BuildContext context) => condition ? wrapper(child) : child;
}