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