-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add features and UI update for notification #2813
- Loading branch information
Showing
18 changed files
with
275 additions
and
179 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export 'cubit/matrix_notification_cubit.dart'; | ||
export 'view/notification_details_page.dart'; | ||
export 'view/notification_page.dart'; | ||
export 'widget/widget.dart'; |
42 changes: 42 additions & 0 deletions
42
lib/matrix_notification/view/notification_details_page.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import 'package:altme/app/app.dart'; | ||
import 'package:altme/l10n/l10n.dart'; | ||
|
||
import 'package:flutter/material.dart'; | ||
|
||
class NotificationDetailsPage extends StatelessWidget { | ||
const NotificationDetailsPage({ | ||
super.key, | ||
required this.message, | ||
}); | ||
|
||
final String message; | ||
|
||
static Route<void> route({required String message}) { | ||
return MaterialPageRoute<void>( | ||
builder: (_) => NotificationDetailsPage(message: message), | ||
settings: const RouteSettings(name: '/NotificationDetailsPage'), | ||
); | ||
} | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
final l10n = context.l10n; | ||
final colorScheme = Theme.of(context).colorScheme; | ||
return BasePage( | ||
title: l10n.notification, | ||
scrollView: false, | ||
titleLeading: const BackLeadingButton(), | ||
titleAlignment: Alignment.topCenter, | ||
padding: const EdgeInsets.all(Sizes.spaceSmall), | ||
body: Text( | ||
message, | ||
style: TextStyle( | ||
color: colorScheme.onSurface, | ||
fontSize: 16, | ||
fontWeight: FontWeight.w500, | ||
height: 1.5, | ||
), | ||
), | ||
); | ||
} | ||
} |
Oops, something went wrong.