gascom/lib/screens/follow_order_screen.dart
Abdullah Salah 216efb8a83 first commit
2024-12-25 11:09:55 +03:00

56 lines
1.9 KiB
Dart

import 'package:flutter/material.dart';
import 'package:gascom/widgets/order_container.dart';
class FollowOrderScreen extends StatefulWidget {
const FollowOrderScreen({super.key});
@override
State<FollowOrderScreen> createState() => _FollowOrderScreenState();
}
class _FollowOrderScreenState extends State<FollowOrderScreen> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 20),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
const SizedBox(height: 30),
Text(
"طلبات حالية",
style: Theme.of(context).textTheme.titleLarge,
),
const SizedBox(height: 20),
ListView.separated(
shrinkWrap: true,
physics: const NeverScrollableScrollPhysics(),
itemCount: 5,
itemBuilder: (context, index) => OrderContainer(),
separatorBuilder: (context, index) => const SizedBox(height: 10),
),
const SizedBox(height: 30),
Text(
"طلبات سابقة",
style: Theme.of(context).textTheme.titleLarge,
),
const SizedBox(height: 20),
ListView.separated(
shrinkWrap: true,
physics: const NeverScrollableScrollPhysics(),
itemCount: 5,
itemBuilder: (context, index) => OrderContainer(),
separatorBuilder: (context, index) => const SizedBox(height: 10),
),
const SizedBox(height: 30),
],
),
),
),
),
);
}
}