작성
·
316
답변 1
1
안녕하세요!
parent 파라미터에 AlwaysScrollablePhysics를 추가해주세요!
예제 첨부해드립니다.
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
void main() {
runApp(
MaterialApp(
home: MyApp(),
),
);
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return Scaffold(
body: ListView.builder(
physics: BouncingScrollPhysics(
parent: AlwaysScrollableScrollPhysics()
),
itemCount: 1,
itemBuilder: (context, index) {
return Container(
height: 100,
color: Colors.deepPurple,
);
},
),
);
}
}
감사합니다!