feat: home bloc
This commit is contained in:
@@ -11,7 +11,8 @@ import '../../../../domain/auth/auth.dart';
|
||||
import '../../../components/spacer/spacer.dart';
|
||||
|
||||
class HomeHeader extends StatefulWidget {
|
||||
const HomeHeader({super.key});
|
||||
final int totalRevenue;
|
||||
const HomeHeader({super.key, required this.totalRevenue});
|
||||
|
||||
@override
|
||||
State<HomeHeader> createState() => _HomeHeaderState();
|
||||
@@ -467,7 +468,7 @@ class _HomeHeaderState extends State<HomeHeader> with TickerProviderStateMixin {
|
||||
),
|
||||
const SizedBox(width: 6),
|
||||
Text(
|
||||
'${context.lang.sales_today} +25%',
|
||||
'${context.lang.sales_today} ${widget.totalRevenue.currencyFormatRp}',
|
||||
style: AppStyle.sm.copyWith(
|
||||
color: AppColor.white,
|
||||
fontWeight: FontWeight.w600,
|
||||
|
||||
Reference in New Issue
Block a user