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, maxCrossAxisExtent: Grid.smallCardWidth * 2,
//cacheExtent: 0.0, //cacheExtent: 0.0,
crossAxisSpacing: StyleString.cardSpace / 2, crossAxisSpacing: StyleString.cardSpace / 2,
mainAxisSpacing: StyleString.cardSpace / 2, // mainAxisSpacing: StyleString.cardSpace / 2,
lastChildLayoutTypeBuilder: (index) { lastChildLayoutTypeBuilder: (index) {
if (index == loadingState.response.length - 1) { if (index == loadingState.response.length - 1) {

View File

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