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: Added a new way to redefine how we declare BorderRadius #285

Closed divyanshub024 closed 2 months ago

divyanshub024 commented 2 months ago

Description

Added a new way to redefine how we declare BorderRadius.

Previoudly we could define the border radius in only one possible way:

              "borderRadius": {
                "topLeft": 8,
                "topRight": 8,
                "bottomLeft": 8,
                "bottomRight": 8
              }

Now you can pass double value to give border-radius to all:

              "borderRadius": 8,

or define all borderRadius in single line.

              "borderRadius": [8, 12, 8, 12],

Type of Change