ResponsiveFramework
ResponsiveFramework copied to clipboard
WillPopScope disabled
builder: (context, widget) => ResponsiveWrapper.builder(
const HomePage(),
maxWidth: 1200,
minWidth: 480,
defaultScale: true,
breakpoints: [
const ResponsiveBreakpoint.resize(480, name: MOBILE),
const ResponsiveBreakpoint.resize(800, name: TABLET),
const ResponsiveBreakpoint.resize(1000, name: DESKTOP),
],
background: Container(
decoration:
BoxDecoration(color: Theme.of(context).scaffoldBackgroundColor),
),
),
And HomePage() has WillPopScope as root children, but it doesn't work
Okey, I solve it by changing builder to home:
home: Builder(
builder: (context) => ResponsiveWrapper.builder(
const HomePage(),
maxWidth: 1200,
minWidth: 480,
defaultScale: true,
breakpoints: [
const ResponsiveBreakpoint.resize(480, name: MOBILE),
const ResponsiveBreakpoint.resize(800, name: TABLET),
const ResponsiveBreakpoint.resize(1000, name: DESKTOP),
],
background: Container(
decoration: BoxDecoration(
color: Theme.of(context).scaffoldBackgroundColor),
),
),
));
WillPopScope was disabled cause builder property in MaterialApp is used to "inserting widgets above the Navigator".
I suppose you probably need to change the documentation :)
And also thank you for the awesome lib!! I love it :heart_on_fire: