-
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.
Merge pull request #39 from Dune-Global:feature/main/explore
feat: Saved event page
- Loading branch information
Showing
11 changed files
with
204 additions
and
314 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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,43 +1,45 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter/widgets.dart'; | ||
import 'package:get/get_connect/http/src/utils/utils.dart'; | ||
import 'package:uni_junction/common/widgets/appbar/appbar.dart'; | ||
import 'package:uni_junction/common/widgets/custom_shapes/containers/primary_header_container.dart'; | ||
import 'package:uni_junction/features/event/screens/create_event/widgets/create_event_appbar.dart'; | ||
import 'package:uni_junction/features/event/screens/create_event/widgets/create_event_form.dart'; | ||
import 'package:uni_junction/features/event/screens/home/widgets/this_month_event_all.dart'; | ||
import 'package:uni_junction/features/event/controllers/event/event_controller.dart'; | ||
import 'package:uni_junction/features/event/screens/saved/widgets/saved_appbar.dart'; | ||
import 'package:uni_junction/features/event/screens/saved/widgets/saved_event_.dart'; | ||
import 'package:uni_junction/features/event/screens/saved/widgets/saved_events.dart'; | ||
import 'package:uni_junction/utils/constants/colors.dart'; | ||
import 'package:uni_junction/utils/constants/text_strings.dart'; | ||
import 'package:get/get.dart'; | ||
|
||
class SavedScreen extends StatelessWidget { | ||
const SavedScreen({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
// final Save = Get.put(SaveController()); | ||
return const Scaffold( | ||
body: SingleChildScrollView( | ||
child: Column( | ||
children: [ | ||
TPrimaryHeaderContainer( | ||
height: 150, | ||
backgroundColor: TColors.primary, | ||
child: Column( | ||
children: [ | ||
// Home AppBar | ||
TSavedEventAppBar(), | ||
SizedBox(height: 20), | ||
], | ||
), | ||
final eventController = Get.put(EventController()); | ||
|
||
return Scaffold( | ||
body: RefreshIndicator( | ||
onRefresh: () async { | ||
PaintingBinding.instance.imageCache.clear(); | ||
await eventController.fetchUserLikedEvents(); | ||
await Future.delayed(const Duration(seconds: 1)); | ||
}, | ||
child: SingleChildScrollView( | ||
child: Column( | ||
children: [ | ||
TPrimaryHeaderContainer( | ||
height: 150, | ||
backgroundColor: TColors.primary, | ||
child: Column( | ||
children: [ | ||
TSavedEventAppBar(), | ||
SizedBox(height: 20), | ||
], | ||
), | ||
), | ||
SizedBox(height: 20), | ||
TSavedEvents(), | ||
], | ||
), | ||
// TCreateEventForm(controller: Save,), | ||
// TThisMonthEventCards(), | ||
SizedBox(height: 20), | ||
// TSavedEventCards(), | ||
], | ||
), | ||
), | ||
)); | ||
); | ||
} | ||
} |
Empty file.
48 changes: 0 additions & 48 deletions
48
lib/features/event/screens/saved/widgets/saved_event_.dart
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.