Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: Add support for Drawer widget #152

Open
divyanshub024 opened this issue Jan 23, 2025 · 2 comments
Open

feat: Add support for Drawer widget #152

divyanshub024 opened this issue Jan 23, 2025 · 2 comments
Assignees
Labels
feature New feature or request

Comments

@divyanshub024
Copy link
Member

Description

Add support for the Drawer widget

@divyanshub024 divyanshub024 added the feature New feature or request label Jan 23, 2025
@vinothvino42
Copy link
Contributor

@divyanshub024 I’ll begin working on this issue and update the status soon

@vinothvino42
Copy link
Contributor

vinothvino42 commented Jan 27, 2025

@divyanshub024 Can you suggest the JSON structure for opening and closing a drawer? Need actions for openDrawer, openEndDrawer, closeDrawer and closeEndDrawer.

Mirai JSON

Action: openDrawer, closeDrawer, openEndDrawer, closeEndDrawer

"onPressed": {
   "actionType": "openDrawer",
 }

Can you suggest some approach? As of now I've done by adding a global key of type scaffold state in the mirai scaffold final miraiScaffoldKey = GlobalKey<ScaffoldState>(); and assigned it to scaffold widget.

In MiraiDrawerActionParser's onCall method, I'll use this global key for opening / closing a drawer.

Here's the WIP PR - #184

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

Successfully merging a pull request may close this issue.

2 participants