forked from eatvio/eatvio_app
34 lines
1.0 KiB
Dart
34 lines
1.0 KiB
Dart
import 'package:eatvio_app/features/consultations/entities/consultations_entity.dart';
|
|
import 'package:eatvio_app/features/consultations/presentation/widgets/consultation_card_widget.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class ConsultationsScreen extends StatelessWidget {
|
|
const ConsultationsScreen({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
backgroundColor: Color(0xFFF0F2F5),
|
|
appBar: AppBar(
|
|
title: Text('Консультации'),
|
|
centerTitle: true,
|
|
shape: RoundedRectangleBorder(
|
|
borderRadius: BorderRadiusDirectional.vertical(
|
|
bottom: Radius.circular(12),
|
|
),
|
|
),
|
|
),
|
|
body: ListView.separated(
|
|
padding: EdgeInsets.symmetric(vertical: 12),
|
|
itemBuilder: (context, index) => ConsultationCardWidget(
|
|
consultationsEntity: testData[index],
|
|
),
|
|
separatorBuilder: (context, index) => const SizedBox(
|
|
height: 12,
|
|
),
|
|
itemCount: testData.length,
|
|
),
|
|
);
|
|
}
|
|
}
|