|
- import 'package:farm_tpf/presentation/custom_widgets/app_bar_widget.dart';
- import 'package:farm_tpf/presentation/screens/plot_detail/widget_tab.dart';
- import 'package:farm_tpf/utils/const_assets.dart';
- import 'package:farm_tpf/utils/const_color.dart';
- import 'package:flutter/material.dart';
-
- class PlotDetailScreen extends StatefulWidget {
- int cropId;
- String cropCode;
- int cropType;
- int initialIndex;
- PlotDetailScreen(
- {this.cropId,
- this.initialIndex = 0,
- this.cropCode,
- @required this.cropType});
- @override
- _PlotDetailScreenState createState() => _PlotDetailScreenState();
- }
-
- class _PlotDetailScreenState extends State<PlotDetailScreen> {
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBarWidget(),
- body: Column(
- children: [
- Container(
- padding: EdgeInsets.all(8),
- width: double.infinity,
- color: Colors.white,
- child: Row(
- children: [
- SizedBox(
- width: 12,
- ),
- Expanded(
- child: Container(
- height: 75,
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- mainAxisSize: MainAxisSize.min,
- children: [
- Text('Rau muống trắng 6 sạch, 3 an toàn',
- style: TextStyle(
- fontWeight: FontWeight.bold, fontSize: 18)),
- Expanded(
- child: SizedBox(),
- ),
- Row(
- children: [
- SizedBox(
- width: 4,
- ),
- Text('item.startDate',
- style: TextStyle(color: Colors.grey)),
- SizedBox(
- width: 16,
- ),
- Text('item.startDate',
- style: TextStyle(color: Colors.grey))
- ],
- )
- ],
- ),
- ),
- ),
- Image.asset(
- AppAssets.tempImage,
- width: 75,
- height: 75,
- )
- ],
- ),
- ),
- Expanded(
- child: HomeTabbarWidget(
- cropType: widget.cropType,
- cropId: widget.cropId,
- cropCode: widget.cropCode,
- initialIndex: widget.initialIndex,
- ))
- ],
- ),
- );
- }
- }
|