main.dart 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. import 'package:flutter/material.dart';
  2. void main() => runApp(const MaterialApp(
  3. home: ExerciseOne(),
  4. ));
  5. class ExerciseOne extends StatelessWidget {
  6. const ExerciseOne({super.key});
  7. @override
  8. Widget build(BuildContext context) {
  9. return Scaffold(
  10. backgroundColor: Colors.grey[900],
  11. appBar: AppBar(
  12. backgroundColor: Colors.grey[850],
  13. foregroundColor: Colors.white,
  14. title: const Text('Ninja ID Card'),
  15. centerTitle: true,
  16. elevation: 0.0,
  17. ),
  18. body: Padding(
  19. padding: const EdgeInsets.fromLTRB(20, 0, 20, 0),
  20. child: Column(
  21. mainAxisAlignment: MainAxisAlignment.start,
  22. crossAxisAlignment: CrossAxisAlignment.start,
  23. children: [
  24. SizedBox(
  25. height: 150,
  26. child: Row(
  27. mainAxisAlignment: MainAxisAlignment.center,
  28. children: [
  29. Image.network("https://api.multiavatar.com/Binx Bond.png", // CircleAvatar para imagen circulares
  30. width: 90.0, height: 90.0)
  31. ],
  32. ),
  33. ),
  34. Divider(
  35. height: 60.0,
  36. color: Colors.grey[800],
  37. ),
  38. const SizedBox(
  39. height: 100,
  40. child: Column(
  41. crossAxisAlignment: CrossAxisAlignment.start,
  42. children: [
  43. Text(
  44. 'NAME',
  45. style: TextStyle(color: Colors.grey),
  46. ),
  47. Text(
  48. 'Paula Pereyra',
  49. style: TextStyle(
  50. color: Colors.amber,
  51. fontWeight: FontWeight.bold,
  52. fontSize: 25.00),
  53. )
  54. ],
  55. ),
  56. ),
  57. const SizedBox(
  58. height: 100,
  59. child: Column(
  60. crossAxisAlignment: CrossAxisAlignment.start,
  61. children: [
  62. Text(
  63. 'CURRENT NINJA LEVEL',
  64. style: TextStyle(color: Colors.grey),
  65. ),
  66. Text(
  67. '8',
  68. style: TextStyle(
  69. color: Colors.amber,
  70. fontWeight: FontWeight.bold,
  71. fontSize: 25.00),
  72. )
  73. ],
  74. ),
  75. ),
  76. const SizedBox(
  77. child: Row(
  78. mainAxisAlignment: MainAxisAlignment.start,
  79. children: [
  80. Icon(
  81. Icons.email,
  82. color: Colors.grey,
  83. ),
  84. SizedBox( width: 10.0, ),
  85. Text(
  86. 'paulapereyra@gmail.com',
  87. style: TextStyle(color: Colors.grey)
  88. )
  89. ],
  90. ),
  91. )
  92. ],
  93. ),
  94. ),
  95. );
  96. }
  97. }