add title to Mzansi Ai
This commit is contained in:
@@ -51,6 +51,13 @@ class _MzansiAiState extends State<MzansiAi> {
|
|||||||
return toolBodies;
|
return toolBodies;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
List<String> getToolTitle() {
|
||||||
|
List<String> toolTitles = [
|
||||||
|
"Ask Mzansi",
|
||||||
|
];
|
||||||
|
return toolTitles;
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
@@ -62,6 +69,7 @@ class _MzansiAiState extends State<MzansiAi> {
|
|||||||
appActionButton: getAction(),
|
appActionButton: getAction(),
|
||||||
appTools: getTools(),
|
appTools: getTools(),
|
||||||
appBody: getToolBody(),
|
appBody: getToolBody(),
|
||||||
|
appToolTitles: getToolTitle(),
|
||||||
selectedbodyIndex: _selcetedIndex,
|
selectedbodyIndex: _selcetedIndex,
|
||||||
onIndexChange: (newValue) {
|
onIndexChange: (newValue) {
|
||||||
setState(() {
|
setState(() {
|
||||||
|
|||||||
@@ -610,55 +610,6 @@ class _AiChatState extends State<AiChat> {
|
|||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
children: [
|
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(),
|
_getSettings(),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
|
|||||||
Reference in New Issue
Block a user