fixed notification update fixed
This commit is contained in:
@@ -7,6 +7,8 @@ import 'package:tm_app/core/utils/size_config.dart';
|
||||
import 'package:tm_app/data/services/model/notification_data/notification_data.dart';
|
||||
import 'package:tm_app/view_models/notification_view_model.dart';
|
||||
|
||||
import '../strings/notification_strings.dart';
|
||||
|
||||
class NotificationCard extends StatelessWidget {
|
||||
final NotificationItem notification;
|
||||
const NotificationCard({required this.notification, super.key});
|
||||
@@ -49,7 +51,9 @@ class NotificationCard extends StatelessWidget {
|
||||
),
|
||||
const Spacer(),
|
||||
Visibility(
|
||||
visible: notification.priority == 'important',
|
||||
visible:
|
||||
notification.priority ==
|
||||
NotificationStrings.important,
|
||||
child: Container(
|
||||
width: 86.0.w(),
|
||||
height: 24.0.h(),
|
||||
@@ -59,7 +63,7 @@ class NotificationCard extends StatelessWidget {
|
||||
),
|
||||
alignment: Alignment.center,
|
||||
child: Text(
|
||||
'Important',
|
||||
NotificationStrings.important,
|
||||
style: TextStyle(
|
||||
fontSize: 12.0.sp(),
|
||||
fontWeight: FontWeight.w500,
|
||||
|
||||
Reference in New Issue
Block a user