Advertisement
RaphCpp

Untitled

Apr 26th, 2022
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. import 'dart:io';
  2. import 'package:device_info/device_info.dart';
  3. import 'package:flutter/material.dart';
  4. import 'package:provider/provider.dart';
  5. import 'package:running_app/services/auth.dart';
  6. import 'package:running_app/view/view_register.dart';
  7. import 'package:running_app/main.dart';
  8.  
  9. class StatsView extends StatefulWidget {
  10. @override
  11. _StatsViewState createState() => _StatsViewState();
  12. }
  13.  
  14. class _StatsViewState extends State<StatsView> {
  15.  
  16. @override
  17. void initState(){
  18. super.initState();
  19. }
  20.  
  21. Widget build(BuildContext context) {
  22. return Scaffold(
  23. body:Stack(
  24. alignment: Alignment.center,
  25. children: [
  26. Positioned(
  27. bottom: 70,
  28. height: 220,
  29. width: 300,
  30. child: Card(
  31. margin: EdgeInsets.fromLTRB(0.0, 0.0, 0.0, 16.0),
  32. shape: RoundedRectangleBorder(
  33. side: BorderSide(color: Colors.white, width: 0.5),
  34. borderRadius: BorderRadius.circular(10)
  35. ),
  36. child: Column(
  37. children: [
  38. Row (
  39. crossAxisAlignment: CrossAxisAlignment.center,
  40. children: [
  41. SizedBox(width: 10),
  42. const ImageIcon(
  43. AssetImage("images/kilometre.png"),
  44. size: 35,
  45. ),
  46. SizedBox(width: 8),
  47. Expanded(
  48. child: Text(" km",
  49. style: TextStyle(fontWeight: FontWeight.bold, color: Colors.black,fontSize: 17)),
  50. ),
  51. ],
  52. ),
  53. SizedBox(height: 8),
  54. Row (
  55. crossAxisAlignment: CrossAxisAlignment.start,
  56. children: [
  57. SizedBox(width: 10),
  58. const ImageIcon(
  59. AssetImage("images/vitesse.png"),
  60. size: 35,
  61. ),
  62. SizedBox(width: 5),
  63. Expanded(
  64. child: Text(" km/h",
  65. style: TextStyle(fontWeight: FontWeight.bold, color: Colors.black,fontSize: 17)),
  66. ),
  67. ],
  68. ),
  69. ]
  70. ),
  71. )
  72. )
  73. ]
  74. ));
  75.  
  76. }
  77.  
  78. }
  79.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement