Skip to content

Commit

Permalink
fix: deprecated properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Blank committed Sep 18, 2024
1 parent fe003de commit f645341
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
6 changes: 4 additions & 2 deletions lib/theme/dark.dart
Original file line number Diff line number Diff line change
@@ -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]!,
),
);
6 changes: 4 additions & 2 deletions lib/theme/light.dart
Original file line number Diff line number Diff line change
@@ -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]!,
),
);
7 changes: 7 additions & 0 deletions lib/theme/theme.dart
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit f645341

Please sign in to comment.