diff --git a/lib/Screens/bookmarks.dart b/lib/Screens/bookmarks.dart index 7206697..0b1e5dd 100644 --- a/lib/Screens/bookmarks.dart +++ b/lib/Screens/bookmarks.dart @@ -58,37 +58,15 @@ class _BookmarksState extends State { }, icon: const FaIcon(FontAwesomeIcons.trash,size: 20) ), - // IconTheme( - // data: _iconTheme, - // child: IconButton( - // onPressed: () async{ - // int i = await DatabaseClass.instance.delete(list[newIndex]['url']); - // displayNews(); - // }, - // icon: const FaIcon(FontAwesomeIcons.trash,) - // ), - // ) ], ), Text( list[newIndex]['title'] ,style: _textTheme.headline6), const SizedBox(height: 10,), - // Text( list[newIndex]['_id'].toString() ,style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold),), - // const SizedBox(height: 10,), - // Text( list[newIndex]['_description'] ,style: const TextStyle( - // color: Colors.grey[600], - // fontSize: 17) - // ), - // const SizedBox(height: 10,), Align( alignment: Alignment.centerRight, child: Text( list[newIndex]['date'], - // style: const TextStyle( - // color: Colors.grey, - // fontSize: 16, - // fontStyle: FontStyle.italic - // ) style: _textTheme.subtitle2, ), ), diff --git a/lib/Screens/newsList.dart b/lib/Screens/newsList.dart index 25b6090..cbeb470 100644 --- a/lib/Screens/newsList.dart +++ b/lib/Screens/newsList.dart @@ -59,7 +59,7 @@ class _NewsListState extends State } List> list = []; - + Widget NewsDetails(index) { TextTheme _textTheme = Theme.of(context).textTheme; return Expanded( @@ -73,12 +73,17 @@ class _NewsListState extends State onTap: () async{ // Tapping on title + // print("first =$list"); list = await DatabaseClass.instance.read(); + print(list); bool isPresent = false; for(int i=0 ; i