Replace EdgeInsets.TRBL with EdgeInsets.fromLTRB

This matches the pattern from Rect. I've left EdgeInsets.TRBL marked as
deprecated to give clients a chance to update.

Fixes #2860
This commit is contained in:
Adam Barth
2016-03-24 13:36:07 -07:00
parent 7711b1f660
commit c8c325d095
8 changed files with 39 additions and 32 deletions

View File

@@ -78,7 +78,7 @@ class _TabsFabDemoState extends State<TabsFabDemo> {
return new Container(
key: new ValueKey<String>(page.label),
padding: const EdgeInsets.TRBL(48.0, 48.0, 96.0, 48.0),
padding: const EdgeInsets.fromLTRB(48.0, 48.0, 48.0, 96.0),
child: new Card(
child: new Center(
child: new Text(page.label, style: textStyle)

View File

@@ -72,7 +72,7 @@ class StockRow extends StatelessWidget {
onDoubleTap: _getHandler(onDoubleTap),
onLongPress: _getHandler(onLongPressed),
child: new Container(
padding: const EdgeInsets.TRBL(16.0, 16.0, 20.0, 16.0),
padding: const EdgeInsets.fromLTRB(16.0, 16.0, 16.0, 20.0),
decoration: new BoxDecoration(
border: new Border(
bottom: new BorderSide(color: Theme.of(context).dividerColor)