wyatt_ui_kit (2.0.0)
Installation
dart pub add wyatt_ui_kit:2.0.0 --hosted-url=
About this package
UIKit and Design System used in Wyatt Studio.
Wyatt UI Kit
UIKit and Design System used in Wyatt Studio. This is a implementation of the components defined in Wyatt UI Components package.
Usage
The UIKit provides WyattComponentThemeData
class that contains all the components used in Wyatt Studio. You can use it in your app by calling WyattComponentTheme
widget and give your app as child. For example :
This component theme is to be used with Wyatt UI Components. It provides a default theme for all the components defined in Wyatt UI Components package.
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) => ComponentTheme(
// It is here that you can override the default theme !
componentThemeWidget: WyattComponentThemeData(),
child: MaterialApp(
title: 'Wyatt Ui Layout Example',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const ..,
),
);
}
Development
Common to this, and Wyatt UI Components packages.
Add a new component :
Wyatt UI Components side
- Create a new file in
lib/src/domain/entities
folder. - Add your component class.
- Add your component class to
ComponentThemeData
abstract class. - Run
flutter pub run build_runner build
to generate your component proxy properties.
Wyatt UI Kit side
- Create a new file in
lib/src/components
folder. - Add your component class, styles, (and logic if needed)
- Run
flutter pub run build_runner build
to generate your component copy with method. - Add a theme extension to your component class in
lib/src/domain/
- Add your component class
wyattComponentThemeData
static property inlib/src/features/wyatt_component_theme_data.dart
Details
Assets (1)
Versions (8)
View all
2.0.0.tar.gz
45 KiB