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: Added support for MiraiStream for widgets inter-communication #164

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

i-asimkhan
Copy link
Contributor

Description

Added support for MiraiStream for widgets inter-communication

Related Issues

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Code refactor
  • Build configuration change
  • Documentation
  • Chore
* main:
  Update mirai_banner.png
  Update mirai_banner.png
  update README.md
  feat: allow inject a dio instance
* main:
  - 🔨 #89 removed redundant exports
  - 🔨 #89 Rearranged imports
  - 🔨 #89 minor fixes
  - 🔨 #89 review fixes
  - 🔨 #89 Fixes done for the issue
  refactor: Input validation types are renamed, and static regex expressions are moved inside the enum
  - 📝 #89 Minor fixes
  - 🚀 #89 Added box decoration parser for container
  refactor: Input formatter types are reduced to basic types (deny-allow) and updated example jsons
  fix: Renamed input validator type, text-field widget changed to stateless and validation messages in example are updated
  Added input formatters structure in Mirai to support input formatters in text fields.
  Added text form field ability to validate using regex rules and predefined types.
  Added validators for mirai text field

# Conflicts:
#	packages/mirai/lib/src/parsers/mirai_text_form_field/mirai_text_form_field.freezed.dart
#	packages/mirai/lib/src/parsers/mirai_text_form_field/mirai_text_form_field_parser.dart
#	packages/mirai/lib/src/parsers/parsers.dart
* main:
  #113 - 📝 Minor fixes - 🚧 [WIP] Add support for fromRelativeRect
  #113 - 📝 Added review changes - 🚧 [WIP] Add support for fromRelativeRect
  #113 - 🔨 implemented fromRect method for positioned widget - 🚧 [WIP] Add support for fromRelativeRect
  #113 - 🔨 Added example for stack and implemented positioned widget for stack - 🚧 [WIP] Add support for fromRect and fromRelativeRect
  - 📝 #113 Merge fixes
  - 🚀 #113 Added mirai stack parser
* main:
  V 0.2 release

# Conflicts:
#	packages/mirai/pubspec.yaml
* main:
  Create CODE_OF_CONDUCT.md
  fix: Removed align in home screen json
* main: (29 commits)
  Added `MiraiBottomAppBarTheme` in `MiraiThemeData`
  Secondary color for light and dark themes are changed for mirai_gallery
  Added `MiraiTabBarThemeData` in `MiraiTheme` data
  Added `MiraiNavigationBarThemeData` in `MiraiThemeData`
  Secondary color changed and default values are removed in light/dark theme
  Added `MiraiListTileThemeData` to the mirai theme data
  Renamed `MiraiFloatingActionThemeData` to `MiraiFloatingActionButtonThemeData` and removed example theme comp from light theme
  Added `iconColor` and `disabledIconColor` in mirai button style
  Removed TextButtonThemeData wrapper on button
  Removed app-bar theme from light-theme example and icon theme irrelevant values causing color disruption
  Fixed file naming misspelled word for `overlay` in mirai sustem ui overly
  Added iconTheme and actionIconTheme values in MIrai app-bar theme data
  Fix code formatting
  Formatted code files in parsers/
  Added `DialogTheme` in Mirai Theme data
  Added `CardTheme` in Mirai theme data
  Updated theme example with bottom-sheet theme details
  Added BottomSheet theme parser and provided in Mirai Theme
  Updated example theme for bottom-nav-bar and formatted parsers in the framework
  Added bottom-nav-bar theme data in Mirai theme
  ...

# Conflicts:
#	packages/mirai/lib/src/parsers/parsers.dart
#	packages/mirai/pubspec.yaml
* main:
  Mirai v0.3 release
  Update mirai dependencies
  Updated colors in example/mirai_gallery from the material3 example app inside flutter/samples
  feat: Added dark colors for theme in example_light_theme
  Implemented light mode material-3 colors scheme

# Conflicts:
#	packages/mirai/pubspec.yaml
* main:
  Removed `"style": "list"` from all list items in home-screen json
  Refactored navigate method in`Mirai Navigatior` for all navigation styles and renamed pushNamedAndRemoveUntil to pushNamedAndRemoveAll
  Removed widget null check as it will break when navigation is of type `pop`
  Removed duplicate `pop` in case of navigate back and renamed navigation items in example
  Added result and arguments in `miraiAction` for navigate usecase
  Added support for `pushNamed` in Mirai Navigation
  Extending rich text functionality to Mirai Text.
@RodolfoSilva
Copy link
Contributor

It looks like this PR is out of date @i-asimkhan after merge #119

@RodolfoSilva
Copy link
Contributor

A illustration how MiraiStream could work.

image

  • name refers to the event name that is triggered, such as OnChanged.
  • id is a unique identifier that distinguishes between triggered events, serving as an additional filter.
  • data is a dynamic value that can be used elsewhere, representing a value that's already in the runtime state, like an input value.

@i-asimkhan @divyanshub024

@i-asimkhan
Copy link
Contributor Author

It looks like this PR is out of date @i-asimkhan after merge #119

Hey @RodolfoSilva Thanks for noticing this. We are focusing on other stuff like network calls and form-data submission along with an API call. I think this pr will change a lot as we finish those changes.

@RodolfoSilva
Copy link
Contributor

There is any Branch or PR that I can check @i-asimkhan? Maybe I can help in something.

@divyanshub024
Copy link
Contributor

@RodolfoSilva This work is paused for the moment as we are busy with other things. So, feel free to take this up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 participants