2024-07-23 11:36:50 +00:00
|
|
|
import 'package:cargo/presentation/presentation.dart';
|
2024-07-23 10:55:48 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
import '../../configs/configs.dart';
|
|
|
|
|
import '../../core/core.dart';
|
|
|
|
|
|
|
|
|
|
class OrdersScreen extends StatelessWidget {
|
|
|
|
|
const OrdersScreen({super.key});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
App.init(context);
|
|
|
|
|
return Scaffold(
|
|
|
|
|
backgroundColor: AppColors.surface,
|
|
|
|
|
body: CustomScrollView(
|
|
|
|
|
slivers: [
|
|
|
|
|
const SliverToBoxAdapter(
|
|
|
|
|
child: OrderHeader(),
|
|
|
|
|
),
|
|
|
|
|
SliverToBoxAdapter(
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: Space.all(1, 1),
|
|
|
|
|
child: const Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
'Sargytlarym',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 20,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
'öz ýüküňizi yzarlaň',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SliverList(
|
|
|
|
|
delegate: SliverChildBuilderDelegate(
|
|
|
|
|
(BuildContext context, int index) {
|
2024-07-23 11:36:50 +00:00
|
|
|
return const OrderCard();
|
2024-07-23 10:55:48 +00:00
|
|
|
},
|
|
|
|
|
childCount: 4, // items.length,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|