Skip to content

Commit

Permalink
hot-fix: share screen dont have send button
Browse files Browse the repository at this point in the history
  • Loading branch information
sherlockvn authored and hoangdat committed Feb 22, 2024
1 parent a7ebd6c commit 9c8d554
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
15 changes: 4 additions & 11 deletions lib/pages/forward/recent_chat_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class RecentChatList extends StatelessWidget {
itemCount: rooms.length,
itemBuilder: (BuildContext context, int index) {
final room = rooms[index];
final selected = selectedChat == room.id;
return Material(
borderRadius: RecentChatListStyle.borderRadiusItem,
child: InkWell(
Expand All @@ -48,16 +47,10 @@ class RecentChatList extends StatelessWidget {
padding: RecentChatListStyle.paddingVerticalBetweenItem,
child: Row(
children: [
AnimatedCrossFade(
duration: durationToggleItem,
firstChild: Checkbox(
value: selected,
onChanged: (value) => onSelectedChat(room.id),
),
secondChild: const SizedBox.shrink(),
crossFadeState: selected
? CrossFadeState.showFirst
: CrossFadeState.showSecond,
Radio<String>(
groupValue: room.id,
value: selectedChat,
onChanged: (value) => onSelectedChat(room.id),
),
Avatar(
mxContent: room.avatar,
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/share/share_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class ShareView extends StatelessWidget {
floatingActionButton: ValueListenableBuilder<String>(
valueListenable: controller.selectedChatNotifier,
builder: ((context, selectedEvents, child) {
if (selectedEvents.length != 1) {
if (selectedEvents.isEmpty) {
return const SizedBox();
}

Expand Down

0 comments on commit 9c8d554

Please sign in to comment.