Merge remote-tracking branch 'origin/CW-301-desktop-side-bar-ui' into CW-301-desktop-side-bar-ui

This commit is contained in:
OmarHatem 2023-01-31 16:48:36 +02:00
commit dea81f92e3
2 changed files with 2 additions and 5 deletions

View file

@ -1,4 +1,4 @@
import 'package:cake_wallet/utils/constants.dart'; import 'package:cake_wallet/utils/responsive_layout_util.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
class NavBar extends StatelessWidget implements ObstructingPreferredSizeWidget { class NavBar extends StatelessWidget implements ObstructingPreferredSizeWidget {
@ -63,7 +63,7 @@ class NavBar extends StatelessWidget implements ObstructingPreferredSizeWidget {
final paddingTop = pad / 2; final paddingTop = pad / 2;
final _paddingBottom = (pad / 2); final _paddingBottom = (pad / 2);
if (MediaQuery.of(context).size.width > ConstValues.minimumDesktopWidth) { if (!ResponsiveLayoutUtil.instance.isMobile(context)) {
return PreferredSize( return PreferredSize(
preferredSize: Size.fromHeight(height), preferredSize: Size.fromHeight(height),
child: Row( child: Row(

View file

@ -1,3 +0,0 @@
class ConstValues {
static const int minimumDesktopWidth = 900;
}