POLISHING STUFF and Smarter AI, and alot i mean.. ALOT OF BUG FIX AND OPTIMIZE

This commit is contained in:
Wowieee4
2026-05-29 15:50:51 +07:00
parent 1110e5a42d
commit d2b3534dde
65 changed files with 4150 additions and 2974 deletions
@@ -10,8 +10,11 @@ import '../../core/services/call_service.dart';
import '../../core/services/haptic_service.dart';
import '../../core/services/tts_service.dart';
import '../../core/storage/secure_storage.dart';
import '../../core/theme/app_colors.dart';
import '../../core/theme/app_decorations.dart';
import '../../shared/widgets/animations/animations.dart';
const _kBlue = Color(0xFF1A56DB);
const _kBlue = AppColors.primaryBlue;
const _kGreen = Color(0xFF16A34A);
const _kRed = Color(0xFFDC2626);
const _kMuted = Color(0xFF64748B);
@@ -588,30 +591,42 @@ class _CallScaffold extends StatelessWidget {
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: _kBg,
body: SafeArea(
child: Column(
children: [
Padding(
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
child: Row(
children: [
const SizedBox(width: 48),
Expanded(
child: Text(
title,
textAlign: TextAlign.center,
style: const TextStyle(
color: Colors.white70,
fontWeight: FontWeight.w600,
body: DecoratedBox(
decoration: const BoxDecoration(
gradient: LinearGradient(
colors: [_kBg, Color(0xFF172554)],
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
),
),
child: SafeArea(
child: FadeSlideWrapper(
child: Column(
children: [
Padding(
padding:
const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
child: Row(
children: [
const SizedBox(width: 48),
Expanded(
child: Text(
title,
textAlign: TextAlign.center,
style: const TextStyle(
color: Colors.white70,
fontWeight: FontWeight.w600,
),
),
),
),
const SizedBox(width: 48),
],
),
const SizedBox(width: 48),
],
),
),
Expanded(child: child),
],
),
Expanded(child: child),
],
),
),
),
);
@@ -666,7 +681,8 @@ class _Avatar extends StatelessWidget {
decoration: BoxDecoration(
shape: BoxShape.circle,
color: color.withValues(alpha: 0.2),
border: Border.all(color: color, width: 3),
border: Border.all(color: Colors.white, width: 3),
boxShadow: AppDecorations.avatarShadow,
),
child: Icon(icon, color: Colors.white, size: 56),
);
@@ -688,7 +704,7 @@ class _ControlButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
return GestureDetector(
return BounceTap(
onTap: onTap,
child: Column(
children: [
@@ -718,7 +734,7 @@ class _EndCallButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
return GestureDetector(
return BounceTap(
onTap: onTap,
child: Column(
children: [
@@ -754,7 +770,7 @@ class _RoundCallButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
return GestureDetector(
return BounceTap(
onTap: onTap,
child: Opacity(
opacity: onTap == null ? 0.4 : 1,