Skip to content

Commit

Permalink
make gps info frame as bottom sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
moovida committed May 27, 2024
1 parent eadbd45 commit 866e4c9
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lib/eu/hydrologis/smash/widgets/gps_info_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,16 @@ class _GpsInfoButtonState extends State<GpsInfoButton> {
}

var isLandscape = ScreenUtilities.isLandscape(context);
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
behavior: SnackBarBehavior.floating,
showModalBottomSheet(
showDragHandle: true,
elevation: 10,
backgroundColor: color,
content: Padding(
padding: EdgeInsets.only(bottom: 10),
context: context,
builder: (ctx) => Padding(
padding: const EdgeInsets.all(8.0),
child: getGpsInfoContainer(isLandscape),
),
duration: Duration(seconds: 15),
));
);
},
child: SizedBox(
height: widget._iconSize * 1.4,
Expand Down

0 comments on commit 866e4c9

Please sign in to comment.