Created
May 30, 2018 16:59
-
-
Save HansMuller/e1e7c655fa2952feb149e09299cd87e9 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
// Empty trailing Container in ListTile widget causes layout issues #17666 | |
// https://github.com/flutter/flutter/issues/17666 | |
// ListTile was substantially updated in https://github.com/flutter/flutter/pull/17661 | |
import 'package:flutter/material.dart'; | |
class ListTileDemo extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return new Scaffold( | |
body: new Container( | |
padding: const EdgeInsets.all(16.0), | |
alignment: Alignment.center, | |
child: new ListTile( | |
title: const Text('Marks & Spencer'), | |
subtitle: const Text('01/12/2017'), | |
trailing: const Text('-2.20'), | |
), | |
), | |
); | |
} | |
} | |
void main() { | |
runApp( | |
new MaterialApp(home: new ListTileDemo()) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment