fix linter warning

This commit is contained in:
julian 2022-10-20 11:04:25 -06:00
parent b6a2840368
commit a9e3b7696e

View file

@ -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