mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
Fixed issues for linter and analyzer
This commit is contained in:
parent
6c832a4efd
commit
78ec11de47
168 changed files with 2274 additions and 1971 deletions
|
@ -1,11 +1,8 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:cake_wallet/palette.dart';
|
||||
import 'package:cake_wallet/routes.dart';
|
||||
import 'package:cake_wallet/src/widgets/primary_button.dart';
|
||||
import 'package:cake_wallet/src/screens/base_page.dart';
|
||||
import 'package:cake_wallet/theme_changer.dart';
|
||||
import 'package:cake_wallet/themes.dart';
|
||||
import 'package:cake_wallet/generated/i18n.dart';
|
||||
|
||||
class WelcomePage extends BasePage {
|
||||
|
@ -16,15 +13,10 @@ class WelcomePage extends BasePage {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
ThemeChanger _themeChanger = Provider.of<ThemeChanger>(context);
|
||||
bool _isDarkTheme = (_themeChanger.getTheme() == Themes.darkTheme);
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor:
|
||||
_isDarkTheme ? Theme.of(context).backgroundColor : backgroundColor,
|
||||
resizeToAvoidBottomPadding: false,
|
||||
body: SafeArea(child: body(context)),
|
||||
);
|
||||
backgroundColor: Theme.of(context).backgroundColor,
|
||||
resizeToAvoidBottomPadding: false,
|
||||
body: SafeArea(child: body(context)));
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue