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

35
lib/widgets/appbar.dart Normal file
View File

@ -0,0 +1,35 @@
import 'package:flutter/material.dart';
class AppBarWidget extends StatelessWidget {
const AppBarWidget({
Key? key,
required this.header,
required this.autoLeading,
this.actions,
}) : super(key: key);
final String header;
final bool autoLeading;
final List<Widget>? actions;
@override
Widget build(BuildContext context) {
return AppBar(
centerTitle: true,
title: Text(
header,
style: TextStyle(
fontSize: MediaQuery.of(context).size.height * 0.03,
fontWeight: FontWeight.bold,
),
),
automaticallyImplyLeading: autoLeading,
backgroundColor: const Color.fromARGB(255, 2, 72, 72),
// shape: const RoundedRectangleBorder(
// borderRadius: BorderRadius.vertical(
// bottom: Radius.circular(40),
// ),
// ),
actions: actions,
);
}
}