Channel name was changed to «مشاريع برمجة كاملة بسيطة وأكواد جاهزة projects»
import 'package:flutter/material.dart';
class DraggableScrollableSheetWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
children: <Widget>[
Expanded(
child: DraggableScrollableSheet(
builder: (context, scrollController) {
return SingleChildScrollView(
controller: scrollController,
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(20),
color: Colors.teal,
),
child: Column(
children: <Widget>[
FlutterLogo(
size: 100,
),
FlutterLogo(
size: 100,
),
FlutterLogo(
size: 100,
),
FlutterLogo(
size: 100,
)
],
),
),
);
},
initialChildSize: 0.25,
maxChildSize: 0.8,
),
),
],
);
}
}
class DraggableScrollableSheetWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
children: <Widget>[
Expanded(
child: DraggableScrollableSheet(
builder: (context, scrollController) {
return SingleChildScrollView(
controller: scrollController,
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(20),
color: Colors.teal,
),
child: Column(
children: <Widget>[
FlutterLogo(
size: 100,
),
FlutterLogo(
size: 100,
),
FlutterLogo(
size: 100,
),
FlutterLogo(
size: 100,
)
],
),
),
);
},
initialChildSize: 0.25,
maxChildSize: 0.8,
),
),
],
);
}
}