mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 03:59:23 +00:00
Merge remote-tracking branch 'origin/CW-301-desktop-side-bar-ui' into CW-301-desktop-side-bar-ui
This commit is contained in:
commit
dea81f92e3
2 changed files with 2 additions and 5 deletions
|
@ -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(
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
class ConstValues {
|
|
||||||
static const int minimumDesktopWidth = 900;
|
|
||||||
}
|
|
Loading…
Reference in a new issue