opt: dyn panel

Closes #436

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-13 12:27:36 +08:00
parent c296aa036a
commit e357da5162
2 changed files with 14 additions and 14 deletions

View File

@@ -157,7 +157,7 @@ class _DynamicsTabPageState extends State<DynamicsTabPage>
maxCrossAxisExtent: Grid.smallCardWidth * 2,
//cacheExtent: 0.0,
crossAxisSpacing: StyleString.cardSpace / 2,
mainAxisSpacing: StyleString.cardSpace / 2,
// mainAxisSpacing: StyleString.cardSpace / 2,
lastChildLayoutTypeBuilder: (index) {
if (index == loadingState.response.length - 1) {

View File

@@ -24,25 +24,25 @@ class DynamicPanel extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Padding(
return Container(
padding: source == 'detail'
? const EdgeInsets.only(bottom: 12)
: EdgeInsets.zero,
// decoration: BoxDecoration(
// border: Border(
// bottom: BorderSide(
// width: 8,
// color: Theme.of(context).dividerColor.withOpacity(0.05),
// ),
// ),
// ),
decoration: BoxDecoration(
border: Border(
bottom: BorderSide(
width: 8,
color: Theme.of(context).dividerColor.withOpacity(0.05),
),
),
),
child: Material(
elevation: 0,
clipBehavior: Clip.hardEdge,
// clipBehavior: Clip.hardEdge,
color: Colors.transparent,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(5),
),
// shape: RoundedRectangleBorder(
// borderRadius: BorderRadius.circular(5),
// ),
child: InkWell(
onTap: source == 'detail' &&
[