You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
doctor_app_flutter/lib/widgets/dashboard/activity_button.dart

45 lines
1.2 KiB
Dart

5 years ago
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
import 'package:flutter/material.dart';
class GetActivityButton extends StatelessWidget {
final value;
5 years ago
5 years ago
GetActivityButton(this.value);
5 years ago
5 years ago
@override
Widget build(BuildContext context) {
return Container(
width: MediaQuery.of(context).size.height * 0.125,
5 years ago
padding: EdgeInsets.all(5),
margin: EdgeInsets.all(5),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(15),
5 years ago
),
5 years ago
child: Padding(
5 years ago
padding: const EdgeInsets.fromLTRB(8, 0, 8, 0),
5 years ago
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
5 years ago
mainAxisAlignment: MainAxisAlignment.center,
5 years ago
children: [
AppText(
value.value.toString(),
5 years ago
fontSize: 27,
5 years ago
fontWeight: FontWeight.bold,
color: Color(0xFF2B353E),
),
5 years ago
AppText(
value.kPIParameter,
textOverflow: TextOverflow.clip,
fontSize: 10,
color: Color(0xFF2B353E),
textAlign: TextAlign.start,
fontWeight: FontWeight.w700,
5 years ago
),
5 years ago
],
),
5 years ago
),
);
}
}