fix
This commit is contained in:
@@ -488,9 +488,7 @@ class _ProfileProScreenState extends State<ProfileProScreen> {
|
|||||||
if (settings?.tarifas == true)
|
if (settings?.tarifas == true)
|
||||||
customSwitch(
|
customSwitch(
|
||||||
'Tarifa',
|
'Tarifa',
|
||||||
17,
|
|
||||||
false,
|
false,
|
||||||
FontWeight.w500,
|
|
||||||
(value) {
|
(value) {
|
||||||
tarifaValue = value;
|
tarifaValue = value;
|
||||||
},
|
},
|
||||||
@@ -523,11 +521,10 @@ class _ProfileProScreenState extends State<ProfileProScreen> {
|
|||||||
height: 12,
|
height: 12,
|
||||||
),
|
),
|
||||||
if (settings?.domicilios == true)
|
if (settings?.domicilios == true)
|
||||||
customSwitch('Servicio a domicilio', 17, domicilioValue,
|
customSwitch(
|
||||||
FontWeight.w500, toggleDomicilio),
|
'Servicio a domicilio', domicilioValue, toggleDomicilio),
|
||||||
const Divider(),
|
const Divider(),
|
||||||
customSwitch('Servicio en sitio', 17, sitioValue, FontWeight.w500,
|
customSwitch('Servicio en sitio', sitioValue, toggleSitio),
|
||||||
toggleSitio),
|
|
||||||
sitioValue
|
sitioValue
|
||||||
? Padding(
|
? Padding(
|
||||||
padding:
|
padding:
|
||||||
@@ -759,9 +756,7 @@ class _ProfileProScreenState extends State<ProfileProScreen> {
|
|||||||
|
|
||||||
Widget customSwitch(
|
Widget customSwitch(
|
||||||
String text,
|
String text,
|
||||||
double? size,
|
|
||||||
bool switchValue,
|
bool switchValue,
|
||||||
FontWeight? bold,
|
|
||||||
ValueChanged<bool> onChanged,
|
ValueChanged<bool> onChanged,
|
||||||
) {
|
) {
|
||||||
return Padding(
|
return Padding(
|
||||||
@@ -773,12 +768,9 @@ class _ProfileProScreenState extends State<ProfileProScreen> {
|
|||||||
Expanded(
|
Expanded(
|
||||||
child: Text(
|
child: Text(
|
||||||
text,
|
text,
|
||||||
style: TextStyle(
|
style: const TextStyle(
|
||||||
fontSize: size ??
|
fontSize: 17,
|
||||||
15, // Establece el tamaño predeterminado a 15 si no se proporciona
|
fontWeight: FontWeight.w500,
|
||||||
fontWeight: bold ??
|
|
||||||
FontWeight
|
|
||||||
.normal, // Usa negrita si se proporciona, de lo contrario, usa normal
|
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -795,36 +787,6 @@ class _ProfileProScreenState extends State<ProfileProScreen> {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
// Widget customSwitch(String text, double? size = 15, bool switchValue,
|
|
||||||
// FontWeight bold, ValueChanged<bool> onChanged) {
|
|
||||||
// return Padding(
|
|
||||||
// padding: const EdgeInsets.symmetric(horizontal: 30),
|
|
||||||
// child: SizedBox(
|
|
||||||
// height: 40,
|
|
||||||
// child: Row(
|
|
||||||
// children: [
|
|
||||||
// Expanded(
|
|
||||||
// child: Text(
|
|
||||||
// text,
|
|
||||||
// style: TextStyle(
|
|
||||||
// fontSize: size,
|
|
||||||
// fontWeight: bold,
|
|
||||||
// color: Colors.black,
|
|
||||||
// ),
|
|
||||||
// ),
|
|
||||||
// ),
|
|
||||||
// Transform.scale(
|
|
||||||
// scale: 1.2,
|
|
||||||
// child: Switch(
|
|
||||||
// value: switchValue,
|
|
||||||
// onChanged: onChanged,
|
|
||||||
// ),
|
|
||||||
// ),
|
|
||||||
// ],
|
|
||||||
// ),
|
|
||||||
// ),
|
|
||||||
// );
|
|
||||||
// }
|
|
||||||
|
|
||||||
String timeList(Schedule? schedule, BuildContext context) {
|
String timeList(Schedule? schedule, BuildContext context) {
|
||||||
if (schedule == null) {
|
if (schedule == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user