flutter gradients
a curated collection of splendid gradients made in dart. only linear gradi.ents included for now.
installation
add the package
dependencies:
flutter_gradients: ^0.0.1
usage
import the package
import 'package:flutter_gradients/flutter_gradients.dart';
how to use
container(
width: 150,
height: 150,
decoration: boxdecoration(
shape: boxshape.circle,
[gradient: fluttergradient.warmflame()],
),
);
catalogue
1 | 2 | 3 |
---|---|---|
examples
web and command-line examples can be found in the example
folder.
web examples
in order to run the web examples, please follow these steps:
- download this repo and enter the directory
- run
pub get
- run
pub run build_runner serve example
- navigate to http://localhost:8080/web/ in your browser
command line examples
in order to run the command line example, please follow these steps:
- download this repo and enter the directory
- run
pub get
- run
dart example/lib/main.dart
flutter example
install flutter
in order to run the flutter example, you must have flutter installed. for installation instructions, view the online
documentation.
run the app
- open up an android emulator, the ios simulator, or connect an appropriate mobile device for debugging.
- open up a terminal
cd
into theexample/lib/
directory- run
flutter doctor
to ensure you have all flutter dependencies working. - run
flutter packages get
- run
flutter run
Comments are closed.