criado widgets dropdown_with_subtitle.dart, input_with_subtitle.dart, onbackbutton.dart, switch_with_subtitle.dart
criada as telas main_register_citizen_screen.dart e main_procedures_screen.dart
This commit is contained in:
60
lib/widgets/input_with_subtitle.dart
Normal file
60
lib/widgets/input_with_subtitle.dart
Normal file
@@ -0,0 +1,60 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:rkm/widgets/text_default.dart';
|
||||
import '../utils/color_palette.dart';
|
||||
import 'input_text.dart';
|
||||
|
||||
class InputWithSubtitle extends StatelessWidget {
|
||||
String subtitle;
|
||||
String hintInput;
|
||||
String errorInput;
|
||||
String labelInput;
|
||||
double widthSubtitle;
|
||||
double widthInput;
|
||||
var controller;
|
||||
bool enable;
|
||||
TextInputType textInputType;
|
||||
int maxLines;
|
||||
|
||||
InputWithSubtitle({
|
||||
required this.subtitle,
|
||||
required this.hintInput,
|
||||
required this.errorInput,
|
||||
required this.labelInput,
|
||||
required this.widthSubtitle,
|
||||
required this.widthInput,
|
||||
required this.controller,
|
||||
this.enable = true,
|
||||
this.textInputType = TextInputType.text,
|
||||
this.maxLines = 1,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
// Container(
|
||||
// width: widthSubtitle,
|
||||
// padding: const EdgeInsets.symmetric(horizontal: 8.0,vertical: 3),
|
||||
// child: TextDefault(
|
||||
// text: subtitle,
|
||||
// color: ColorPalette.black54,
|
||||
// fontSize: 18,
|
||||
// fontWeigth: FontWeight.bold,
|
||||
// ),
|
||||
// ),
|
||||
InputText(
|
||||
controller: controller,
|
||||
width: widthInput,
|
||||
hint: hintInput,
|
||||
error: errorInput,
|
||||
label: labelInput,
|
||||
enable: enable,
|
||||
textInputType: textInputType,
|
||||
maxLines:maxLines
|
||||
),
|
||||
Divider(color: ColorPalette.black54,height: 5,endIndent: 10,)
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user