This commit is contained in:
OkaykOrhmn 2024-09-26 08:30:31 +03:30
parent 87990a7052
commit a4a9d3e565
3 changed files with 105 additions and 101 deletions

View File

@ -56,13 +56,13 @@ class _AiState extends State<Ai> {
); );
} }
final bot = state.bot!; final bot = state.bot!;
return Column( return Stack(
mainAxisAlignment: MainAxisAlignment.end,
children: [ children: [
Expanded( Column(
child: Stack( mainAxisAlignment: MainAxisAlignment.end,
children: [ children: [
SingleChildScrollView( Expanded(
child: SingleChildScrollView(
child: Padding( child: Padding(
padding: const EdgeInsets.only(bottom: 24), padding: const EdgeInsets.only(bottom: 24),
child: Column( child: Column(
@ -162,103 +162,107 @@ class _AiState extends State<Ai> {
), ),
), ),
), ),
Positioned( ),
top: 32, Padding(
right: 0, padding: const EdgeInsets.fromLTRB(20, 0, 20, 32),
child: InkWell( child: InkWell(
onTap: () => homeScaffKey.currentState!.openDrawer(), onTap: () =>
child: Container( Navigator.of(context).pushNamed(Routes.aiChat,
width: 46, arguments: AiChatArgs(
height: 46, bot: bot,
decoration: BoxDecoration( )),
color: Theme.of(context).colorScheme.surface, child: Row(
borderRadius: const BorderRadius.only( children: [
topLeft: Radius.circular(12), Expanded(
bottomLeft: Radius.circular(12)), child: Container(
boxShadow: DesignConfig.defaultShadow), decoration: BoxDecoration(
child: Icon( boxShadow: DesignConfig.defaultShadow,
DidvanIcons.angle_left_light, color: Theme.of(context).colorScheme.surface,
color: Theme.of(context).colorScheme.title, border: Border.all(
), color:
)), Theme.of(context).colorScheme.border),
) borderRadius: DesignConfig.highBorderRadius),
], child: Row(
), children: [
), const SizedBox(
Padding( width: 8,
padding: const EdgeInsets.fromLTRB(20, 0, 20, 32), ),
child: InkWell( Expanded(
onTap: () => Navigator.of(context).pushNamed(Routes.aiChat, child: Padding(
arguments: AiChatArgs( padding: const EdgeInsets.symmetric(
bot: bot, horizontal: 8.0,
)),
child: Row(
children: [
Expanded(
child: Container(
decoration: BoxDecoration(
boxShadow: DesignConfig.defaultShadow,
color: Theme.of(context).colorScheme.surface,
border: Border.all(
color: Theme.of(context).colorScheme.border),
borderRadius: DesignConfig.highBorderRadius),
child: Row(
children: [
const SizedBox(
width: 8,
),
Expanded(
child: Padding(
padding: const EdgeInsets.symmetric(
horizontal: 8.0,
),
child: Form(
child: Row(
children: [
const MessageBarBtn(
enable: false,
icon: DidvanIcons.mic_regular),
const SizedBox(
width: 8,
), ),
Expanded( child: Form(
child: TextFormField( child: Row(
textInputAction: children: [
TextInputAction.newline, const MessageBarBtn(
style: Theme.of(context) enable: false,
.textTheme icon:
.bodyMedium, DidvanIcons.mic_regular),
minLines: 1, const SizedBox(
enabled: false, width: 8,
decoration: InputDecoration(
border: InputBorder.none,
hintText: 'بنویسید...',
hintStyle: Theme.of(context)
.textTheme
.bodySmall!
.copyWith(
color: Theme.of(context)
.colorScheme
.disabledText),
), ),
), Expanded(
), child: TextFormField(
], textInputAction:
)))) TextInputAction.newline,
], style: Theme.of(context)
.textTheme
.bodyMedium,
minLines: 1,
enabled: false,
decoration: InputDecoration(
border: InputBorder.none,
hintText: 'بنویسید...',
hintStyle: Theme.of(context)
.textTheme
.bodySmall!
.copyWith(
color: Theme.of(
context)
.colorScheme
.disabledText),
),
),
),
],
))))
],
),
),
), ),
), const SizedBox(
), width: 18,
const SizedBox( ),
width: 18, Icon(
), Icons.attach_file_rounded,
Icon( color: Theme.of(context).colorScheme.focusedBorder,
Icons.attach_file_rounded, ),
color: Theme.of(context).colorScheme.focusedBorder, ],
), )),
], ),
)), ],
), ),
Positioned(
top: 32,
right: 0,
child: InkWell(
onTap: () => homeScaffKey.currentState!.openDrawer(),
child: Container(
width: 46,
height: 46,
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.surface,
borderRadius: const BorderRadius.only(
topLeft: Radius.circular(12),
bottomLeft: Radius.circular(12)),
boxShadow: DesignConfig.defaultShadow),
child: Icon(
DidvanIcons.angle_left_light,
color: Theme.of(context).colorScheme.title,
),
)),
)
], ],
); );
}, },

View File

@ -348,7 +348,7 @@ class _ProfilePageState extends State<ProfilePage> {
), ),
const SizedBox(height: 16), const SizedBox(height: 16),
DidvanText( DidvanText(
'نسخه نرم‌افزار: 3.3.1', 'نسخه نرم‌افزار: 3.3.3',
style: Theme.of(context).textTheme.bodySmall, style: Theme.of(context).textTheme.bodySmall,
), ),
], ],

View File

@ -15,7 +15,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at # Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 3.3.1+3310 version: 3.3.3+3330
environment: environment:
sdk: ">=2.19.0 <3.0.0" sdk: ">=2.19.0 <3.0.0"