mosaic_widgets 0.2.0
mosaic_widgets: ^0.2.0 copied to clipboard
Build native iOS and Android home-screen widgets, lock-screen widgets, and Live Activities from a single Flutter-style Dart DSL.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate mosaic_widgetsUse it
The package has the following executables:
$ mosaic
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add mosaic_widgetsThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
mosaic_widgets: ^0.2.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:mosaic_widgets/mosaic_widgets.dart';