Advertisement
yudiwibisono

listviewdivider

May 26th, 2023
818
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 0.76 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. void main() {
  4.   runApp(const MyApp());
  5. }
  6.  
  7. class MyApp extends StatelessWidget {
  8.   const MyApp({Key? key}) : super(key: key);
  9.  
  10.   @override
  11.   Widget build(BuildContext context) {
  12.     return MaterialApp(
  13.       title: 'Hello App',
  14.       home: Scaffold(
  15.         appBar: AppBar(
  16.           title: const Text('Hello'),
  17.         ),
  18.         body: Center(
  19.           child: ListView(padding: const EdgeInsets.all(20), children: const [
  20.             Text('Hello World 1a'),
  21.             Divider(
  22.               height: 30,
  23.             ),
  24.             Text('Hello World 1b'),
  25.             Divider(
  26.               height: 30,
  27.             ),
  28.             Text('Hello World 1c'),
  29.           ]),
  30.         ),
  31.       ),
  32.     );
  33.   }
  34. }
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement