Skip to content

Commit

Permalink
Merge pull request #394 from rishabh7923/main
Browse files Browse the repository at this point in the history
  • Loading branch information
andoriyaprashant authored Oct 30, 2024
2 parents 1e29592 + 626380a commit e70c1d3
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions lib/programs screen/google_summer_of_code_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,15 @@ class _GoogleSummerOfCodeScreenState extends State<GoogleSummerOfCodeScreen> {
}

Future<List<Organization>> 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();
}
Expand Down Expand Up @@ -149,21 +153,14 @@ class _GoogleSummerOfCodeScreenState extends State<GoogleSummerOfCodeScreen> {
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: <Widget>[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: <Widget>[
IconButton(

icon: (isBookmarked)
? const Icon(Icons.bookmark_add_rounded)
: const Icon(Icons.bookmark_add_outlined),
Expand Down

0 comments on commit e70c1d3

Please sign in to comment.