Added Scrollbar, removed ScrollbarPainter (#3203)

* Added Scrollbar, removed ScrollbarPainter

* removed a dead import

* updated per review feedback

* Only call dispatch if the widgets State is still mounted
This commit is contained in:
Hans Muller
2016-04-07 16:59:51 -07:00
parent 4bcef2a340
commit 6335872802
7 changed files with 203 additions and 113 deletions

View File

@@ -191,11 +191,13 @@ class ListDemoState extends State<ListDemo> {
)
]
),
body: new MaterialList(
type: _itemType,
scrollablePadding: new EdgeInsets.all(_dense ? 4.0 : 8.0),
clampOverscrolls: true,
children: listItems
body: new Scrollbar(
child: new MaterialList(
type: _itemType,
scrollablePadding: new EdgeInsets.all(_dense ? 4.0 : 8.0),
clampOverscrolls: true,
children: listItems
)
)
);
}