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/custom_outlined_button.dart'; import 'package:eatvio_app/features/consultant_rating/models/rating_model.dart'; import 'package:eatvio_app/features/consultant_rating/presentation/widgets/rating_history_widget.dart'; import 'package:eatvio_app/features/consultant_rating/presentation/widgets/rating_widget.dart'; import 'package:eatvio_app/features/consultant_rating/presentation/widgets/statistic_widget.dart'; import 'package:eatvio_app/generated/l10n.dart'; import 'package:flutter/material.dart'; class ConsultantRatingScreen extends StatelessWidget { static const name = 'consultantRatingScreen'; static const path = '/consultant-rating-screen'; const ConsultantRatingScreen({super.key}); @override Widget build(BuildContext context) { return const ConsultantRatingPageContent(); } } class ConsultantRatingPageContent extends StatelessWidget { const ConsultantRatingPageContent({super.key}); @override Widget build(BuildContext context) { final s = S.of(context); return Scaffold( backgroundColor: appTheme.gray100, appBar: AppBar( centerTitle: true, title: Text( s.rating_and_statistics, style: TextStyles.headingXLSemibold.copyWith(color: appTheme.black), ), ), body: SingleChildScrollView( child: Column( children: [ SizedBox(height: 16), RatingWidget( rating: 1058, ), SizedBox(height: 16), Padding( padding: const EdgeInsets.symmetric(horizontal: 16), child: CustomOutlinedButton( text: s.copy_referral_link, height: 52, buttonTextStyle: TextStyles.textMSemibold.copyWith(color: appTheme.whiteA700), buttonStyle: ButtonStyle( side: WidgetStatePropertyAll(BorderSide.none), backgroundColor: WidgetStatePropertyAll(appTheme.blueA400), ), onPressed: () {}, ), ), SizedBox(height: 16), StatisticWidget(), SizedBox(height: 16), RatingHistoryWidget( ratingHistory: [ RatingModel(date: DateTime.now(), title: ' djkasjdasjkdkjasjkdjkaskjdjklasjkld', amount: 201300), RatingModel(date: DateTime.now(), title: 'djkasjdasjkdkjasjkdjkaskjdjklasjkld', amount: 89323), RatingModel(date: DateTime.now(), title: 'djkasjdasjkdkjasjkdjkaskjdjklasjkld', amount: 20), RatingModel(date: DateTime.now(), title: 'djkasjdasjkdkjasjkdjkaskjdjklasjkld', amount: 1212), RatingModel(date: DateTime.now(), title: 'qweqweeq', amount: 323), RatingModel(date: DateTime.now(), title: 'ee', amount: 1), ], ), ], ), ), ); } }