layout_web 1.0.0 copy "layout_web: ^1.0.0" to clipboard
layout_web: ^1.0.0 copied to clipboard

discontinued

Build fully responsive layouts with minimal coding. Allows for dynamic fully dynamic design and includes several helper classes to help build layouts more efficiently.

example/lib/main.dart

import 'package:flutter_for_web/material.dart';
import 'package:layout_web/layout_web.dart';

class MyHomePage extends StatefulWidget {
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _add = 0;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text('Test'),
        ),
        body: Layout([
          // Rows
          Cell([
            // Rows
            1 + _add,
            '2'
          ], color: Colors.blue, flex: 2,),
          Cell([
            [
              // Columns
              '3', '4',
              Cell([
                // Rows (as a column)
                '5',
                '6'
              ], padding: 32, color: Colors.blue)
            ]
          ], color: Colors.red, padding: 16, flex: 2),
          Cell(RaisedButton(child: Text('PRESS ME'), onPressed: () => setState(() => _add += 1),)),
        ]));
  }
}

MaterialApp _myApp = MaterialApp(
  home: MyHomePage(),
);

void main() => runApp(_myApp);
0
likes
20
pub points
0%
popularity

Publisher

unverified uploader

Build fully responsive layouts with minimal coding. Allows for dynamic fully dynamic design and includes several helper classes to help build layouts more efficiently.

Homepage

License

unknown (LICENSE)

Dependencies

flutter_for_web, flutter_for_web_ui

More

Packages that depend on layout_web