formularios fondo azul

This commit is contained in:
Juan Felipe Duarte
2023-06-17 10:15:35 -05:00
parent f69201e0dd
commit d357d543d9
2 changed files with 443 additions and 444 deletions
+17 -21
View File
@@ -249,38 +249,35 @@ class _ProfileWebScreenState extends State<ProfileWebScreen> {
String city = _ciudad.toString(); String city = _ciudad.toString();
return Scaffold( return Scaffold(
backgroundColor: const Color(0xFFD6F4FF),
appBar: PopAppbar( appBar: PopAppbar(
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
}, },
label: 'Perfil'), label: 'Perfil'),
body: SingleChildScrollView( body: Center(
reverse: true, child: SizedBox(
child: Center( width: 300,
height: 550,
child: Card(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10),
),
color: Colors.white,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 20.0),
child: Form(
key: _formKey,
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Container( Container(
padding: const EdgeInsets.only(top: 20), padding: const EdgeInsets.only(top: 20, bottom: 20),
child: (selectedImagInBytes != null) child: (selectedImagInBytes != null)
? LocalPhotoWeb(file: selectedImagInBytes) ? LocalPhotoWeb(file: selectedImagInBytes)
: ReferencePhotoWeb(ref: storage.ref().child(_photo)), : ReferencePhotoWeb(ref: storage.ref().child(_photo)),
), ),
// Padding(
// padding: const EdgeInsets.symmetric(vertical: 10),
// child: ElevatedButton.icon(
// onPressed: () {
// _selectFile(true);
// },
// icon: const Icon(Icons.image),
// label: const Text('Elige una imagen'),
// ),
// ),
Container(
width: 300,
child: Form(
key: _formKey,
child: Column(
children: [
TextFormField( TextFormField(
controller: _nameController, controller: _nameController,
maxLength: 50, maxLength: 50,
@@ -451,7 +448,6 @@ class _ProfileWebScreenState extends State<ProfileWebScreen> {
), ),
), ),
), ),
],
), ),
), ),
), ),
+25 -22
View File
@@ -210,34 +210,32 @@ class _ServiceScreenState extends State<ServiceScreen> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
if (kIsWeb) { if (kIsWeb) {
return Scaffold( return Scaffold(
backgroundColor: const Color(0xFFD6F4FF),
drawer: DrawerMenu(), drawer: DrawerMenu(),
appBar: AppBar( appBar: AppBar(
elevation: 0, elevation: 0,
title: Row( title: const Text(
children: [
Container(
padding: const EdgeInsets.only(right: 10),
decoration: const BoxDecoration(
border: Border(
right: BorderSide(
color: Colors.white,
width: 1.0,
),
),
),
child: const Text(
'Prosapp', 'Prosapp',
style: TextStyle(
color: Colors.white,
fontSize: 20,
), ),
), )),
],
), // Texto del título
),
body: Center( body: Center(
child: Container( child: SizedBox(
width: 300, width: 300,
height: 470,
child: Card(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10),
),
color: Colors.white,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 20.0),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
const SizedBox(height: 20.0),
TextFormField( TextFormField(
controller: _ubicationController, controller: _ubicationController,
readOnly: true, readOnly: true,
@@ -298,7 +296,8 @@ class _ServiceScreenState extends State<ServiceScreen> {
if (ubicacion == 'sitio') { if (ubicacion == 'sitio') {
professionalAddress = profesional.realAddress; professionalAddress = profesional.realAddress;
_ubicationController.text = profesional.realAddress; _ubicationController.text =
profesional.realAddress;
latUser = profesional.latitude; latUser = profesional.latitude;
lngUser = profesional.longitude; lngUser = profesional.longitude;
} }
@@ -390,7 +389,7 @@ class _ServiceScreenState extends State<ServiceScreen> {
prefixIcon: Icon(Icons.message_outlined), prefixIcon: Icon(Icons.message_outlined),
hintText: 'Observaciones'), hintText: 'Observaciones'),
), ),
const SizedBox(height: 20.0), const SizedBox(height: 40.0),
ElevatedButton( ElevatedButton(
onPressed: () { onPressed: () {
if (user?.name == null || if (user?.name == null ||
@@ -432,7 +431,9 @@ class _ServiceScreenState extends State<ServiceScreen> {
latUser, latUser,
lngUser, lngUser,
'pendiente', 'pendiente',
professionalTarifa == 0 ? 0 : professionalTarifa, professionalTarifa == 0
? 0
: professionalTarifa,
false, false,
false, false,
) )
@@ -479,6 +480,8 @@ class _ServiceScreenState extends State<ServiceScreen> {
), ),
), ),
), ),
),
),
); );
} }