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.
57 lines
1.6 KiB
Dart
57 lines
1.6 KiB
Dart
import 'package:diplomaticquarterapp/core/model/pharmacies/PharmacyProduct.dart';
|
|
import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:provider/provider.dart';
|
|
|
|
class DetailsInfo extends StatelessWidget {
|
|
|
|
final PharmacyProduct product;
|
|
|
|
const DetailsInfo({Key key, this.product}) : super(key: key);
|
|
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
ProjectViewModel projectViewModel = Provider.of(context);
|
|
return Padding(
|
|
padding: const EdgeInsets.all(8.0),
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
crossAxisAlignment:
|
|
CrossAxisAlignment.start,
|
|
children: [
|
|
Container(
|
|
child: Texts(
|
|
TranslationBase.of(context)
|
|
.description,
|
|
fontSize: 17,
|
|
color: Colors.grey,
|
|
),
|
|
),
|
|
SizedBox(
|
|
height: 10,
|
|
),
|
|
Divider(height: 1, color: Colors.grey),
|
|
SizedBox(
|
|
height: 15,
|
|
),
|
|
Container(
|
|
child: Texts(
|
|
projectViewModel.isArabic
|
|
? product.fullDescriptionn
|
|
: product
|
|
.fullDescription ??
|
|
"",
|
|
fontSize: 16,
|
|
),
|
|
),
|
|
SizedBox(
|
|
height: 20,
|
|
),
|
|
]),
|
|
);
|
|
}
|
|
}
|