add tool titles and and examples

This commit is contained in:
2025-05-29 14:47:57 +02:00
parent 2dcb96e4ec
commit 4c4f2f5e28
2 changed files with 31 additions and 2 deletions

View File

@@ -117,12 +117,21 @@ class _PackageTestState extends State<PackageTest> {
return toolBodies;
}
List<String> getToolTitle() {
List<String> toolTitles = [
"Tool One",
"Tool Two",
];
return toolTitles;
}
@override
Widget build(BuildContext context) {
return MihPackage(
appActionButton: getAction(),
appTools: getTools(),
appBody: getToolBody(),
appToolTitles: getToolTitle(),
selectedbodyIndex: _selcetedIndex,
onIndexChange: (newValue) {
setState(() {