This commit is contained in:
Hillel Coren 2019-10-29 21:57:42 +02:00
parent b19f237fa1
commit 1032f3d300
2 changed files with 2 additions and 10 deletions

View File

@ -97,7 +97,7 @@ void main({bool isTesting = false}) async {
final prefs = await SharedPreferences.getInstance(); final prefs = await SharedPreferences.getInstance();
final enableDarkMode = prefs.getBool(kSharedPrefEnableDarkMode) ?? true; final enableDarkMode = prefs.getBool(kSharedPrefEnableDarkMode) ?? true;
final longPressSelectionIsDefault = final longPressSelectionIsDefault =
prefs.getBool(kSharedPrefLongPressSelectionIsDefault) ?? true; prefs.getBool(kSharedPrefLongPressSelectionIsDefault) ?? false;
final requireAuthentication = final requireAuthentication =
prefs.getBool(kSharedPrefRequireAuthentication) ?? false; prefs.getBool(kSharedPrefRequireAuthentication) ?? false;

View File

@ -42,7 +42,7 @@ class _InvoiceDesignState extends State<InvoiceDesign>
void initState() { void initState() {
super.initState(); super.initState();
_focusNode = FocusScopeNode(); _focusNode = FocusScopeNode();
_controller = TabController(vsync: this, length: 4); _controller = TabController(vsync: this, length: 2);
} }
@override @override
@ -105,12 +105,6 @@ class _InvoiceDesignState extends State<InvoiceDesign>
Tab( Tab(
text: localization.invoiceOptions, text: localization.invoiceOptions,
), ),
Tab(
text: localization.invoiceFields,
),
Tab(
text: localization.productFields,
),
], ],
), ),
body: AppTabForm( body: AppTabForm(
@ -258,8 +252,6 @@ class _InvoiceDesignState extends State<InvoiceDesign>
), ),
], ],
), ),
ListView(),
ListView(),
], ],
), ),
); );