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.
39 lines
951 B
39 lines
951 B
import 'package:provider/provider.dart';
|
|
import 'package:smartfit_app_mobile/modele/user.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class Steps extends StatelessWidget {
|
|
const Steps({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
String steps = Provider.of<User>(context, listen: false)
|
|
.managerSelectedActivity
|
|
.getStepsAllActivitySelected()
|
|
.toString();
|
|
|
|
return Padding(
|
|
padding: const EdgeInsets.symmetric(vertical: 20),
|
|
child: Column(
|
|
children: [
|
|
Text(
|
|
steps,
|
|
style: const TextStyle(
|
|
fontSize: 33,
|
|
fontWeight: FontWeight.w900,
|
|
),
|
|
),
|
|
const Text(
|
|
'Total Steps',
|
|
style: TextStyle(
|
|
fontSize: 11,
|
|
fontWeight: FontWeight.w500,
|
|
height: 2,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|