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

remote_modal_sheet にアイコンを追加 #566

Merged
Changes from all commits
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
78 changes: 78 additions & 0 deletions lib/view/common/misskey_notes/renote_modal_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,25 @@ class RenoteModalSheetState extends ConsumerState<RenoteModalSheet> {
.showSnackBar(SnackBar(content: Text(localize.renoted)));
navigator.pop();
}.expectFailure(context),
leading: const SizedBox(
height: 30,
width: 30,
child: Stack(
children: [
Align(
alignment: Alignment.bottomLeft,
child: Icon(
Icons.monitor,
size: 24,
),
),
Align(
alignment: Alignment.topRight,
child: Icon(Icons.repeat, size: 18,)
)
],
),
),
title: Padding(
padding: const EdgeInsets.only(top: 10.0, bottom: 10.0),
child: Text(S.of(context).renoteInSpecificChannel(channel.name)),
Expand All @@ -86,6 +105,25 @@ class RenoteModalSheetState extends ConsumerState<RenoteModalSheet> {
channel: channelsShowData,
initialAccount: widget.account));
}.expectFailure(context),
leading: const SizedBox(
height: 30,
width: 30,
child: Stack(
children: [
Align(
alignment: Alignment.bottomLeft,
child: Icon(
Icons.monitor,
size: 24,
),
),
Align(
alignment: Alignment.topRight,
child: Icon(Icons.format_quote, size: 18,)
)
],
),
),
title: Padding(
padding: const EdgeInsets.only(top: 10.0, bottom: 10.0),
child: Text(
Expand All @@ -111,6 +149,7 @@ class RenoteModalSheetState extends ConsumerState<RenoteModalSheet> {
.showSnackBar(SnackBar(content: Text(localize.renoted)));
navigator.pop();
}.expectFailure(context),
leading: const Icon(Icons.repeat),
title: const Padding(
padding: EdgeInsets.only(top: 10.0, bottom: 10.0),
child: Text("Renote"),
Expand Down Expand Up @@ -149,6 +188,7 @@ class RenoteModalSheetState extends ConsumerState<RenoteModalSheet> {
renote: widget.note, initialAccount: widget.account));
navigator.pop();
},
leading: const Icon(Icons.format_quote),
title: Text(S.of(context).quotedRenote)),
ListTile(
onTap: () async {
Expand All @@ -174,6 +214,25 @@ class RenoteModalSheetState extends ConsumerState<RenoteModalSheet> {
navigator.pop();
}
}.expectFailure(context),
leading: const SizedBox(
height: 30,
width: 30,
child: Stack(
children: [
Align(
alignment: Alignment.bottomLeft,
child: Icon(
Icons.monitor,
size: 24,
),
),
Align(
alignment: Alignment.topRight,
child: Icon(Icons.repeat, size: 18,)
)
],
),
),
title: Text(widget.note.channel != null
? S.of(context).renoteInOtherChannel
: S.of(context).renoteInChannel)),
Expand All @@ -193,6 +252,25 @@ class RenoteModalSheetState extends ConsumerState<RenoteModalSheet> {
navigator.pop();
}
},
leading: const SizedBox(
height: 30,
width: 30,
child: Stack(
children: [
Align(
alignment: Alignment.bottomLeft,
child: Icon(
Icons.monitor,
size: 24,
),
),
Align(
alignment: Alignment.topRight,
child: Icon(Icons.format_quote, size: 18,)
)
],
),
),
title: Text(widget.note.channel != null
? S.of(context).quotedRenoteInOtherChannel
: S.of(context).quotedRenoteInOtherChannel)),
Expand Down
Loading