auto_layout 0.0.1 copy "auto_layout: ^0.0.1" to clipboard
auto_layout: ^0.0.1 copied to clipboard

outdated

auto layout with difference device

simple_layout #

It is a very simple layout for flutter.

Getting Started #

import 'package:flutter/material.dart';
import 'package:simple_layout/simple_layout.dart';

void main() => runApp(SampleLayout());

class SampleLayout extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        home: SimpleLayout(
          largeBreakpoint: 500, //  screen > largeBreakpoint,then always show the drawer
            title: Text("Sample"),
            itemCount: 10,
            menuItemBuilder: (context, index) {
              return Text("menu_$index");
            },
            bodyItemBuilder: (context, index) {
              return index == null ? Text("Welcome") : Text("body_$index");
            }));
  }
}

Screenshot #

show gif pic1 pic2 pic3 pic4

4
likes
30
pub points
40%
popularity

Publisher

unverified uploader

auto layout with difference device

License

Apache-2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on auto_layout