Home Screen

Location

magaza_ui/screens/home.dart

Screenshot

Customization

HomeScreen is a collection of FeedItem() widgets wrapped in a Flat FlatButton. FeedItem widgets take five parameters for use. See example below:

FlatButton(
  padding: EdgeInsets.zero,
  onPressed: (){
    Navigator.pushNamed(context, '/story-highlight');
  },
  child: FeedItem(
    title: 'Himalayas',
    timestamp: '23 Mins ago',
    category: 'SOCIAL',
    imageUrl: 'https://i.picsum.photos/id/866/300/200.jpg',
    special: true,
  ),
),

Adding a 'special' property to true will add a 'special' tag to the FeedItem() widget.

Last updated