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
|
|
@ -207,7 +207,7 @@ class StoryView extends StatelessWidget {
|
|||
final videoPlayerController = snapshot.data;
|
||||
if (videoPlayerController == null) {
|
||||
controller.loadingModeOn();
|
||||
return Container();
|
||||
return const SizedBox.shrink();
|
||||
}
|
||||
controller.loadingModeOff();
|
||||
return Center(child: VideoPlayer(videoPlayerController));
|
||||
|
|
@ -226,7 +226,7 @@ class StoryView extends StatelessWidget {
|
|||
final matrixFile = snapshot.data;
|
||||
if (matrixFile == null) {
|
||||
controller.loadingModeOn();
|
||||
return Container();
|
||||
return const SizedBox.shrink();
|
||||
}
|
||||
controller.loadingModeOff();
|
||||
return Container(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue