Implement desktop client layout
This commit is contained in:
parent
0d05ae25ce
commit
59b3da943a
|
|
@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
|
||||||
|
|
||||||
// Package imports:
|
// Package imports:
|
||||||
import 'package:flutter_redux/flutter_redux.dart';
|
import 'package:flutter_redux/flutter_redux.dart';
|
||||||
|
import 'package:invoiceninja_flutter/ui/app/app_border.dart';
|
||||||
import 'package:invoiceninja_flutter/ui/app/icon_text.dart';
|
import 'package:invoiceninja_flutter/ui/app/icon_text.dart';
|
||||||
import 'package:invoiceninja_flutter/ui/app/screen_imports.dart';
|
import 'package:invoiceninja_flutter/ui/app/screen_imports.dart';
|
||||||
import 'package:invoiceninja_flutter/utils/icons.dart';
|
import 'package:invoiceninja_flutter/utils/icons.dart';
|
||||||
|
|
@ -232,25 +233,39 @@ class EntityTopFilter extends StatelessWidget {
|
||||||
if (!prefState
|
if (!prefState
|
||||||
.isViewerFullScreen(filterEntityType)) ...[
|
.isViewerFullScreen(filterEntityType)) ...[
|
||||||
if (filterEntityType.hasFullWidthViewer)
|
if (filterEntityType.hasFullWidthViewer)
|
||||||
IconButton(
|
AppBorder(
|
||||||
onPressed: () {
|
isLeft: true,
|
||||||
store.dispatch(ToggleViewerLayout(
|
child: InkWell(
|
||||||
uiState.filterEntityType));
|
onTap: () {
|
||||||
},
|
store.dispatch(ToggleViewerLayout(
|
||||||
icon: Icon(
|
uiState.filterEntityType));
|
||||||
MdiIcons.chevronDown,
|
},
|
||||||
color: state.headerTextColor,
|
child: Padding(
|
||||||
|
padding: const EdgeInsets.symmetric(
|
||||||
|
horizontal: 12),
|
||||||
|
child: Icon(
|
||||||
|
MdiIcons.chevronDown,
|
||||||
|
color: state.headerTextColor,
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
] else
|
] else
|
||||||
IconButton(
|
AppBorder(
|
||||||
onPressed: () {
|
isLeft: true,
|
||||||
store.dispatch(
|
child: InkWell(
|
||||||
ToggleViewerLayout(uiState.filterEntityType));
|
onTap: () {
|
||||||
},
|
store.dispatch(ToggleViewerLayout(
|
||||||
icon: Icon(
|
uiState.filterEntityType));
|
||||||
MdiIcons.chevronUp,
|
},
|
||||||
color: state.headerTextColor,
|
child: Padding(
|
||||||
|
padding:
|
||||||
|
const EdgeInsets.symmetric(horizontal: 12),
|
||||||
|
child: Icon(
|
||||||
|
MdiIcons.chevronUp,
|
||||||
|
color: state.headerTextColor,
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue