criada as telas register_home_screen.dart, register_individual_screen.dart e splash_screen.dart

This commit is contained in:
Reginaldo
2023-03-27 16:34:47 -03:00
parent 13e9eb4b24
commit f89efd285e
13 changed files with 1840 additions and 9 deletions

View 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)
),
],
),
);
}
}

View File

@@ -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),

View File

@@ -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,

View File

@@ -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,),
);