|
@@ -150,7 +150,7 @@ class _CategoryPageState extends State<CategoryPage> {
|
|
alignment: Alignment.center,
|
|
alignment: Alignment.center,
|
|
color: Colors.white,
|
|
color: Colors.white,
|
|
child: Column(
|
|
child: Column(
|
|
- children: <Widget>[
|
|
|
|
|
|
+ children: [
|
|
Image.network(info.image,
|
|
Image.network(info.image,
|
|
width: MediaQuery.of(context).size.width * 0.4,
|
|
width: MediaQuery.of(context).size.width * 0.4,
|
|
height: MediaQuery.of(context).size.width * 0.4),
|
|
height: MediaQuery.of(context).size.width * 0.4),
|
|
@@ -160,7 +160,7 @@ class _CategoryPageState extends State<CategoryPage> {
|
|
Row(
|
|
Row(
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
crossAxisAlignment: CrossAxisAlignment.end,
|
|
crossAxisAlignment: CrossAxisAlignment.end,
|
|
- children: <Widget>[
|
|
|
|
|
|
+ children: [
|
|
Text('¥${info.presentPrice}',
|
|
Text('¥${info.presentPrice}',
|
|
style: TextStyle(fontSize: 14.0)),
|
|
style: TextStyle(fontSize: 14.0)),
|
|
Text('¥${info.oriPrice}',
|
|
Text('¥${info.oriPrice}',
|
|
@@ -179,7 +179,7 @@ class _CategoryPageState extends State<CategoryPage> {
|
|
Widget build(BuildContext context) {
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
return Scaffold(
|
|
appBar: AppBar(title: Text('商品分类'), centerTitle: true),
|
|
appBar: AppBar(title: Text('商品分类'), centerTitle: true),
|
|
- body: Row(children: <Widget>[
|
|
|
|
|
|
+ body: Row(children: [
|
|
// 左侧栏
|
|
// 左侧栏
|
|
Container(
|
|
Container(
|
|
width: 100.0,
|
|
width: 100.0,
|
|
@@ -195,7 +195,7 @@ class _CategoryPageState extends State<CategoryPage> {
|
|
// 右侧栏
|
|
// 右侧栏
|
|
Expanded(
|
|
Expanded(
|
|
child: Column(
|
|
child: Column(
|
|
- children: <Widget>[
|
|
|
|
|
|
+ children: [
|
|
// 头部导航
|
|
// 头部导航
|
|
Provide<SubCategoryProvide>(
|
|
Provide<SubCategoryProvide>(
|
|
builder: (_, child, subCategories) => Container(
|
|
builder: (_, child, subCategories) => Container(
|
|
@@ -220,7 +220,7 @@ class _CategoryPageState extends State<CategoryPage> {
|
|
? Center(
|
|
? Center(
|
|
child: Column(
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
- children: <Widget>[
|
|
|
|
|
|
+ children: [
|
|
Image.asset('images/empty.png',
|
|
Image.asset('images/empty.png',
|
|
width: 60.0, height: 60.0),
|
|
width: 60.0, height: 60.0),
|
|
Text('啊哦...目前未找到该分类下的商品'),
|
|
Text('啊哦...目前未找到该分类下的商品'),
|