Created
June 9, 2025 11:04
-
-
Save chchchchch123c/bdba980df3f67a153516efdc037ac2a5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() => runApp(MaterialApp(home: Test())); | |
class Test extends StatelessWidget { | |
const Test({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
body: ListView( | |
padding: const EdgeInsets.all(8), | |
children: <Widget>[ | |
Container( | |
height: 50, | |
color: Colors.amber[600], | |
child: const Center(child: Text('Entry A')), | |
), | |
Container( | |
height: 50, | |
color: Colors.amber[500], | |
child: const Center(child: Text('Entry B')), | |
), | |
Container( | |
height: 50, | |
color: Colors.amber[100], | |
child: const Center(child: Text('Entry C')), | |
), | |
], | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment