added profil and kurir page in pengirim, added pengiriman page at kurir, sort the api, design the ui back

This commit is contained in:
kicap1992
2022-06-26 00:47:09 +08:00
parent 330bfdeadb
commit dc2c23ffc3
42 changed files with 3654 additions and 297 deletions

View File

@ -0,0 +1,66 @@
import 'package:flutter/material.dart';
class ErrorLoadDataWidget extends StatelessWidget {
const ErrorLoadDataWidget({
Key? key,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Padding(
padding: EdgeInsets.only(top: MediaQuery.of(context).size.height * 0.05),
child: const Center(
child: Text(
'Terjadi kesalahan',
style: TextStyle(
color: Colors.white,
fontSize: 20,
),
),
),
);
}
}
class TiadaDataWIdget extends StatelessWidget {
const TiadaDataWIdget({
Key? key,
this.text = 'Tidak ada data',
}) : super(key: key);
final String text;
@override
Widget build(BuildContext context) {
return Padding(
padding: EdgeInsets.only(top: MediaQuery.of(context).size.height * 0.05),
child: Center(
child: Text(
text,
style: TextStyle(
color: Colors.white,
fontSize: 20,
),
),
),
);
}
}
class LoadingDataWidget extends StatelessWidget {
const LoadingDataWidget({
Key? key,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Padding(
padding: EdgeInsets.only(top: MediaQuery.of(context).size.height * 0.05),
child: const Center(
child: CircularProgressIndicator(
valueColor: AlwaysStoppedAnimation<Color>(Colors.white),
),
),
);
}
}