Settings
This commit is contained in:
parent
253f88afd9
commit
d25c69921b
|
|
@ -1,6 +1,7 @@
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:invoiceninja_flutter/redux/app/app_actions.dart';
|
import 'package:invoiceninja_flutter/redux/app/app_actions.dart';
|
||||||
|
import 'package:invoiceninja_flutter/redux/ui/ui_state.dart';
|
||||||
import 'package:timeago/timeago.dart' as timeago;
|
import 'package:timeago/timeago.dart' as timeago;
|
||||||
import 'package:flutter_redux/flutter_redux.dart';
|
import 'package:flutter_redux/flutter_redux.dart';
|
||||||
import 'package:invoiceninja_flutter/redux/app/app_state.dart';
|
import 'package:invoiceninja_flutter/redux/app/app_state.dart';
|
||||||
|
|
@ -67,6 +68,13 @@ class HistoryDrawer extends StatelessWidget {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
else
|
||||||
|
FlatButton(
|
||||||
|
child: Text(localization.close),
|
||||||
|
onPressed: () {
|
||||||
|
store.dispatch(UpdateSidebar(AppSidebar.history));
|
||||||
|
},
|
||||||
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
body: ListView(
|
body: ListView(
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,9 @@ class ListScaffold extends StatelessWidget {
|
||||||
title: appBarTitle,
|
title: appBarTitle,
|
||||||
actions: [
|
actions: [
|
||||||
...appBarActions,
|
...appBarActions,
|
||||||
if (!showCheckbox && !isSettings)
|
if (!showCheckbox &&
|
||||||
|
!isSettings &&
|
||||||
|
!state.uiState.isHistoryVisible)
|
||||||
Builder(
|
Builder(
|
||||||
builder: (context) => IconButton(
|
builder: (context) => IconButton(
|
||||||
icon: Icon(Icons.menu),
|
icon: Icon(Icons.menu),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue