Skip to content

Commit

Permalink
fix aount field underline theme on white background.
Browse files Browse the repository at this point in the history
  • Loading branch information
roeierez committed Jun 14, 2019
1 parent 7f79ae7 commit 19b7c22
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/routes/user/withdraw_funds/send_coins_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ class SendWalletFundsDialogState extends State<SendWalletFundsDialog> {
Widget build(BuildContext context) {
return Theme(
data: Theme.of(context).copyWith(
inputDecorationTheme: InputDecorationTheme(enabledBorder: UnderlineInputBorder(borderSide: theme.greyBorderSide)),
hintColor: theme.alertStyle.color,
accentColor: theme.BreezColors.blue[500],
primaryColor: theme.BreezColors.blue[500],
Expand Down
2 changes: 2 additions & 0 deletions lib/theme_data.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:flutter/material.dart';

final ThemeData breezThemeData = new ThemeData(
brightness: Brightness.light,
Expand Down Expand Up @@ -76,6 +77,7 @@ final Color pulseAnimationColor = Color.fromRGBO(100, 155, 230, 1.0);
final Color marketplaceButtonColor = Color.fromRGBO(229, 238, 251, 0.09);
final Color errorColor = Color(0xffffe685);
final Color circularLoaderColor = BreezColors.blue[200].withOpacity(0.7);
final BorderSide greyBorderSide = BorderSide(color: BreezColors.grey[500]);

class FieldTextStyle {
FieldTextStyle._();
Expand Down
5 changes: 4 additions & 1 deletion lib/widgets/payment_request_info_dialog.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:async';

import 'package:auto_size_text/auto_size_text.dart';
import 'package:breez/bloc/account/account_actions.dart';
import 'package:breez/bloc/account/account_bloc.dart';
Expand Down Expand Up @@ -44,7 +46,7 @@ class PaymentRequestInfoDialogState extends State<PaymentRequestInfoDialog> {
super.initState();
_invoiceAmountController.addListener(() {
setState(() {});
});
});
}

@override
Expand Down Expand Up @@ -156,6 +158,7 @@ class PaymentRequestInfoDialogState extends State<PaymentRequestInfoDialog> {
if (widget.invoice.amount == 0) {
return Theme(
data: Theme.of(context).copyWith(
inputDecorationTheme: InputDecorationTheme(enabledBorder: UnderlineInputBorder(borderSide: theme.greyBorderSide)),
hintColor: theme.alertStyle.color,
accentColor: theme.BreezColors.blue[500],
primaryColor: theme.BreezColors.blue[500],
Expand Down

0 comments on commit 19b7c22

Please sign in to comment.