material_defaults 0.1.0 copy "material_defaults: ^0.1.0" to clipboard
material_defaults: ^0.1.0 copied to clipboard

Public, context-aware access to the private Material 3 widget defaults (ButtonStyle, ChipThemeData, InputDecoration...), generated from Flutter's own token data.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add material_defaults

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  material_defaults: ^0.1.0

Alternatively, 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:material_defaults/material_defaults.dart';
0
likes
160
points
0
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Public, context-aware access to the private Material 3 widget defaults (ButtonStyle, ChipThemeData, InputDecoration...), generated from Flutter's own token data.

Repository (GitHub)
View/report issues

Topics

#material #theme #material-design #design-tokens #widget

License

BSD-3-Clause, MIT (license)

Dependencies

flutter

More

Packages that depend on material_defaults