Bottom Draggable Sheet fix to PageBuilder
parent
7544788744
commit
77ed845505
|
|
@ -248,27 +248,40 @@ class KassaTab extends StatelessWidget {
|
||||||
|
|
||||||
|
|
||||||
void showModalBottomSheetCatalog(BuildContext context, String action) {
|
void showModalBottomSheetCatalog(BuildContext context, String action) {
|
||||||
showModalBottomSheet(
|
|
||||||
context: context,
|
|
||||||
isScrollControlled: true,
|
|
||||||
backgroundColor: Colors.transparent,
|
|
||||||
builder: (context) {
|
|
||||||
return DraggableScrollableSheet(
|
|
||||||
initialChildSize: 0.8,
|
|
||||||
maxChildSize: 0.95,
|
|
||||||
minChildSize: 0.5,
|
|
||||||
builder: (BuildContext context, ScrollController scrollController) {
|
|
||||||
if (action == 'add') {
|
if (action == 'add') {
|
||||||
return ProductAddBottomSheet(
|
Navigator.push(
|
||||||
scrollController: scrollController,
|
context,
|
||||||
|
MaterialPageRoute(builder: (context) => ProductAddBottomSheet())
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return CatalogBottomSheet(
|
Navigator.push(
|
||||||
scrollController: scrollController,
|
context,
|
||||||
|
MaterialPageRoute(builder: (context) => CatalogBottomSheet())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
|
||||||
);
|
// showModalBottomSheet(
|
||||||
});
|
// context: context,
|
||||||
|
// isScrollControlled: true,
|
||||||
|
// backgroundColor: Colors.transparent,
|
||||||
|
// builder: (context) {
|
||||||
|
// return DraggableScrollableSheet(
|
||||||
|
// initialChildSize: 0.8,
|
||||||
|
// maxChildSize: 0.95,
|
||||||
|
// minChildSize: 0.5,
|
||||||
|
// builder: (BuildContext context, ScrollController scrollController) {
|
||||||
|
// if (action == 'add') {
|
||||||
|
// return ProductAddBottomSheet(
|
||||||
|
// scrollController: scrollController,
|
||||||
|
// );
|
||||||
|
// } else {
|
||||||
|
// return CatalogBottomSheet(
|
||||||
|
// scrollController: scrollController,
|
||||||
|
// );
|
||||||
|
// }
|
||||||
|
// },
|
||||||
|
// );
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ class _ProductAddBottomSheetState extends State<ProductAddBottomSheet> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
body: Padding(
|
body: Padding(
|
||||||
padding: const EdgeInsets.only(top: 15, left: 10, right: 15),
|
padding: EdgeInsets.only(top: 15, left: 10, right: 15, bottom: 0 ),
|
||||||
child: ListView(
|
child: ListView(
|
||||||
controller: widget.scrollController,
|
controller: widget.scrollController,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
name: aman_kassa_flutter
|
name: aman_kassa_flutter
|
||||||
description: A new Flutter project.
|
description: A new Flutter project.
|
||||||
version: 1.2.2+28
|
version: 1.2.3+29
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.3.0 <3.0.0'
|
sdk: '>=2.3.0 <3.0.0'
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue