Skip to content

Commit ae49665

Browse files
committed
update: MainPage's ListView BouncingScrollPhysics
1 parent 6c9f21b commit ae49665

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/component/main/MainPage.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ class _MainState extends State<MainPage> {
121121
List<String> sortTitles = _getSortTitles();
122122

123123
ListView listView = ListView.builder(
124+
physics: BouncingScrollPhysics(),
124125
itemBuilder: (BuildContext context, int index) {
125126
return GestureDetector(
126127
onTap: () {
@@ -196,6 +197,7 @@ class _MainState extends State<MainPage> {
196197
Drawer _getDrawer() {
197198
return Drawer(
198199
child: SingleChildScrollView(
200+
physics: BouncingScrollPhysics(),
199201
child: Column(
200202
children: <Widget>[
201203
GestureDetector(
@@ -337,7 +339,7 @@ class _MainState extends State<MainPage> {
337339
ListTile(
338340
onTap: () {
339341
setState(
340-
() {
342+
() {
341343
_drawerOpenedRight = !_drawerOpenedRight;
342344
},
343345
);
@@ -347,7 +349,7 @@ class _MainState extends State<MainPage> {
347349
value: _drawerOpenedRight,
348350
onChanged: (bool value) {
349351
setState(
350-
() {
352+
() {
351353
_drawerOpenedRight = value;
352354
},
353355
);

0 commit comments

Comments
 (0)