Files
submanager/lib/widgets/sms_scan/scan_progress_widget.dart
2025-09-16 14:30:14 +09:00

42 lines
1.0 KiB
Dart

import 'package:flutter/material.dart';
// Material colors only
import '../../widgets/themed_text.dart';
class ScanProgressWidget extends StatelessWidget {
final int currentIndex;
final int totalCount;
const ScanProgressWidget({
super.key,
required this.currentIndex,
required this.totalCount,
});
@override
Widget build(BuildContext context) {
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
// 진행 상태 표시
LinearProgressIndicator(
value: (currentIndex + 1) / totalCount,
backgroundColor: Theme.of(context)
.colorScheme
.onSurfaceVariant
.withValues(alpha: 0.2),
valueColor: AlwaysStoppedAnimation<Color>(
Theme.of(context).colorScheme.primary,
),
),
const SizedBox(height: 8),
ThemedText(
'${currentIndex + 1}/$totalCount',
fontWeight: FontWeight.w500,
opacity: 0.7,
forceDark: true,
),
],
);
}
}