device_preview 0.1.0-beta copy "device_preview: ^0.1.0-beta" to clipboard
device_preview: ^0.1.0-beta copied to clipboard

outdated

Preview of your Flutter app on various device screen configurations from one of your devices.

flutter_device_preview (WIP) #

Preview of your app on various device screen configurations from one of your devices.

Quickstart #

void main() => runApp(DevicePreview(
    child: MyApp(),
  ),
);

Note #

Until the WidgetsApp offers a way to override MediaQuery (I made a proposal here), you will have to wrap your page in a MediaQuery. A good candidate is onGeneratedRoute.

 return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MediaQuery(
              data: DevicePreview.mediaQuery(context),
              child: MyHomePage(title: 'Flutter Demo Home Page')),
    );

Roadmap #

[ ] Hide frame [ ] Android devices [ ] Landscape mode [ ] Screenshot (share, mode) [ ] Documentation [ ] Clean code

3573
likes
0
pub points
99%
popularity

Publisher

verified publisheraloisdeniel.com

Preview of your Flutter app on various device screen configurations from one of your devices.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, meta

More

Packages that depend on device_preview