Transactions
This commit is contained in:
parent
524e501751
commit
7834bba793
|
|
@ -1,8 +1,10 @@
|
|||
// Flutter imports:
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_redux/flutter_redux.dart';
|
||||
|
||||
// Project imports:
|
||||
import 'package:invoiceninja_flutter/constants.dart';
|
||||
import 'package:invoiceninja_flutter/redux/app/app_state.dart';
|
||||
import 'package:invoiceninja_flutter/ui/app/icon_text.dart';
|
||||
|
||||
class AppButton extends StatelessWidget {
|
||||
|
|
@ -22,9 +24,12 @@ class AppButton extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final store = StoreProvider.of<AppState>(context);
|
||||
final state = store.state;
|
||||
|
||||
final button = ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
foregroundColor: color ?? Theme.of(context).colorScheme.secondary,
|
||||
backgroundColor: color ?? state.accentColor,
|
||||
padding: EdgeInsets.symmetric(vertical: 14, horizontal: 14),
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(kBorderRadius)),
|
||||
|
|
|
|||
|
|
@ -194,9 +194,8 @@ class __MatchInvoicesState extends State<_MatchInvoices> {
|
|||
Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
left: 20,
|
||||
bottom: 20,
|
||||
bottom: 16,
|
||||
right: 20,
|
||||
top: 4,
|
||||
),
|
||||
child: AppButton(
|
||||
label: localization.convertToPayment,
|
||||
|
|
|
|||
Loading…
Reference in New Issue