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.

0.1.0 #

  • Initial release.
  • MaterialDefaults.of(context) exposes the Material 3 defaults of 56 component variants (buttons, icon buttons, FABs, segmented button, cards, dialogs, sheets, snack bars, banner, divider, list/expansion tiles, chips, input decoration, checkbox, radio, switch, sliders, search bar/view, date picker, app bars, navigation bar/rail/drawer, drawer, tabs, menus, popup menu, badge, progress indicators).
  • Generated from the token data of Flutter 3.41.8 (token data 6_1_0) by running the SDK's own gen_defaults templates (tool/generate.dart); all 47 blocks verified identical to the framework source.
  • MaterialDefaults.tokenVersion, flutterRevision, tokenDataVersions, generatedBlocks, appliesToCurrentTheme.
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