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.

55 lines
1.9KB

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