From 9f027faa7a2c163907518ca5d37320dd7d161e2a Mon Sep 17 00:00:00 2001 From: ParasV6 <65119481+ParasV6@users.noreply.github.com> Date: Thu, 1 Oct 2020 23:42:07 +0530 Subject: [PATCH 1/2] Update main.dart --- lib/main.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 8c3f0ee..0cdd68c 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -13,11 +13,11 @@ class MyApp extends StatelessWidget { return MaterialApp( title: 'NoteKeeper', - debugShowCheckedModeBanner: false, + theme: ThemeData( primarySwatch: Colors.deepPurple ), home: NoteList(), ); } -} \ No newline at end of file +} From 23657b0274c4a809c0047f28337eea65631ff14b Mon Sep 17 00:00:00 2001 From: ParasV6 <65119481+ParasV6@users.noreply.github.com> Date: Thu, 1 Oct 2020 23:46:23 +0530 Subject: [PATCH 2/2] Update note_list.dart --- lib/screens/note_list.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/screens/note_list.dart b/lib/screens/note_list.dart index a476100..a1caf43 100644 --- a/lib/screens/note_list.dart +++ b/lib/screens/note_list.dart @@ -33,6 +33,8 @@ class NoteListState extends State { appBar: AppBar( title: Text('Notes'), + centerTitle: false, + titleSpacing: 0.0, ), body: getNoteListView(), @@ -82,7 +84,7 @@ class NoteListState extends State { onTap: () { debugPrint("ListTile Tapped"); - navigateToDetail(this.noteList[position],'Edit Note'); + navigateToDetail(this.noteList[position],'Edit'); }, ), @@ -125,7 +127,7 @@ class NoteListState extends State { int result = await databaseHelper.deleteNote(note.id); if (result != 0) { - _showSnackBar(context, 'Note Deleted Successfully'); + _showSnackBar(context, '1 Note Deleted Successfully'); updateListView(); } }