Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deb-95/pokeball_widget
Pokeball widget for Flutter apps
https://github.com/deb-95/pokeball_widget
dart flutter pokeball pokemon
Last synced: 29 days ago
JSON representation
Pokeball widget for Flutter apps
- Host: GitHub
- URL: https://github.com/deb-95/pokeball_widget
- Owner: deb-95
- License: mit
- Created: 2021-04-02T17:53:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-04-04T11:17:47.000Z (over 3 years ago)
- Last Synced: 2024-11-23T11:29:40.178Z (about 1 month ago)
- Topics: dart, flutter, pokeball, pokemon
- Language: Dart
- Homepage: https://pub.dev/packages/pokeball_widget
- Size: 19.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# pokeball_widget
A Pokeball CustomPaint widget to draw a simple minimal pokeball.## Usage
For more usages check the examples folder
```dart
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Builder(
builder: (context) => Scaffold(
body: Center(
// Squared container for the pokeball
child: SizedBox(
height: MediaQuery.of(context).size.width / 2,
width: MediaQuery.of(context).size.width / 2,
child: PokeBallWidget(
color: Theme.of(context).textTheme.bodyText2?.color ?? Colors.black,
),
),
),
),
),
);
}
}
```
## Examples