layout 1.0.5 copy "layout: ^1.0.5" to clipboard
layout: ^1.0.5 copied to clipboard

Layout encourage consistency across platforms, environments, and screen sizes by using uniform elements and spacing.

example/lib/main.dart

import 'package:example/layout_bar.dart';
import 'package:flutter/material.dart';
import 'package:layout/layout.dart';

import 'example.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return Layout(
      child: MaterialApp(
          title: 'Flutter Demo',
          debugShowCheckedModeBanner: false,
          theme: ThemeData(
            appBarTheme: AppBarTheme(
              color: Colors.white,
            ),
            scaffoldBackgroundColor: Colors.grey[200],
            primarySwatch: Colors.blue,
          ),
          builder: (context, child) {
            return Column(
              crossAxisAlignment: CrossAxisAlignment.stretch,
              children: [Expanded(child: child!), LayoutBar()],
            );
          },
          home: MyHomePage(title: 'Layout')),
    );
  }
}
copied to clipboard
348
likes
150
points
6.35k
downloads

Publisher

verified publisherjaimeblasco.com

Weekly Downloads

2024.09.13 - 2025.03.28

Layout encourage consistency across platforms, environments, and screen sizes by using uniform elements and spacing.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, gap

More

Packages that depend on layout