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

outdated

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: H3(
                text: "Title of the article.",
              ),
              body: Column(
                children: [
                  Section(
                    child: Column(
                      children: [
                        H5(
                          text: "Header 1.",
                        ),
                        P(
                          text: "Body 1.",
                        ),
                        //Other Widgets.
                      ],
                    ),
                  ),
                  Section(
                    child: Column(
                      children: [
                        H5(
                          text: "Header 2.",
                        ),
                        P(
                          text: "Body 2.",
                        ),
                      ],
                    ),
                  )
                ],
              ),
              footer: P(
                text: "Footer element.",
              ),
            ),
          ],
        ),
      ),
    );
  }
}
1
likes
0
pub points
35%
popularity

Publisher

unverified uploader

A package to create an article style page.

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on article