List View

Coding Flutter List View
Flutter:: Horizontal List View
November 21, 2019
0
,
lib/main.dart import 'package:flutter/material.dart'; void main() { runApp(MyHorizontalSample1()); } class MyHorizontalSample1 extends StatelessWidget{ Container MyArticles(String imageVal, String heading, String subHeading){ return Container( width: 160.0, child: Card( child: Wrap( children: [ Image.asset( 'images/pavlova.jpg' ), ListTile( title: Text(heading), subtitle: Text(subHeading), ), ], ), ), ); } @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, title: 'Flutter Horizontal […]