fix phone dashboard
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import '../../../widgets/app_back_button.dart';
|
||||
import '../models/booking_result.dart';
|
||||
|
||||
const _orange = Color(0xFFFF6B00);
|
||||
@@ -18,6 +19,7 @@ class BookingConfirmationScreen extends StatelessWidget {
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
leading: const AppBackButton(fallbackRoute: '/client'),
|
||||
title: const Text('Booking Confirmed'),
|
||||
),
|
||||
body: SingleChildScrollView(
|
||||
|
||||
@@ -3,6 +3,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import '../../../core/models/marketplace.dart';
|
||||
import '../../../widgets/app_back_button.dart';
|
||||
import '../models/booking_result.dart';
|
||||
import '../providers/client_providers.dart';
|
||||
|
||||
@@ -130,7 +131,10 @@ class _BookingScreenState extends ConsumerState<BookingScreen> {
|
||||
: null;
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(title: const Text('Complete Booking')),
|
||||
appBar: AppBar(
|
||||
leading: const AppBackButton(fallbackRoute: '/client'),
|
||||
title: const Text('Complete Booking'),
|
||||
),
|
||||
body: Form(
|
||||
key: _formKey,
|
||||
child: ListView(
|
||||
|
||||
@@ -6,6 +6,7 @@ import 'package:intl/intl.dart';
|
||||
import '../providers/client_providers.dart';
|
||||
import '../../../core/models/marketplace.dart';
|
||||
import '../../../l10n/app_localizations.dart';
|
||||
import '../../../widgets/app_back_button.dart';
|
||||
import '../../../widgets/preferences_bar.dart';
|
||||
import 'client_shell.dart';
|
||||
import 'widgets/marketplace_vehicle_card.dart';
|
||||
@@ -233,15 +234,21 @@ class _ClientHomeScreenState extends ConsumerState<ClientHomeScreen> {
|
||||
padding: const EdgeInsets.fromLTRB(20, 16, 12, 0),
|
||||
child: Row(
|
||||
children: [
|
||||
Text(
|
||||
l10n.findCarToRent,
|
||||
style: TextStyle(
|
||||
color: cs.onSurface,
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.bold,
|
||||
AppBackButton(
|
||||
fallbackRoute: '/landing',
|
||||
color: cs.onSurface,
|
||||
),
|
||||
const SizedBox(width: 4),
|
||||
Expanded(
|
||||
child: Text(
|
||||
l10n.findCarToRent,
|
||||
style: TextStyle(
|
||||
color: cs.onSurface,
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
),
|
||||
const Spacer(),
|
||||
const PreferencesBar(),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -5,6 +5,7 @@ import 'package:go_router/go_router.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import '../../../core/models/marketplace.dart';
|
||||
import '../../../core/constants/app_constants.dart';
|
||||
import '../../../widgets/app_back_button.dart';
|
||||
import '../providers/client_providers.dart';
|
||||
|
||||
class ClientVehicleDetailScreen extends ConsumerWidget {
|
||||
@@ -48,6 +49,7 @@ class _DetailView extends StatelessWidget {
|
||||
SliverAppBar(
|
||||
expandedHeight: 280,
|
||||
pinned: true,
|
||||
leading: const AppBackButton(fallbackRoute: '/client'),
|
||||
flexibleSpace: FlexibleSpaceBar(
|
||||
background: vehicle.primaryPhoto != null
|
||||
? CachedNetworkImage(
|
||||
|
||||
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import '../../../core/providers/auth_provider.dart';
|
||||
import '../../../widgets/app_back_button.dart';
|
||||
import 'client_shell.dart';
|
||||
|
||||
class MyBookingsScreen extends ConsumerWidget {
|
||||
@@ -13,7 +14,10 @@ class MyBookingsScreen extends ConsumerWidget {
|
||||
|
||||
if (auth.status != AuthStatus.authenticated) {
|
||||
return ClientShell(
|
||||
appBar: AppBar(title: const Text('My Bookings')),
|
||||
appBar: AppBar(
|
||||
leading: const AppBackButton(fallbackRoute: '/client'),
|
||||
title: const Text('My Bookings'),
|
||||
),
|
||||
body: Center(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(32),
|
||||
@@ -53,7 +57,10 @@ class MyBookingsScreen extends ConsumerWidget {
|
||||
}
|
||||
|
||||
return ClientShell(
|
||||
appBar: AppBar(title: const Text('My Bookings')),
|
||||
appBar: AppBar(
|
||||
leading: const AppBackButton(fallbackRoute: '/client'),
|
||||
title: const Text('My Bookings'),
|
||||
),
|
||||
body: const Center(
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
|
||||
Reference in New Issue
Block a user