mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: dyn panel
Closes #436 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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' &&
|
||||||
[
|
[
|
||||||
|
|||||||
Reference in New Issue
Block a user