Skip to content
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

Request to support for ScreenBreakPoints 'num' Type #32

Open
KKimj opened this issue May 19, 2021 · 0 comments
Open

Request to support for ScreenBreakPoints 'num' Type #32

KKimj opened this issue May 19, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@KKimj
Copy link

KKimj commented May 19, 2021

Hello!,
I would like to request you to support the num type . (Don't stick to the double.)

Model code

class _ScreenBreakPoints {
  num desktop = 1024;
  num tablet = 775;
  num watch = 200;
}

Controller code

// getter
  num get desktop_breakpoint => app.screenBreakpoints.desktop;
  num get tablet_breakpoint => app.screenBreakpoints.tablet;
  num get watch_breakpoint => app.screenBreakpoints.watch;

// constuctor
  Controller() {
    ResponsiveSizingConfig.instance.setCustomBreakpoints(ScreenBreakpoints(
        desktop: desktop_breakpoint,
        tablet: tablet_breakpoint,
        watch: watch_breakpoint));
  }

Thanks!

@Eimen2018 Eimen2018 added the enhancement New feature or request label Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants