From 0a7f00af7b91fa3ccd7019a45a683d0c6cbd051b Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Fri, 6 Dec 2019 20:12:00 +0100 Subject: [PATCH] Stop overwriting the default divider color It can be configured from the theme if I want it to be different. The light grey actually seems fine, for now. --- lib/widgets/app_drawer.dart | 7 +------ lib/widgets/journal_list.dart | 4 +--- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/lib/widgets/app_drawer.dart b/lib/widgets/app_drawer.dart index aea47d86..664e8ed5 100644 --- a/lib/widgets/app_drawer.dart +++ b/lib/widgets/app_drawer.dart @@ -39,12 +39,7 @@ class AppDrawer extends StatelessWidget { ); } - var divider = Row(children: [ - Expanded( - child: Divider( - color: Theme.of(context).primaryColorLight, - )) - ]); + var divider = Row(children: [const Expanded(child: Divider())]); return Drawer( child: ListView( diff --git a/lib/widgets/journal_list.dart b/lib/widgets/journal_list.dart index b64652d2..7be33577 100644 --- a/lib/widgets/journal_list.dart +++ b/lib/widgets/journal_list.dart @@ -39,9 +39,7 @@ class JournalList extends StatelessWidget { return ListView.separated( separatorBuilder: (context, index) { - return Divider( - color: Theme.of(context).primaryColorLight, - ); + return const Divider(); }, itemBuilder: (context, i) { if (i >= notes.length) {