article 0.0.14 copy "article: ^0.0.14" to clipboard
article: ^0.0.14 copied to clipboard

A package to create an article style page.

example/example.dart

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: ListView(
          children: [
            Article(
              maxWidth: 800,
              header: H1(child: "Header1"),
              body: Column(
                children: [
                  Section(
                    child: Column(
                      children: [
                        H1(child: "Header1"),
                        P(child: "Paragraph")
                        //Other widgets...
                      ],
                    ),
                  ),
                  Section(
                    child: Column(
                      children: [
                        H1(child: "Header1"),
                        P(child: "Paragraph")
                        //Other widgets...
                      ],
                    ),
                  ),
                ],
              ),
              footer: P(child: "Footer"),
            ),
          ],
        ),
      ),
    );
  }
}
1
likes
150
pub points
35%
popularity

Publisher

unverified uploader

A package to create an article style page.

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on article