Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/westdabestdb/undraw
https://github.com/westdabestdb/undraw
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/westdabestdb/undraw
- Owner: westdabestdb
- License: mit
- Created: 2019-07-18T20:06:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-22T08:27:43.000Z (over 3 years ago)
- Last Synced: 2024-08-04T10:02:15.216Z (6 months ago)
- Language: Dart
- Homepage:
- Size: 92.8 KB
- Stars: 119
- Watchers: 3
- Forks: 40
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-coding - UnDraw
README
# undraw/UnDraw
UnDraw is a Flutter widget that provides [700+ illustrations](https://undraw.co/illustrations), designed by [Katerina Limpitsouni](https://twitter.com/ninalimpi) and developed by [westdabestdb](https://www.instagram.com/westdabestdb/).
![](https://media.giphy.com/media/MBf2NBhUXaEufSZFfa/giphy.gif)
## Getting Started
Add this to your package's `pubspec.yaml` file:
```
...
dependencies:
undraw: ^1.0.2
```Now in your Dart code, you can use:
```
import 'package:undraw/undraw.dart';
```## Usage
```
UnDraw(
color: Colors.red,
illustration: UnDrawIllustration.mobile_application,
placeholder: Text("Illustration is loading..."), //optional, default is the CircularProgressIndicator().
errorWidget: Icon(Icons.error_outline, color: Colors.red, size: 50), //optional, default is the Text('Could not load illustration!').
)
```