From b9397b661453e54cdbfa3e87961bb832021a49ec Mon Sep 17 00:00:00 2001 From: Npepperlinux Date: Sat, 9 Mar 2024 22:59:06 +0900 Subject: [PATCH] =?UTF-8?q?ui:=20=E3=83=AA=E3=83=8E=E3=83=BC=E3=83=88?= =?UTF-8?q?=E3=83=A1=E3=83=8B=E3=83=A5=E3=83=BC=E3=81=AB=E3=82=A2=E3=82=A4?= =?UTF-8?q?=E3=82=B3=E3=83=B3=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../misskey_notes/renote_modal_sheet.dart | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/lib/view/common/misskey_notes/renote_modal_sheet.dart b/lib/view/common/misskey_notes/renote_modal_sheet.dart index b77d6befd..d67b97677 100644 --- a/lib/view/common/misskey_notes/renote_modal_sheet.dart +++ b/lib/view/common/misskey_notes/renote_modal_sheet.dart @@ -67,6 +67,25 @@ class RenoteModalSheetState extends ConsumerState { .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)), @@ -86,6 +105,25 @@ class RenoteModalSheetState extends ConsumerState { 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( @@ -111,6 +149,7 @@ class RenoteModalSheetState extends ConsumerState { .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"), @@ -149,6 +188,7 @@ class RenoteModalSheetState extends ConsumerState { renote: widget.note, initialAccount: widget.account)); navigator.pop(); }, + leading: const Icon(Icons.format_quote), title: Text(S.of(context).quotedRenote)), ListTile( onTap: () async { @@ -174,6 +214,25 @@ class RenoteModalSheetState extends ConsumerState { 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)), @@ -193,6 +252,25 @@ class RenoteModalSheetState extends ConsumerState { 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)),