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
|
|
@ -409,7 +409,7 @@ class ChatDetailsView extends StatelessWidget {
|
|||
),
|
||||
onTap: () => VRouter.of(context).to('invite'),
|
||||
)
|
||||
: Container(),
|
||||
: const SizedBox.shrink(),
|
||||
],
|
||||
)
|
||||
: i < controller.members!.length + 1
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ class ParticipantListItem extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
membershipBatch[user.membership]!.isEmpty
|
||||
? Container()
|
||||
? const SizedBox.shrink()
|
||||
: Container(
|
||||
padding: const EdgeInsets.all(4),
|
||||
margin: const EdgeInsets.symmetric(horizontal: 8),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue