A lightweight utility package for Flutter that simplifies the import and reuse of material.dart widgets.
Designed to appear before cupertino.dart in auto-import suggestions, enhancing developer productivity.
- Streamlines the import of
material.dartwidgets - Wraps common Material widgets to improve reusability
- Prioritized in auto-import suggestions over
cupertino.dart
Add the following to your pubspec.yaml:
dependencies:
a_material: ^0.1.0Then, run:
flutter pub getimport'package:a_material/a_material.dart';
classMyHomePageextendsStatelessWidget {
@overrideWidgetbuild(BuildContext context) {
returnScaffold(
appBar:AppBar(title:Text('a_material Example')),
body:Center(
child:ElevatedButton(
onPressed: () {},
child:Text('Click'),
),
),
);
}
}MIT License