fix: deprecated properties

This commit is contained in:
Dr-Blank 2024-09-18 00:00:27 -04:00
parent fe003de180
commit f645341a87
No known key found for this signature in database
GPG key ID: 7452CC63F210A266
3 changed files with 15 additions and 4 deletions

View file

@ -1,8 +1,10 @@
import 'package:flutter/material.dart';
import 'package:vaani/theme/theme.dart';
final ThemeData darkTheme = ThemeData(
brightness: Brightness.dark,
colorScheme: ColorScheme.fromSeed(
seedColor: brandColor,
brightness: Brightness.dark,
colorScheme: ColorScheme.dark(
background: Colors.grey[900]!,
),
);

View file

@ -1,8 +1,10 @@
import 'package:flutter/material.dart';
import 'package:vaani/theme/theme.dart';
final ThemeData lightTheme = ThemeData(
brightness: Brightness.light,
colorScheme: ColorScheme.fromSeed(
seedColor: brandColor,
brightness: Brightness.light,
colorScheme: ColorScheme.light(
background: Colors.grey[200]!,
),
);

View file

@ -1,2 +1,9 @@
import 'dart:ui';
export 'dark.dart';
export 'light.dart';
// brand color rgb(49, 27, 146) rgb(96, 76, 236)
const brandColor = Color(0xFF311B92);
const brandColorLight = Color(0xFF604CEC);