Dashboard

This commit is contained in:
Hillel Coren 2020-07-22 10:43:23 +03:00
parent bb3d379ff3
commit 3f893d251a
1 changed files with 31 additions and 35 deletions

View File

@ -5,7 +5,6 @@ import 'package:invoiceninja_flutter/data/models/entities.dart';
import 'package:invoiceninja_flutter/redux/app/app_state.dart'; import 'package:invoiceninja_flutter/redux/app/app_state.dart';
import 'package:invoiceninja_flutter/redux/dashboard/dashboard_actions.dart'; import 'package:invoiceninja_flutter/redux/dashboard/dashboard_actions.dart';
import 'package:invoiceninja_flutter/redux/dashboard/dashboard_sidebar_selectors.dart'; import 'package:invoiceninja_flutter/redux/dashboard/dashboard_sidebar_selectors.dart';
import 'package:invoiceninja_flutter/ui/app/app_border.dart';
import 'package:invoiceninja_flutter/ui/app/help_text.dart'; import 'package:invoiceninja_flutter/ui/app/help_text.dart';
import 'package:invoiceninja_flutter/ui/app/lists/list_divider.dart'; import 'package:invoiceninja_flutter/ui/app/lists/list_divider.dart';
import 'package:invoiceninja_flutter/ui/invoice/invoice_list_item.dart'; import 'package:invoiceninja_flutter/ui/invoice/invoice_list_item.dart';
@ -309,42 +308,39 @@ class _DashboardSidebar extends StatelessWidget {
: (MediaQuery.of(context).size.height - 100) / 2, : (MediaQuery.of(context).size.height - 100) / 2,
duration: Duration(milliseconds: kDefaultAnimationDuration), duration: Duration(milliseconds: kDefaultAnimationDuration),
curve: Curves.easeInOutCubic, curve: Curves.easeInOutCubic,
child: AppBorder( child: Column(
isTop: true, crossAxisAlignment: CrossAxisAlignment.start,
child: Column( children: [
crossAxisAlignment: CrossAxisAlignment.start, Material(
children: [ elevation: 4,
Material( color: Theme.of(context).scaffoldBackgroundColor,
elevation: 4, child: Container(
color: Theme.of(context).scaffoldBackgroundColor, child: Row(
child: Container( children: [
child: Row( Expanded(
children: [ child: Text(label3 ?? '',
Expanded( style: textTheme.bodyText2)),
child: Text(label3 ?? '', IconButton(
style: textTheme.bodyText2)), visualDensity: VisualDensity.compact,
IconButton( icon: Icon(Icons.clear),
visualDensity: VisualDensity.compact, onPressed: () {
icon: Icon(Icons.clear), store.dispatch(UpdateDashboardSelection(
onPressed: () { entityIds: null,
store.dispatch(UpdateDashboardSelection( entityType: entityType,
entityIds: null, ));
entityType: entityType, },
)); )
}, ],
)
],
),
padding: const EdgeInsets.symmetric(
horizontal: 16, vertical: 8),
width: double.infinity,
), ),
padding: const EdgeInsets.symmetric(
horizontal: 16, vertical: 8),
width: double.infinity,
), ),
Expanded( ),
child: ClipRRect(child: list3 ?? SizedBox()), Expanded(
), child: ClipRRect(child: list3 ?? SizedBox()),
], ),
), ],
), ),
), ),
], ],