diff --git a/lib/src/controllers/add_name_email_city.dart b/lib/src/controllers/add_name_email_city.dart index 13661f3..614072e 100644 --- a/lib/src/controllers/add_name_email_city.dart +++ b/lib/src/controllers/add_name_email_city.dart @@ -1,6 +1,5 @@ import 'package:flutter/material.dart'; import 'package:get/get.dart'; -import 'package:prosappco/src/authentication/authentication_repository.dart'; class NameEmailCityController extends GetxController { static NameEmailCityController get instance => Get.find(); diff --git a/lib/src/screens/new_number.dart b/lib/src/screens/new_number.dart index d439105..12a469b 100644 --- a/lib/src/screens/new_number.dart +++ b/lib/src/screens/new_number.dart @@ -3,6 +3,7 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:intl_phone_field/intl_phone_field.dart'; +import 'package:prosappco/src/components/pop_appbar.dart'; import 'package:prosappco/src/components/primary_btn.dart'; import 'package:prosappco/src/controllers/new_phone_controller.dart'; @@ -35,17 +36,12 @@ class _NewNumberScreenState extends State { return SafeArea( child: Scaffold( resizeToAvoidBottomInset: false, - appBar: AppBar( - backgroundColor: Colors.white, - iconTheme: const IconThemeData( - color: Colors.black, - ), - title: const Text( - 'Añadir numero', - style: TextStyle( - color: Colors.black, - ), - ), + appBar: PopAppbar( + onPressed: () { + _formKey.currentState!.reset(); + Navigator.pop(context); + }, + label: 'Añadir numero', ), body: !kIsWeb ? Container( @@ -111,6 +107,40 @@ class _NewNumberScreenState extends State { style: TextStyle( fontSize: 13.0, color: Color(0xFF65676B))), ), + Container( + margin: const EdgeInsets.only(top: 10, bottom: 30), + padding: const EdgeInsets.symmetric( + horizontal: 20, vertical: 15), + decoration: BoxDecoration( + color: const Color(0xFFD6F4FF), + borderRadius: BorderRadius.circular(20), + boxShadow: [ + BoxShadow( + color: Colors.grey.withOpacity(0.5), + spreadRadius: 1, + blurRadius: 5, + offset: const Offset(1, 3), + ), + ], + ), + child: const Row( + children: [ + Icon( + Icons.error_outline, + size: 27, + color: Colors.black54, + ), + SizedBox(width: 15), + Expanded( + child: Text( + '¡Al actualizar tu número, se cerrará la sesión para confirmar que eres tú!.', + style: + TextStyle(color: Colors.black, fontSize: 14), + ), + ), + ], + ), + ), Padding( padding: const EdgeInsets.only(bottom: 30), child: Center( @@ -190,6 +220,40 @@ class _NewNumberScreenState extends State { style: TextStyle( fontSize: 13.0, color: Color(0xFF65676B))), ), + Container( + margin: const EdgeInsets.only(top: 10, bottom: 30), + padding: const EdgeInsets.symmetric( + horizontal: 20, vertical: 15), + decoration: BoxDecoration( + color: const Color(0xFFD6F4FF), + borderRadius: BorderRadius.circular(20), + boxShadow: [ + BoxShadow( + color: Colors.grey.withOpacity(0.5), + spreadRadius: 1, + blurRadius: 5, + offset: const Offset(1, 3), + ), + ], + ), + child: const Row( + children: [ + Icon( + Icons.error_outline, + size: 27, + color: Colors.black54, + ), + SizedBox(width: 15), + Expanded( + child: Text( + '¡Al actualizar tu número, se cerrará la sesión para confirmar que eres tú!.', + style: TextStyle( + color: Colors.black, fontSize: 14), + ), + ), + ], + ), + ), Padding( padding: const EdgeInsets.only(bottom: 30), child: Center(