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 enableDarkMode = prefs.getBool(kSharedPrefEnableDarkMode) ?? true;
final longPressSelectionIsDefault =
prefs.getBool(kSharedPrefLongPressSelectionIsDefault) ?? true;
prefs.getBool(kSharedPrefLongPressSelectionIsDefault) ?? false;
final requireAuthentication =
prefs.getBool(kSharedPrefRequireAuthentication) ?? false;

View File

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