Update: 2026-07-12 06:04:42
This commit is contained in:
@@ -22,7 +22,7 @@ class TransitDriverHomePage extends StatelessWidget {
|
||||
return MyScafolld(
|
||||
title: 'Mawasalati'.tr,
|
||||
isleading: true,
|
||||
body: const [Expanded(child: Center(child: CircularProgressIndicator()))],
|
||||
body: const [Column(children: [Expanded(child: Center(child: CircularProgressIndicator()))])],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -31,17 +31,21 @@ class TransitDriverHomePage extends StatelessWidget {
|
||||
title: 'Mawasalati'.tr,
|
||||
isleading: true,
|
||||
body: [
|
||||
Expanded(
|
||||
child: Center(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(24),
|
||||
child: Text(
|
||||
'This account is not registered as a bus driver in any institution'.tr,
|
||||
textAlign: TextAlign.center,
|
||||
style: AppStyle.title,
|
||||
Column(
|
||||
children: [
|
||||
Expanded(
|
||||
child: Center(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(24),
|
||||
child: Text(
|
||||
'This account is not registered as a bus driver in any institution'.tr,
|
||||
textAlign: TextAlign.center,
|
||||
style: AppStyle.title,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
);
|
||||
@@ -51,26 +55,30 @@ class TransitDriverHomePage extends StatelessWidget {
|
||||
title: c.orgName,
|
||||
isleading: true,
|
||||
body: [
|
||||
Expanded(
|
||||
child: RefreshIndicator(
|
||||
onRefresh: c.fetchTodayTrips,
|
||||
child: c.isLoadingTrips
|
||||
? const Center(child: CircularProgressIndicator())
|
||||
: c.todayTrips.isEmpty
|
||||
? ListView(
|
||||
children: [
|
||||
const SizedBox(height: 80),
|
||||
Center(
|
||||
child: Text('No trips today'.tr, style: AppStyle.title),
|
||||
Column(
|
||||
children: [
|
||||
Expanded(
|
||||
child: RefreshIndicator(
|
||||
onRefresh: c.fetchTodayTrips,
|
||||
child: c.isLoadingTrips
|
||||
? const Center(child: CircularProgressIndicator())
|
||||
: c.todayTrips.isEmpty
|
||||
? ListView(
|
||||
children: [
|
||||
const SizedBox(height: 80),
|
||||
Center(
|
||||
child: Text('No trips today'.tr, style: AppStyle.title),
|
||||
),
|
||||
],
|
||||
)
|
||||
: ListView.builder(
|
||||
padding: const EdgeInsets.all(16),
|
||||
itemCount: c.todayTrips.length,
|
||||
itemBuilder: (_, i) => _tripCard(c, c.todayTrips[i]),
|
||||
),
|
||||
],
|
||||
)
|
||||
: ListView.builder(
|
||||
padding: const EdgeInsets.all(16),
|
||||
itemCount: c.todayTrips.length,
|
||||
itemBuilder: (_, i) => _tripCard(c, c.todayTrips[i]),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user