From 626380aaa77a4c2f8d131f217057fa41af1ba9db Mon Sep 17 00:00:00 2001 From: rishabh7923 Date: Wed, 30 Oct 2024 08:48:21 +0530 Subject: [PATCH] Fixed small error in code related to recent changes --- .../google_summer_of_code_screen.dart | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/lib/programs screen/google_summer_of_code_screen.dart b/lib/programs screen/google_summer_of_code_screen.dart index 1cbdbdf..f08d6aa 100644 --- a/lib/programs screen/google_summer_of_code_screen.dart +++ b/lib/programs screen/google_summer_of_code_screen.dart @@ -65,11 +65,15 @@ class _GoogleSummerOfCodeScreenState extends State { } Future> loadOrganizations(int year) async { - setState(() { _isRefreshing = true; }); + setState(() { + _isRefreshing = true; + }); String path = 'assets/projects/gsoc_org/gsoc${year}org.json'; String response = await rootBundle.loadString(path); - setState(() { _isRefreshing = false; }); + setState(() { + _isRefreshing = false; + }); var decodedResponse = json.decode(response) as List; return decodedResponse.map((org) => Organization.fromJson(org)).toList(); } @@ -149,21 +153,14 @@ 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'), + leading: IconButton( + icon: const Icon(Icons.arrow_back_ios), + onPressed: () => Navigator.of(context).pop()), + centerTitle: true, + title: const Text('GSoC'), actions: [ IconButton( - icon: (isBookmarked) ? const Icon(Icons.bookmark_add_rounded) : const Icon(Icons.bookmark_add_outlined),