Skip to content

Commit

Permalink
using shortened form of mediaQuery size
Browse files Browse the repository at this point in the history
  • Loading branch information
SinaSys committed Oct 4, 2024
1 parent 5f43a3b commit 504aed6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/view/screen/cart_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class CartScreen extends StatelessWidget {
padding: 0,
label: Text(
controller.cartFood[index].quantity.toString(),
style:context.displayMedium,
style: context.displayMedium,
),
),
Text(
Expand All @@ -202,8 +202,8 @@ class CartScreen extends StatelessWidget {

@override
Widget build(BuildContext context) {
double height = MediaQuery.of(context).size.height;
double width = MediaQuery.of(context).size.width;
double height = context.height;
double width = context.width;
return Scaffold(
bottomNavigationBar: controller.cartFood.isNotEmpty ? _bottomAppBar(height, width, context) : const SizedBox(),
appBar: _appBar(context),
Expand Down

0 comments on commit 504aed6

Please sign in to comment.