forked from eatvio/eatvio_app
80 lines
2.5 KiB
Dart
80 lines
2.5 KiB
Dart
import 'package:eatvio_app/core/theme/custom_text_style.dart';
|
|
import 'package:eatvio_app/core/theme/theme_helper.dart';
|
|
import 'package:eatvio_app/core/widgets/main_background_bouble.dart';
|
|
import 'package:eatvio_app/features/consultant_rating/presentation/widgets/period_filter_widget.dart';
|
|
import 'package:eatvio_app/features/consultant_rating/presentation/widgets/statistic_bouble.dart';
|
|
import 'package:eatvio_app/generated/l10n.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_svg/svg.dart';
|
|
|
|
class StatisticWidget extends StatelessWidget {
|
|
const StatisticWidget({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final s = S.of(context);
|
|
return MainBackgroundBouble(
|
|
padding: const EdgeInsets.all(16),
|
|
child: Column(
|
|
children: [
|
|
Row(
|
|
children: [
|
|
Text(
|
|
s.statistic,
|
|
style: TextStyles.headingXLSemibold.copyWith(color: appTheme.black),
|
|
),
|
|
const Spacer(),
|
|
SvgPicture.asset(
|
|
'assets/icons/question_mark.svg',
|
|
height: 22,
|
|
width: 22,
|
|
colorFilter: ColorFilter.mode(
|
|
appTheme.blueA400,
|
|
BlendMode.srcIn,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
const SizedBox(
|
|
height: 16,
|
|
),
|
|
const PeriodFilterWidget(),
|
|
const SizedBox(
|
|
height: 12,
|
|
),
|
|
Row(
|
|
children: [
|
|
Expanded(child: StatisticBouble(number: 12, title: s.invited_people_count)),
|
|
const SizedBox(width: 8),
|
|
Expanded(child: StatisticBouble(number: 12, title: s.published_posts_count)),
|
|
],
|
|
),
|
|
const SizedBox(
|
|
height: 8,
|
|
),
|
|
Row(
|
|
children: [
|
|
Expanded(child: StatisticBouble(number: 12, title: s.published_recipes_count)),
|
|
const SizedBox(width: 8),
|
|
Expanded(child: StatisticBouble(number: 12, title: s.published_diets_count)),
|
|
],
|
|
),
|
|
const SizedBox(
|
|
height: 8,
|
|
),
|
|
Row(
|
|
children: [
|
|
Expanded(child: StatisticBouble(number: 12, title: s.consultations_count)),
|
|
const SizedBox(width: 8),
|
|
Expanded(child: StatisticBouble(number: 12, title: s.active_consultations_count)),
|
|
],
|
|
),
|
|
const SizedBox(
|
|
height: 8,
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|