forked from firka/flutter
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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user