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

outdated

A library to make the code more readable

example/lib/main.dart

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

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return Nester(
      children: [
        (next) => MaterialApp(
              title: 'Flutter Demo',
              theme: ThemeData(
                primarySwatch: Colors.blue,
              ),
              home: next,
            ),
        (next) => Scaffold(
              appBar: AppBar(
                title: const Text("Example"),
              ),
              body: next,
            ),
        (next) => Padding(
              padding: const EdgeInsets.all(20),
              child: next,
            ),
        (next) => Container(
              color: Colors.black12,
              child: next,
            ),
        (next) => Center(child: next),
        (next) => Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: const <Widget>[Text("Just a text")],
            ),
      ],
    );
  }
}
4
likes
0
pub points
36%
popularity

Publisher

unverified uploader

A library to make the code more readable

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on nester