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(
children: [
Column(
mainAxisAlignment: MainAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.end,
children: [ children: [
Expanded( Expanded(
child: Stack( child: SingleChildScrollView(
children: [
SingleChildScrollView(
child: Padding( child: Padding(
padding: const EdgeInsets.only(bottom: 24), padding: const EdgeInsets.only(bottom: 24),
child: Column( child: Column(
@ -162,33 +162,12 @@ class _AiState extends State<Ai> {
), ),
), ),
), ),
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,
),
)),
)
],
),
), ),
Padding( Padding(
padding: const EdgeInsets.fromLTRB(20, 0, 20, 32), padding: const EdgeInsets.fromLTRB(20, 0, 20, 32),
child: InkWell( child: InkWell(
onTap: () => Navigator.of(context).pushNamed(Routes.aiChat, onTap: () =>
Navigator.of(context).pushNamed(Routes.aiChat,
arguments: AiChatArgs( arguments: AiChatArgs(
bot: bot, bot: bot,
)), )),
@ -200,7 +179,8 @@ class _AiState extends State<Ai> {
boxShadow: DesignConfig.defaultShadow, boxShadow: DesignConfig.defaultShadow,
color: Theme.of(context).colorScheme.surface, color: Theme.of(context).colorScheme.surface,
border: Border.all( border: Border.all(
color: Theme.of(context).colorScheme.border), color:
Theme.of(context).colorScheme.border),
borderRadius: DesignConfig.highBorderRadius), borderRadius: DesignConfig.highBorderRadius),
child: Row( child: Row(
children: [ children: [
@ -217,7 +197,8 @@ class _AiState extends State<Ai> {
children: [ children: [
const MessageBarBtn( const MessageBarBtn(
enable: false, enable: false,
icon: DidvanIcons.mic_regular), icon:
DidvanIcons.mic_regular),
const SizedBox( const SizedBox(
width: 8, width: 8,
), ),
@ -237,7 +218,8 @@ class _AiState extends State<Ai> {
.textTheme .textTheme
.bodySmall! .bodySmall!
.copyWith( .copyWith(
color: Theme.of(context) color: Theme.of(
context)
.colorScheme .colorScheme
.disabledText), .disabledText),
), ),
@ -260,6 +242,28 @@ class _AiState extends State<Ai> {
)), )),
), ),
], ],
),
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"