mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-24 18:38:48 +01:00
Prefer Theme.colorScheme
This commit is contained in:
parent
d927bf3cb8
commit
dec000b1a6
4 changed files with 3 additions and 9 deletions
|
@ -87,12 +87,6 @@ class AppTheme extends StatelessWidget {
|
|||
return Colors.blue[200];
|
||||
}
|
||||
|
||||
static Color getCloudIconColor(BuildContext context) {
|
||||
return Theme.of(context).brightness == Brightness.light
|
||||
? primarySwatchLight
|
||||
: primarySwatchDark;
|
||||
}
|
||||
|
||||
static Color getPrimaryTextColor(BuildContext context) {
|
||||
return Theme.of(context).brightness == Brightness.light
|
||||
? Colors.black87
|
||||
|
|
|
@ -79,7 +79,7 @@ class _ConnectState extends State<Connect> {
|
|||
Icon(
|
||||
Icons.cloud,
|
||||
size: 128,
|
||||
color: AppTheme.getCloudIconColor(context),
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
),
|
||||
Text(
|
||||
AppLocalizations.of(context)
|
||||
|
|
|
@ -123,7 +123,7 @@ class _SignInState extends State<SignIn> {
|
|||
Center(
|
||||
child: Icon(
|
||||
Icons.cloud,
|
||||
color: AppTheme.getCloudIconColor(context),
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
size: 72,
|
||||
),
|
||||
),
|
||||
|
|
|
@ -52,7 +52,7 @@ class _SplashState extends State<Splash> {
|
|||
Icon(
|
||||
Icons.cloud,
|
||||
size: 96,
|
||||
color: AppTheme.getCloudIconColor(context),
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
Text(
|
||||
|
|
Loading…
Reference in a new issue