Format update.

This commit is contained in:
stonegate 2020-10-11 18:09:53 +08:00
parent b31cc38fad
commit e3ca2a6a32
1 changed files with 10 additions and 4 deletions

View File

@ -394,10 +394,16 @@ class EpisodeGrid extends StatelessWidget {
options: options, options: options,
itemCount: episodes.length, itemCount: episodes.length,
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
childAspectRatio: childAspectRatio: layout == Layout.three
layout == Layout.three ? 1 : layout == Layout.two ? 1.5 : 4, ? 1
crossAxisCount: : layout == Layout.two
layout == Layout.three ? 3 : layout == Layout.two ? 2 : 1, ? 1.5
: 4,
crossAxisCount: layout == Layout.three
? 3
: layout == Layout.two
? 2
: 1,
mainAxisSpacing: 6.0, mainAxisSpacing: 6.0,
crossAxisSpacing: 6.0, crossAxisSpacing: 6.0,
), ),