Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

PouriaMoradi021
Copy link

  • 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 `ButtonIconState` enum
- add `customButtonWidgetUseCase` for `custom button` widget
- add `CustomButtonWidget`
- update `main` & add widget book required setup
- add `main.directories`
- comment `widget_test`
@PouriaMoradi021 PouriaMoradi021 added the enhancement New feature or request label Jan 3, 2025
@PouriaMoradi021 PouriaMoradi021 self-assigned this Jan 3, 2025
pouria.moradi and others added 2 commits January 3, 2025 21:32
- 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';


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need some documentation


@PouriaMoradi021

addons: [
DeviceFrameAddon(
devices: [
Devices.ios.iPhone13,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if possible : add desktop device or large screen device


@PouriaMoradi021

@@ -0,0 +1,100 @@
import 'package:fluent_ui/fluent_ui.dart';

@immutable
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this override annotation because it triggers a linter error


@PouriaMoradi021

@@ -0,0 +1,72 @@
import 'package:fluent_ui/fluent_ui.dart';

@immutable
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this override annotation because it triggers a linter error


@PouriaMoradi021

@@ -0,0 +1,22 @@
import 'package:fluent_ui/fluent_ui.dart';

class AppTheme extends InheritedWidget {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

write some docs


@PouriaMoradi021

import 'package:flutter/material.dart';
import 'package:pactus_gui_widgetbook/src/core/enum/button_icon_state_enum.dart';

class CustomButtonWidget extends StatelessWidget {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a sample code snippet. Documentation is not required, and it's fine as is.


@PouriaMoradi021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate Widget Book with a sample widget supporting dark and light themes
2 participants