Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More customize reminder notification #480

Merged
merged 7 commits into from
Jan 24, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
♻️ missing variable names
  • Loading branch information
bannzai committed Jan 24, 2022
commit c3ba50111c90e2af174ec8100ee2269a0ae11c01
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ReminderNotificationCustomizeWordPage extends HookConsumerWidget {
final textFieldControlelr = useTextEditingController(
text: setting.reminderNotificationCustomization.word);
final word = useState(setting.reminderNotificationCustomization.word);
final isInvisibleReminderTime = useState(
final isInVisibleReminderDate = useState(
setting.reminderNotificationCustomization.isInVisibleReminderDate);
final isInVisiblePillNumber = useState(
setting.reminderNotificationCustomization.isInVisiblePillNumber);
Expand Down Expand Up @@ -50,7 +50,7 @@ class ReminderNotificationCustomizeWordPage extends HookConsumerWidget {
children: [
_ReminderPushNotificationPreview(
word: word.value,
isInvisibleReminderTime: isInvisibleReminderTime.value,
isInVisibleReminderDate: isInVisibleReminderDate.value,
isInvisiblePillNumber: isInVisiblePillNumber.value,
),
SizedBox(height: 20),
Expand Down Expand Up @@ -117,13 +117,13 @@ extension ReminderNotificationCustomizeWordPageRoutes

class _ReminderPushNotificationPreview extends StatelessWidget {
final String word;
final bool isInvisibleReminderTime;
final bool isInVisibleReminderDate;
final bool isInvisiblePillNumber;

const _ReminderPushNotificationPreview({
Key? key,
required this.word,
required this.isInvisibleReminderTime,
required this.isInVisibleReminderDate,
required this.isInvisiblePillNumber,
}) : super(key: key);
@override
Expand Down Expand Up @@ -152,7 +152,7 @@ class _ReminderPushNotificationPreview extends StatelessWidget {
Row(
children: [
Text(
"$word${isInvisibleReminderTime ? "" : " 1/7"}${isInvisiblePillNumber ? "" : "5番"}",
"$word${isInVisibleReminderDate ? "" : " 1/7"}${isInvisiblePillNumber ? "" : "5番"}",
style: TextStyle(
fontSize: 15,
fontWeight: FontWeight.w600,
Expand Down