mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-06-12 12:47:37 +02:00
refactor: split into smaller widgets.
This commit is contained in:
45
lib/theme.dart
Normal file
45
lib/theme.dart
Normal file
@ -0,0 +1,45 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:revanced_manager_flutter/constants.dart';
|
||||
|
||||
var lightTheme = ThemeData.light().copyWith(
|
||||
navigationBarTheme: NavigationBarThemeData(
|
||||
labelTextStyle: MaterialStateProperty.all(
|
||||
GoogleFonts.roboto(
|
||||
fontSize: 12,
|
||||
),
|
||||
),
|
||||
),
|
||||
backgroundColor: Colors.red,
|
||||
useMaterial3: true,
|
||||
colorScheme: const ColorScheme.light(
|
||||
primary: purple40,
|
||||
secondary: purpleGrey40,
|
||||
tertiary: pink40,
|
||||
background: Colors.red,
|
||||
),
|
||||
);
|
||||
|
||||
var darkTheme = ThemeData.dark().copyWith(
|
||||
navigationBarTheme: NavigationBarThemeData(
|
||||
iconTheme: MaterialStateProperty.all(const IconThemeData(
|
||||
color: Colors.white,
|
||||
)),
|
||||
indicatorColor: const Color(0xff223144),
|
||||
backgroundColor: const Color(0x1b222b6b),
|
||||
labelTextStyle: MaterialStateProperty.all(
|
||||
GoogleFonts.roboto(
|
||||
fontSize: 12,
|
||||
),
|
||||
),
|
||||
),
|
||||
backgroundColor: Colors.red,
|
||||
useMaterial3: true,
|
||||
scaffoldBackgroundColor: const Color(0xff0A0D11),
|
||||
colorScheme: const ColorScheme.dark(
|
||||
primary: purple80,
|
||||
secondary: purpleGrey80,
|
||||
tertiary: pink80,
|
||||
background: Colors.red,
|
||||
),
|
||||
);
|
Reference in New Issue
Block a user