Encrypted messaging app
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
3.4 KiB

  1. import 'package:flutter/material.dart';
  2. import 'package:font_awesome_flutter/font_awesome_flutter.dart';
  3. import './signup.dart';
  4. class UnauthenticatedLandingWidget extends StatefulWidget {
  5. const UnauthenticatedLandingWidget({Key? key}) : super(key: key);
  6. @override
  7. State<UnauthenticatedLandingWidget> createState() => _UnauthenticatedLandingWidgetState();
  8. }
  9. class _UnauthenticatedLandingWidgetState extends State<UnauthenticatedLandingWidget> {
  10. @override
  11. Widget build(BuildContext context) {
  12. final ButtonStyle buttonStyle = ElevatedButton.styleFrom(
  13. primary: Colors.white,
  14. onPrimary: Colors.cyan,
  15. minimumSize: const Size.fromHeight(50),
  16. padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 10),
  17. textStyle: const TextStyle(
  18. fontSize: 20,
  19. fontWeight: FontWeight.bold,
  20. color: Colors.red,
  21. ),
  22. );
  23. return Center(
  24. child: Column(
  25. mainAxisAlignment: MainAxisAlignment.center,
  26. crossAxisAlignment: CrossAxisAlignment.center,
  27. children: <Widget>[
  28. Center(
  29. child: Row(
  30. mainAxisAlignment: MainAxisAlignment.center,
  31. crossAxisAlignment: CrossAxisAlignment.center,
  32. children: const [
  33. FaIcon(FontAwesomeIcons.envelope, color: Colors.white, size: 40),
  34. SizedBox(width: 15),
  35. Text('Envelope', style: TextStyle(fontSize: 40, color: Colors.white),)
  36. ]
  37. ),
  38. ),
  39. const SizedBox(height: 10),
  40. Padding(
  41. padding: const EdgeInsets.all(15),
  42. child: Column (
  43. children: [
  44. ElevatedButton(
  45. child: const Text('Login'),
  46. onPressed: loginButton,
  47. style: buttonStyle,
  48. ),
  49. const SizedBox(height: 20),
  50. ElevatedButton(
  51. child: const Text('Sign Up'),
  52. onPressed: () => {
  53. Navigator.push(
  54. context,
  55. MaterialPageRoute(builder: (context) => const Signup()),
  56. ),
  57. },
  58. style: buttonStyle,
  59. ),
  60. ]
  61. ),
  62. ),
  63. ],
  64. ),
  65. );
  66. }
  67. }
  68. void loginButton() {
  69. }