-
Notifications
You must be signed in to change notification settings - Fork 21
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 snackbar #103
Conversation
# Conflicts: # examples/mirai_gallery/assets/json/home_screen.json
|
||
scaffoldMessenger.showSnackBar( | ||
SnackBar( | ||
content: Mirai.fromJson(model.content, context) ?? SizedBox(), |
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.
Can you change the SizedBox
to SizedBox.shrink()
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.
I feel this one was not necessary.
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.
Should i revert it back?
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.
Nope, it's fine. Just give me some time to review your PR. Sorry, I got super busy.
website/docs/actions/snack_bar.md
Outdated
@@ -0,0 +1,55 @@ | |||
# SnackBar | |||
|
|||
Mirai snakBar allows you to show the Flutter SnackBar using JSON. |
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.
Can you fix this typo?
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.
Good catch, @vinothvino42 !!
Resolved PR comments |
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.
Thanks for such a great PR @ishanvaghani !! Everything looks great, just a few typos.
part 'mirai_beveled_rectangle_border.g.dart'; | ||
|
||
@freezed | ||
class MiralBeveledRectangleBorder with _$MiralBeveledRectangleBorder { |
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.
Typo here. It should be Mirai, not Miral.
part 'mirai_circle_border.g.dart'; | ||
|
||
@freezed | ||
class MiralCircleBorder with _$MiralCircleBorder { |
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.
Typo here. It should be Mirai, not Miral.
part 'mirai_continous_rectangle_border.g.dart'; | ||
|
||
@freezed | ||
class MiralContinousRectangleBorder with _$MiralContinousRectangleBorder { |
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.
Typo here. It should be Mirai, not Miral.
part 'mirai_rounded_rectangle_border.g.dart'; | ||
|
||
@freezed | ||
class MiralRoundedRactangleBorder with _$MiralRoundedRactangleBorder { |
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.
Typo here. It should be Mirai, not Miral.
} | ||
|
||
@freezed | ||
class MiralShapeBorder with _$MiralShapeBorder { |
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.
Typo here. It should be Mirai, not Miral.
website/docs/actions/snack_bar.md
Outdated
| margin | `MiraiEdgeInsets` | Empty space to surround the snack bar. | | ||
| padding | `MiraiEdgeInsets` | The amount of padding to apply to the snack bar's content and optional action. | | ||
| width | `double` | The width of the snack bar. | | ||
| shape | `MiralShapeBorder` | The shape of the snack bar. | |
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.
Typo here. It should be Mirai, not Miral.
Done with changes |
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.
Thanks for the contribution @ishanvaghani 🎉
Description
Added support for snackbar
Added documentation
Created category file for Mirai Actions
Related Issues
Closes #102
Screenshots
XRecorder_20250113_01.mp4
Type of Change