|
|
|
@ -3,6 +3,7 @@ import 'package:diplomaticquarterapp/core/viewModels/notifications_view_model.da
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/DrawerPages/notifications/notification_details_page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/gif_loader_dialog_utils.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
@ -45,7 +46,7 @@ class NotificationsPage extends StatelessWidget {
|
|
|
|
|
pagingSize: 14,
|
|
|
|
|
notificationStatusID: 2);
|
|
|
|
|
|
|
|
|
|
model.getNotifications(getNotificationsRequestModel);
|
|
|
|
|
model.getNotifications(getNotificationsRequestModel, context);
|
|
|
|
|
},
|
|
|
|
|
builder: (_, model, widget) => AppScaffold(
|
|
|
|
|
isShowAppBar: true,
|
|
|
|
@ -57,7 +58,7 @@ class NotificationsPage extends StatelessWidget {
|
|
|
|
|
(notification) => InkWell(
|
|
|
|
|
onTap: () async {
|
|
|
|
|
if(!notification.isRead)
|
|
|
|
|
await model.markAsRead(notification.id);
|
|
|
|
|
model.markAsRead(notification.id);
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
@ -120,7 +121,9 @@ class NotificationsPage extends StatelessWidget {
|
|
|
|
|
.toList()
|
|
|
|
|
..add(
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
onTap: () async {
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(
|
|
|
|
|
context);
|
|
|
|
|
currentIndex++;
|
|
|
|
|
GetNotificationsRequestModel
|
|
|
|
|
getNotificationsRequestModel =
|
|
|
|
@ -129,7 +132,10 @@ class NotificationsPage extends StatelessWidget {
|
|
|
|
|
pagingSize: 14,
|
|
|
|
|
notificationStatusID: 2);
|
|
|
|
|
|
|
|
|
|
model.getNotifications(getNotificationsRequestModel);
|
|
|
|
|
await model.getNotifications(getNotificationsRequestModel,context);
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(
|
|
|
|
|
context);
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Image.asset('assets/images/notf.png'),
|
|
|
|
|