temporary update
This commit is contained in:
@ -27,7 +27,7 @@ class _HistoryPageState extends State<HistoryPage> {
|
||||
future: db.getDestinations(),
|
||||
builder: (context, snapshot) {
|
||||
if (snapshot.connectionState == ConnectionState.waiting) {
|
||||
return const Center(child: CircularProgressIndicator());
|
||||
return const Center(child: CircularProgressIndicator()); //History page
|
||||
} else if (snapshot.hasError) {
|
||||
return Center(child: Text('Error: ${snapshot.error}'));
|
||||
} else if (!snapshot.hasData || snapshot.data!.isEmpty) {
|
||||
@ -167,7 +167,7 @@ class CustomWidget extends StatelessWidget {
|
||||
print('Error loading image path: ${snapshot.error}');
|
||||
return const Icon(Icons.error);
|
||||
} else {
|
||||
return const CircularProgressIndicator();
|
||||
return const CircularProgressIndicator(); // History page 2
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user