-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: integrate Widget Book
with a sample button code #3
#5
base: main
Are you sure you want to change the base?
feat: integrate Widget Book
with a sample button code #3
#5
Conversation
- add `ButtonIconState` enum - add `customButtonWidgetUseCase` for `custom button` widget - add `CustomButtonWidget` - update `main` & add widget book required setup - add `main.directories` - comment `widget_test`
- add/create `SurfacePallet` - add/crete `OnSurfacePallet` - add/create `AppThemeData` - add/create `AppTheme` - add `fluent_ui` package to `pubspec.yaml` - add `ThemeAddon` to `WidgetBookApp` according to new themes - update `main.dart` file - add/create `InterTextStyles` according text styles that defined in Figma design - update `CustomButtonWidget` - add/create `AppScaffold` to show light & dark mode in output result
…tUI` - update `AppThemeDate` - update `AppTheme`
import 'package:flutter/material.dart'; | ||
import 'package:pactus_gui_widgetbook/src/core/theme/app_theme.dart'; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addons: [ | ||
DeviceFrameAddon( | ||
devices: [ | ||
Devices.ios.iPhone13, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,100 @@ | |||
import 'package:fluent_ui/fluent_ui.dart'; | |||
|
|||
@immutable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,72 @@ | |||
import 'package:fluent_ui/fluent_ui.dart'; | |||
|
|||
@immutable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,22 @@ | |||
import 'package:fluent_ui/fluent_ui.dart'; | |||
|
|||
class AppTheme extends InheritedWidget { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import 'package:flutter/material.dart'; | ||
import 'package:pactus_gui_widgetbook/src/core/enum/button_icon_state_enum.dart'; | ||
|
||
class CustomButtonWidget extends StatelessWidget { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ButtonIconState
enumcustomButtonWidgetUseCase
forcustom button
widgetCustomButtonWidget
main
& add widget book required setupmain.directories
widget_test