Securrency-OSS / mirai

Mirai is a Server-Driven UI (SDUI) library for Flutter. Mirai allows you to build beautiful cross-platform applications with JSON in real time.
https://pub.dev/packages/mirai
MIT License
478 stars 58 forks source link

feat: A new way to redefine how we declare`EdgeInsets`. #260

Closed divyanshub024 closed 2 months ago

divyanshub024 commented 2 months ago

Description

Right now there is only one way to define MiraiEdgeInsets.

              "padding": {
                "top": 8,
                "left": 12,
                "right": 12,
                "bottom": 8
              }

There should be a better to define it like.

  1. For giving same padding to all.
"padding`: 8,
  1. Define padding for all dir.
"padding": [8, 12, 12, 8]

This way it will be easier to define padding and make the JSON smaller.

superiorsd10 commented 2 months ago

Hello @divyanshub024 👋

I want to work on this issue, so please consider assigning it to me.

Thank you,

divyanshub024 commented 2 months ago

Hey @superiorsd10 👋

I've assigned it to you. Looking forward to see your contribution 🚀