Merge pull request #68 from cake-tech/CWA-221-adaptive-screens

Cwa 221 adaptive screens
This commit is contained in:
Oleksandr Sobol 2020-06-11 18:37:43 +03:00 committed by GitHub
commit 0b53971051
19 changed files with 433 additions and 289 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 640 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

View file

@ -374,7 +374,6 @@ class WalletCardState extends State<WalletCard> {
child: Container( child: Container(
height: 90, height: 90,
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[ children: <Widget>[
Text( Text(
@ -396,20 +395,23 @@ class WalletCardState extends State<WalletCard> {
try { try {
_addressObserverKey.currentState.setState(() { _addressObserverKey.currentState.setState(() {
messageBoxHeight = 0; messageBoxHeight = 0;
messageBoxWidth = cardWidth - 10; messageBoxWidth = cardWidth;
}); });
} catch(e) { } catch(e) {
print('${e.toString()}'); print('${e.toString()}');
} }
}); });
}, },
child: Padding(
padding: EdgeInsets.only(top: 5),
child: Text( child: Text(
walletStore.subaddress.address, walletStore.subaddress.address,
style: TextStyle( style: TextStyle(
fontSize: 14, fontSize: 12,
color: Theme.of(context).primaryTextTheme.title.color color: Theme.of(context).primaryTextTheme.title.color
), ),
), ),
),
) )
], ],
), ),

View file

@ -11,11 +11,13 @@ import 'package:cake_wallet/src/domain/services/wallet_list_service.dart';
import 'package:cake_wallet/src/domain/services/wallet_service.dart'; import 'package:cake_wallet/src/domain/services/wallet_service.dart';
import 'package:cake_wallet/src/screens/base_page.dart'; import 'package:cake_wallet/src/screens/base_page.dart';
import 'package:cake_wallet/src/widgets/primary_button.dart'; import 'package:cake_wallet/src/widgets/primary_button.dart';
import 'package:cake_wallet/src/widgets/scollable_with_bottom_section.dart';
import 'package:cake_wallet/src/stores/seed_language/seed_language_store.dart'; import 'package:cake_wallet/src/stores/seed_language/seed_language_store.dart';
import 'package:cake_wallet/src/screens/new_wallet/widgets/select_button.dart'; import 'package:cake_wallet/src/screens/new_wallet/widgets/select_button.dart';
import 'package:cake_wallet/src/screens/seed_language/widgets/seed_language_picker.dart'; import 'package:cake_wallet/src/screens/seed_language/widgets/seed_language_picker.dart';
import 'package:cake_wallet/src/widgets/alert_with_one_action.dart'; import 'package:cake_wallet/src/widgets/alert_with_one_action.dart';
import 'package:cake_wallet/src/widgets/base_text_form_field.dart';
import 'package:cake_wallet/themes.dart';
import 'package:cake_wallet/theme_changer.dart';
class NewWalletPage extends BasePage { class NewWalletPage extends BasePage {
NewWalletPage( NewWalletPage(
@ -30,6 +32,9 @@ class NewWalletPage extends BasePage {
@override @override
String get title => S.current.new_wallet; String get title => S.current.new_wallet;
@override
bool get resizeToAvoidBottomPadding => false;
@override @override
Widget body(BuildContext context) => WalletNameForm(); Widget body(BuildContext context) => WalletNameForm();
} }
@ -44,7 +49,8 @@ class _WalletNameFormState extends State<WalletNameForm> {
final _formKey = GlobalKey<FormState>(); final _formKey = GlobalKey<FormState>();
final nameController = TextEditingController(); final nameController = TextEditingController();
final walletNameImage = Image.asset('assets/images/wallet_name.png'); final walletNameImageLight = Image.asset('assets/images/wallet_name_light.png');
final walletNameImageDark = Image.asset('assets/images/wallet_name.png');
@override @override
void dispose() { void dispose() {
@ -56,6 +62,9 @@ class _WalletNameFormState extends State<WalletNameForm> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
final walletCreationStore = Provider.of<WalletCreationStore>(context); final walletCreationStore = Provider.of<WalletCreationStore>(context);
final seedLanguageStore = Provider.of<SeedLanguageStore>(context); final seedLanguageStore = Provider.of<SeedLanguageStore>(context);
final _themeChanger = Provider.of<ThemeChanger>(context);
final walletNameImage = _themeChanger.getTheme() == Themes.darkTheme
? walletNameImageDark : walletNameImageLight;
final List<String> seedLocales = [ final List<String> seedLocales = [
S.current.seed_language_english, S.current.seed_language_english,
@ -98,8 +107,90 @@ class _WalletNameFormState extends State<WalletNameForm> {
}); });
return Container( return Container(
padding: EdgeInsets.all(24),
child: Column(
children: <Widget>[
Flexible(
flex: 2,
child: AspectRatio(
aspectRatio: aspectRatioImage,
child: FittedBox(child: walletNameImage, fit: BoxFit.fill)
)
),
Flexible(
flex: 3,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Column(
children: <Widget>[
Padding(
padding: EdgeInsets.only(top: 24), padding: EdgeInsets.only(top: 24),
child: ScrollableWithBottomSection( child: Form(
key: _formKey,
child: BaseTextFormField(
controller: nameController,
textAlign: TextAlign.center,
textFontSize: 20.0,
hintText: S.of(context).wallet_name,
validator: (value) {
walletCreationStore.validateWalletName(value);
return walletCreationStore.errorMessage;
}
)
),
),
Padding(padding: EdgeInsets.only(top: 24),
child: Text(
S.of(context).seed_language_choose,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 16.0,
fontWeight: FontWeight.w600,
color: Theme.of(context).primaryTextTheme.title.color
),
),
),
Padding(padding: EdgeInsets.only(top: 24),
child: Observer(
builder: (_) => SelectButton(
image: null,
text: seedLocales[seedLanguages.indexOf(seedLanguageStore.selectedSeedLanguage)],
color: Theme.of(context).accentTextTheme.title.backgroundColor,
textColor: Theme.of(context).primaryTextTheme.title.color,
onTap: () async => await showDialog(
context: context,
builder: (BuildContext context) => SeedLanguagePicker()
)
)
),
)
],
),
Observer(
builder: (context) {
return LoadingPrimaryButton(
onPressed: () {
if (_formKey.currentState.validate()) {
walletCreationStore.create(name: nameController.text,
language: seedLanguageStore.selectedSeedLanguage);
}
},
text: S.of(context).continue_text,
color: Colors.green,
textColor: Colors.white,
isLoading: walletCreationStore.state is WalletIsCreating,
isDisabled: walletCreationStore.isDisabledStatus,
);
},
)
],
)
)
],
)
/*ScrollableWithBottomSection(
contentPadding: EdgeInsets.only(left: 24, right: 24, bottom: 24), contentPadding: EdgeInsets.only(left: 24, right: 24, bottom: 24),
content: Column( content: Column(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
@ -184,7 +275,7 @@ class _WalletNameFormState extends State<WalletNameForm> {
isDisabled: walletCreationStore.isDisabledStatus, isDisabled: walletCreationStore.isDisabledStatus,
); );
}, },
)), )),*/
); );
} }
} }

View file

@ -3,9 +3,11 @@ import 'package:flutter/cupertino.dart';
import 'package:cake_wallet/generated/i18n.dart'; import 'package:cake_wallet/generated/i18n.dart';
import 'package:cake_wallet/src/screens/base_page.dart'; import 'package:cake_wallet/src/screens/base_page.dart';
import 'package:cake_wallet/src/widgets/primary_button.dart'; import 'package:cake_wallet/src/widgets/primary_button.dart';
import 'package:cake_wallet/src/widgets/scollable_with_bottom_section.dart';
import 'package:cake_wallet/src/screens/new_wallet/widgets/select_button.dart'; import 'package:cake_wallet/src/screens/new_wallet/widgets/select_button.dart';
import 'package:cake_wallet/routes.dart'; import 'package:cake_wallet/routes.dart';
import 'package:provider/provider.dart';
import 'package:cake_wallet/themes.dart';
import 'package:cake_wallet/theme_changer.dart';
class NewWalletTypePage extends BasePage { class NewWalletTypePage extends BasePage {
@override @override
@ -25,7 +27,8 @@ class WalletTypeFormState extends State<WalletTypeForm> {
final moneroIcon = Image.asset('assets/images/monero.png', height: 24, width: 24); final moneroIcon = Image.asset('assets/images/monero.png', height: 24, width: 24);
final bitcoinIcon = Image.asset('assets/images/bitcoin.png', height: 24, width: 24); final bitcoinIcon = Image.asset('assets/images/bitcoin.png', height: 24, width: 24);
final walletTypeImage = Image.asset('assets/images/wallet_type.png'); final walletTypeImageLight = Image.asset('assets/images/wallet_type_light.png');
final walletTypeImageDark = Image.asset('assets/images/wallet_type.png');
bool isDisabledButton; bool isDisabledButton;
bool isMoneroSelected; bool isMoneroSelected;
@ -56,21 +59,30 @@ class WalletTypeFormState extends State<WalletTypeForm> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final _themeChanger = Provider.of<ThemeChanger>(context);
final walletTypeImage = _themeChanger.getTheme() == Themes.darkTheme
? walletTypeImageDark : walletTypeImageLight;
return Container( return Container(
padding: EdgeInsets.only(top: 24), padding: EdgeInsets.all(24),
child: ScrollableWithBottomSection( child: Column(
contentPadding: EdgeInsets.only(left: 24, right: 24, bottom: 24),
content: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[ children: <Widget>[
Padding( Flexible(
padding: EdgeInsets.only(left: 12, right: 12), flex: 2,
child: AspectRatio( child: AspectRatio(
aspectRatio: aspectRatioImage, aspectRatio: aspectRatioImage,
child: FittedBox(child: walletTypeImage, fit: BoxFit.fill)), child: FittedBox(child: walletTypeImage, fit: BoxFit.fill)
)
), ),
Flexible(
flex: 3,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Column(
children: <Widget>[
Padding( Padding(
padding: EdgeInsets.only(top: 48), padding: EdgeInsets.only(top: 24),
child: Text( child: Text(
S.of(context).choose_wallet_currency, S.of(context).choose_wallet_currency,
textAlign: TextAlign.center, textAlign: TextAlign.center,
@ -101,19 +113,18 @@ class WalletTypeFormState extends State<WalletTypeForm> {
) )
], ],
), ),
bottomSectionPadding: EdgeInsets.only( PrimaryButton(
left: 24,
right: 24,
bottom: 24
),
bottomSection: PrimaryButton(
onPressed: () => Navigator.of(context).pushNamed(Routes.newWallet), onPressed: () => Navigator.of(context).pushNamed(Routes.newWallet),
text: S.of(context).seed_language_next, text: S.of(context).seed_language_next,
color: Colors.green, color: Colors.green,
textColor: Colors.white, textColor: Colors.white,
isDisabled: isDisabledButton, isDisabled: isDisabledButton,
), )
), ],
)
)
],
)
); );
} }

View file

@ -8,12 +8,14 @@ import 'package:cake_wallet/generated/i18n.dart';
import 'package:cake_wallet/src/widgets/primary_button.dart'; import 'package:cake_wallet/src/widgets/primary_button.dart';
import 'package:cake_wallet/src/stores/wallet_seed/wallet_seed_store.dart'; import 'package:cake_wallet/src/stores/wallet_seed/wallet_seed_store.dart';
import 'package:cake_wallet/src/screens/base_page.dart'; import 'package:cake_wallet/src/screens/base_page.dart';
import 'package:cake_wallet/src/widgets/scollable_with_bottom_section.dart'; import 'package:cake_wallet/themes.dart';
import 'package:cake_wallet/theme_changer.dart';
class SeedPage extends BasePage { class SeedPage extends BasePage {
SeedPage({this.onCloseCallback}); SeedPage({this.onCloseCallback});
static final image = Image.asset('assets/images/crypto_lock.png'); static final imageLight = Image.asset('assets/images/crypto_lock_light.png');
static final imageDark = Image.asset('assets/images/crypto_lock.png');
@override @override
String get title => S.current.seed_title; String get title => S.current.seed_title;
@ -58,19 +60,28 @@ class SeedPage extends BasePage {
@override @override
Widget body(BuildContext context) { Widget body(BuildContext context) {
final walletSeedStore = Provider.of<WalletSeedStore>(context); final walletSeedStore = Provider.of<WalletSeedStore>(context);
final _themeChanger = Provider.of<ThemeChanger>(context);
final image = _themeChanger.getTheme() == Themes.darkTheme
? imageDark : imageLight;
String _seed; String _seed;
return Container( return Container(
width: double.infinity, padding: EdgeInsets.all(24),
height: double.infinity, child: Column(
child: ScrollableWithBottomSection(
contentPadding: EdgeInsets.only(left: 40, right: 40, bottom: 20),
content: Column(
children: <Widget>[ children: <Widget>[
Padding( Flexible(
padding: EdgeInsets.only(top: 33), flex: 2,
child: image, child: AspectRatio(
aspectRatio: 1,
child: FittedBox(child: image, fit: BoxFit.fill)
)
), ),
Flexible(
flex: 3,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Padding( Padding(
padding: EdgeInsets.only(top: 33), padding: EdgeInsets.only(top: 33),
child: Observer( child: Observer(
@ -103,16 +114,8 @@ class SeedPage extends BasePage {
); );
} }
), ),
)
],
), ),
bottomSectionPadding: EdgeInsets.only( Row(
left: 24,
right: 24,
bottom: 52
),
bottomSection: Container(
child: Row(
mainAxisSize: MainAxisSize.max, mainAxisSize: MainAxisSize.max,
children: <Widget>[ children: <Widget>[
Flexible( Flexible(
@ -153,9 +156,12 @@ class SeedPage extends BasePage {
) )
) )
], ],
), )
), ],
), )
)
],
)
); );
} }
} }

View file

@ -5,10 +5,11 @@ import 'package:flutter/cupertino.dart';
import 'package:cake_wallet/generated/i18n.dart'; import 'package:cake_wallet/generated/i18n.dart';
import 'package:cake_wallet/src/screens/base_page.dart'; import 'package:cake_wallet/src/screens/base_page.dart';
import 'package:cake_wallet/src/widgets/primary_button.dart'; import 'package:cake_wallet/src/widgets/primary_button.dart';
import 'package:cake_wallet/src/widgets/scollable_with_bottom_section.dart';
import 'package:cake_wallet/src/stores/seed_language/seed_language_store.dart'; import 'package:cake_wallet/src/stores/seed_language/seed_language_store.dart';
import 'package:cake_wallet/src/screens/new_wallet/widgets/select_button.dart'; import 'package:cake_wallet/src/screens/new_wallet/widgets/select_button.dart';
import 'package:cake_wallet/src/screens/seed_language/widgets/seed_language_picker.dart'; import 'package:cake_wallet/src/screens/seed_language/widgets/seed_language_picker.dart';
import 'package:cake_wallet/themes.dart';
import 'package:cake_wallet/theme_changer.dart';
class SeedLanguage extends BasePage { class SeedLanguage extends BasePage {
@override @override
@ -22,11 +23,15 @@ class SeedLanguageForm extends StatefulWidget {
class SeedLanguageFormState extends State<SeedLanguageForm> { class SeedLanguageFormState extends State<SeedLanguageForm> {
static const aspectRatioImage = 1.22; static const aspectRatioImage = 1.22;
final walletNameImage = Image.asset('assets/images/wallet_name.png'); final walletNameImageLight = Image.asset('assets/images/wallet_name_light.png');
final walletNameImageDark = Image.asset('assets/images/wallet_name.png');
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final seedLanguageStore = Provider.of<SeedLanguageStore>(context); final seedLanguageStore = Provider.of<SeedLanguageStore>(context);
final _themeChanger = Provider.of<ThemeChanger>(context);
final walletNameImage = _themeChanger.getTheme() == Themes.darkTheme
? walletNameImageDark : walletNameImageLight;
final List<String> seedLocales = [ final List<String> seedLocales = [
S.current.seed_language_english, S.current.seed_language_english,
@ -40,19 +45,24 @@ class SeedLanguageFormState extends State<SeedLanguageForm> {
]; ];
return Container( return Container(
padding: EdgeInsets.only(top: 24), padding: EdgeInsets.all(24),
child: ScrollableWithBottomSection( child: Column(
contentPadding: EdgeInsets.only(left: 24, right: 24, bottom: 24), children: <Widget>[
content: Column( Flexible(
crossAxisAlignment: CrossAxisAlignment.center, flex: 2,
children: [
Padding(
padding: EdgeInsets.only(left: 12, right: 12),
child: AspectRatio( child: AspectRatio(
aspectRatio: aspectRatioImage, aspectRatio: aspectRatioImage,
child: FittedBox(child: walletNameImage, fit: BoxFit.fill)), child: FittedBox(child: walletNameImage, fit: BoxFit.fill)
)
), ),
Padding(padding: EdgeInsets.only(top: 40), Flexible(
flex: 3,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Column(
children: <Widget>[
Padding(padding: EdgeInsets.only(top: 48),
child: Text( child: Text(
S.of(context).seed_language_choose, S.of(context).seed_language_choose,
textAlign: TextAlign.center, textAlign: TextAlign.center,
@ -77,9 +87,9 @@ class SeedLanguageFormState extends State<SeedLanguageForm> {
) )
), ),
) )
]), ],
bottomSectionPadding: EdgeInsets.only(left: 24, right: 24, bottom: 24), ),
bottomSection: Observer( Observer(
builder: (context) { builder: (context) {
return PrimaryButton( return PrimaryButton(
onPressed: () => onPressed: () =>
@ -88,7 +98,12 @@ class SeedLanguageFormState extends State<SeedLanguageForm> {
color: Colors.green, color: Colors.green,
textColor: Colors.white); textColor: Colors.white);
}, },
)), )
],
)
)
],
)
); );
} }
} }

View file

@ -4,11 +4,14 @@ import 'package:cake_wallet/routes.dart';
import 'package:cake_wallet/src/widgets/primary_button.dart'; import 'package:cake_wallet/src/widgets/primary_button.dart';
import 'package:cake_wallet/src/screens/base_page.dart'; import 'package:cake_wallet/src/screens/base_page.dart';
import 'package:cake_wallet/generated/i18n.dart'; import 'package:cake_wallet/generated/i18n.dart';
import 'package:cake_wallet/src/widgets/scollable_with_bottom_section.dart'; import 'package:provider/provider.dart';
import 'package:cake_wallet/themes.dart';
import 'package:cake_wallet/theme_changer.dart';
class WelcomePage extends BasePage { class WelcomePage extends BasePage {
static const aspectRatioImage = 1.25; static const aspectRatioImage = 1.25;
final welcomeImage = Image.asset('assets/images/welcome.png'); final welcomeImageLight = Image.asset('assets/images/welcome_light.png');
final welcomeImageDark = Image.asset('assets/images/welcome.png');
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
@ -20,6 +23,10 @@ class WelcomePage extends BasePage {
@override @override
Widget body(BuildContext context) { Widget body(BuildContext context) {
final _themeChanger = Provider.of<ThemeChanger>(context);
final welcomeImage = _themeChanger.getTheme() == Themes.darkTheme
? welcomeImageDark : welcomeImageLight;
final newWalletImage = Image.asset('assets/images/new_wallet.png', final newWalletImage = Image.asset('assets/images/new_wallet.png',
height: 12, height: 12,
width: 12, width: 12,
@ -30,21 +37,26 @@ class WelcomePage extends BasePage {
color: Theme.of(context).primaryTextTheme.title.color); color: Theme.of(context).primaryTextTheme.title.color);
return Container( return Container(
padding: EdgeInsets.only(top: 20), padding: EdgeInsets.all(24),
child: ScrollableWithBottomSection(
contentPadding: EdgeInsets.only(bottom: 20),
content: Column(
children: <Widget>[
AspectRatio(
aspectRatio: aspectRatioImage,
child: FittedBox(child: welcomeImage, fit: BoxFit.fill)),
Padding(
padding: EdgeInsets.only(left: 24, right: 24, top: 40),
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[ children: <Widget>[
Text( Flexible(
flex: 2,
child: AspectRatio(
aspectRatio: aspectRatioImage,
child: FittedBox(child: welcomeImage, fit: BoxFit.fill)
)
),
Flexible(
flex: 3,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Column(
children: <Widget>[
Padding(
padding: EdgeInsets.only(top: 24),
child: Text(
S.of(context).welcome, S.of(context).welcome,
style: TextStyle( style: TextStyle(
fontSize: 18, fontSize: 18,
@ -52,6 +64,7 @@ class WelcomePage extends BasePage {
), ),
textAlign: TextAlign.center, textAlign: TextAlign.center,
), ),
),
Padding( Padding(
padding: EdgeInsets.only(top: 10), padding: EdgeInsets.only(top: 10),
child: Text( child: Text(
@ -78,11 +91,8 @@ class WelcomePage extends BasePage {
), ),
], ],
), ),
) Column(
], children: <Widget>[
),
bottomSectionPadding: EdgeInsets.only(left: 24, right: 24, bottom: 20),
bottomSection: Column(children: <Widget>[
Text( Text(
S.of(context).please_make_selection, S.of(context).please_make_selection,
style: TextStyle( style: TextStyle(
@ -111,8 +121,13 @@ class WelcomePage extends BasePage {
color: Theme.of(context).primaryTextTheme.overline.color, color: Theme.of(context).primaryTextTheme.overline.color,
textColor: Theme.of(context).primaryTextTheme.title.color), textColor: Theme.of(context).primaryTextTheme.title.color),
) )
]), ],
), )
],
)
)
],
)
); );
} }
} }

View file

@ -14,6 +14,8 @@ class BaseTextFormField extends StatelessWidget {
this.textColor, this.textColor,
this.hintColor, this.hintColor,
this.borderColor, this.borderColor,
this.textFontSize = 16.0,
this.hintFontSize = 16.0,
this.prefix, this.prefix,
this.suffix, this.suffix,
this.suffixIcon, this.suffixIcon,
@ -32,6 +34,8 @@ class BaseTextFormField extends StatelessWidget {
final Color textColor; final Color textColor;
final Color hintColor; final Color hintColor;
final Color borderColor; final Color borderColor;
final double textFontSize;
final double hintFontSize;
final Widget prefix; final Widget prefix;
final Widget suffix; final Widget suffix;
final Widget suffixIcon; final Widget suffixIcon;
@ -50,7 +54,7 @@ class BaseTextFormField extends StatelessWidget {
inputFormatters: inputFormatters, inputFormatters: inputFormatters,
enabled: enabled, enabled: enabled,
style: TextStyle( style: TextStyle(
fontSize: 16.0, fontSize: textFontSize,
color: textColor ?? Theme.of(context).primaryTextTheme.title.color color: textColor ?? Theme.of(context).primaryTextTheme.title.color
), ),
decoration: InputDecoration( decoration: InputDecoration(
@ -59,7 +63,7 @@ class BaseTextFormField extends StatelessWidget {
suffixIcon: suffixIcon, suffixIcon: suffixIcon,
hintStyle: TextStyle( hintStyle: TextStyle(
color: hintColor ?? Theme.of(context).primaryTextTheme.caption.color, color: hintColor ?? Theme.of(context).primaryTextTheme.caption.color,
fontSize: 16 fontSize: hintFontSize
), ),
hintText: hintText, hintText: hintText,
focusedBorder: UnderlineInputBorder( focusedBorder: UnderlineInputBorder(