const constructure

This commit is contained in:
Efril
2026-03-01 20:02:12 +07:00
parent 5058f99fe0
commit e625bd3d2a
142 changed files with 817 additions and 760 deletions
@@ -36,7 +36,7 @@ class SyncStateWidget extends StatelessWidget {
value: progressAnimation.value,
strokeWidth: 6,
backgroundColor: Colors.grey.shade200,
valueColor: AlwaysStoppedAnimation<Color>(
valueColor: const AlwaysStoppedAnimation<Color>(
AppColor.primary,
),
);
@@ -46,13 +46,13 @@ class SyncStateWidget extends StatelessWidget {
Column(
children: [
Icon(_getSyncIcon(step), size: 24, color: AppColor.primary),
SizedBox(height: 2),
const SizedBox(height: 2),
AnimatedBuilder(
animation: progressAnimation,
builder: (context, child) {
return Text(
'${(progressAnimation.value * 100).toInt()}%',
style: TextStyle(
style: const TextStyle(
fontSize: 14,
fontWeight: FontWeight.bold,
color: AppColor.primary,
@@ -65,16 +65,16 @@ class SyncStateWidget extends StatelessWidget {
],
),
SizedBox(height: 20),
const SizedBox(height: 20),
// Step indicator
_buildStepIndicator(step),
SizedBox(height: 12),
const SizedBox(height: 12),
// Current message
Container(
padding: EdgeInsets.symmetric(horizontal: 16, vertical: 12),
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
decoration: BoxDecoration(
color: Colors.blue.shade50,
borderRadius: BorderRadius.circular(8),
@@ -90,7 +90,7 @@ class SyncStateWidget extends StatelessWidget {
),
),
SizedBox(height: 12),
const SizedBox(height: 12),
// Sync details
_buildSyncDetails(step, progress),
@@ -101,7 +101,7 @@ class SyncStateWidget extends StatelessWidget {
Widget _buildSyncDetails(SyncStep step, double progress) {
return Container(
padding: EdgeInsets.all(12),
padding: const EdgeInsets.all(12),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(8),
@@ -122,7 +122,7 @@ class SyncStateWidget extends StatelessWidget {
),
Text(
_getStepLabel(step),
style: TextStyle(
style: const TextStyle(
fontSize: 12,
fontWeight: FontWeight.w600,
color: AppColor.primary,
@@ -130,7 +130,7 @@ class SyncStateWidget extends StatelessWidget {
),
],
),
SizedBox(height: 6),
const SizedBox(height: 6),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
@@ -144,7 +144,7 @@ class SyncStateWidget extends StatelessWidget {
),
Text(
'${(progress * 100).toInt()}%',
style: TextStyle(
style: const TextStyle(
fontSize: 12,
fontWeight: FontWeight.w600,
color: AppColor.primary,
@@ -172,8 +172,8 @@ class SyncStateWidget extends StatelessWidget {
final isCompleted = step.index < currentStep.index;
return Container(
margin: EdgeInsets.symmetric(vertical: 2),
padding: EdgeInsets.symmetric(horizontal: 8, vertical: 4),
margin: const EdgeInsets.symmetric(vertical: 2),
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
decoration: BoxDecoration(
color: isActive
? AppColor.primary.withOpacity(0.1)
@@ -194,7 +194,7 @@ class SyncStateWidget extends StatelessWidget {
? Colors.green.shade600
: Colors.grey.shade500,
),
SizedBox(width: 4),
const SizedBox(width: 4),
Text(
label,
style: TextStyle(