mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
fix linter warning
This commit is contained in:
parent
b6a2840368
commit
a9e3b7696e
1 changed files with 3 additions and 2 deletions
|
@ -144,6 +144,8 @@ class _RestoreOptionsViewState extends ConsumerState<RestoreOptionsView> {
|
||||||
|
|
||||||
Future<void> chooseDate() async {
|
Future<void> chooseDate() async {
|
||||||
final height = MediaQuery.of(context).size.height;
|
final height = MediaQuery.of(context).size.height;
|
||||||
|
final fetchedColor =
|
||||||
|
Theme.of(context).extension<StackColors>()!.accentColorDark;
|
||||||
// check and hide keyboard
|
// check and hide keyboard
|
||||||
if (FocusScope.of(context).hasFocus) {
|
if (FocusScope.of(context).hasFocus) {
|
||||||
FocusScope.of(context).unfocus();
|
FocusScope.of(context).unfocus();
|
||||||
|
@ -155,8 +157,7 @@ class _RestoreOptionsViewState extends ConsumerState<RestoreOptionsView> {
|
||||||
initialDate: DateTime.now(),
|
initialDate: DateTime.now(),
|
||||||
height: height * 0.5,
|
height: height * 0.5,
|
||||||
theme: ThemeData(
|
theme: ThemeData(
|
||||||
primarySwatch: Util.createMaterialColor(
|
primarySwatch: Util.createMaterialColor(fetchedColor),
|
||||||
Theme.of(context).extension<StackColors>()!.accentColorDark),
|
|
||||||
),
|
),
|
||||||
//TODO pick a better initial date
|
//TODO pick a better initial date
|
||||||
// 2007 chosen as that is just before bitcoin launched
|
// 2007 chosen as that is just before bitcoin launched
|
||||||
|
|
Loading…
Reference in a new issue