Mobile UI changes
This commit is contained in:
parent
2fc1ef4479
commit
9c79ff5b21
|
|
@ -493,14 +493,15 @@ class _AppBottomBarState extends State<AppBottomBar> {
|
||||||
tooltip: localization.columns,
|
tooltip: localization.columns,
|
||||||
onPressed: _onColumnsPressed,
|
onPressed: _onColumnsPressed,
|
||||||
),
|
),
|
||||||
AppBorder(
|
if (state.prefState.isDesktop)
|
||||||
isLeft: state.prefState.isDesktop,
|
AppBorder(
|
||||||
child: IconButton(
|
isLeft: true,
|
||||||
icon: Icon(Icons.refresh),
|
child: IconButton(
|
||||||
onPressed: () => store.dispatch(RefreshData()),
|
icon: Icon(Icons.refresh),
|
||||||
tooltip: localization.refresh,
|
onPressed: () => store.dispatch(RefreshData()),
|
||||||
|
tooltip: localization.refresh,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -777,14 +777,20 @@ class _FeesEditorState extends State<FeesEditor> {
|
||||||
DecoratedFormField(
|
DecoratedFormField(
|
||||||
label: localization.feeAmount,
|
label: localization.feeAmount,
|
||||||
controller: _amountController,
|
controller: _amountController,
|
||||||
|
autocorrect: false,
|
||||||
|
keyboardType: TextInputType.numberWithOptions(decimal: true),
|
||||||
),
|
),
|
||||||
DecoratedFormField(
|
DecoratedFormField(
|
||||||
label: localization.feePercent,
|
label: localization.feePercent,
|
||||||
controller: _percentController,
|
controller: _percentController,
|
||||||
|
autocorrect: false,
|
||||||
|
keyboardType: TextInputType.numberWithOptions(decimal: true),
|
||||||
),
|
),
|
||||||
DecoratedFormField(
|
DecoratedFormField(
|
||||||
label: localization.feeCap,
|
label: localization.feeCap,
|
||||||
controller: _capController,
|
controller: _capController,
|
||||||
|
autocorrect: false,
|
||||||
|
keyboardType: TextInputType.numberWithOptions(decimal: true),
|
||||||
),
|
),
|
||||||
if (company.enableFirstItemTaxRate)
|
if (company.enableFirstItemTaxRate)
|
||||||
TaxRateDropdown(
|
TaxRateDropdown(
|
||||||
|
|
|
||||||
|
|
@ -522,6 +522,8 @@ class _PaymentableEditorState extends State<PaymentableEditor> {
|
||||||
Expanded(
|
Expanded(
|
||||||
child: DecoratedFormField(
|
child: DecoratedFormField(
|
||||||
controller: _amountController,
|
controller: _amountController,
|
||||||
|
autocorrect: false,
|
||||||
|
keyboardType: TextInputType.numberWithOptions(decimal: true),
|
||||||
label: payment.isForInvoice == true
|
label: payment.isForInvoice == true
|
||||||
? localization.amount
|
? localization.amount
|
||||||
: localization.applied,
|
: localization.applied,
|
||||||
|
|
|
||||||
|
|
@ -349,6 +349,8 @@ class _PaymentableEditorState extends State<PaymentableEditor> {
|
||||||
child: DecoratedFormField(
|
child: DecoratedFormField(
|
||||||
enabled: (_invoiceId ?? '').isNotEmpty,
|
enabled: (_invoiceId ?? '').isNotEmpty,
|
||||||
controller: _amountController,
|
controller: _amountController,
|
||||||
|
autocorrect: false,
|
||||||
|
keyboardType: TextInputType.numberWithOptions(decimal: true),
|
||||||
label: localization.amount,
|
label: localization.amount,
|
||||||
autofocus: !hasMultipleInvoices,
|
autofocus: !hasMultipleInvoices,
|
||||||
validator: (value) => !hasMultipleInvoices &&
|
validator: (value) => !hasMultipleInvoices &&
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ import 'package:invoiceninja_flutter/ui/vendor/edit/vendor_edit_details.dart';
|
||||||
import 'package:invoiceninja_flutter/ui/vendor/edit/vendor_edit_notes.dart';
|
import 'package:invoiceninja_flutter/ui/vendor/edit/vendor_edit_notes.dart';
|
||||||
import 'package:invoiceninja_flutter/ui/vendor/edit/vendor_edit_vm.dart';
|
import 'package:invoiceninja_flutter/ui/vendor/edit/vendor_edit_vm.dart';
|
||||||
import 'package:invoiceninja_flutter/utils/localization.dart';
|
import 'package:invoiceninja_flutter/utils/localization.dart';
|
||||||
|
import 'package:invoiceninja_flutter/utils/platforms.dart';
|
||||||
|
|
||||||
class VendorEdit extends StatefulWidget {
|
class VendorEdit extends StatefulWidget {
|
||||||
const VendorEdit({
|
const VendorEdit({
|
||||||
|
|
@ -65,7 +66,7 @@ class _VendorEditState extends State<VendorEdit>
|
||||||
},
|
},
|
||||||
appBarBottom: TabBar(
|
appBarBottom: TabBar(
|
||||||
controller: _controller,
|
controller: _controller,
|
||||||
//isScrollable: true,
|
isScrollable: isMobile(context),
|
||||||
tabs: [
|
tabs: [
|
||||||
Tab(
|
Tab(
|
||||||
text: localization.details,
|
text: localization.details,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue