Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Commit

Permalink
fix(myanimelist): fix auth page logo
Browse files Browse the repository at this point in the history
  • Loading branch information
zyrouge committed Oct 19, 2021
1 parent 751f8ed commit 6f3f19d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pages/store_page/extensions_page/extensions_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ class _ExtensionPopupState extends State<_ExtensionPopup> {
});

if (DataStore.preferences
.lastSelectedSearchPlugins ==
null) {
.lastSelectedSearchPlugins?.isEmpty ??
true) {
final extensions.BaseExtractor? ext =
ExtensionsManager.animes[widget.ext.id];
if (ext != null) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import '../../../../components/trackers/auth_page.dart';
import '../../../../core/trackers/anilist/anilist.dart' as anilist;
import '../../../../plugins/helpers/assets.dart';
import '../../../../plugins/helpers/logger.dart';
import '../../../../plugins/translator/translator.dart';

Expand All @@ -12,6 +13,7 @@ class Page extends StatelessWidget {
@override
Widget build(final BuildContext context) => AuthPage(
title: Translator.t.anilist(),
logo: Assets.anilistLogo,
authenticate: () async {
final anilist.TokenInfo token =
anilist.TokenInfo.fromURL(ModalRoute.of(context)!.settings.name!);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import '../../../../components/trackers/auth_page.dart';
import '../../../../core/trackers/myanimelist/myanimelist.dart' as myanimelist;
import '../../../../plugins/helpers/assets.dart';
import '../../../../plugins/helpers/logger.dart';
import '../../../../plugins/router.dart';
import '../../../../plugins/translator/translator.dart';
Expand All @@ -13,6 +14,7 @@ class Page extends StatelessWidget {
@override
Widget build(final BuildContext context) => AuthPage(
title: Translator.t.myAnimeList(),
logo: Assets.myAnimeListLogo,
authenticate: () async {
final ParsedRouteInfo args =
ParsedRouteInfo.fromURI(ModalRoute.of(context)!.settings.name!);
Expand Down

0 comments on commit 6f3f19d

Please sign in to comment.