2022-12-27 03:19:49 +00:00
|
|
|
part of 'orderspage.dart';
|
|
|
|
|
|
|
|
class _Order extends StatelessWidget {
|
|
|
|
const _Order({
|
|
|
|
required this.order,
|
|
|
|
});
|
|
|
|
|
|
|
|
final Order order;
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(final BuildContext context) => InkWell(
|
|
|
|
onTap: () {
|
2022-12-27 05:29:50 +00:00
|
|
|
// Navigator.of(context).push(
|
|
|
|
// MaterialPageRoute(
|
|
|
|
// builder: (final BuildContext context) => OrderDetails(order),
|
|
|
|
// );
|
2022-12-27 03:19:49 +00:00
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 15),
|
|
|
|
height: 48,
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
width: 17,
|
|
|
|
height: 17,
|
|
|
|
decoration: const BoxDecoration(
|
|
|
|
color: Color.fromRGBO(
|
|
|
|
133,
|
|
|
|
200,
|
|
|
|
133,
|
|
|
|
100,
|
|
|
|
),
|
|
|
|
shape: BoxShape.circle,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const SizedBox(width: 20),
|
|
|
|
Flexible(
|
|
|
|
child: Text(order.title),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|