add title to Mzansi Ai

This commit is contained in:
2025-05-29 15:18:53 +02:00
parent 67021efd8f
commit ddeb84c9ee
2 changed files with 8 additions and 49 deletions

View File

@@ -51,6 +51,13 @@ class _MzansiAiState extends State<MzansiAi> {
return toolBodies;
}
List<String> getToolTitle() {
List<String> toolTitles = [
"Ask Mzansi",
];
return toolTitles;
}
@override
void initState() {
super.initState();
@@ -62,6 +69,7 @@ class _MzansiAiState extends State<MzansiAi> {
appActionButton: getAction(),
appTools: getTools(),
appBody: getToolBody(),
appToolTitles: getToolTitle(),
selectedbodyIndex: _selcetedIndex,
onIndexChange: (newValue) {
setState(() {

View File

@@ -610,55 +610,6 @@ class _AiChatState extends State<AiChat> {
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
mainAxisSize: MainAxisSize.max,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
// Visibility(
// visible: _showModelOptions.value == true,
// child: IconButton.filled(
// iconSize: 20,
// onPressed: () {
// if (_showModelOptions.value == true) {
// setState(() {
// _showModelOptions.value = false;
// });
// } else {
// setState(() {
// _showModelOptions.value = true;
// });
// }
// },
// icon: const Icon(
// Icons.settings,
// ),
// ),
// ),
Expanded(
child: Text(
"Mzansi AI",
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 25,
fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)!
.theme
.secondaryColor(),
),
),
),
// Expanded(
// child: Container(
// alignment: Alignment.centerRight,
// child: IconButton(
// onPressed: () {
// _resetChat();
// },
// icon: const Icon(Icons.refresh),
// ),
// ),
// ),
],
),
_getSettings(),
Expanded(
child: GestureDetector(