rand dart fix

This commit is contained in:
2026-01-15 17:36:22 -08:00
parent dbbdafd893
commit 91e7e39fe8
131 changed files with 976 additions and 1365 deletions
+10 -11
View File
@@ -77,7 +77,7 @@ class _MobilePopUpState extends State<MobilePopUp> {
void init() {
if (mounted)
setState(() {
leadingColor = widget?.leadingColor;
leadingColor = widget.leadingColor;
});
}
@@ -88,10 +88,10 @@ class _MobilePopUpState extends State<MobilePopUp> {
_size.height < widget.breakpoint.height;
final _full = _mobile || fullscreen;
final _content = _PopUpContent(
title: widget?.title,
title: widget.title,
showDoneButton: widget.showDoneButton,
child: widget?.child,
routes: widget?.routes,
child: widget.child,
routes: widget.routes,
leadingColor: leadingColor,
fullscreen: !widget.showFullScreen ? null : fullscreen,
toggleFullscreen: (value) {
@@ -155,14 +155,13 @@ class _PopUpContent extends StatelessWidget {
)
: null,
actions: <Widget>[
if (fullscreen != null)
IconButton(
icon:
Icon(fullscreen ? Icons.fullscreen_exit : Icons.fullscreen),
onPressed: () => toggleFullscreen(!fullscreen),
)
IconButton(
icon:
Icon(fullscreen ? Icons.fullscreen_exit : Icons.fullscreen),
onPressed: () => toggleFullscreen(!fullscreen),
)
],
title: title == null ? null : Text(title),
title: Text(title),
),
body: child,
),
+1 -1
View File
@@ -23,7 +23,7 @@ Future<T> showMobilePopup<T>({
Animation<double> secondaryAnimation) {
final Widget pageChild = Builder(builder: builder);
return Builder(builder: (BuildContext context) {
return theme != null ? Theme(data: theme, child: pageChild) : pageChild;
return Theme(data: theme, child: pageChild);
});
},
barrierDismissible: barrierDismissible,