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:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user