adaptive_screen 0.1.1 copy "adaptive_screen: ^0.1.1" to clipboard
adaptive_screen: ^0.1.1 copied to clipboard

Simple represent widget for representative screen.

AdaptiveScreen is simple just return widget which represent widget for certain screen size [phone], [desktop], [mediumScreen] or [largerScreen] based on common screen size.

Screen Size #

static double largeScreen = 960.0; static double mediumScreen = 640.0; static double smallPhone = 300.0; static double phone = 640.0; static double largePhone = 640.0; static double tablet = 700.0;

Usage #

class MyExample extends StatelessWidget {
  const MyExample({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const AdaptiveScreen(
      phone: Text('will show when screen on phone size'),
      largeScreen: Text('will show when screen on large screen size'),
      mediumScreen: Text('will show when screen on medium screen size'),
    );
  }
}
3
likes
0
pub points
32%
popularity

Publisher

unverified uploader

Simple represent widget for representative screen.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on adaptive_screen