This commit is contained in:
Hillel Coren 2019-11-17 14:43:25 +02:00
parent 7f57960b92
commit 87b25a501f
37 changed files with 37 additions and 36 deletions

View File

@ -1,5 +1,6 @@
import 'dart:async'; import 'dart:async';
import 'dart:convert'; import 'dart:convert';
import 'package:flutter/material.dart' as prefix0;
import 'package:invoiceninja_flutter/.env.dart'; import 'package:invoiceninja_flutter/.env.dart';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';

View File

@ -31,7 +31,7 @@ class LoginView extends StatefulWidget {
} }
class _LoginState extends State<LoginView> { class _LoginState extends State<LoginView> {
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_login');
final _firstNameController = TextEditingController(); final _firstNameController = TextEditingController();
final _lastNameController = TextEditingController(); final _lastNameController = TextEditingController();

View File

@ -26,7 +26,7 @@ class ClientEdit extends StatefulWidget {
class _ClientEditState extends State<ClientEdit> class _ClientEditState extends State<ClientEdit>
with SingleTickerProviderStateMixin { with SingleTickerProviderStateMixin {
TabController _controller; TabController _controller;
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_clientEdit');
@override @override
void initState() { void initState() {

View File

@ -33,7 +33,7 @@ class CompanyGatewayEdit extends StatefulWidget {
class _CompanyGatewayEditState extends State<CompanyGatewayEdit> class _CompanyGatewayEditState extends State<CompanyGatewayEdit>
with SingleTickerProviderStateMixin { with SingleTickerProviderStateMixin {
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_companyGatewayEdit');
final FocusScopeNode _focusNode = FocusScopeNode(); final FocusScopeNode _focusNode = FocusScopeNode();
TabController _controller; TabController _controller;

View File

@ -20,7 +20,7 @@ class DocumentEdit extends StatefulWidget {
} }
class _DocumentEditState extends State<DocumentEdit> { class _DocumentEditState extends State<DocumentEdit> {
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_documentEdit');
final _debouncer = Debouncer(); final _debouncer = Debouncer();
// STARTER: controllers - do not remove comment // STARTER: controllers - do not remove comment

View File

@ -23,7 +23,7 @@ class ExpenseEdit extends StatefulWidget {
class _ExpenseEditState extends State<ExpenseEdit> class _ExpenseEditState extends State<ExpenseEdit>
with SingleTickerProviderStateMixin { with SingleTickerProviderStateMixin {
TabController _controller; TabController _controller;
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_expenseEdit');
@override @override
void initState() { void initState() {

View File

@ -23,7 +23,7 @@ class GroupEdit extends StatefulWidget {
} }
class _GroupEditState extends State<GroupEdit> { class _GroupEditState extends State<GroupEdit> {
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_groupEdit');
final _nameController = TextEditingController(); final _nameController = TextEditingController();
final _custom1Controller = TextEditingController(); final _custom1Controller = TextEditingController();

View File

@ -18,7 +18,7 @@ class InvoiceEditScreen extends StatelessWidget {
static const String route = '/invoice/edit'; static const String route = '/invoice/edit';
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_invoiceEdit');
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {

View File

@ -28,7 +28,7 @@ class PaymentEdit extends StatefulWidget {
} }
class _PaymentEditState extends State<PaymentEdit> { class _PaymentEditState extends State<PaymentEdit> {
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_paymentEdit');
final _amountController = TextEditingController(); final _amountController = TextEditingController();
final _transactionReferenceController = TextEditingController(); final _transactionReferenceController = TextEditingController();

View File

@ -26,7 +26,7 @@ class ProductEdit extends StatefulWidget {
} }
class _ProductEditState extends State<ProductEdit> { class _ProductEditState extends State<ProductEdit> {
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_productEdit');
bool autoValidate = false; bool autoValidate = false;

View File

@ -27,7 +27,7 @@ class ProjectEdit extends StatefulWidget {
} }
class _ProjectEditState extends State<ProjectEdit> { class _ProjectEditState extends State<ProjectEdit> {
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_projectEdit');
final _debouncer = Debouncer(); final _debouncer = Debouncer();
bool autoValidate = false; bool autoValidate = false;

View File

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

View File

@ -19,7 +19,7 @@ class BuyNowButtons extends StatefulWidget {
} }
class _BuyNowButtonsState extends State<BuyNowButtons> { class _BuyNowButtonsState extends State<BuyNowButtons> {
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_buyNowButtons');
bool autoValidate = false; bool autoValidate = false;

View File

@ -28,7 +28,7 @@ class ClientPortal extends StatefulWidget {
class _ClientPortalState extends State<ClientPortal> class _ClientPortalState extends State<ClientPortal>
with SingleTickerProviderStateMixin { with SingleTickerProviderStateMixin {
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_clientPortal');
final FocusScopeNode _focusNode = FocusScopeNode(); final FocusScopeNode _focusNode = FocusScopeNode();
TabController _controller; TabController _controller;

View File

@ -31,7 +31,7 @@ class CompanyDetails extends StatefulWidget {
class _CompanyDetailsState extends State<CompanyDetails> class _CompanyDetailsState extends State<CompanyDetails>
with SingleTickerProviderStateMixin { with SingleTickerProviderStateMixin {
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_companyDetails');
final FocusScopeNode _focusNode = FocusScopeNode(); final FocusScopeNode _focusNode = FocusScopeNode();
TabController _controller; TabController _controller;

View File

@ -18,7 +18,7 @@ class CreditCardsAndBanks extends StatefulWidget {
class _CreditCardsAndBanksState extends State<CreditCardsAndBanks> class _CreditCardsAndBanksState extends State<CreditCardsAndBanks>
with SingleTickerProviderStateMixin { with SingleTickerProviderStateMixin {
//static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); //static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_creditCardsAndBanks);
TabController _controller; TabController _controller;

View File

@ -25,7 +25,7 @@ class CustomFields extends StatefulWidget {
class _CustomFieldsState extends State<CustomFields> class _CustomFieldsState extends State<CustomFields>
with SingleTickerProviderStateMixin { with SingleTickerProviderStateMixin {
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_customFields');
final _debouncer = Debouncer(); final _debouncer = Debouncer();
FocusScopeNode _focusNode; FocusScopeNode _focusNode;

View File

@ -17,7 +17,7 @@ class DataVisualizations extends StatefulWidget {
} }
class _DataVisualizationsState extends State<DataVisualizations> { class _DataVisualizationsState extends State<DataVisualizations> {
//static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); //static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_dataVisualizations');
bool autoValidate = false; bool autoValidate = false;

View File

@ -24,7 +24,7 @@ class DeviceSettings extends StatefulWidget {
} }
class _DeviceSettingsState extends State<DeviceSettings> { class _DeviceSettingsState extends State<DeviceSettings> {
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_deviceSettings');
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {

View File

@ -25,7 +25,7 @@ class EmailSettings extends StatefulWidget {
class _EmailSettingsState extends State<EmailSettings> class _EmailSettingsState extends State<EmailSettings>
with SingleTickerProviderStateMixin { with SingleTickerProviderStateMixin {
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_emailSettings');
TabController _tabController; TabController _tabController;
FocusScopeNode _focusNode; FocusScopeNode _focusNode;

View File

@ -27,7 +27,7 @@ class GeneratedNumbers extends StatefulWidget {
class _GeneratedNumbersState extends State<GeneratedNumbers> class _GeneratedNumbersState extends State<GeneratedNumbers>
with SingleTickerProviderStateMixin { with SingleTickerProviderStateMixin {
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_generatedNumbers');
FocusScopeNode _focusNode; FocusScopeNode _focusNode;
TabController _controller; TabController _controller;

View File

@ -17,7 +17,7 @@ class ImportExport extends StatefulWidget {
} }
class _ImportExportState extends State<ImportExport> { class _ImportExportState extends State<ImportExport> {
//static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); //static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_importExport);
bool autoValidate = false; bool autoValidate = false;

View File

@ -29,7 +29,7 @@ class InvoiceDesign extends StatefulWidget {
class _InvoiceDesignState extends State<InvoiceDesign> class _InvoiceDesignState extends State<InvoiceDesign>
with SingleTickerProviderStateMixin { with SingleTickerProviderStateMixin {
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_invoiceDesign');
TabController _controller; TabController _controller;
FocusScopeNode _focusNode; FocusScopeNode _focusNode;

View File

@ -27,7 +27,7 @@ class LocalizationSettings extends StatefulWidget {
} }
class _LocalizationSettingsState extends State<LocalizationSettings> { class _LocalizationSettingsState extends State<LocalizationSettings> {
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_localizationSettings');
bool autoValidate = false; bool autoValidate = false;

View File

@ -17,7 +17,7 @@ class NotificationSettings extends StatefulWidget {
} }
class _NotificationSettingsState extends State<NotificationSettings> { class _NotificationSettingsState extends State<NotificationSettings> {
//static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); //static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_notifications');
bool autoValidate = false; bool autoValidate = false;

View File

@ -19,7 +19,7 @@ class ProductSettings extends StatefulWidget {
} }
class _ProductSettingsState extends State<ProductSettings> { class _ProductSettingsState extends State<ProductSettings> {
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_productSettings');
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {

View File

@ -24,7 +24,7 @@ class TaxSettings extends StatefulWidget {
} }
class _TaxSettingsState extends State<TaxSettings> { class _TaxSettingsState extends State<TaxSettings> {
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_taxSettings');
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {

View File

@ -30,7 +30,7 @@ class TemplatesAndReminders extends StatefulWidget {
class _TemplatesAndRemindersState extends State<TemplatesAndReminders> class _TemplatesAndRemindersState extends State<TemplatesAndReminders>
with SingleTickerProviderStateMixin { with SingleTickerProviderStateMixin {
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_templatesAndReminders');
final _debouncer = Debouncer(); final _debouncer = Debouncer();
String _template = kEmailTemplateInvoice; String _template = kEmailTemplateInvoice;

View File

@ -21,7 +21,7 @@ class UserDetails extends StatefulWidget {
} }
class _UserDetailsState extends State<UserDetails> { class _UserDetailsState extends State<UserDetails> {
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_userDetails');
bool autoValidate = false; bool autoValidate = false;

View File

@ -22,7 +22,7 @@ class WorkflowSettings extends StatefulWidget {
class _WorkflowSettingsState extends State<WorkflowSettings> class _WorkflowSettingsState extends State<WorkflowSettings>
with SingleTickerProviderStateMixin { with SingleTickerProviderStateMixin {
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_workflowSettings');
FocusScopeNode _focusNode; FocusScopeNode _focusNode;
TabController _controller; TabController _controller;

View File

@ -26,7 +26,7 @@ class _TaskEditState extends State<TaskEdit>
Timer _timer; Timer _timer;
TabController _controller; TabController _controller;
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_taskEdit');
static const kDetailsScreen = 0; static const kDetailsScreen = 0;
static const kTimesScreen = 1; static const kTimesScreen = 1;

View File

@ -22,7 +22,7 @@ class TaxRateEdit extends StatefulWidget {
} }
class _TaxRateEditState extends State<TaxRateEdit> { class _TaxRateEditState extends State<TaxRateEdit> {
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_taxRateEdit');
bool autoValidate = false; bool autoValidate = false;

View File

@ -26,7 +26,7 @@ class UserEdit extends StatefulWidget {
} }
class _UserEditState extends State<UserEdit> { class _UserEditState extends State<UserEdit> {
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_userEdit');
final _debouncer = Debouncer(); final _debouncer = Debouncer();
bool autoValidate = false; bool autoValidate = false;

View File

@ -24,7 +24,7 @@ class VendorEdit extends StatefulWidget {
class _VendorEditState extends State<VendorEdit> class _VendorEditState extends State<VendorEdit>
with SingleTickerProviderStateMixin { with SingleTickerProviderStateMixin {
TabController _controller; TabController _controller;
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_vendorEdit');
@override @override
void initState() { void initState() {

View File

@ -23,7 +23,7 @@ class MyApp extends StatefulWidget {
} }
class _MyAppState extends State<MyApp> with SingleTickerProviderStateMixin { class _MyAppState extends State<MyApp> with SingleTickerProviderStateMixin {
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_appState');
static final GlobalKey<ClientPageState> _clientKey = static final GlobalKey<ClientPageState> _clientKey =
GlobalKey<ClientPageState>(); GlobalKey<ClientPageState>();

View File

@ -119,7 +119,7 @@ class MyApp extends StatefulWidget {
} }
class _MyAppState extends State<MyApp> with SingleTickerProviderStateMixin { class _MyAppState extends State<MyApp> with SingleTickerProviderStateMixin {
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_appState');
TabController _controller; TabController _controller;

View File

@ -20,7 +20,7 @@ class StubEdit extends StatefulWidget {
} }
class _StubEditState extends State<StubEdit> { class _StubEditState extends State<StubEdit> {
static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); static final GlobalKey<FormState> _formKey = GlobalKey<FormState>(debugLabel: '_stubEdit');
final _debouncer = Debouncer(); final _debouncer = Debouncer();
// STARTER: controllers - do not remove comment // STARTER: controllers - do not remove comment