forked from eatvio/eatvio_app
feat: consultations
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
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,
|
||||
),
|
||||
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,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user