criada as telas register_home_screen.dart, register_individual_screen.dart e splash_screen.dart
This commit is contained in:
53
lib/widgets/check_box_two_subtitle.dart
Normal file
53
lib/widgets/check_box_two_subtitle.dart
Normal file
@@ -0,0 +1,53 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:rkm/utils/color_palette.dart';
|
||||
import 'package:rkm/widgets/text_default.dart';
|
||||
|
||||
class CheckBoxTwoSubtitle extends StatelessWidget {
|
||||
|
||||
double width;
|
||||
String subtitle1;
|
||||
String subtitle2;
|
||||
bool checkbox1;
|
||||
bool checkbox2;
|
||||
var onChanged1;
|
||||
var onChanged2;
|
||||
|
||||
CheckBoxTwoSubtitle({
|
||||
this.width = double.infinity,
|
||||
required this.checkbox1,
|
||||
required this.checkbox2,
|
||||
required this.subtitle1,
|
||||
required this.subtitle2,
|
||||
required this.onChanged1,
|
||||
required this.onChanged2,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
return Container(
|
||||
width: width,
|
||||
child: Row(
|
||||
children: [
|
||||
Checkbox(
|
||||
value: checkbox1,
|
||||
onChanged: onChanged1
|
||||
),
|
||||
Container(
|
||||
width: width/2.5,
|
||||
child: TextDefault(text: subtitle1,fontSize: 15,color: ColorPalette.black54,)
|
||||
),
|
||||
Spacer(),
|
||||
Checkbox(
|
||||
value: checkbox2,
|
||||
onChanged: onChanged2
|
||||
),
|
||||
Container(
|
||||
width: width/3,
|
||||
child: TextDefault(text: subtitle2,fontSize: 15,color: ColorPalette.black54)
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -14,6 +14,7 @@ class DropdownWithSubtitle extends StatelessWidget {
|
||||
double widthContainerDropdown;
|
||||
List<String> list;
|
||||
var onChanged;
|
||||
Color colorBorder;
|
||||
|
||||
DropdownWithSubtitle({
|
||||
required this.subtitle,
|
||||
@@ -24,6 +25,7 @@ class DropdownWithSubtitle extends StatelessWidget {
|
||||
required this.hintDropdown,
|
||||
required this.onChanged,
|
||||
required this.list,
|
||||
this.colorBorder = ColorPalette.black54,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -47,7 +49,7 @@ class DropdownWithSubtitle extends StatelessWidget {
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(5),
|
||||
border: Border.all(color: ColorPalette.black54)
|
||||
border: Border.all(color: colorBorder)
|
||||
),
|
||||
margin: EdgeInsets.symmetric(horizontal: 5),
|
||||
padding: EdgeInsets.symmetric(horizontal: 2),
|
||||
|
||||
@@ -21,7 +21,7 @@ class SwitchWithSubtitle extends StatelessWidget {
|
||||
width: width,
|
||||
child: Row(
|
||||
children: [
|
||||
TextDefault(text: title,color: ColorPalette.black54,),
|
||||
TextDefault(text: title,color: ColorPalette.black54,fontSize: 18),
|
||||
Spacer(),
|
||||
Switch(
|
||||
value: value,
|
||||
|
||||
@@ -5,16 +5,18 @@ import 'package:rkm/widgets/text_default.dart';
|
||||
|
||||
class TitleContainers extends StatelessWidget {
|
||||
String title;
|
||||
double width;
|
||||
|
||||
TitleContainers({
|
||||
required this.title
|
||||
required this.title,
|
||||
this.width = double.infinity
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
padding: ConstVariable().marginHightInput,
|
||||
width: double.infinity,
|
||||
width: width,
|
||||
color: ColorPalette.titleContainer,
|
||||
child: TextDefault(text: title,fontWeigth: FontWeight.bold,textAlign: TextAlign.center,color: ColorPalette.black54,),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user