mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2026-01-29 13:51:04 +00:00
refactor: split into smaller widgets.
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:revanced_manager_flutter/theme.dart';
|
||||
import 'package:revanced_manager_flutter/ui/screens/home_screen.dart';
|
||||
import 'package:revanced_manager_flutter/ui/screens/patcher_screen.dart';
|
||||
import 'constants.dart';
|
||||
|
||||
void main() {
|
||||
runApp(const MyApp());
|
||||
@@ -16,49 +15,8 @@ class MyApp extends StatelessWidget {
|
||||
return MaterialApp(
|
||||
debugShowCheckedModeBanner: false,
|
||||
title: 'ReVanced Manager',
|
||||
theme: ThemeData.light().copyWith(
|
||||
navigationBarTheme: NavigationBarThemeData(
|
||||
labelTextStyle: MaterialStateProperty.all(
|
||||
GoogleFonts.roboto(
|
||||
fontSize: 12,
|
||||
),
|
||||
),
|
||||
),
|
||||
backgroundColor: Colors.red,
|
||||
textTheme: GoogleFonts.interTextTheme(
|
||||
Theme.of(context).textTheme,
|
||||
),
|
||||
useMaterial3: true,
|
||||
colorScheme: const ColorScheme.light(
|
||||
primary: purple40,
|
||||
secondary: purpleGrey40,
|
||||
tertiary: pink40,
|
||||
background: Colors.red,
|
||||
),
|
||||
),
|
||||
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,
|
||||
),
|
||||
),
|
||||
theme: lightTheme,
|
||||
darkTheme: darkTheme,
|
||||
home: const Navigation(),
|
||||
);
|
||||
}
|
||||
@@ -74,8 +32,8 @@ class Navigation extends StatefulWidget {
|
||||
class _NavigationState extends State<Navigation> {
|
||||
int currentPageIndex = 0;
|
||||
final List<Widget> screens = [
|
||||
HomeScreen(),
|
||||
PatcherScreen(),
|
||||
const HomeScreen(),
|
||||
const PatcherScreen(),
|
||||
];
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user