Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishbeck committed Mar 13, 2022
1 parent cdd4cbd commit 44ee5da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/screen/landing.dart
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ class _LandingPageState extends State<LandingPage>

Widget button() => MyButton(
label: "Enter",
tooltip: "",
tooltip: "Play the game",
// labelStyle: TextStyle(color: secondaryColor),
shouldAnimateEntry: false,
onPressed: _onPressed,
Expand Down
3 changes: 2 additions & 1 deletion lib/ui/dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ class _MyDialogState extends State<MyDialog>
Widget build(BuildContext context) {
double maxHeight = MediaQuery.of(context).size.height;
double maxWidth = MediaQuery.of(context).size.width;
bool isTall = maxHeight > maxWidth;
bool isTall = maxHeight > maxWidth * 0.85;
double area = 0.8;
double height = widget.height ?? maxHeight * area;
// widget.height ?? (isTall ? maxWidth * area : maxHeight * area);
double width = widget.width ?? maxWidth * area;
width = isTall ? width : width * 0.5;
return AlertDialog(
contentPadding: EdgeInsets.zero,
backgroundColor: Colors.transparent,
Expand Down

0 comments on commit 44ee5da

Please sign in to comment.