-
Notifications
You must be signed in to change notification settings - Fork 1
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 #45 from B3-3iL-DLW/ui/shared-design-and-splash
UI/shared design and splash
- Loading branch information
Showing
82 changed files
with
547 additions
and
357 deletions.
There are no files selected for viewing
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
Binary file added
BIN
+4.18 KB
frontend/app_student/android/app/src/main/res/mipmap-hdpi/launcher_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.39 KB
frontend/app_student/android/app/src/main/res/mipmap-mdpi/launcher_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.97 KB
frontend/app_student/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.86 KB
frontend/app_student/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.3 KB
frontend/app_student/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
dev_dependencies: | ||
flutter_launcher_icons: "^0.13.1" | ||
|
||
flutter_launcher_icons: | ||
android: "launcher_icon" | ||
ios: true | ||
image_path: "assets/icon/3il-icon.png" | ||
min_sdk_android: 21 # android min sdk min:16, default 21 | ||
web: | ||
generate: true | ||
image_path: "assets/icon/3il-icon.png" | ||
background_color: "#FFFFF" | ||
theme_color: "#FFFFF" | ||
windows: | ||
generate: true | ||
image_path: "assets/icon/3il-icon.png" | ||
icon_size: 48 # min:48, max:256, default: 48 | ||
macos: | ||
generate: true | ||
image_path: "assets/icon/3il-icon.png" |
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
Binary file modified
BIN
+166 KB
(1700%)
...student/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+473 Bytes
(260%)
...app_student/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.47 KB
(470%)
...app_student/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.83 KB
(750%)
...app_student/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+929 Bytes
(430%)
...app_student/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.65 KB
(690%)
...app_student/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4.61 KB
(770%)
...app_student/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.47 KB
(470%)
...app_student/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4.19 KB
(830%)
...app_student/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+6.98 KB
(930%)
...app_student/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.58 KB
...app_student/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.28 KB
...app_student/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.09 KB
...app_student/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.37 KB
...app_student/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+6.98 KB
(930%)
...app_student/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+11.3 KB
(790%)
...app_student/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.18 KB
...app_student/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.86 KB
...app_student/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.67 KB
(590%)
...app_student/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+9.34 KB
(880%)
...app_student/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+10.5 KB
(860%)
...student/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
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
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
76 changes: 76 additions & 0 deletions
76
frontend/app_student/lib/class_groups/views/class_group.dart
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 |
---|---|---|
@@ -0,0 +1,76 @@ | ||
import 'package:app_student/api/class_groups/repositories/class_group_repository.dart'; | ||
import 'package:app_student/class_groups/cubit/class_group_cubit.dart'; | ||
import 'package:app_student/class_groups/views/widgets/card_list.dart'; | ||
import 'package:app_student/users/cubit/user_cubit.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_bloc/flutter_bloc.dart'; | ||
import 'package:flutter_gen/gen_l10n/app_localizations.dart'; | ||
import 'package:go_router/go_router.dart'; | ||
|
||
import '../../api/users/repositories/user_repository.dart'; | ||
import '../../shared_components/app_bar.dart'; | ||
import '../../shared_components/header_subtitle.dart'; | ||
import '../../shared_components/header_title.dart'; | ||
|
||
class ClassGroupPage extends StatelessWidget { | ||
const ClassGroupPage({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
final classRepository = | ||
RepositoryProvider.of<ClassGroupRepository>(context); | ||
final userRepository = RepositoryProvider.of<UserRepository>(context); | ||
final classCubit = ClassGroupCubit(classRepository: classRepository) | ||
..fetchClasses(); | ||
final userCubit = UserCubit(userRepository: userRepository)..fetchUser(); | ||
|
||
return MultiBlocProvider( | ||
providers: [ | ||
BlocProvider<ClassGroupCubit>(create: (context) => classCubit), | ||
BlocProvider<UserCubit>(create: (context) => userCubit), | ||
], | ||
child: Scaffold( | ||
appBar: const CustomAppBar(), | ||
body: BlocBuilder<UserCubit, UserState>( | ||
builder: (context, userState) { | ||
if (userState is UserClassesSelected) { | ||
WidgetsBinding.instance.addPostFrameCallback((_) { | ||
context.go('/schedule'); | ||
}); | ||
return const Center(child: CircularProgressIndicator()); | ||
} else if (userState is UserLoading) { | ||
return const Center(child: CircularProgressIndicator()); | ||
} else if (userState is UserLoaded) { | ||
final user = userState.user; | ||
return BlocBuilder<ClassGroupCubit, ClassGroupState>( | ||
builder: (context, classState) { | ||
if (classState is ClassGroupLoading) { | ||
return const Center(child: CircularProgressIndicator()); | ||
} else if (classState is ClassGroupLoaded) { | ||
return Column( | ||
children: [ | ||
HeaderTitle(AppLocalizations.of(context)! | ||
.classSelectionTitle(user.name)), | ||
HeaderSubtitle(AppLocalizations.of(context)! | ||
.classSelectionSubtitle), | ||
Expanded( | ||
child: CardList(classesList: classState.classes), | ||
), | ||
], | ||
); | ||
} else if (classState is ClassGroupError) { | ||
return Center(child: Text(classState.message)); | ||
} else { | ||
return const Center(child: CircularProgressIndicator()); | ||
} | ||
}, | ||
); | ||
} else { | ||
return const Center(child: CircularProgressIndicator()); | ||
} | ||
}, | ||
), | ||
), | ||
); | ||
} | ||
} |
74 changes: 0 additions & 74 deletions
74
frontend/app_student/lib/class_groups/views/class_group_page.dart
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
frontend/app_student/lib/class_groups/views/widgets/header/header_logo.dart
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
///This file is automatically generated. DO NOT EDIT, all your changes would be lost. | ||
class Assets { | ||
Assets._(); | ||
|
||
static const String appStudent = '.env'; | ||
static const String fontsArial = 'assets/fonts/arial.ttf'; | ||
static const String icon3ilIcon = 'assets/icon/3il-icon.png'; | ||
static const String icon3ilLogoWhite = 'assets/icon/3il-logo-white.jpeg'; | ||
static const String images3ilIcon = 'assets/images/3il-icon.png'; | ||
static const String images3ilIconBlue = 'assets/images/3il-icon-blue.png'; | ||
static const String images3ilIconWhite = 'assets/images/3il-icon-white.png'; | ||
static const String images3ilLogo = 'assets/images/3il-logo.jpg'; | ||
static const String images3ilLogoWhite = 'assets/images/3il-logo-white.jpeg'; | ||
static const String imagesCalendar = 'assets/images/calendar.svg'; | ||
static const String imagesDisconnect = 'assets/images/disconnect.svg'; | ||
static const String imagesEating = 'assets/images/eating.svg'; | ||
static const String imagesProfil = 'assets/images/profil.svg'; | ||
static const String imagesSchool = 'assets/images/school.svg'; | ||
static const String imagesStudentInfo = 'assets/images/student-info.svg'; | ||
static const String imagesTeams = 'assets/images/teams.svg'; | ||
static const String imagesUser = 'assets/images/user.svg'; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import 'package:app_student/login/cubit/login_cubit.dart'; | ||
import 'package:app_student/login/views/login_view.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_bloc/flutter_bloc.dart'; | ||
import 'package:flutter_gen/gen_l10n/app_localizations.dart'; | ||
import 'package:go_router/go_router.dart'; | ||
|
||
import '../../users/cubit/user_cubit.dart'; | ||
|
||
class LoginPage extends StatelessWidget { | ||
const LoginPage({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return BlocConsumer<LoginCubit, LoginState>( | ||
listener: (context, state) {}, | ||
builder: (context, state) { | ||
return BlocBuilder<UserCubit, UserState>( | ||
builder: (context, userState) { | ||
if (state is RedirectToClassSelection) { | ||
WidgetsBinding.instance.addPostFrameCallback((_) { | ||
context.go('/classList'); | ||
}); | ||
return Container(); | ||
} else if (state is LoginInitial) { | ||
return LoginView(AppLocalizations.of(context)!.loginWelcomeTitle); | ||
} else if (state is LoginAuthenticated) { | ||
WidgetsBinding.instance.addPostFrameCallback((_) { | ||
context.go('/schedule'); | ||
}); | ||
return Container(); | ||
} else if (state is LoginFieldError) { | ||
WidgetsBinding.instance.addPostFrameCallback((_) { | ||
ScaffoldMessenger.of(context).showSnackBar( | ||
SnackBar( | ||
content: | ||
Text(AppLocalizations.of(context)!.loginFieldError), | ||
backgroundColor: Colors.red, | ||
), | ||
); | ||
}); | ||
return LoginView( | ||
AppLocalizations.of(context)!.loginWelcomeTitleError); | ||
} else { | ||
return Container(); | ||
} | ||
}, | ||
); | ||
}, | ||
); | ||
} | ||
} |
Oops, something went wrong.