Skip to content

Instantly share code, notes, and snippets.

@chchchchch123c
Created June 9, 2025 11:04
Show Gist options
  • Save chchchchch123c/bdba980df3f67a153516efdc037ac2a5 to your computer and use it in GitHub Desktop.
Save chchchchch123c/bdba980df3f67a153516efdc037ac2a5 to your computer and use it in GitHub Desktop.
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