ad goods detail page

hmxc
小赖 4 years ago
parent 391a4713b0
commit 9474139828

@ -1,3 +1,4 @@
import 'package:aku_community/base/base_style.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -43,12 +44,25 @@ class _CategoryPageState extends State<CategoryPage> {
minWidth: double.infinity, minWidth: double.infinity,
onPressed: () { onPressed: () {
_index = index; _index = index;
setState(() {}); setState(() {});
}, },
child: Text( child: Text(
'TEST', 'TEST',
style: TextStyle(), style: TextStyle(
color: sameIndex ? kPrimaryColor : ktextPrimary,
),
),
),
AnimatedPositioned(
left: sameIndex ? 0 : -8.w,
top: sameIndex ? 20.w : 10.w,
bottom: sameIndex ? 20.w : 10.w,
duration: Duration(milliseconds: 300),
curve: Curves.easeInOutCubic,
child: Container(
color: kPrimaryColor,
width: 8.w,
height: 40.w,
), ),
), ),
], ],

@ -1,7 +1,9 @@
import 'package:aku_community/ui/market/goods/goods_detail_page.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:aku_community/base/base_style.dart'; import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/utils/headers.dart'; import 'package:aku_community/utils/headers.dart';
import 'package:get/get.dart';
class GoodsCard extends StatelessWidget { class GoodsCard extends StatelessWidget {
const GoodsCard({Key? key}) : super(key: key); const GoodsCard({Key? key}) : super(key: key);
@ -12,7 +14,7 @@ class GoodsCard extends StatelessWidget {
color: Colors.white, color: Colors.white,
elevation: 0, elevation: 0,
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
onPressed: () {}, onPressed: () => Get.to(() => GoodsDetailPage()),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [

@ -0,0 +1,16 @@
import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:flutter/material.dart';
class GoodsDetailPage extends StatefulWidget {
GoodsDetailPage({Key? key}) : super(key: key);
@override
_GoodsDetailPageState createState() => _GoodsDetailPageState();
}
class _GoodsDetailPageState extends State<GoodsDetailPage> {
@override
Widget build(BuildContext context) {
return BeeScaffold();
}
}
Loading…
Cancel
Save