article 0.0.10 article: ^0.0.10 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: 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.",
),
),
],
),
),
);
}
}