Browse Source

fix layout plot detail

smf
daivph 5 years ago
parent
commit
b6b63b5ac2
4 changed files with 15 additions and 19 deletions
  1. +1
    -1
      ios/Flutter/.last_build_id
  2. +3
    -3
      ios/Runner.xcodeproj/project.pbxproj
  3. +3
    -3
      ios/Runner/Info.plist
  4. +8
    -12
      lib/presentation/screens/plot_detail/sc_plot_detail.dart

+ 1
- 1
ios/Flutter/.last_build_id View File

@@ -1 +1 @@
a4ee48868fa35a3a4493484923ea48b2
d91c957b2422e26116533c8dae89710a

+ 3
- 3
ios/Runner.xcodeproj/project.pbxproj View File

@@ -374,7 +374,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 3;
DEVELOPMENT_TEAM = C3DTD2JH94;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
@@ -517,7 +517,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 3;
DEVELOPMENT_TEAM = C3DTD2JH94;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
@@ -552,7 +552,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 3;
DEVELOPMENT_TEAM = C3DTD2JH94;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (

+ 3
- 3
ios/Runner/Info.plist View File

@@ -25,11 +25,11 @@
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSCameraUsageDescription</key>
<string>Camera permission is required for barcode scanning.</string>
<string>Ứng dụng Smart Farm cần truy cập camera để chụp hình hoạt động canh tác và quét mã vạch</string>
<key>NSMicrophoneUsageDescription</key>
<string>Use for record videos</string>
<string>Ứng dụng Smart Farm cần quay video để sử dụng cho hoạt động canh tác</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Get image for upload to server</string>
<string>Ứng dụng Smart Farm cần truy cập thư viện ảnh để sử dụng cho các hoạt động canh tác.</string>
<key>UIBackgroundModes</key>
<array>
<string>fetch</string>

+ 8
- 12
lib/presentation/screens/plot_detail/sc_plot_detail.dart View File

@@ -50,18 +50,14 @@ class _PlotDetailScreenState extends State<PlotDetailScreen> {
Expanded(
child: SizedBox(),
),
Row(
children: [
Text('Mã lô: ${code ?? ''}',
style: TextStyle(color: Colors.grey)),
SizedBox(
width: 16,
),
Text(
'Diện tích: ${areaM2.formatNumtoStringDecimal() ?? '0'} m\u00B2',
style: TextStyle(color: Colors.grey))
],
)
Text(
'Mã lô: ${code ?? ''}',
style: TextStyle(color: Colors.grey),
overflow: TextOverflow.clip,
),
Text(
'Diện tích: ${areaM2.formatNumtoStringDecimal() ?? '0'} m\u00B2',
style: TextStyle(color: Colors.grey))
],
),
),

Loading…
Cancel
Save