treewide: Container -> SizedBox.shrink()
This helps performance without any user-facing changes, since SizedBox is constant while Container isn't
This commit is contained in:
parent
f88837232b
commit
ab0b7cb6b9
21 changed files with 31 additions and 31 deletions
|
|
@ -15,7 +15,7 @@ class ReactionsPicker extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (controller.showEmojiPicker) return Container();
|
||||
if (controller.showEmojiPicker) return const SizedBox.shrink();
|
||||
final display = controller.editEvent == null &&
|
||||
controller.replyEvent == null &&
|
||||
controller.room!.canSendDefaultMessages &&
|
||||
|
|
@ -29,7 +29,7 @@ class ReactionsPicker extends StatelessWidget {
|
|||
child: Builder(
|
||||
builder: (context) {
|
||||
if (!display) {
|
||||
return Container();
|
||||
return const SizedBox.shrink();
|
||||
}
|
||||
final proposals = proposeEmojis(
|
||||
controller.selectedEvents.first.plaintextBody,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue