-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pfe master fixed #1041
base: master
Are you sure you want to change the base?
Pfe master fixed #1041
Conversation
* implementation of seperate widgets for about_view * implementation of seperation widget of author_view * impementation of seperation widget of choose_language_view * implementation of seperation widget of contributors_view * implementation of seperation widget of emergency_view * implementation of seperation widget of faq_view * implementation of seperation widget of feedback view * implementation of seperation widget of more_view * implementation of seperation widget of grade_view * implementation of seperation widget of grade_details_view +contributors * implementation of seperation widget of login_view * [BOT] Applying format. * fix for test to pass * change name grade session courses * change in more_view * [BOT] Applying format. * change for warning and imports * [BOT] Applying format. * change test more_view * change moreview model * change more view model * implementation of seperation widget of dashboard_view * fix so app works but need insert the widgets * [BOT] Applying format. * Fix more viewmodels tests * [BOT] Update golden files --------- Co-authored-by: charlcl180 <[email protected]> Co-authored-by: Xavier Paquet-Rapold <[email protected]> Co-authored-by: XavierPaquet-Rapold <[email protected]>
…er2-FE2.3 # Conflicts: # .gitignore # lib/features/app/error/outage/outage_view.dart # lib/features/dashboard/dashboard_view.dart # lib/features/ets/events/report-news/report_news_widget.dart # lib/features/more/feedback/feedback_view.dart # test/features/app/analytics/analytics_service_mock.mocks.dart # test/features/app/analytics/remote_config_service_mock.mocks.dart # test/features/app/error/internal_info_service_mock.mocks.dart # test/features/app/integration/mocks/github_api_mock.mocks.dart # test/features/app/integration/mocks/launch_url_service_mock.mocks.dart # test/features/app/integration/mocks/networking_service_mock.mocks.dart # test/features/app/navigation/navigation_service_mock.mocks.dart # test/features/app/presentation/rive_animation_service_mock.mocks.dart # test/features/app/repository/mocks/author_repository_mock.mocks.dart # test/features/app/repository/mocks/course_repository_mock.mocks.dart # test/features/app/repository/mocks/news_repository_mock.mocks.dart # test/features/app/repository/mocks/quick_links_repository_mock.mocks.dart # test/features/app/repository/mocks/user_repository_mock.mocks.dart # test/features/app/storage/mocks/cache_manager_mock.mocks.dart # test/features/app/storage/mocks/flutter_secure_storage_mock.mocks.dart # test/features/app/storage/mocks/preferences_service_mock.mocks.dart # test/features/app/storage/mocks/siren_flutter_service_mock.mocks.dart # test/features/app/widgets/mocks/app_widget_service_mock.mocks.dart # test/features/app/widgets/mocks/home_widget_mock.mocks.dart # test/features/more/feedback/mocks/in_app_review_service_mock.mocks.dart # test/features/more/settings/mocks/settings_manager_mock.mocks.dart
…nto PFE-Master2-FE2.3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put in shared widget folder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And use it for everything related to back button
refresh, | ||
_controller, | ||
_animation, | ||
false), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put variable name
|
||
Widget securityMap(BuildContext context, SecurityViewModel model) { | ||
const CameraPosition etsLocation = CameraPosition( | ||
target: LatLng(45.49449875, -73.56246144109338), zoom: 17.0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put into variables
import 'package:notredame/features/more/about/widget/easter_egg_icon.dart'; // Importez le widget extrait | ||
import 'package:notredame/features/more/about/widget/social_icons_row.dart'; // Importez le widget extrait |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove comments
@@ -49,6 +46,10 @@ class _AboutViewState extends State<AboutView> with TickerProviderStateMixin { | |||
|
|||
@override | |||
Widget build(BuildContext context) { | |||
return newMethod(context); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change method name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or remove it completely
Widget _buildSummaryCard(BuildContext context) { | ||
return Card( | ||
child: Padding( | ||
padding: const EdgeInsets.all(20.0), | ||
child: Row( | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
children: <Widget>[ | ||
Expanded( | ||
flex: 50, | ||
child: GradeCircularProgress( | ||
1.0, | ||
completed: completed, | ||
key: const Key("GradeCircularProgress_summary"), | ||
finalGrade: model.course.grade, | ||
studentGrade: Utils.getGradeInPercentage( | ||
model.course.summary?.currentMark, | ||
model.course.summary?.markOutOf, | ||
), | ||
averageGrade: Utils.getGradeInPercentage( | ||
model.course.summary?.passMark, | ||
model.course.summary?.markOutOf, | ||
), | ||
), | ||
), | ||
Expanded( | ||
flex: 40, | ||
child: Column( | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: <Widget>[ | ||
GradesSummary( | ||
currentGrade: model.course.summary?.currentMark, | ||
maxGrade: model.course.summary?.markOutOf, | ||
recipient: AppIntl.of(context)!.grades_current_rating, | ||
color: Colors.green, | ||
), | ||
Padding( | ||
padding: const EdgeInsets.only(top: 15.0), | ||
child: GradesSummary( | ||
currentGrade: model.course.summary?.passMark, | ||
maxGrade: model.course.summary?.markOutOf, | ||
recipient: AppIntl.of(context)!.grades_average, | ||
color: Colors.red, | ||
), | ||
), | ||
], | ||
), | ||
), | ||
], | ||
), | ||
), | ||
); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create widget
Widget _buildAdditionalSummary(BuildContext context) { | ||
return Row( | ||
mainAxisAlignment: MainAxisAlignment.spaceEvenly, | ||
children: <Widget>[ | ||
Expanded( | ||
flex: 3, | ||
child: CourseGradeSummary( | ||
title: AppIntl.of(context)!.grades_median, | ||
number: model.course.summary?.median.toString() ?? | ||
AppIntl.of(context)!.grades_not_available, | ||
), | ||
), | ||
Expanded( | ||
flex: 3, | ||
child: CourseGradeSummary( | ||
title: AppIntl.of(context)!.grades_standard_deviation, | ||
number: model.course.summary?.standardDeviation.toString() ?? | ||
AppIntl.of(context)!.grades_not_available, | ||
), | ||
), | ||
Expanded( | ||
flex: 3, | ||
child: CourseGradeSummary( | ||
title: AppIntl.of(context)!.grades_percentile_rank, | ||
number: model.course.summary?.percentileRank.toString() ?? | ||
AppIntl.of(context)!.grades_not_available, | ||
), | ||
), | ||
], | ||
); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Widget
Widget _buildEvaluationTiles() { | ||
return Column( | ||
children: <Widget>[ | ||
for (final CourseEvaluation evaluation | ||
in model.course.summary?.evaluations ?? []) | ||
GradeEvaluationTile( | ||
evaluation, | ||
completed: completed, | ||
key: Key("GradeEvaluationTile_${evaluation.title}"), | ||
isFirstEvaluation: | ||
evaluation == model.course.summary?.evaluations.first, | ||
), | ||
], | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Widget
CircularPercentIndicator getLoadingIndicator( | ||
ProfileViewModel model, BuildContext context) { | ||
final double percentage = model.programProgression; | ||
|
||
return CircularPercentIndicator( | ||
animation: true, | ||
animationDuration: 1100, | ||
radius: 40, | ||
lineWidth: 10, | ||
percent: percentage / 100, | ||
circularStrokeCap: CircularStrokeCap.round, | ||
center: Text( | ||
percentage != 0 | ||
? '$percentage%' | ||
: AppIntl.of(context)!.profile_program_completion_not_available, | ||
style: const TextStyle(fontSize: 20), | ||
), | ||
progressColor: Colors.green, | ||
); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create widget
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to logo_widget
📖 Description
🧪 How Has This Been Tested?
☑️ Checklist before requesting a review
version: Major
,version: Minor
orversion: Patch
.🖼️ Screenshots (if useful):