Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
emc2314 committed Jul 21, 2022
1 parent 7847226 commit e7e1c10
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@
- adjustable dictionary ranking
- return to expanded tile
- sticky header
- optimize database asset init
- interrupt unused query
21 changes: 14 additions & 7 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,24 @@ import 'package:arujisho/splash_screen.dart';
void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
static const isRelease = true;
const MyApp({Key? key}) : super(key: key);

// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'ある辞書',
theme: ThemeData(
colorScheme: ColorScheme.fromSwatch().copyWith(
primary: Colors.pink[300],
secondary: Colors.pinkAccent[100],
),
),
theme: isRelease
? ThemeData(
primarySwatch: Colors.blue,
)
: ThemeData(
colorScheme: ColorScheme.fromSwatch().copyWith(
primary: Colors.pink[300],
secondary: Colors.pinkAccent[100],
),
),
initialRoute: '/splash',
routes: {
'/': (context) => const MyHomePage(),
Expand Down Expand Up @@ -365,7 +370,9 @@ class _MyHomePageState extends State<MyHomePage> {
<Widget>[
Container(
decoration: BoxDecoration(
color: Colors.blue[600],
color: MyApp.isRelease
? Colors.red[600]
: Colors.blue[600],
borderRadius:
const BorderRadius.all(
Radius.circular(20))),
Expand Down

0 comments on commit e7e1c10

Please sign in to comment.