One UI in flutter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.9 KiB

2 years ago
import 'package:flutter/material.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
2 years ago
import 'package:onemd/widget/fx_doctor_address.dart';
2 years ago
import 'fx_company_lookup.dart';
2 years ago
import 'fx_doctor_lookup.dart';
2 years ago
import 'fx_mitra_mou.dart';
2 years ago
import 'fx_text_field.dart';
2 years ago
class FxMitraAddDialog extends HookConsumerWidget {
const FxMitraAddDialog({Key? key}) : super(key: key);
@override
Widget build(BuildContext context, WidgetRef ref) {
2 years ago
final ctrlLogin = useTextEditingController(text: "");
final fcLogin = FocusNode();
2 years ago
return Dialog(
shape: RoundedRectangleBorder(
side: const BorderSide(),
borderRadius: BorderRadius.circular(10),
),
child: SizedBox(
width: 800,
height: 600,
2 years ago
child: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.all(20.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
FxAcCompany(),
const SizedBox(height: 10),
const FxMitraMou(),
const SizedBox(height: 10),
FxAcDoctor(),
const SizedBox(height: 10),
FxDoctorAddress(),
const SizedBox(height: 10),
FxTextField(
ctrl: ctrlLogin,
fc: fcLogin,
hint: "Login",
label: "Login",
),
const SizedBox(height: 10),
FxTextField(
hint: "ID",
label: "ID",
isReadOnly: true,
isEnabled: false,
suffixText: "Auto Generated"),
const SizedBox(height: 10),
],
),
2 years ago
),
)),
);
}
}
2 years ago
useTextEditingController({required String text}) {}