adaptive_screen_orientation 1.0.2 copy "adaptive_screen_orientation: ^1.0.2" to clipboard
adaptive_screen_orientation: ^1.0.2 copied to clipboard

Simplify Adaptive Screen Management for mobile, tablet, and desktop with screen breakpoint and orientation.

example/lib/main.dart

import 'package:adaptive_screen_orientation/adaptive_screen_orientation.dart';
import 'package:example/src/screens/desktop.dart';
import 'package:example/src/screens/mobile_landscape.dart';
import 'package:example/src/screens/mobile_portrait.dart';
import 'package:example/src/screens/tablet_landscape.dart';
import 'package:example/src/screens/tablet_portrait.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

void main() {
  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: Scaffold(
        body: Column(
          children: [
            AdaptiveScreenOrientation(
              useAvailableLayout: false,
              mobilePortrait: MobilePortrait(),
              mobileLandscape: MobileLandscape(),
              tabletPortrait: TabletPortrait(),
              tabletLandscape: TabletLandscape(),
              desktop: Desktop(),
            ),
          ],
        ),
      ),
    );
  }
}
2
likes
150
points
54
downloads

Documentation

API reference

Publisher

verified publisherteradaily.com

Weekly Downloads

Simplify Adaptive Screen Management for mobile, tablet, and desktop with screen breakpoint and orientation.

Homepage
Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on adaptive_screen_orientation