This commit is contained in:
Hillel Coren 2020-01-17 14:29:20 +02:00
parent 3b4894114d
commit ebfa67a817
4 changed files with 6 additions and 3 deletions

View File

@ -80,7 +80,7 @@ const int kMillisecondsToRefreshData = 1000 * 60 * 15; // 15 minutes
const int kMillisecondsToRefreshActivities = 1000 * 60 * 60 * 24; // 1 day
const int kMillisecondsToRefreshStaticData = 1000 * 60 * 60 * 24; // 1 day
const int kMillisecondsToReenterPassword = 1000 * 60 * 10; // 10 minutes
const int kMillisecondsToDebounceStateSave = 1000 * 3; // 3 seconds
const int kMillisecondsToDebounceStateSave = 1000 * 1; // 3 seconds
const int kUpdatedAtBufferSeconds = 600;
const String kLanguageEnglish = '1';

View File

@ -20,7 +20,7 @@ class MainScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return StoreBuilder(
onInit: (Store<AppState> store) => store.dispatch(LoadClients()),
//onInit: (Store<AppState> store) => store.dispatch(LoadClients()),
builder: (BuildContext context, Store<AppState> store) {
final uiState = store.state.uiState;
final prefState = store.state.prefState;

View File

@ -20,7 +20,7 @@ class QuoteEditScreen extends StatelessWidget {
static const String route = '/quote/edit';
static final GlobalKey<FormState> _formKey =
GlobalKey<FormState>(debugLabel: '_quotesEdit');
GlobalKey<FormState>(debugLabel: '_quoteEdit');
@override
Widget build(BuildContext context) {

View File

@ -6,6 +6,7 @@
</head>
<body style="background-color:#888888;">
<!--
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function () {
@ -13,6 +14,8 @@
});
}
</script>
-->
<script src="main.dart.js" type="application/javascript"></script>
<center style="font-family:Tahoma,Geneva,sans-serif;font-size:28px;color:white;padding-top:100px">