forked from firka/firka
- Create firka_common package with core helpers (debug, json, icon), theme, and shared widgets (FirkaCard, FirkaShadow, GradeWidget, GradeSmallCard, ClassIconWidget, FirkaIconWidget, DelayedSpinnerWidget, CounterDigitWidget) - Keep Isar models (GenericCacheModel, TimetableCacheModel, HomeworkCacheModel, DatedCacheEntry, util) in firka and firka_wear - not moved to firka_common - Update firka and firka_wear to depend on firka_common for shared UI only - Add configurable roundGrade thresholds for firka settings - Add package param to FirkaIconWidget for app asset paths
23 lines
568 B
Dart
23 lines
568 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'package:firka_common/ui/theme/style.dart';
|
|
|
|
class CounterDigitWidget extends StatelessWidget {
|
|
final String c;
|
|
final TextStyle? style;
|
|
|
|
const CounterDigitWidget(this.c, this.style, {super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Card(
|
|
shadowColor: Colors.transparent,
|
|
color: appStyle.colors.buttonSecondaryFill,
|
|
child: Padding(
|
|
padding: const EdgeInsets.only(left: 8, right: 8, top: 4, bottom: 4),
|
|
child: Text(c, style: style),
|
|
),
|
|
);
|
|
}
|
|
}
|