Skip to content

Commit

Permalink
fix: app icon and splash screen
Browse files Browse the repository at this point in the history
  • Loading branch information
IamMuuo committed Aug 24, 2024
1 parent c79c924 commit d783ed9
Show file tree
Hide file tree
Showing 68 changed files with 90 additions and 77 deletions.
Binary file modified android/app/src/main/res/drawable-hdpi/android12splash.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 modified android/app/src/main/res/drawable-hdpi/splash.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 modified android/app/src/main/res/drawable-mdpi/android12splash.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 modified android/app/src/main/res/drawable-mdpi/splash.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 modified android/app/src/main/res/drawable-night-hdpi/android12splash.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 modified android/app/src/main/res/drawable-night-mdpi/android12splash.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 modified android/app/src/main/res/drawable-night-xhdpi/android12splash.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 modified android/app/src/main/res/drawable-night-xxhdpi/android12splash.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.
Binary file modified android/app/src/main/res/drawable-xhdpi/android12splash.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 modified android/app/src/main/res/drawable-xhdpi/splash.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 modified android/app/src/main/res/drawable-xxhdpi/android12splash.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 modified android/app/src/main/res/drawable-xxhdpi/splash.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 modified android/app/src/main/res/drawable-xxxhdpi/android12splash.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 modified android/app/src/main/res/drawable-xxxhdpi/splash.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 modified 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 modified 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 modified 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 modified 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 modified 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.
Binary file added assets/icons/academia-ai.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 assets/icons/academia-black-outline.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 assets/icons/academia-black.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 assets/icons/academia-sketch.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 assets/icons/academia-splash.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 modified assets/icons/academia.png
Binary file removed assets/icons/app_icon.png
Diff not rendered.
Binary file removed assets/images/holding_back.png
Diff not rendered.
Binary file removed assets/images/smiley.png
Diff not rendered.
Binary file added assets/raw/academia-splash.xcf
Binary file not shown.
4 changes: 2 additions & 2 deletions flutter_native_splash.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ flutter_native_splash:

# The image parameter allows you to specify an image used in the splash screen. It must be a
# png file and should be sized for 4x pixel density.
image: assets/icons/app_icon.png
image: assets/icons/academia.png

# The branding property allows you to specify an image used as branding in the splash screen.
# It must be a png file. It is supported for Android, iOS and the Web. For Android 12,
Expand Down Expand Up @@ -54,7 +54,7 @@ flutter_native_splash:
# 640 pixels in diameter.
# App icon without an icon background: This should be 1152×1152 pixels, and fit within a circle
# 768 pixels in diameter.
image: assets/icons/app_icon.png
image: assets/icons/academia-splash.png

# Splash screen background color.
color: "#f2f5ea"
Expand Down
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png
Binary file modified ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
2 changes: 1 addition & 1 deletion ios/Runner/Base.lproj/LaunchScreen.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</scene>
</scenes>
<resources>
<image name="LaunchImage" width="100" height="100"/>
<image name="LaunchImage" width="512" height="512"/>
<image name="LaunchBackground" width="1" height="1"/>
<image name="BrandingImage" width="1" height="1"/>
</resources>
Expand Down
8 changes: 4 additions & 4 deletions ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
<string>Allow notifications to be displayed</string>
<key>UIStatusBarHidden</key>
<false/>
<key>NSPhotoLibraryUsageDescription</key>
<string>We need access to your photo library to select images.</string>
<key>NSCameraUsageDescription</key>
<string>We need access to your camera to take photos.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>We need access to your photo library to select images.</string>
<key>NSCameraUsageDescription</key>
<string>We need access to your camera to take photos.</string>
</dict>
</plist>
135 changes: 66 additions & 69 deletions lib/tools/exam_timetable/widgets/count_down_widget.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import 'package:academia/exports/barrel.dart';
import 'package:flutter_carousel_widget/flutter_carousel_widget.dart';
import 'package:flutter_timer_countdown/flutter_timer_countdown.dart';
import 'package:google_fonts/google_fonts.dart';

class ExamCountDownWidget extends StatefulWidget {
const ExamCountDownWidget({
Expand All @@ -22,71 +19,71 @@ class _ExamCountDownWidgetState extends State<ExamCountDownWidget> {
var isCritical = false;
@override
Widget build(BuildContext context) {
return FlutterCarousel(
items: [
Container(
decoration: BoxDecoration(
color: isCritical
? Theme.of(context).colorScheme.errorContainer
: Theme.of(context).colorScheme.primaryContainer,
borderRadius: BorderRadius.circular(8)),
width: MediaQuery.of(context).size.width * 0.8,
child: Center(
child: TimerCountdown(
timeTextStyle:
Theme.of(context).textTheme.displayMedium!.copyWith(
fontFamily: GoogleFonts.figtree().fontFamily,
),
format: CountDownTimerFormat.daysHoursMinutesSeconds,
endTime: widget.endtime,
onTick: ((remainingTime) {
if (remainingTime.inMinutes < 5) {
setState(() {
isCritical = true;
});
}
}),
),
),
),
widget.exam == null
? Container(
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.primaryContainer,
borderRadius: BorderRadius.circular(8)),
width: MediaQuery.of(context).size.width * 0.8,
child: Center(
child: Text(
"Aah sh*t here we go again",
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.titleLarge!.copyWith(
fontFamily: GoogleFonts.figtree().fontFamily,
),
),
),
)
: ExamCard(exam: widget.exam!),
Container(
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.tertiaryContainer,
borderRadius: BorderRadius.circular(8)),
width: MediaQuery.of(context).size.width * 0.8,
child: Center(
child: Text(
"${widget.examCount} exams left to go 🫡",
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.titleLarge!.copyWith(
fontFamily: GoogleFonts.figtree().fontFamily,
),
),
),
)
],
options: CarouselOptions(
height: 200,
showIndicator: true,
autoPlay: true,
slideIndicator: const CircularSlideIndicator(slideIndicatorOptions: SlideIndicatorOptions(itemSpacing: 14))),
);
return Container(
// items: [
// Container(
// decoration: BoxDecoration(
// color: isCritical
// ? Theme.of(context).colorScheme.errorContainer
// : Theme.of(context).colorScheme.primaryContainer,
// borderRadius: BorderRadius.circular(8)),
// width: MediaQuery.of(context).size.width * 0.8,
// child: Center(
// child: TimerCountdown(
// timeTextStyle:
// Theme.of(context).textTheme.displayMedium!.copyWith(
// fontFamily: GoogleFonts.figtree().fontFamily,
// ),
// format: CountDownTimerFormat.daysHoursMinutesSeconds,
// endTime: widget.endtime,
// onTick: ((remainingTime) {
// if (remainingTime.inMinutes < 5) {
// setState(() {
// isCritical = true;
// });
// }
// }),
// ),
// ),
// ),
// widget.exam == null
// ? Container(
// decoration: BoxDecoration(
// color: Theme.of(context).colorScheme.primaryContainer,
// borderRadius: BorderRadius.circular(8)),
// width: MediaQuery.of(context).size.width * 0.8,
// child: Center(
// child: Text(
// "Aah sh*t here we go again",
// textAlign: TextAlign.center,
// style: Theme.of(context).textTheme.titleLarge!.copyWith(
// fontFamily: GoogleFonts.figtree().fontFamily,
// ),
// ),
// ),
// )
// : ExamCard(exam: widget.exam!),
// Container(
// decoration: BoxDecoration(
// color: Theme.of(context).colorScheme.tertiaryContainer,
// borderRadius: BorderRadius.circular(8)),
// width: MediaQuery.of(context).size.width * 0.8,
// child: Center(
// child: Text(
// "${widget.examCount} exams left to go 🫡",
// textAlign: TextAlign.center,
// style: Theme.of(context).textTheme.titleLarge!.copyWith(
// fontFamily: GoogleFonts.figtree().fontFamily,
// ),
// ),
// ),
// )
// ],
// options: CarouselOptions(
// height: 200,
// showIndicator: true,
// autoPlay: true,
// slideIndicator: const CircularSlideIndicator(slideIndicatorOptions: SlideIndicatorOptions(itemSpacing: 14))),
);
}
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ flutter_launcher_icons:
android: "launcher_icon"
ios: true
remove_alpha_ios: true
image_path: "assets/icons/app_icon.png"
image_path: "assets/icons/academia.png"
min_sdk_android: 34

# The following section is specific to Flutter packages.
Expand Down
16 changes: 16 additions & 0 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@














Expand Down Expand Up @@ -178,6 +186,14 @@














Expand Down
Binary file modified web/splash/img/dark-1x.png
Binary file modified web/splash/img/dark-2x.png
Binary file modified web/splash/img/dark-3x.png
Binary file modified web/splash/img/dark-4x.png
Binary file modified web/splash/img/light-1x.png
Binary file modified web/splash/img/light-2x.png
Binary file modified web/splash/img/light-3x.png
Binary file modified web/splash/img/light-4x.png

0 comments on commit d783ed9

Please sign in to comment.