rootstrap / flutter-base

MIT License
5 stars 0 forks source link

Add responsive widget #51

Closed amaury901130 closed 1 year ago

amaury901130 commented 1 year ago

Description

How to use:

Responsive(
    mobile: const LoginPageMobile(),
    desktop: const LoginPageDesktop(),
)

To check the current screen type: Responsive.isMobile(context)

i.e: Responsive.isMobile(context) ? Text(“Is mobile”) : Text(“Is not mobile”)