Я пытался установить радиус моей границы равным нулю, когда контейнер разворачивается на весь экран, но, похоже, мой код не изменился. помогите мне создать мой первый проект флаттера!
Widget build(BuildContext context) {
return Container(
decoration: BoxDecoration(
color: widget.backgroundColor,
borderRadius: isFull
? BorderRadius.all(
Radius.circular(0.0),
)
: BorderRadius.only(
bottomLeft: Radius.circular(150.0),
)),
height: _currentHeight,
child: Column(
children: <Widget>[
Expanded(
child: SingleChildScrollView(
child: widget.child,
),
),
GestureDetector(
onVerticalDragUpdate: (a) {
var _currentDy = a.globalPosition.dy;
var newHeight = _currentDy;
setState(() {
if (newHeight >= widget.minHeight) {
_currentHeight = newHeight;
} else {
_currentHeight = widget.minHeight;
}
if (_currentDy == widget.height*0.9) {
isFull = true;
} else {
isFull = false;
}
});
},`