-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
169 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
lib/presentation_layer/routes/nostr/onboarding/onboarding_login_amber.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:hooks_riverpod/hooks_riverpod.dart'; | ||
|
||
import '../../../../config/palette.dart'; | ||
|
||
class OnboardingLoginAmberPage extends ConsumerStatefulWidget { | ||
const OnboardingLoginAmberPage({super.key}); | ||
@override | ||
ConsumerState<OnboardingLoginAmberPage> createState() => | ||
_OnboardingLoginAmberPageState(); | ||
} | ||
|
||
class _OnboardingLoginAmberPageState | ||
extends ConsumerState<OnboardingLoginAmberPage> { | ||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: null, | ||
backgroundColor: Palette.background, | ||
resizeToAvoidBottomInset: false, | ||
body: SafeArea( | ||
// input for the user to enter their private key, should be visible on a dark background. | ||
child: Container( | ||
width: MediaQuery.of(context).size.width, | ||
height: MediaQuery.of(context).size.height, | ||
padding: const EdgeInsets.all(30), | ||
child: Column( | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
crossAxisAlignment: CrossAxisAlignment.center, | ||
children: [ | ||
const SizedBox(height: 20), | ||
SizedBox( | ||
height: 200, | ||
width: MediaQuery.of(context).size.width, | ||
child: const Column( | ||
crossAxisAlignment: CrossAxisAlignment.center, | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
children: [ | ||
Text( | ||
"login", | ||
style: TextStyle( | ||
color: Palette.white, | ||
fontSize: 40, | ||
fontFamily: "Poppins", | ||
), | ||
), | ||
], | ||
), | ||
), | ||
const Spacer( | ||
flex: 1, | ||
) | ||
], | ||
), | ||
), | ||
), | ||
); | ||
} | ||
} |
89 changes: 89 additions & 0 deletions
89
lib/presentation_layer/routes/nostr/onboarding/onboarding_login_select.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
import 'package:hooks_riverpod/hooks_riverpod.dart'; | ||
|
||
import '../../../../config/palette.dart'; | ||
import '../../../atoms/long_button.dart'; | ||
|
||
class OnboardingLoginSelectPage extends ConsumerStatefulWidget { | ||
final Function onPressedSeedPhraseLogin; | ||
final Function onPressedAmberLogin; | ||
|
||
const OnboardingLoginSelectPage({ | ||
super.key, | ||
required this.onPressedSeedPhraseLogin, | ||
required this.onPressedAmberLogin, | ||
}); | ||
@override | ||
ConsumerState<OnboardingLoginSelectPage> createState() => | ||
_OnboardingLoginSelectPageState(); | ||
} | ||
|
||
class _OnboardingLoginSelectPageState | ||
extends ConsumerState<OnboardingLoginSelectPage> { | ||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: null, | ||
backgroundColor: Palette.background, | ||
resizeToAvoidBottomInset: false, | ||
body: SafeArea( | ||
// input for the user to enter their private key, should be visible on a dark background. | ||
child: Container( | ||
width: MediaQuery.of(context).size.width, | ||
height: MediaQuery.of(context).size.height, | ||
padding: const EdgeInsets.all(30), | ||
child: Column( | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
crossAxisAlignment: CrossAxisAlignment.center, | ||
children: [ | ||
const SizedBox(height: 20), | ||
SizedBox( | ||
height: 200, | ||
width: MediaQuery.of(context).size.width, | ||
child: const Column( | ||
crossAxisAlignment: CrossAxisAlignment.center, | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
children: [ | ||
Text( | ||
"login", | ||
style: TextStyle( | ||
color: Palette.white, | ||
fontSize: 40, | ||
fontFamily: "Poppins", | ||
), | ||
), | ||
], | ||
), | ||
), | ||
const Spacer( | ||
flex: 1, | ||
), | ||
SizedBox( | ||
width: MediaQuery.of(context).size.width, | ||
height: 40, | ||
child: longButton( | ||
name: "amber login", | ||
inverted: false, | ||
onPressed: () => widget.onPressedAmberLogin(), | ||
), | ||
), | ||
const SizedBox( | ||
height: 20, | ||
), | ||
SizedBox( | ||
width: MediaQuery.of(context).size.width, | ||
height: 40, | ||
child: longButton( | ||
name: "seed phrase login", | ||
inverted: false, | ||
onPressed: () => widget.onPressedSeedPhraseLogin(), | ||
), | ||
), | ||
], | ||
), | ||
), | ||
), | ||
); | ||
} | ||
} |