A Flutter sample app based on the Material study Fortnightly (a hypothetical, online newspaper.) It showcases print-quality, custom typography, Material Theming, and text-heavy UI design and layout.
For info on the Fortnightly Material Study, see: https://material.io/design/material-studies/fortnightly.html
MaterialApp
(theme:
).SafeArea
adds padding around notches and virtual home buttons on screens that have them (like iPhone X+). Here, it protects the ShortAppBar
from overlapping with the status bar (time) and makes sure the bottom of the newspaper article has padding beneath it if necessary.SingleChildScrollView
widget which ensures that the entire article can be viewed no matter what the screen's size or orientation is.Text
widget with text ' ¬ ' has a TextStyle
that changes one parameter of an inherited TextStyle
using `.apply()``.Text
widget with text ‘Connor Eghan’ has a TextStyle
created explicitly instead of inheriting from theming.FontWeight
value like FontWeight.w800
for Merriweather-Bold.ttf.If you have a general question about developing in Flutter, the best places to go are: