opt: card width

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-12 14:18:27 +08:00
parent 2fad0d38a7
commit 9cf9867fac
6 changed files with 8 additions and 8 deletions

View File

@@ -320,7 +320,7 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
children: [
Builder(
builder: (context) {
double padding = max(context.width / 2 - Grid.mediumCardWidth, 0);
double padding = max(context.width / 2 - Grid.smallCardWidth, 0);
if (orientation == Orientation.portrait) {
return CustomScrollView(
controller: _dynamicDetailController.scrollController,

View File

@@ -111,7 +111,7 @@ class _DynamicsTabPageState extends State<DynamicsTabPage>
slivers: [
const SliverFillRemaining(),
SliverConstrainedCrossAxis(
maxExtent: Grid.mediumCardWidth * 2,
maxExtent: Grid.smallCardWidth * 2,
sliver: SliverList(
delegate: SliverChildBuilderDelegate(
(context, index) {
@@ -184,7 +184,7 @@ class _DynamicsTabPageState extends State<DynamicsTabPage>
slivers: [
const SliverFillRemaining(),
SliverConstrainedCrossAxis(
maxExtent: Grid.mediumCardWidth * 2,
maxExtent: Grid.smallCardWidth * 2,
sliver: SliverList(
delegate: SliverChildBuilderDelegate(
(context, index) {