Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save HansMuller/e1e7c655fa2952feb149e09299cd87e9 to your computer and use it in GitHub Desktop.
Save HansMuller/e1e7c655fa2952feb149e09299cd87e9 to your computer and use it in GitHub Desktop.
// 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