Created
December 21, 2024 11:22
-
-
Save iapicca/7f00de6535adf6dd94c19a868443093d 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: Scaffold( | |
body: Column( | |
children: [ | |
Expanded( | |
child: ListView.builder( | |
itemBuilder: (context, index) => ListTile( | |
onTap: () {}, | |
title: Text('Title $index'), | |
subtitle: Text('Subtitle $index'), | |
trailing: ElevatedButton( | |
onPressed: () {}, | |
child: const Text('Add'), | |
), | |
), | |
), | |
), | |
], | |
), | |
), | |
), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment