sign in sandbox profile move
This commit is contained in:
@@ -26,6 +26,8 @@ class _SignInState extends State<SignIn> {
|
|||||||
final passwordController = TextEditingController();
|
final passwordController = TextEditingController();
|
||||||
//bool _obscureText = true;
|
//bool _obscureText = true;
|
||||||
bool successfulSignIn = false;
|
bool successfulSignIn = false;
|
||||||
|
bool showProfiles = false;
|
||||||
|
|
||||||
// focus node to capture keyboard events
|
// focus node to capture keyboard events
|
||||||
final FocusNode _focusNode = FocusNode();
|
final FocusNode _focusNode = FocusNode();
|
||||||
|
|
||||||
@@ -316,31 +318,31 @@ class _SignInState extends State<SignIn> {
|
|||||||
//spacer
|
//spacer
|
||||||
const SizedBox(height: 25),
|
const SizedBox(height: 25),
|
||||||
|
|
||||||
SizedBox(
|
// SizedBox(
|
||||||
width: 500.0,
|
// width: 500.0,
|
||||||
//height: 100.0,
|
// //height: 100.0,
|
||||||
child: Row(
|
// child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
// mainAxisAlignment: MainAxisAlignment.start,
|
||||||
children: [
|
// children: [
|
||||||
GestureDetector(
|
// GestureDetector(
|
||||||
onTap: () {
|
// onTap: () {
|
||||||
showSandboxProfiles();
|
// showSandboxProfiles();
|
||||||
},
|
// },
|
||||||
child: Text(
|
// child: Text(
|
||||||
'Sandbox Profile',
|
// 'Sandbox Profile',
|
||||||
style: TextStyle(
|
// style: TextStyle(
|
||||||
fontSize: 18,
|
// fontSize: 18,
|
||||||
color: MzanziInnovationHub.of(context)!
|
// color: MzanziInnovationHub.of(context)!
|
||||||
.theme
|
// .theme
|
||||||
.secondaryColor(),
|
// .secondaryColor(),
|
||||||
fontWeight: FontWeight.bold,
|
// fontWeight: FontWeight.bold,
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
],
|
// ],
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
const SizedBox(height: 10),
|
// const SizedBox(height: 10),
|
||||||
//email input
|
//email input
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 500.0,
|
width: 500.0,
|
||||||
@@ -419,11 +421,13 @@ class _SignInState extends State<SignIn> {
|
|||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.end,
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
children: [
|
children: [
|
||||||
const Text(
|
Text(
|
||||||
'New User?',
|
'New User?',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
color: Color.fromARGB(255, 201, 200, 200)),
|
color: MzanziInnovationHub.of(context)!
|
||||||
|
.theme
|
||||||
|
.messageTextColor()),
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
width: 6,
|
width: 6,
|
||||||
@@ -443,7 +447,88 @@ class _SignInState extends State<SignIn> {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
)
|
),
|
||||||
|
//spacer
|
||||||
|
const SizedBox(height: 15),
|
||||||
|
SizedBox(
|
||||||
|
width: 500.0,
|
||||||
|
//height: 100.0,
|
||||||
|
child: Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
const Flexible(
|
||||||
|
flex: 1,
|
||||||
|
child: Padding(
|
||||||
|
padding: EdgeInsets.only(right: 10.0),
|
||||||
|
child: Divider(),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Flexible(
|
||||||
|
flex: 1,
|
||||||
|
child: GestureDetector(
|
||||||
|
child: Text(
|
||||||
|
'Use Sandox Profile',
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
style: TextStyle(
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
fontSize: 15,
|
||||||
|
color: MzanziInnovationHub.of(context)!
|
||||||
|
.theme
|
||||||
|
.secondaryColor()),
|
||||||
|
),
|
||||||
|
onTap: () {
|
||||||
|
setState(() {
|
||||||
|
showProfiles = !showProfiles;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const Flexible(
|
||||||
|
flex: 1,
|
||||||
|
child: Padding(
|
||||||
|
padding: EdgeInsets.only(left: 10.0),
|
||||||
|
child: Divider(),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(height: 10),
|
||||||
|
Visibility(
|
||||||
|
visible: showProfiles,
|
||||||
|
child: SizedBox(
|
||||||
|
width: 500,
|
||||||
|
child: Column(
|
||||||
|
//mainAxisSize: MainAxisSize.max,
|
||||||
|
children: [
|
||||||
|
GridView.builder(
|
||||||
|
// physics: ,
|
||||||
|
shrinkWrap: true,
|
||||||
|
itemCount: sandboxProfileList.length,
|
||||||
|
gridDelegate:
|
||||||
|
const SliverGridDelegateWithMaxCrossAxisExtent(
|
||||||
|
mainAxisSpacing: 10,
|
||||||
|
maxCrossAxisExtent: 100),
|
||||||
|
itemBuilder: (context, index) {
|
||||||
|
return sandboxProfileList[index];
|
||||||
|
},
|
||||||
|
),
|
||||||
|
const SizedBox(height: 20),
|
||||||
|
Text(
|
||||||
|
"NB: These accounts are used for test purposes. Please do not store personal information on these profiles.",
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
style: TextStyle(
|
||||||
|
color: MzanziInnovationHub.of(context)!
|
||||||
|
.theme
|
||||||
|
.secondaryColor(),
|
||||||
|
fontSize: 15.0,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user