You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
2.0KB

  1. import 'package:farm_tpf/presentation/custom_widgets/widget_rounded_rect_indicator.dart';
  2. import 'package:farm_tpf/presentation/screens/plot_detail/sc_plot_action.dart';
  3. import 'package:farm_tpf/presentation/screens/plot_detail/sc_plot_information.dart';
  4. import 'package:farm_tpf/presentation/screens/plot_detail/sc_plot_parameter.dart';
  5. import 'package:farm_tpf/utils/const_color.dart';
  6. import 'package:flutter/material.dart';
  7. class PlotDetailScreen extends StatefulWidget {
  8. @override
  9. _PlotDetailScreenState createState() => _PlotDetailScreenState();
  10. }
  11. class _PlotDetailScreenState extends State<PlotDetailScreen> {
  12. @override
  13. Widget build(BuildContext context) {
  14. return Container(
  15. color: COLOR_CONST.ITEM_BG,
  16. child: SafeArea(
  17. top: false,
  18. bottom: true,
  19. child: Scaffold(
  20. appBar: AppBar(
  21. centerTitle: true,
  22. title: Text("Chi tiết lô"),
  23. ),
  24. body: DefaultTabController(
  25. length: 2,
  26. child: new Scaffold(
  27. backgroundColor: COLOR_CONST.ITEM_BG,
  28. body: TabBarView(
  29. children: [PlotParameterScreen(), PlotActionScreen()],
  30. ),
  31. bottomNavigationBar: new TabBar(
  32. tabs: [
  33. Tab(
  34. text: "Chỉ số",
  35. ),
  36. Tab(
  37. text: "Canh tác",
  38. ),
  39. ],
  40. labelColor: COLOR_CONST.DEFAULT,
  41. unselectedLabelColor: COLOR_CONST.GRAY1_70,
  42. indicatorSize: TabBarIndicatorSize.label,
  43. indicator: RoundedRectIndicator(
  44. color: COLOR_CONST.DEFAULT,
  45. radius: 2,
  46. padding: 22,
  47. weight: 3.0),
  48. ),
  49. ),
  50. ),
  51. )));
  52. }
  53. }