cargo66/lib/presentation/screens/order_details.dart

84 lines
2.1 KiB
Dart
Raw Normal View History

2024-07-24 12:14:17 +00:00
import 'package:cargo/configs/configs.dart';
import 'package:flutter/material.dart';
import '../../core/core.dart';
2024-07-29 07:35:53 +00:00
import '../widgets/map/clustering.dart';
2024-07-24 12:14:17 +00:00
import '../widgets/widgets.dart';
class OrderDetailsScreen extends StatelessWidget {
const OrderDetailsScreen({super.key});
@override
Widget build(BuildContext context) {
App.init(context);
return Scaffold(
backgroundColor: AppColors.surface,
appBar: AppBar(
iconTheme: const IconThemeData(
color: Colors.white,
),
backgroundColor: AppColors.primary,
title: Text(
'Sargyt №ABC456789',
style: AppText.h2!.copyWith(color: Colors.white),
),
),
body: CustomScrollView(
slivers: [
/// map
2024-07-29 07:35:53 +00:00
SliverToBoxAdapter(
child: SizedBox(
2024-07-29 12:30:30 +00:00
height: AppDimensions.normalize(120),
2024-07-29 07:35:53 +00:00
child: const ClusteringPage(),
),
2024-07-24 12:14:17 +00:00
),
/// info text
SliverToBoxAdapter(
child: Padding(
padding: Space.all(1, 1),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Sargyt barada maglumat №ABC456789',
style: AppText.b1b,
),
/// gap
Space.y!,
/// info card
const InfoCard(),
],
),
),
),
/// current location info
SliverToBoxAdapter(
child: Padding(
padding: Space.all(1, 1),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Gatnaw yoly',
style: AppText.b1b,
),
/// gap
Space.y!,
2024-07-29 12:30:30 +00:00
/// location card
const LocationCard()
2024-07-24 12:14:17 +00:00
],
),
),
),
],
),
);
}
}