flutter_device_separator

Last updated:

0 purchases

flutter_device_separator Image
flutter_device_separator Images
Add to Cart

Description:

flutter device separator

Motivation #
Current support is web only. In the future, it plans to support a variety of platforms.
This package allows you to change widgets for each device (PC, tablet, mobile).
Getting started #
Add dependency.
dependencies:
flutter_device_separator: ^1.0.0
copied to clipboard
Usage #
import 'package:flutter_device_separator/flutter_device_separator.dart';

DeviceSeparatorWidget(
// Specify widget for PC.
pc: buildPCWidget(),
// Specify widget for Tablet.
tablet: buildTabletWidget(),
// Specify widget for Mobile.
mobile: buildMobileWidget(),
// Specify widget for orElse. If mobile is null and the user is using mobile, display this widget.
orElse: buildOrElseWidget(),
)
copied to clipboard
Additional information #
Device is determined by UserAgent.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.