-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: author setting UI * feat: add notice edit page * feat: edit notice UI * chore: wrong translation * feat: confirm dialog extension * feat: delete action * feat: send notification
- Loading branch information
1 parent
a1a71aa
commit 689d8e8
Showing
19 changed files
with
478 additions
and
4 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
"back": "이전", | ||
"skip": "건너뛰기", | ||
"done": "완료", | ||
"confirm": "네", | ||
"duration": { | ||
"day": "$n일", | ||
"week": { | ||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions
30
lib/app/modules/common/presentation/extensions/confirm.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,30 @@ | ||
import 'package:flutter/cupertino.dart'; | ||
import 'package:ziggle/app/values/palette.dart'; | ||
import 'package:ziggle/gen/strings.g.dart'; | ||
|
||
extension BuildContextX on BuildContext { | ||
Future<T?> showDialog<T>({ | ||
required String title, | ||
required String content, | ||
required void Function(BuildContext) onConfirm, | ||
}) => | ||
showCupertinoDialog( | ||
context: this, | ||
builder: (context) => CupertinoAlertDialog( | ||
title: Text(title), | ||
content: Text(content), | ||
actions: [ | ||
CupertinoDialogAction( | ||
onPressed: () => Navigator.of(context).pop(), | ||
textStyle: const TextStyle(color: Palette.gray), | ||
child: Text(context.t.common.cancel), | ||
), | ||
CupertinoDialogAction( | ||
isDestructiveAction: true, | ||
onPressed: () => onConfirm(context), | ||
child: Text(context.t.common.confirm), | ||
), | ||
], | ||
), | ||
); | ||
} |
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
Oops, something went wrong.