-
Notifications
You must be signed in to change notification settings - Fork 11
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
9bcbe97
commit f65d9b2
Showing
224 changed files
with
1,965 additions
and
154 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
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,2 @@ | ||
tags: | ||
golden: |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import 'package:cached_network_image/cached_network_image.dart' as lib; | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_cache_manager/flutter_cache_manager.dart' as lib; | ||
|
||
@visibleForTesting | ||
lib.BaseCacheManager? debugCacheManager; | ||
|
||
lib.BaseCacheManager get manager => | ||
debugCacheManager ?? lib.DefaultCacheManager(); | ||
|
||
ImageProvider image(String url) => | ||
lib.CachedNetworkImageProvider(url, cacheManager: manager); | ||
|
||
class ImageWidget extends StatelessWidget { | ||
final String imageUrl; | ||
|
||
const ImageWidget(this.imageUrl, {super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return lib.CachedNetworkImage( | ||
cacheManager: manager, | ||
errorWidget: (_, __, ___) => const DecoratedBox( | ||
decoration: BoxDecoration( | ||
color: Colors.grey, | ||
), | ||
), | ||
fit: BoxFit.cover, | ||
imageUrl: imageUrl, | ||
); | ||
} | ||
} |
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,3 @@ | ||
import 'package:http/http.dart' as lib; | ||
|
||
lib.Client configureHttpClient() => lib.Client(); |
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,19 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
@visibleForTesting | ||
var debugDeterministic = false; | ||
|
||
class AdaptiveProgressIndicator extends StatelessWidget { | ||
final double? value; | ||
|
||
const AdaptiveProgressIndicator({super.key, this.value}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Center( | ||
child: debugDeterministic | ||
? const Text('Loading...') | ||
: CircularProgressIndicator.adaptive(value: value), | ||
); | ||
} | ||
} |
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
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
Oops, something went wrong.
f65d9b2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linux build
bundle.zip
Windows build
Android builds
macOS build
iOS build
manifest.plist