materialWrapper function

Widget materialWrapper(
  1. BuildContext _,
  2. Widget? child
)

Use this wrapper to wrap each story into a MaterialApp widget.

Implementation

Widget materialWrapper(BuildContext _, Widget? child) => MaterialApp(
      theme: ThemeData.light(),
      darkTheme: ThemeData.dark(),
      debugShowCheckedModeBanner: false,
      home: Scaffold(body: Center(child: child)),
    );