-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c199ad7
commit 831c2d0
Showing
32 changed files
with
1,193 additions
and
1,016 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
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
15 changes: 15 additions & 0 deletions
15
lib/features/app/error/outage/widgets/outage_build_image.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,15 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:notredame/utils/app_theme.dart'; | ||
|
||
Widget outageImageSection(BuildContext context) { | ||
return Hero( | ||
tag: 'ets_logo', | ||
child: Image.asset( | ||
"assets/animations/outage.gif", | ||
excludeFromSemantics: true, | ||
width: 500, | ||
color: Theme.of(context).brightness == Brightness.light | ||
? Colors.white | ||
: AppTheme.etsLightRed, | ||
)); | ||
} |
56 changes: 56 additions & 0 deletions
56
lib/features/app/error/outage/widgets/outage_build_social_media.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,56 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:font_awesome_flutter/font_awesome_flutter.dart'; | ||
import 'package:notredame/constants/urls.dart'; | ||
import 'package:notredame/features/app/error/outage/outage_viewmodel.dart'; | ||
import 'package:notredame/utils/utils.dart'; | ||
import 'package:flutter_gen/gen_l10n/app_localizations.dart'; | ||
|
||
Widget outageSocialSection(OutageViewModel model, BuildContext context) { | ||
return Column( | ||
mainAxisAlignment: MainAxisAlignment.end, | ||
children: [ | ||
SizedBox( | ||
height: model.getContactTextPlacement(context), | ||
child: Text( | ||
AppIntl.of(context)!.service_outage_contact, | ||
textAlign: TextAlign.center, | ||
style: const TextStyle(color: Colors.white), | ||
), | ||
), | ||
Row( | ||
mainAxisAlignment: MainAxisAlignment.spaceEvenly, | ||
crossAxisAlignment: CrossAxisAlignment.end, | ||
children: [ | ||
IconButton( | ||
icon: const FaIcon( | ||
FontAwesomeIcons.earthAmericas, | ||
color: Colors.white, | ||
), | ||
onPressed: () => | ||
Utils.launchURL(Urls.clubWebsite, AppIntl.of(context)!)), | ||
IconButton( | ||
icon: const FaIcon( | ||
FontAwesomeIcons.github, | ||
color: Colors.white, | ||
), | ||
onPressed: () => | ||
Utils.launchURL(Urls.clubGithub, AppIntl.of(context)!)), | ||
IconButton( | ||
icon: const FaIcon( | ||
Icons.mail_outline, | ||
color: Colors.white, | ||
), | ||
onPressed: () => | ||
Utils.launchURL(Urls.clubEmail, AppIntl.of(context)!)), | ||
IconButton( | ||
icon: const FaIcon( | ||
FontAwesomeIcons.discord, | ||
color: Colors.white, | ||
), | ||
onPressed: () => | ||
Utils.launchURL(Urls.clubDiscord, AppIntl.of(context)!)), | ||
], | ||
), | ||
], | ||
); | ||
} |
Oops, something went wrong.