inital add wool modal design
This commit is contained in:
parent
2445de13af
commit
22aca9618e
4 changed files with 44 additions and 5 deletions
|
|
@ -39,6 +39,7 @@ class Woolcard extends StatelessWidget {
|
|||
child: IconButton(
|
||||
onPressed: () {
|
||||
showModalBottomSheet(
|
||||
showDragHandle: true,
|
||||
context: context,
|
||||
builder: (context) {
|
||||
return WoolModal(id);
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
class ModalWrapper extends StatelessWidget {
|
||||
ModalWrapper(this.child, {super.key});
|
||||
ModalWrapper(this.child, {this.title, key});
|
||||
|
||||
Widget child;
|
||||
|
||||
String? title;
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ClipRRect(
|
||||
|
|
@ -12,8 +12,18 @@ class ModalWrapper extends StatelessWidget {
|
|||
child: SizedBox(
|
||||
width: 750,
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(10),
|
||||
child: child,
|
||||
padding: EdgeInsets.symmetric(horizontal: 25, vertical: 10),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
title ?? "",
|
||||
textAlign: TextAlign.start,
|
||||
style: Theme.of(context).textTheme.headlineMedium,
|
||||
),
|
||||
child
|
||||
],
|
||||
),
|
||||
)));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue