Support hairline borders
Previously, border with '0' was ambiguous. Sometimes we treated it as hairline borders, sometimes as "don't show the border", though even in the latter case we did some graphics work sometimes. Now we have an explicit BorderStyle.none flag to not draw the border efficiently.
This commit is contained in:
@@ -134,7 +134,7 @@ class SectorAppState extends State<SectorApp> {
|
||||
child: new Container(
|
||||
margin: new EdgeInsets.all(8.0),
|
||||
decoration: new BoxDecoration(
|
||||
border: new Border.all(color: new Color(0xFF000000))
|
||||
border: new Border.all()
|
||||
),
|
||||
padding: new EdgeInsets.all(8.0),
|
||||
child: new WidgetToRenderBoxAdapter(
|
||||
|
||||
@@ -42,7 +42,7 @@ class ListDemoState extends State<ListDemo> {
|
||||
_bottomSheet = scaffoldKey.currentState.showBottomSheet((BuildContext bottomSheetContext) {
|
||||
return new Container(
|
||||
decoration: new BoxDecoration(
|
||||
border: new Border(top: new BorderSide(color: Colors.black26, width: 1.0))
|
||||
border: new Border(top: new BorderSide(color: Colors.black26))
|
||||
),
|
||||
child: new Column(
|
||||
mainAxisAlignment: MainAxisAlignment.collapse,
|
||||
|
||||
@@ -16,7 +16,7 @@ class PersistentBottomSheetDemo extends StatelessWidget {
|
||||
Scaffold.of(context).showBottomSheet((_) {
|
||||
return new Container(
|
||||
decoration: new BoxDecoration(
|
||||
border: new Border(top: new BorderSide(color: Colors.black26, width: 1.0))
|
||||
border: new Border(top: new BorderSide(color: Colors.black26))
|
||||
),
|
||||
child: new Padding(
|
||||
padding: const EdgeInsets.all(32.0),
|
||||
|
||||
@@ -100,7 +100,7 @@ class StockSymbolBottomSheet extends StatelessWidget {
|
||||
return new Container(
|
||||
padding: new EdgeInsets.all(10.0),
|
||||
decoration: new BoxDecoration(
|
||||
border: new Border(top: new BorderSide(color: Colors.black26, width: 1.0))
|
||||
border: new Border(top: new BorderSide(color: Colors.black26))
|
||||
),
|
||||
child: new StockSymbolView(stock: stock)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user