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