“安全植被”只避免系统侵扰,而不是贵套的其他元素()。
Potentially you could achieve the desired effect by using the bottomNavigationBar instead of bottomSheet property of the Scaffold:
import package:flutter/material.dart ;
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
appBar: AppBar(),
body: SafeArea(
child: ListView.builder(
itemBuilder: (context, index) => Text(
Very Long Text Item $index ,
textAlign: TextAlign.center,
),
),
),
bottomNavigationBar: Container(
child: ElevatedButton(
onPressed: () => print( hit ), child: Text( Button )),
),
),
);
}
}