diff --git a/Frontend/lib/mih_components/mih_package_components/Example/package_tools/package_tool_one.dart b/Frontend/lib/mih_components/mih_package_components/Example/package_tools/package_tool_one.dart index 87e4786d..428ee9db 100644 --- a/Frontend/lib/mih_components/mih_package_components/Example/package_tools/package_tool_one.dart +++ b/Frontend/lib/mih_components/mih_package_components/Example/package_tools/package_tool_one.dart @@ -52,7 +52,8 @@ class _PackageToolOneState extends State { onWindowTapClose: () { Navigator.of(context).pop(); }, - windowBody: Text("Testing Window Body"), + windowBody: Text( + "Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body Testing Window Body "), ); }, ); diff --git a/Frontend/lib/mih_components/mih_package_components/mih_app_window.dart b/Frontend/lib/mih_components/mih_package_components/mih_app_window.dart index 74a58bc8..e7aed14b 100644 --- a/Frontend/lib/mih_components/mih_package_components/mih_app_window.dart +++ b/Frontend/lib/mih_components/mih_package_components/mih_app_window.dart @@ -146,8 +146,8 @@ class _MihAppWindowState extends State { Flexible( child: Padding( padding: EdgeInsets.only( - left: horizontralWindowPadding, - right: horizontralWindowPadding, + left: 25, + right: 25, bottom: vertticalWindowPadding, ), child: ConstrainedBox( diff --git a/Frontend/lib/mih_packages/mzansi_ai/package_tools/ai_chat.dart b/Frontend/lib/mih_packages/mzansi_ai/package_tools/ai_chat.dart index 030d3220..279c9364 100644 --- a/Frontend/lib/mih_packages/mzansi_ai/package_tools/ai_chat.dart +++ b/Frontend/lib/mih_packages/mzansi_ai/package_tools/ai_chat.dart @@ -235,67 +235,68 @@ class _AiChatState extends State { _flutterTts.stop(); Navigator.of(context).pop(); }, - windowBody: Column( - children: [ - Stack( - children: [ - Column( - children: [ - Text( - snapshot.requireData, - textAlign: TextAlign.left, - style: TextStyle( - color: MzanziInnovationHub.of(context)! - .theme - .secondaryColor(), - fontSize: _chatFrontSize, - fontWeight: FontWeight.bold, - ), - ), - ], - ), - Positioned( - bottom: 0, - right: 0, - child: Visibility( - visible: _aiThinking == false, - child: IconButton.filled( - iconSize: 25, - autofocus: true, - onPressed: () { - _captureAIResponse(snapshot.requireData); - _flutterTts.stop(); - Navigator.of(context).pop(); - }, - focusColor: MzanziInnovationHub.of(context)! + windowBody: SizedBox( + width: double.infinity, + // color: Colors.black, + child: Column( + mainAxisSize: MainAxisSize.max, + children: [ + Stack( + children: [ + Text( + snapshot.requireData, + textAlign: TextAlign.left, + style: TextStyle( + color: MzanziInnovationHub.of(context)! .theme - .successColor(), - icon: Icon( - Icons.check, - color: MzanziInnovationHub.of(context)! - .theme - .primaryColor(), - ), + .secondaryColor(), + fontSize: _chatFrontSize, + fontWeight: FontWeight.bold, ), - - // MIHButton( - // onTap: () { - // _captureAIResponse(snapshot.requireData); - // Navigator.of(context).pop(); - // }, - // buttonText: "Continue", - // buttonColor: MzanziInnovationHub.of(context)! - // .theme - // .successColor(), - // textColor: MzanziInnovationHub.of(context)! - // .theme - // .primaryColor(), - // ), ), - ), - ], - ), - ], + Positioned( + bottom: 0, + right: 0, + child: Visibility( + visible: _aiThinking == false, + child: IconButton.filled( + iconSize: 25, + autofocus: true, + onPressed: () { + _captureAIResponse(snapshot.requireData); + _flutterTts.stop(); + Navigator.of(context).pop(); + }, + focusColor: MzanziInnovationHub.of(context)! + .theme + .successColor(), + icon: Icon( + Icons.check, + color: MzanziInnovationHub.of(context)! + .theme + .primaryColor(), + ), + ), + + // MIHButton( + // onTap: () { + // _captureAIResponse(snapshot.requireData); + // Navigator.of(context).pop(); + // }, + // buttonText: "Continue", + // buttonColor: MzanziInnovationHub.of(context)! + // .theme + // .successColor(), + // textColor: MzanziInnovationHub.of(context)! + // .theme + // .primaryColor(), + // ), + ), + ), + ], + ), + ], + ), ), ); } else { @@ -657,7 +658,7 @@ class _AiChatState extends State { ); _modelController.text = 'gemma3:4b'; _fontSizeController.text = _chatFrontSize.ceil().toString(); - systemPromt = setSystemPromt(); + _chatHistory.add( ollama.Message( role: ollama.MessageRole.system,