Dashboard overview
This commit is contained in:
parent
22cad7734e
commit
15a3557c39
|
|
@ -8,6 +8,7 @@ import 'package:flutter/material.dart';
|
||||||
import 'package:charts_common/common.dart';
|
import 'package:charts_common/common.dart';
|
||||||
import 'package:charts_flutter/flutter.dart' as charts;
|
import 'package:charts_flutter/flutter.dart' as charts;
|
||||||
import 'package:flutter_redux/flutter_redux.dart';
|
import 'package:flutter_redux/flutter_redux.dart';
|
||||||
|
import 'package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart';
|
||||||
import 'package:invoiceninja_flutter/redux/app/app_actions.dart';
|
import 'package:invoiceninja_flutter/redux/app/app_actions.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';
|
||||||
|
|
@ -675,12 +676,25 @@ class DashboardPanels extends StatelessWidget {
|
||||||
|
|
||||||
return Column(
|
return Column(
|
||||||
children: [
|
children: [
|
||||||
FormCard(
|
SizedBox(height: 20),
|
||||||
children: [
|
Padding(
|
||||||
Text('test', style: textTheme.headline6),
|
padding: const EdgeInsets.symmetric(horizontal: 12),
|
||||||
Text(formatNumber(0, context),
|
child: StaggeredGrid.count(
|
||||||
style: textTheme.headline5),
|
crossAxisCount: 2,
|
||||||
],
|
crossAxisSpacing: 8,
|
||||||
|
mainAxisSpacing: 12,
|
||||||
|
children: settings.totalFields.map<Widget>((field) {
|
||||||
|
return FormCard(
|
||||||
|
padding: const EdgeInsets.all(0),
|
||||||
|
children: [
|
||||||
|
Text(localization.lookup(field),
|
||||||
|
style: textTheme.headline6),
|
||||||
|
Text(formatNumber(0, context),
|
||||||
|
style: textTheme.headline5),
|
||||||
|
],
|
||||||
|
);
|
||||||
|
}).toList(),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
_OverviewPanel(
|
_OverviewPanel(
|
||||||
viewModel: viewModel,
|
viewModel: viewModel,
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,7 @@ dependencies:
|
||||||
bitsdojo_window: ^0.1.2
|
bitsdojo_window: ^0.1.2
|
||||||
intl_phone_field: ^3.1.0
|
intl_phone_field: ^3.1.0
|
||||||
pinput: ^2.2.11
|
pinput: ^2.2.11
|
||||||
|
flutter_staggered_grid_view: ^0.6.2
|
||||||
# quick_actions: ^0.2.1
|
# quick_actions: ^0.2.1
|
||||||
# idb_shim: ^1.11.1+1
|
# idb_shim: ^1.11.1+1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -415,6 +415,13 @@ packages:
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.2.0"
|
version: "1.2.0"
|
||||||
|
flutter_staggered_grid_view:
|
||||||
|
dependency: "direct main"
|
||||||
|
description:
|
||||||
|
name: flutter_staggered_grid_view
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "0.6.2"
|
||||||
flutter_styled_toast:
|
flutter_styled_toast:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,7 @@ dependencies:
|
||||||
bitsdojo_window: ^0.1.2
|
bitsdojo_window: ^0.1.2
|
||||||
intl_phone_field: ^3.1.0
|
intl_phone_field: ^3.1.0
|
||||||
pinput: ^2.2.11
|
pinput: ^2.2.11
|
||||||
|
flutter_staggered_grid_view: ^0.6.2
|
||||||
# quick_actions: ^0.2.1
|
# quick_actions: ^0.2.1
|
||||||
# idb_shim: ^1.11.1+1
|
# idb_shim: ^1.11.1+1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,7 @@ dependencies:
|
||||||
bitsdojo_window: ^0.1.2
|
bitsdojo_window: ^0.1.2
|
||||||
intl_phone_field: ^3.1.0
|
intl_phone_field: ^3.1.0
|
||||||
pinput: ^2.2.11
|
pinput: ^2.2.11
|
||||||
|
flutter_staggered_grid_view: ^0.6.2
|
||||||
# quick_actions: ^0.2.1
|
# quick_actions: ^0.2.1
|
||||||
# idb_shim: ^1.11.1+1
|
# idb_shim: ^1.11.1+1
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue