Skip to content

Commit

Permalink
change images
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziedelth committed Jan 5, 2025
1 parent 75d707c commit 5e7c446
Show file tree
Hide file tree
Showing 117 changed files with 1,154 additions and 512 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.
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-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.
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-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.
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.
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-v21/background.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.
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.
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/background.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-v21/background.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/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/ic_launcher_background.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/ic_launcher_foreground.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
Binary file modified android/app/src/main/res/drawable-xxhdpi/splash.png
Binary file modified android/app/src/main/res/drawable-xxxhdpi/android12splash.png
Binary file modified android/app/src/main/res/drawable-xxxhdpi/splash.png
Binary file modified android/app/src/main/res/drawable/background.png
8 changes: 6 additions & 2 deletions android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
<background android:drawable="@drawable/ic_launcher_background"/>
<foreground>
<inset
android:drawable="@drawable/ic_launcher_foreground"
android:inset="16%" />
</foreground>
</adaptive-icon>
Binary file modified android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Binary file modified android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Binary file modified android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Binary file modified android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Binary file modified android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Binary file added assets/dark_icon.png
Binary file added assets/dark_icon_padding.png
Binary file removed assets/icon_450x450.png
Diff not rendered.
Binary file added assets/light_icon.png
Binary file added assets/light_icon_padding.png
Binary file removed assets/splash.png
Diff not rendered.
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
33 changes: 33 additions & 0 deletions ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,48 @@
"idiom" : "universal",
"scale" : "1x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "LaunchImageDark.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
Expand Down
Binary file modified ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
Binary file modified ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected]
2 changes: 2 additions & 0 deletions ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,7 @@
<string>Used to upload a profile picture</string>
<key>FirebaseAppDelegateProxyEnabled</key>
<false/>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>
</plist>
129 changes: 70 additions & 59 deletions lib/components/advanced_search_card.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import 'package:application/components/card_component.dart';
import 'package:application/components/lang_type_component.dart';
import 'package:application/controllers/anime_search_controller.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';

class AdvancedSearchCard extends StatelessWidget {
const AdvancedSearchCard({required this.controller, super.key});
const AdvancedSearchCard({
required this.controller,
required this.scrollController,
super.key,
});

final TextEditingController controller;
static const List<String> _letters = <String>[
Expand Down Expand Up @@ -37,69 +40,77 @@ class AdvancedSearchCard extends StatelessWidget {
'Y',
'Z',
];
final ScrollController scrollController;

@override
Widget build(final BuildContext context) => CustomCard(
child: Column(
spacing: 8,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text(
AppLocalizations.of(context)!.advancedSearch,
style: Theme.of(context).textTheme.titleMedium,
),
Center(
child: Wrap(
alignment: WrapAlignment.center,
spacing: 8,
runSpacing: 8,
children: <Widget>[
for (final String letter in _letters)
ActionChip(
label: Text(letter),
onPressed: () {
AnimeSearchController.instance.search(letter);
controller.text = letter;
},
Widget build(final BuildContext context) => Scrollbar(
controller: scrollController,
child: SingleChildScrollView(
controller: scrollController,
scrollDirection: Axis.horizontal,
child: Row(
spacing: 8,
children: <Widget>[
ElevatedButton(
onPressed: () {
showDialog(
context: context,
builder: (final BuildContext context) => AlertDialog(
title: Text(AppLocalizations.of(context)!.advancedSearch),
content: Wrap(
alignment: WrapAlignment.center,
spacing: 8,
runSpacing: 8,
children: <Widget>[
for (final String letter in _letters)
ActionChip(
label: Text(letter),
onPressed: () {
AnimeSearchController.instance.search(letter);
controller.text = letter;
},
),
],
),
),
],
);
},
child: const Icon(Icons.tune),
),
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
for (final SearchType type in SearchType.values)
Flex(
direction: Axis.horizontal,
children: <Widget>[
Checkbox(
value: AnimeSearchController.instance.searchTypes
.contains(type),
onChanged: (final bool? value) {
if (value!) {
AnimeSearchController.instance.searchTypes
.add(type);
} else {
AnimeSearchController.instance.searchTypes
.remove(type);
}
for (final SearchType type in SearchType.values)
ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor:
AnimeSearchController.instance.searchType == type
? Theme.of(context)
.textTheme
.bodyLarge
?.color
?.withValues(alpha: 0.1)
: Theme.of(context)
.elevatedButtonTheme
.style
?.backgroundColor
?.resolve(<WidgetState>{}),
),
onPressed: () {
if (AnimeSearchController.instance.searchType == type) {
AnimeSearchController.instance.searchType = null;
} else {
AnimeSearchController.instance.searchType = type;
}

AnimeSearchController.instance.search(
AnimeSearchController.instance.query,
);
},
),
Text(
LangTypeComponent.getLangTypeTranslation(
context,
type.name.toUpperCase(),
),
),
],
AnimeSearchController.instance.search(
AnimeSearchController.instance.query,
);
},
child: LangTypeComponent(
langType: type.name.toUpperCase(),
color: Theme.of(context).textTheme.bodyLarge?.color,
),
],
),
],
),
],
),
),
);
}
20 changes: 13 additions & 7 deletions lib/components/animes/anime_component.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:application/components/card_component.dart';
import 'package:application/components/image_component.dart';
import 'package:application/components/lang_type_component.dart';
import 'package:application/components/platforms/platform_component.dart';
import 'package:application/components/watchlist_button.dart';
import 'package:application/controllers/anime_controller.dart';
import 'package:application/dtos/anime_dto.dart';
Expand Down Expand Up @@ -39,13 +40,18 @@ class AnimeComponent extends StatelessWidget {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
ImageComponent(
fit: BoxFit.cover,
uuid: anime.uuid,
height: 280,
borderRadius: const BorderRadius.all(
Radius.circular(Constant.borderRadius),
),
Stack(
children: <Widget>[
ImageComponent(
fit: BoxFit.cover,
uuid: anime.uuid,
height: 280,
borderRadius: const BorderRadius.all(
Radius.circular(Constant.borderRadius),
),
),
...PlatformComponent.toPlatformsRow(anime.platforms),
],
),
const SizedBox(height: 8),
Text(
Expand Down
14 changes: 9 additions & 5 deletions lib/components/animes/calendar_anime_component.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import 'package:application/components/card_component.dart';
import 'package:application/components/episodes/episode_duration.dart';
import 'package:application/components/image_component.dart';
import 'package:application/components/lang_type_component.dart';
import 'package:application/components/platforms/platform_component.dart';
import 'package:application/components/watch_button.dart';
import 'package:application/components/watchlist_button.dart';
import 'package:application/controllers/anime_controller.dart';
import 'package:application/controllers/anime_weekly_controller.dart';
import 'package:application/dtos/platform_dto.dart';
import 'package:application/dtos/week_day_release_dto.dart';
import 'package:application/utils/analytics.dart';
import 'package:application/utils/constant.dart';
Expand Down Expand Up @@ -72,11 +72,15 @@ class CalendarAnimeComponent extends StatelessWidget {
),
height: 185,
),
for (final PlatformDto platform in release.platforms)
...PlatformComponent.toPlatformsRow(release.platforms),
if (isReleased && !isMultipleReleased)
Positioned(
right: 7.5 + release.platforms.indexOf(platform) * 10,
top: 7.5,
child: PlatformComponent(platform: platform),
bottom: Constant.cornerPadding,
right: Constant.cornerPadding,
child: EpisodeDuration(
episode: release.mappings!.first,
cornerPadding: Constant.cornerPadding,
),
),
],
),
Expand Down
17 changes: 12 additions & 5 deletions lib/components/animes/followed_anime_component.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:application/components/image_component.dart';
import 'package:application/components/platforms/platform_component.dart';
import 'package:application/dtos/anime_dto.dart';
import 'package:application/utils/analytics.dart';
import 'package:application/utils/constant.dart';
Expand Down Expand Up @@ -37,11 +38,17 @@ class FollowedAnimeComponent extends StatelessWidget {
SizedBox(
width: 360 / _ratio,
height: 640 / _ratio,
child: ImageComponent(
uuid: anime.uuid,
borderRadius: const BorderRadius.all(
Radius.circular(Constant.borderRadius),
),
child: Stack(
children: <Widget>[
ImageComponent(
uuid: anime.uuid,
height: 640 / _ratio,
borderRadius: const BorderRadius.all(
Radius.circular(Constant.borderRadius),
),
),
...PlatformComponent.toPlatformsRow(anime.platforms),
],
),
),
Padding(
Expand Down
Loading

0 comments on commit 5e7c446

Please sign in to comment.