diff --git a/lib/ChatBotPage.dart b/lib/ChatBotPage.dart index 7cd32d8..11c738b 100644 --- a/lib/ChatBotPage.dart +++ b/lib/ChatBotPage.dart @@ -53,6 +53,12 @@ class _ChatBotPageState extends State { Widget build(BuildContext context) { return Scaffold( appBar: AppBar( + leading: IconButton( + icon: const Icon(Icons.arrow_back_ios), + + onPressed: () => Navigator.of(context).pop(), + ), + centerTitle: true, title: const Text('ChatBot'), ), body: Column( diff --git a/lib/about.dart b/lib/about.dart index 2650131..7d1ac17 100644 --- a/lib/about.dart +++ b/lib/about.dart @@ -10,6 +10,12 @@ class AboutScreen extends StatelessWidget { ); return Scaffold( appBar: AppBar( + leading: IconButton( + icon: const Icon(Icons.arrow_back_ios), + + onPressed: () => Navigator.of(context).pop(), + ), + centerTitle: true, title: Text('About App'), ), body: Padding( diff --git a/lib/bar.dart b/lib/bar.dart index ae6172c..1c83018 100644 --- a/lib/bar.dart +++ b/lib/bar.dart @@ -15,6 +15,7 @@ class AppBarWidget extends StatelessWidget implements PreferredSizeWidget { return Scaffold( appBar: AppBar( + centerTitle: true, title: Text( 'OpSo', style: TextStyle( diff --git a/lib/home_page.dart b/lib/home_page.dart index babceed..6cf9828 100644 --- a/lib/home_page.dart +++ b/lib/home_page.dart @@ -166,6 +166,7 @@ class _HomePageState extends State { final double SizedSize = ScreenUtil().setHeight(20); return Scaffold( appBar: AppBar( + centerTitle: true, title: Text( 'OpSo', style: diff --git a/lib/learning_path.dart b/lib/learning_path.dart index 6a59f24..7725788 100644 --- a/lib/learning_path.dart +++ b/lib/learning_path.dart @@ -9,6 +9,12 @@ class LearningPathPage extends StatelessWidget { Widget build(BuildContext context) { return Scaffold( appBar: AppBar( + leading: IconButton( + icon: const Icon(Icons.arrow_back_ios), + + onPressed: () => Navigator.of(context).pop(), + ), + centerTitle: true, title: const Text('GitHub Workflow'), ), body: Padding( diff --git a/lib/opso_timeline.dart b/lib/opso_timeline.dart index 9afad5f..1c3d2f3 100644 --- a/lib/opso_timeline.dart +++ b/lib/opso_timeline.dart @@ -147,6 +147,12 @@ class OpsoTimeLineScreen extends StatelessWidget { return Scaffold( appBar: AppBar( + leading: IconButton( + icon: const Icon(Icons.arrow_back_ios), + + onPressed: () => Navigator.of(context).pop(), + ), + centerTitle: true, title: const Text('Open-Source Timeline of 2024'), ), body: Padding( diff --git a/lib/programs screen/fossasia.dart b/lib/programs screen/fossasia.dart index 9da82d4..9cee153 100644 --- a/lib/programs screen/fossasia.dart +++ b/lib/programs screen/fossasia.dart @@ -136,6 +136,12 @@ class _FOSSASIAState extends State { onRefresh: _refresh, child: Scaffold( appBar: AppBar( + leading: IconButton( + icon: const Icon(Icons.arrow_back_ios), + + onPressed: () => Navigator.of(context).pop(), + ), + centerTitle: true, title: const Text('FOSSASIA Codeheat'), actions: [ IconButton( diff --git a/lib/programs screen/girl_script.dart b/lib/programs screen/girl_script.dart index 6567bff..e39c387 100644 --- a/lib/programs screen/girl_script.dart +++ b/lib/programs screen/girl_script.dart @@ -180,7 +180,14 @@ class _GSSOCScreenState extends State { return RefreshIndicator( onRefresh: _refresh, child: Scaffold( - appBar: AppBar(title: const Text('GSSoC'), actions: [ + appBar: AppBar( + leading: IconButton( + icon: const Icon(Icons.arrow_back_ios), + + onPressed: () => Navigator.of(context).pop(), + ), + centerTitle: true, + title: const Text('GSSoC'), actions: [ IconButton( icon: (isBookmarked) ? const Icon(Icons.bookmark_add_rounded) diff --git a/lib/programs screen/github_campus.dart b/lib/programs screen/github_campus.dart index b7038f1..518bf47 100644 --- a/lib/programs screen/github_campus.dart +++ b/lib/programs screen/github_campus.dart @@ -44,6 +44,12 @@ class _GithubCampusState extends State { onRefresh: _refresh, child: Scaffold( appBar: AppBar( + leading: IconButton( + icon: const Icon(Icons.arrow_back_ios), + + onPressed: () => Navigator.of(context).pop(), + ), + centerTitle: true, title: const Text('Github Campus Expert'), actions: [ IconButton( diff --git a/lib/programs screen/google_season_of_docs_screen.dart b/lib/programs screen/google_season_of_docs_screen.dart index 6051f3d..3727e3d 100644 --- a/lib/programs screen/google_season_of_docs_screen.dart +++ b/lib/programs screen/google_season_of_docs_screen.dart @@ -229,7 +229,14 @@ class _GoogleSeasonOfDocsScreenState extends State { return RefreshIndicator( onRefresh: _refresh, child: Scaffold( - appBar: AppBar(title: const Text('GSoD'), actions: [ + appBar: AppBar( + leading: IconButton( + icon: const Icon(Icons.arrow_back_ios), + + onPressed: () => Navigator.of(context).pop(), + ), + centerTitle: true, + title: const Text('GSoD'), actions: [ IconButton( icon: (isBookmarked) ? const Icon(Icons.bookmark_add_rounded) diff --git a/lib/programs screen/google_summer_of_code_screen.dart b/lib/programs screen/google_summer_of_code_screen.dart index d43e067..1cbdbdf 100644 --- a/lib/programs screen/google_summer_of_code_screen.dart +++ b/lib/programs screen/google_summer_of_code_screen.dart @@ -149,10 +149,21 @@ class _GoogleSummerOfCodeScreenState extends State { return RefreshIndicator( onRefresh: _refresh, child: Scaffold( + appBar: AppBar( + leading: IconButton( + icon: const Icon(Icons.arrow_back_ios), + + onPressed: () => Navigator.of(context).pop(), + ), + centerTitle: true, + title: const Text('GSoC'), + actions: [IconButton( + appBar: AppBar( title: const Text('Google Summer of Code'), actions: [ IconButton( + icon: (isBookmarked) ? const Icon(Icons.bookmark_add_rounded) : const Icon(Icons.bookmark_add_outlined), diff --git a/lib/programs screen/hacktoberfest_screen.dart b/lib/programs screen/hacktoberfest_screen.dart index ba4e238..5b14693 100644 --- a/lib/programs screen/hacktoberfest_screen.dart +++ b/lib/programs screen/hacktoberfest_screen.dart @@ -43,6 +43,12 @@ class _HacktoberfestState extends State { onRefresh: _refresh, child: Scaffold( appBar: AppBar( + leading: IconButton( + icon: const Icon(Icons.arrow_back_ios), + + onPressed: () => Navigator.of(context).pop(), + ), + centerTitle: true, title: const Text('Hacktoberfest'), actions: [ IconButton( diff --git a/lib/programs screen/hyperledger.dart b/lib/programs screen/hyperledger.dart index 3a3b0a1..c1c9dd1 100644 --- a/lib/programs screen/hyperledger.dart +++ b/lib/programs screen/hyperledger.dart @@ -122,6 +122,12 @@ class _HyperledgerState extends State { onRefresh: _refresh, child: Scaffold( appBar: AppBar( + leading: IconButton( + icon: const Icon(Icons.arrow_back_ios), + + onPressed: () => Navigator.of(context).pop(), + ), + centerTitle: true, title: const Text('Hyperledger'), actions: [ IconButton( diff --git a/lib/programs screen/linux_foundation.dart b/lib/programs screen/linux_foundation.dart index a4b049c..da6ba70 100644 --- a/lib/programs screen/linux_foundation.dart +++ b/lib/programs screen/linux_foundation.dart @@ -75,7 +75,14 @@ class _LinuxFoundationState extends State { return RefreshIndicator( onRefresh: _refresh, child: Scaffold( - appBar: AppBar(title: const Text('Linux Foundation'), actions: [ + appBar: AppBar( + leading: IconButton( + icon: const Icon(Icons.arrow_back_ios), + + onPressed: () => Navigator.of(context).pop(), + ), + centerTitle: true, + title: const Text('Linux Foundation'), actions: [ IconButton( icon: (isBookmarked) ? const Icon(Icons.bookmark_add_rounded) diff --git a/lib/programs screen/major_league_hacking_fellowship.dart b/lib/programs screen/major_league_hacking_fellowship.dart index eb86df8..9fe9778 100644 --- a/lib/programs screen/major_league_hacking_fellowship.dart +++ b/lib/programs screen/major_league_hacking_fellowship.dart @@ -48,7 +48,14 @@ class _MajorLeagueHackingFellowshipState return RefreshIndicator( onRefresh: _refresh, child: Scaffold( - appBar: AppBar(title: const Text('MLH Fellowship'), actions: [ + appBar: AppBar( + leading: IconButton( + icon: const Icon(Icons.arrow_back_ios), + + onPressed: () => Navigator.of(context).pop(), + ), + centerTitle: true, + title: const Text('MLH Fellowship'), actions: [ IconButton( icon: (isBookmarked) ? const Icon(Icons.bookmark_add_rounded) diff --git a/lib/programs screen/open_summer_of_code.dart b/lib/programs screen/open_summer_of_code.dart index 3866ad1..0d55830 100644 --- a/lib/programs screen/open_summer_of_code.dart +++ b/lib/programs screen/open_summer_of_code.dart @@ -125,7 +125,14 @@ class _OpenSummerOfCodeState extends State { onRefresh: _refresh, child: Scaffold( appBar: - AppBar(title: const Text('Open Summer of Code'), actions: [ + AppBar( + leading: IconButton( + icon: const Icon(Icons.arrow_back_ios), + + onPressed: () => Navigator.of(context).pop(), + ), + centerTitle: true, + title: const Text('Open Summer of Code'), actions: [ IconButton( icon: (isBookmarked) ? const Icon(Icons.bookmark_add_rounded) diff --git a/lib/programs screen/outreachy.dart b/lib/programs screen/outreachy.dart index 871e6cf..618a74a 100644 --- a/lib/programs screen/outreachy.dart +++ b/lib/programs screen/outreachy.dart @@ -138,7 +138,14 @@ class _OutreachyScreenState extends State { return RefreshIndicator( onRefresh: _refresh, child: Scaffold( - appBar: AppBar(title: const Text('Outreachy'), actions: [ + appBar: AppBar( + leading: IconButton( + icon: const Icon(Icons.arrow_back_ios), + + onPressed: () => Navigator.of(context).pop(), + ), + centerTitle: true, + title: const Text('Outreachy'), actions: [ IconButton( icon: (isBookmarked) ? const Icon(Icons.bookmark_add_rounded) diff --git a/lib/programs screen/redox.dart b/lib/programs screen/redox.dart index 8352bcd..f2e2e3d 100644 --- a/lib/programs screen/redox.dart +++ b/lib/programs screen/redox.dart @@ -76,6 +76,12 @@ class _RsocPageState extends State { onRefresh: _refresh, child: Scaffold( appBar: AppBar( + leading: IconButton( + icon: const Icon(Icons.arrow_back_ios), + + onPressed: () => Navigator.of(context).pop(), + ), + centerTitle: true, title: const Text('Redox Summer of Code'), actions: [ IconButton( diff --git a/lib/programs screen/season_of_kde.dart b/lib/programs screen/season_of_kde.dart index d24ebe4..34aa712 100644 --- a/lib/programs screen/season_of_kde.dart +++ b/lib/programs screen/season_of_kde.dart @@ -111,6 +111,12 @@ class _SeasonOfKDEState extends State { onRefresh: _refresh, child: Scaffold( appBar: AppBar( + leading: IconButton( + icon: const Icon(Icons.arrow_back_ios), + + onPressed: () => Navigator.of(context).pop(), + ), + centerTitle: true, title: const Text('Season of KDE'), actions: [ IconButton( diff --git a/lib/programs screen/social_winter_of_code.dart b/lib/programs screen/social_winter_of_code.dart index 9bf93cb..6f7a524 100644 --- a/lib/programs screen/social_winter_of_code.dart +++ b/lib/programs screen/social_winter_of_code.dart @@ -200,7 +200,14 @@ class _SWOCScreenState extends State { return RefreshIndicator( onRefresh: _refresh, child: Scaffold( - appBar: AppBar(title: const Text('SWoC'), actions: [ + appBar: AppBar( + leading: IconButton( + icon: const Icon(Icons.arrow_back_ios), + + onPressed: () => Navigator.of(context).pop(), + ), + centerTitle: true, + title: const Text('SWoC'), actions: [ IconButton( icon: (isBookmarked) ? const Icon(Icons.bookmark_add_rounded) diff --git a/lib/programs screen/summer_of_bitcoin.dart b/lib/programs screen/summer_of_bitcoin.dart index 0c982ab..20aa31a 100644 --- a/lib/programs screen/summer_of_bitcoin.dart +++ b/lib/programs screen/summer_of_bitcoin.dart @@ -137,7 +137,14 @@ class _SummerOfBitcoinState extends State { return RefreshIndicator( onRefresh: _refresh, child: Scaffold( - appBar: AppBar(title: const Text('Summer of Bitcoin'), actions: [ + appBar: AppBar( + leading: IconButton( + icon: const Icon(Icons.arrow_back_ios), + + onPressed: () => Navigator.of(context).pop(), + ), + centerTitle: true, + title: const Text('Summer of Bitcoin'), actions: [ IconButton( icon: (isBookmarked) ? const Icon(Icons.bookmark_add_rounded) diff --git a/lib/widgets/book_mark_screen.dart b/lib/widgets/book_mark_screen.dart index 41efbdc..8f709ab 100644 --- a/lib/widgets/book_mark_screen.dart +++ b/lib/widgets/book_mark_screen.dart @@ -21,6 +21,12 @@ class _BookMarkScreenState extends State { Widget build(BuildContext context) { return Scaffold( appBar: AppBar( + leading: IconButton( + icon: const Icon(Icons.arrow_back_ios), + + onPressed: () => Navigator.of(context).pop(), + ), + centerTitle: true, title: const Text( 'Bookmarks', style: TextStyle(fontWeight: FontWeight.bold), diff --git a/lib/widgets/faq.dart b/lib/widgets/faq.dart index 9b53c00..e35dec9 100644 --- a/lib/widgets/faq.dart +++ b/lib/widgets/faq.dart @@ -65,6 +65,12 @@ class FAQPage extends StatelessWidget { return Scaffold( appBar: AppBar( + leading: IconButton( + icon: const Icon(Icons.arrow_back_ios), + + onPressed: () => Navigator.of(context).pop(), + ), + centerTitle: true, title: Text('FAQ', style: TextStyle(fontSize: 22.sp)), ), body: SingleChildScrollView(