const constructure
This commit is contained in:
@@ -27,7 +27,7 @@ class SyncCompletedWidget extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
|
||||
SizedBox(height: 20),
|
||||
const SizedBox(height: 20),
|
||||
|
||||
Text(
|
||||
'Sinkronisasi Berhasil!',
|
||||
@@ -38,18 +38,18 @@ class SyncCompletedWidget extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
|
||||
SizedBox(height: 8),
|
||||
const SizedBox(height: 8),
|
||||
|
||||
Text(
|
||||
'Data berhasil diunduh ke perangkat',
|
||||
style: TextStyle(fontSize: 14, color: Colors.grey.shade600),
|
||||
),
|
||||
|
||||
SizedBox(height: 20),
|
||||
const SizedBox(height: 20),
|
||||
|
||||
// Stats cards
|
||||
Container(
|
||||
padding: EdgeInsets.all(16),
|
||||
padding: const EdgeInsets.all(16),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white,
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
@@ -65,7 +65,7 @@ class SyncCompletedWidget extends StatelessWidget {
|
||||
color: Colors.grey.shade700,
|
||||
),
|
||||
),
|
||||
SizedBox(height: 12),
|
||||
const SizedBox(height: 12),
|
||||
Column(
|
||||
children: [
|
||||
_buildStatItem(
|
||||
@@ -74,14 +74,14 @@ class SyncCompletedWidget extends StatelessWidget {
|
||||
Icons.category,
|
||||
Colors.blue,
|
||||
),
|
||||
SizedBox(height: 8),
|
||||
const SizedBox(height: 8),
|
||||
_buildStatItem(
|
||||
'Produk',
|
||||
'${stats.totalProducts}',
|
||||
Icons.inventory_2,
|
||||
Colors.green,
|
||||
),
|
||||
SizedBox(height: 8),
|
||||
const SizedBox(height: 8),
|
||||
_buildStatItem(
|
||||
'Variant',
|
||||
'${stats.totalVariants}',
|
||||
@@ -94,10 +94,10 @@ class SyncCompletedWidget extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
|
||||
SizedBox(height: 12),
|
||||
const SizedBox(height: 12),
|
||||
|
||||
Container(
|
||||
padding: EdgeInsets.symmetric(horizontal: 16, vertical: 8),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.grey.shade100,
|
||||
borderRadius: BorderRadius.circular(6),
|
||||
@@ -119,7 +119,7 @@ class SyncCompletedWidget extends StatelessWidget {
|
||||
Color color,
|
||||
) {
|
||||
return Container(
|
||||
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 8),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
|
||||
decoration: BoxDecoration(
|
||||
color: color.withOpacity(0.1),
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
@@ -128,7 +128,7 @@ class SyncCompletedWidget extends StatelessWidget {
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Icon(icon, size: 20, color: color),
|
||||
SizedBox(width: 8),
|
||||
const SizedBox(width: 8),
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
|
||||
Reference in New Issue
Block a user