63 lines
1.9 KiB
Dart
63 lines
1.9 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:rasadyar_core/core.dart';
|
|
import 'package:rasadyar_core/presentation/widget/inputs/r_input.dart';
|
|
import 'package:rasadyar_core/presentation/widget/tabs/new_tab.dart';
|
|
|
|
import 'logic.dart';
|
|
|
|
class AddSupervisionPage extends GetView<AddSupervisionLogic> {
|
|
const AddSupervisionPage({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
backgroundColor: AppColor.lightGreyLight,
|
|
appBar: RAppBar(
|
|
title: 'ایجاد بازرسی',
|
|
leading: vecWidget(
|
|
Assets.vecMessageAddSvg,
|
|
color: AppColor.blueNormal,
|
|
width: 16,
|
|
height: 16,
|
|
),
|
|
),
|
|
body: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
spacing: 16,
|
|
children: [
|
|
Padding(
|
|
padding: const EdgeInsets.fromLTRB(22, 13, 22, 4),
|
|
child: Text(
|
|
'نوع پروانه کسب',
|
|
textAlign: TextAlign.center,
|
|
style: AppFonts.yekan12.copyWith(color: AppColor.blueNormal),
|
|
),
|
|
),
|
|
|
|
ObxValue((data) {
|
|
return NewCupertinoSegmentedControl<int>(
|
|
padding: EdgeInsetsDirectional.symmetric(
|
|
horizontal: 20,
|
|
vertical: 10,
|
|
),
|
|
children: controller.segments,
|
|
groupValue: data.value,
|
|
selectedColor: AppColor.blueNormal,
|
|
unselectedColor: Colors.white,
|
|
borderColor: Colors.grey.shade300,
|
|
onValueChanged: (int value) {
|
|
data.value = value;
|
|
},
|
|
);
|
|
}, controller.selectedSegment),
|
|
|
|
RTextField(label: 'صادر کننده پروانه'),
|
|
RTextField(label: 'شماره مجوز'),
|
|
RTextField(label: 'شماره ثبت'),
|
|
RTextField(label: 'کد اقتصادی'),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|