-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added reusable widgets,constants,corrrected name for bookmark
- Loading branch information
ge59dil
committed
Nov 24, 2023
1 parent
3641e4b
commit 0d4c8bb
Showing
11 changed files
with
362 additions
and
411 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,25 @@ | ||
// DownloadsScreen.dart | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_riverpod/flutter_riverpod.dart'; | ||
import 'package:gocast_mobile/View/utils/custom_bottom_nav_bar.dart'; | ||
import 'utils/courselist_screen.dart'; | ||
import 'package:gocast_mobile/View/utils/video_card_view.dart'; | ||
|
||
class DownloadsScreen extends ConsumerWidget { | ||
const DownloadsScreen({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context, WidgetRef ref) { | ||
return Scaffold( | ||
appBar: AppBar( | ||
title: const Text('Downloads'), | ||
actions: [ | ||
IconButton( | ||
icon: const Icon(Icons.search), | ||
onPressed: () { | ||
// Implement search functionality | ||
}, | ||
), | ||
IconButton( | ||
icon: const Icon(Icons.filter_list), | ||
onPressed: () { | ||
// Implement more options functionality | ||
}, | ||
), | ||
], | ||
), | ||
body: ListView( | ||
children: const <Widget>[ | ||
VideoCard( | ||
imageName: 'assets/images/course1.png', | ||
title: 'Lineare Algebra für Informatik [MA0901]', | ||
date: 'July 24, 2019', | ||
duration: '02:00:00', | ||
), | ||
VideoCard( | ||
imageName: 'assets/images/course2.png', | ||
title: 'Computer Science [CS202]', | ||
date: 'July 23, 2019', | ||
duration: '02:00:00', | ||
), | ||
// Add more DownloadItem widgets as needed | ||
], | ||
), | ||
bottomNavigationBar: const CustomBottomNavBar() | ||
, | ||
return const CourseListScreen( | ||
title: 'Downloads', | ||
videoCards: [ | ||
VideoCard( | ||
imageName: 'assets/images/course1.png', | ||
title: 'Lineare Algebra für Informatik [MA0901]', | ||
date: 'July 24, 2019', | ||
duration: '02:00:00', | ||
), | ||
// Add more VideoCard widgets as needed | ||
], | ||
); | ||
} | ||
} |
Oops, something went wrong.