Files
gl_dao/lib/pages/user/widget/user_order.dart
2022-05-27 17:52:17 +08:00

94 lines
2.8 KiB
Dart

import 'package:flutter/material.dart';
import '../../../main_color.dart';
class UserOrder extends StatelessWidget {
const UserOrder({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
padding: const EdgeInsets.all(10.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const Text(
'订单管理',
style: TextStyle(
fontSize: 15.0,
fontWeight: FontWeight.bold,
),
),
const SizedBox(height: 10.0),
Card(
child: Row(children: <Widget>[
Expanded(
flex: 1,
child: Column(children: const <Widget>[
Icon(Icons.home),
Text(
'全部',
style: TextStyle(fontSize: 12.0, color: tTextColor),
textAlign: TextAlign.center,
)
]),
),
Expanded(
flex: 1,
child: Column(children: <Widget>[
Image.asset(
'assets/icons/order_icon_00.png',
width: 20.0,
fit: BoxFit.fitWidth,
),
const SizedBox(height: 5.0),
const Text(
'待支付',
style: TextStyle(fontSize: 12.0, color: tTextColor),
textAlign: TextAlign.center,
)
]),
),
Expanded(
flex: 1,
child: Column(children: const <Widget>[
Icon(Icons.card_giftcard),
Text(
'待发货',
style: TextStyle(fontSize: 12.0, color: tTextColor),
textAlign: TextAlign.center,
)
]),
),
Expanded(
flex: 1,
child: Column(children: const <Widget>[
Icon(Icons.check),
Text(
'待收货',
style: TextStyle(fontSize: 12.0, color: tTextColor),
textAlign: TextAlign.center,
)
]),
),
Expanded(
flex: 1,
child: Column(children: const <Widget>[
SizedBox(height: 15.0),
Icon(Icons.home),
Text(
'已完成',
style: TextStyle(fontSize: 12.0, color: tTextColor),
textAlign: TextAlign.center,
),
SizedBox(height: 15.0),
]),
),
]),
)
],
),
);
}
}