2024-10-07 23:44:26 +04:00

34 lines
870 B
Dart
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import 'package:flutter/material.dart';
class DetailPage extends StatelessWidget {
final String info;
final String? imgUrl;
const DetailPage({super.key, required this.info, this.imgUrl});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Информация о продукции'),
),
body: Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
children: [
Text(
info,
style: const TextStyle(fontSize: 18.0),
),
Image.network(
imgUrl ?? 'https://hlebzavod3.ru/images/virtuemart/product/011_IMG_9657.jpg',
fit: BoxFit.cover,
height: 150.0,
width: double.infinity,
),
],
),
),
);
}
}