tuiBuild method
Implementation
@override
Widget tuiBuild(BuildContext context, TUIKitBuildValue value) {
final theme = value.theme;
return Container(
padding: const EdgeInsets.all(4),
decoration: const BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.all(Radius.circular(10)),
),
child: ConstrainedBox(
constraints: BoxConstraints(
maxWidth: min(MediaQuery.of(context).size.width * 0.7, 350),
),
child: Table(
columnWidths: const <int, TableColumnWidth>{
0: IntrinsicColumnWidth(),
},
children: <TableRow>[
...renderMenuItems(theme).map((e) => TableRow(
children: <Widget>[
e
]
))
]
),
),
);
}