padding
This commit is contained in:
@@ -235,64 +235,68 @@ class _AiChatState extends State<AiChat> {
|
|||||||
_flutterTts.stop();
|
_flutterTts.stop();
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
windowBody: Column(
|
windowBody: SizedBox(
|
||||||
mainAxisSize: MainAxisSize.max,
|
width: double.infinity,
|
||||||
children: [
|
// color: Colors.black,
|
||||||
Stack(
|
child: Column(
|
||||||
children: [
|
mainAxisSize: MainAxisSize.max,
|
||||||
Text(
|
children: [
|
||||||
snapshot.requireData,
|
Stack(
|
||||||
textAlign: TextAlign.left,
|
children: [
|
||||||
style: TextStyle(
|
Text(
|
||||||
color: MzanziInnovationHub.of(context)!
|
snapshot.requireData,
|
||||||
.theme
|
textAlign: TextAlign.left,
|
||||||
.secondaryColor(),
|
style: TextStyle(
|
||||||
fontSize: _chatFrontSize,
|
color: MzanziInnovationHub.of(context)!
|
||||||
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)!
|
|
||||||
.theme
|
.theme
|
||||||
.successColor(),
|
.secondaryColor(),
|
||||||
icon: Icon(
|
fontSize: _chatFrontSize,
|
||||||
Icons.check,
|
fontWeight: FontWeight.bold,
|
||||||
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(),
|
|
||||||
// ),
|
|
||||||
),
|
),
|
||||||
),
|
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 {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user