-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
64 changed files
with
521 additions
and
660 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
lib/src/UI/items/forward_and_rewind.dart → ...src/UI/components/forward_and_rewind.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
File renamed without changes.
File renamed without changes.
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,124 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class BannerPlaceholder extends StatelessWidget { | ||
const BannerPlaceholder({Key? key, required this.width, required this.height}) : super(key: key); | ||
|
||
final double width; | ||
final double height; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Container( | ||
width: width, | ||
height: height, | ||
decoration: BoxDecoration( | ||
color: Colors.white, | ||
borderRadius: BorderRadius.circular(2), | ||
), | ||
); | ||
} | ||
} | ||
|
||
class TitlePlaceholder extends StatelessWidget { | ||
final double width; | ||
|
||
const TitlePlaceholder({ | ||
Key? key, | ||
required this.width, | ||
}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
final color = Theme.of(context).colorScheme; | ||
|
||
return Container( | ||
margin: const EdgeInsets.symmetric(vertical: 12.0, horizontal: 4), | ||
child: Column( | ||
mainAxisSize: MainAxisSize.min, | ||
crossAxisAlignment: CrossAxisAlignment.center, | ||
children: [ | ||
Container( | ||
width: width - 8, | ||
height: 10.0, | ||
decoration: BoxDecoration( | ||
borderRadius: BorderRadius.circular(2), | ||
color: color.primary, | ||
), | ||
), | ||
const SizedBox(height: 20.0), | ||
Container( | ||
decoration: BoxDecoration( | ||
color: color.primary, | ||
borderRadius: BorderRadius.circular(2) | ||
|
||
), | ||
width: width - 8, | ||
height: 10.0, | ||
), | ||
], | ||
), | ||
); | ||
} | ||
} | ||
|
||
enum ContentLineType { | ||
twoLines, | ||
threeLines, | ||
} | ||
|
||
class ContentPlaceholder extends StatelessWidget { | ||
final ContentLineType lineType; | ||
|
||
const ContentPlaceholder({ | ||
Key? key, | ||
required this.lineType, | ||
}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Padding( | ||
padding: const EdgeInsets.symmetric(horizontal: 16.0), | ||
child: Row( | ||
mainAxisSize: MainAxisSize.max, | ||
crossAxisAlignment: CrossAxisAlignment.center, | ||
children: [ | ||
Container( | ||
width: 96.0, | ||
height: 72.0, | ||
decoration: BoxDecoration( | ||
borderRadius: BorderRadius.circular(12.0), | ||
color: Colors.white, | ||
), | ||
), | ||
const SizedBox(width: 12.0), | ||
Expanded( | ||
child: Column( | ||
mainAxisSize: MainAxisSize.min, | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: [ | ||
Container( | ||
width: double.infinity, | ||
height: 10.0, | ||
color: Colors.white, | ||
margin: const EdgeInsets.only(bottom: 8.0), | ||
), | ||
if (lineType == ContentLineType.threeLines) | ||
Container( | ||
width: double.infinity, | ||
height: 10.0, | ||
color: Colors.white, | ||
margin: const EdgeInsets.only(bottom: 8.0), | ||
), | ||
Container( | ||
width: 100.0, | ||
height: 10.0, | ||
color: Colors.white, | ||
) | ||
], | ||
), | ||
) | ||
], | ||
), | ||
); | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
lib/src/UI/items/search_icon.dart → lib/src/UI/components/search_icon.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
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
File renamed without changes.
File renamed without changes.
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
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
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import 'package:flutter_riverpod/flutter_riverpod.dart'; | ||
|
||
import 'package:kimoi/main.dart'; | ||
import 'package:riverpod/riverpod.dart'; | ||
|
||
import '../../../infrastructure/infrastructure.dart'; | ||
|
||
final animeRepositoryProvider = | ||
Provider((ref) => AnimeRepositoryImpl(MonoschinosDatasource())); | ||
Provider((ref) => AnimeRepositoryImpl(sourceController.initialDatasource)); |
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
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import 'package:flutter_riverpod/flutter_riverpod.dart'; | ||
import 'package:kimoi/src/infrastructure/datasources/jikan_datasource_impl.dart'; | ||
import 'package:kimoi/src/infrastructure/repositories/jikan_repository_impl.dart'; | ||
import 'package:riverpod/riverpod.dart'; | ||
|
||
final jikanRepoProvider = | ||
Provider((ref) => JikanRepositoryImpl(JikanDatasourceImpl())); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import 'package:flutter_riverpod/flutter_riverpod.dart'; | ||
import 'package:kimoi/src/infrastructure/datasources/kudasai_news_datasource.dart'; | ||
import 'package:kimoi/src/infrastructure/repositories/news_repository_impl.dart'; | ||
import 'package:riverpod/riverpod.dart'; | ||
|
||
final newsRepositoryProvider = | ||
Provider((ref) => NewRepositoryImpl(KudasaiNewsDatasource())); |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import 'package:flutter_riverpod/flutter_riverpod.dart'; | ||
|
||
import 'package:riverpod/riverpod.dart'; | ||
|
||
final portraitWidth = StateProvider<double>((ref) => 0.0); | ||
final landScapeWidth = StateProvider<double>((ref) => 0.0); |
Oops, something went wrong.