Skip to content

Commit

Permalink
Merge pull request #20 from Dr-Blank/fix-progress-bar-theme
Browse files Browse the repository at this point in the history
Fix deprecated properties in theme configuration
  • Loading branch information
Dr-Blank authored Sep 18, 2024
2 parents fe003de + f645341 commit 1f7db0b
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 1f7db0b

Please sign in to comment.