panti-asuhan-app/lib/ui/views/admin_index_tracking/profil/profil_view.dart

80 lines
2.5 KiB
Dart
Raw Normal View History

2023-03-30 07:34:12 +00:00
import 'package:flutter/material.dart';
import 'package:stacked/stacked.dart';
import '../../../../app/themes/app_text.dart';
2023-03-30 07:34:12 +00:00
import './profil_view_model.dart';
class ProfilView extends StatelessWidget {
const ProfilView({super.key});
@override
Widget build(BuildContext context) {
return ViewModelBuilder<ProfilViewModel>.reactive(
viewModelBuilder: () => ProfilViewModel(),
onViewModelReady: (ProfilViewModel model) async {
await model.init();
},
builder: (
BuildContext context,
ProfilViewModel model,
Widget? child,
) {
return Scaffold(
body: Padding(
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 15),
child: Column(
children: [
const Center(
child: Image(
image: AssetImage("assets/logo.png"),
width: 200,
height: 200,
),
),
const SizedBox(height: 10),
Text(
"PANTI ASUHAN ABADI AISYIYAH",
style: boldTextStyle.copyWith(
fontSize: 20,
),
textAlign: TextAlign.center,
),
const SizedBox(height: 10),
Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: const [
Icon(Icons.phone),
SizedBox(width: 15),
Expanded(
child: Text(
2024-06-05 09:09:58 +00:00
"085 298 962 023",
textAlign: TextAlign.justify,
style: regularTextStyle,
),
),
],
),
const SizedBox(height: 10),
Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: const [
Icon(Icons.location_on),
SizedBox(width: 15),
Expanded(
child: Text(
"Jln Panti Asuhan No. 3 Ujung Lare, Kec. Soreang, Kota Parepare, Sulawesi Selatan 91133",
textAlign: TextAlign.justify,
style: regularTextStyle,
),
),
],
),
],
2023-03-30 07:34:12 +00:00
),
),
);
},
);
}
}