article 0.0.14 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"),
),
],
),
),
);
}
}