Skip to content

No breakpoint named MOBILE found. #79

@jeremiahlukus

Description

@jeremiahlukus

I am copying from
https://github.com/Codelessly/FlutterWebsite/blob/master/lib/main.dart#L44

When i wrap BlockWrapper with ResponsiveWrapper it throws the error No breakpoint named MOBILE found.

If i remove ResponsiveWrapper then the page renders

So my widget looks like

CounterPage

  @override
  Widget build(BuildContext context, WidgetRef ref) {
    return ResponsiveWrapper(
      maxWidth: 1200,
      minWidth: 1200,
      defaultScale: true,
      child: BlockWrapper(
        Scaffold(

and in my app.dart

    return MaterialApp(
      builder: (context, widget) => ResponsiveWrapper.builder(
        ClampingScrollWrapper.builder(context, widget!),
        defaultScale: true,
        minWidth: 480,
        defaultName: MOBILE,
        breakpoints: const [
          ResponsiveBreakpoint.resize(350, name: MOBILE),
          ResponsiveBreakpoint.autoScale(600, name: TABLET),
          ResponsiveBreakpoint.resize(800, name: DESKTOP),
          ResponsiveBreakpoint.autoScale(1700, name: 'XL'),
        ],
      ),
      home: const CounterPage(),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions