mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: dyn panel
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -3,6 +3,7 @@ import 'package:PiliPlus/utils/extension.dart';
|
|||||||
import 'package:PiliPlus/utils/utils.dart';
|
import 'package:PiliPlus/utils/utils.dart';
|
||||||
import 'package:cached_network_image/cached_network_image.dart';
|
import 'package:cached_network_image/cached_network_image.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:get/get.dart';
|
||||||
import 'action_panel.dart';
|
import 'action_panel.dart';
|
||||||
import 'author_panel.dart';
|
import 'author_panel.dart';
|
||||||
import 'content_panel.dart';
|
import 'content_panel.dart';
|
||||||
@@ -28,14 +29,17 @@ class DynamicPanel extends StatelessWidget {
|
|||||||
padding: source == 'detail'
|
padding: source == 'detail'
|
||||||
? const EdgeInsets.only(bottom: 12)
|
? const EdgeInsets.only(bottom: 12)
|
||||||
: EdgeInsets.zero,
|
: EdgeInsets.zero,
|
||||||
decoration: BoxDecoration(
|
decoration: source == 'detail' &&
|
||||||
border: Border(
|
Get.context!.orientation == Orientation.landscape
|
||||||
bottom: BorderSide(
|
? null
|
||||||
width: 8,
|
: BoxDecoration(
|
||||||
color: Theme.of(context).dividerColor.withOpacity(0.05),
|
border: Border(
|
||||||
),
|
bottom: BorderSide(
|
||||||
),
|
width: 8,
|
||||||
),
|
color: Theme.of(context).dividerColor.withOpacity(0.05),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
child: Material(
|
child: Material(
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
// clipBehavior: Clip.hardEdge,
|
// clipBehavior: Clip.hardEdge,
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ class _MemberDynamicsPageState extends State<MemberDynamicsPage>
|
|||||||
maxCrossAxisExtent: Grid.smallCardWidth * 2,
|
maxCrossAxisExtent: Grid.smallCardWidth * 2,
|
||||||
//cacheExtent: 0.0,
|
//cacheExtent: 0.0,
|
||||||
crossAxisSpacing: StyleString.safeSpace,
|
crossAxisSpacing: StyleString.safeSpace,
|
||||||
mainAxisSpacing: StyleString.safeSpace,
|
// mainAxisSpacing: StyleString.safeSpace,
|
||||||
|
|
||||||
/// follow max child trailing layout offset and layout with full cross axis extend
|
/// follow max child trailing layout offset and layout with full cross axis extend
|
||||||
/// last child as loadmore item/no more item in [GridView] and [WaterfallFlow]
|
/// last child as loadmore item/no more item in [GridView] and [WaterfallFlow]
|
||||||
|
|||||||
Reference in New Issue
Block a user