Update app theme

This commit is contained in:
Vishnu Mohandas 2020-08-25 06:24:32 +05:30
parent 0c70cd96fd
commit 3f385e63e9
4 changed files with 8 additions and 7 deletions

View file

@ -109,7 +109,8 @@ class MyApp extends StatelessWidget with WidgetsBindingObserver {
return MaterialApp(
title: _title,
theme: ThemeData.dark(),
theme: ThemeData.dark()
.copyWith(hintColor: Colors.grey, accentColor: Colors.pink[400]),
home: HomeWidget(_title),
);
}

View file

@ -95,7 +95,7 @@ class _HomeWidgetState extends State<HomeWidget> {
),
elevation: 1,
backgroundColor: Colors.black38,
foregroundColor: Colors.amber,
foregroundColor: Theme.of(context).accentColor,
),
);
}
@ -143,7 +143,7 @@ class _HomeWidgetState extends State<HomeWidget> {
),
],
currentIndex: _selectedNavBarItem,
selectedItemColor: Colors.yellow[800],
selectedItemColor: Theme.of(context).accentColor,
onTap: (index) {
setState(() {
_selectedNavBarItem = index;

View file

@ -114,7 +114,7 @@ class MemoryWidget extends StatelessWidget {
padding: const EdgeInsets.all(8.0),
child: Column(
children: [
_buildMemoryItem(index),
_buildMemoryItem(context, index),
Padding(padding: EdgeInsets.all(2)),
Hero(
tag: title,
@ -135,14 +135,14 @@ class MemoryWidget extends StatelessWidget {
);
}
Container _buildMemoryItem(int index) {
Container _buildMemoryItem(BuildContext context, int index) {
final isSeen = memories[index].isSeen();
return Container(
decoration: BoxDecoration(
border: isSeen
? Border()
: Border.all(
color: Colors.amber,
color: Theme.of(context).accentColor,
width: isSeen ? 0 : 2,
),
borderRadius: BorderRadius.circular(40),

View file

@ -288,7 +288,7 @@ class _VideoControlsState extends State<VideoControls> {
},
colors: chewieController.materialProgressColors ??
ChewieProgressColors(
playedColor: Colors.amber,
playedColor: Theme.of(context).accentColor,
handleColor: Colors.white,
bufferedColor: Colors.white,
backgroundColor: Theme.of(context).disabledColor),