no message

parent ff1456fd
......@@ -10,6 +10,7 @@
android:label="feelverapp"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
......
PODS:
- Flutter (1.0.0)
- flutter_plugin_android_lifecycle (0.0.1):
- Flutter
- image_cropper (0.0.2):
- Flutter
- TOCropViewController (~> 2.5.2)
- image_picker (0.0.1):
- Flutter
- path_provider_linux (0.0.1):
- Flutter
- shared_preferences (0.0.1):
......@@ -10,18 +17,32 @@ PODS:
- Flutter
- shared_preferences_web (0.0.1):
- Flutter
- TOCropViewController (2.5.3)
DEPENDENCIES:
- Flutter (from `Flutter`)
- flutter_plugin_android_lifecycle (from `.symlinks/plugins/flutter_plugin_android_lifecycle/ios`)
- image_cropper (from `.symlinks/plugins/image_cropper/ios`)
- image_picker (from `.symlinks/plugins/image_picker/ios`)
- path_provider_linux (from `.symlinks/plugins/path_provider_linux/ios`)
- shared_preferences (from `.symlinks/plugins/shared_preferences/ios`)
- shared_preferences_linux (from `.symlinks/plugins/shared_preferences_linux/ios`)
- shared_preferences_macos (from `.symlinks/plugins/shared_preferences_macos/ios`)
- shared_preferences_web (from `.symlinks/plugins/shared_preferences_web/ios`)
SPEC REPOS:
trunk:
- TOCropViewController
EXTERNAL SOURCES:
Flutter:
:path: Flutter
flutter_plugin_android_lifecycle:
:path: ".symlinks/plugins/flutter_plugin_android_lifecycle/ios"
image_cropper:
:path: ".symlinks/plugins/image_cropper/ios"
image_picker:
:path: ".symlinks/plugins/image_picker/ios"
path_provider_linux:
:path: ".symlinks/plugins/path_provider_linux/ios"
shared_preferences:
......@@ -35,11 +56,15 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
flutter_plugin_android_lifecycle: dc0b544e129eebb77a6bfb1239d4d1c673a60a35
image_cropper: 3c16d7651730ffe85897f5a1c4e2547e6b54989a
image_picker: 9c3312491f862b28d21ecd8fdf0ee14e601b3f09
path_provider_linux: 4d630dc393e1f20364f3e3b4a2ff41d9674a84e4
shared_preferences: af6bfa751691cdc24be3045c43ec037377ada40d
shared_preferences_linux: afefbfe8d921e207f01ede8b60373d9e3b566b78
shared_preferences_macos: f3f29b71ccbb56bf40c9dd6396c9acf15e214087
shared_preferences_web: 141cce0c3ed1a1c5bf2a0e44f52d31eeb66e5ea9
TOCropViewController: 20a14b6a7a098308bf369e7c8d700dc983a974e6
PODFILE CHECKSUM: 1b66dae606f75376c5f2135a8290850eeb09ae83
......
......@@ -86,7 +86,6 @@
33024327C221F515472E9F1F /* Pods-Runner.release.xcconfig */,
79C89B9F733C7608F23FFD16 /* Pods-Runner.profile.xcconfig */,
);
name = Pods;
path = Pods;
sourceTree = "<group>";
};
......@@ -181,7 +180,9 @@
TargetAttributes = {
97C146ED1CF9000F007C117D = {
CreatedOnToolsVersion = 7.3.1;
DevelopmentTeam = DDWPE4NQAQ;
LastSwiftMigration = 1100;
ProvisioningStyle = Automatic;
};
};
};
......@@ -508,7 +509,10 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = DDWPE4NQAQ;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
......@@ -522,6 +526,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.2fellows.feelverapp;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
......@@ -41,5 +41,15 @@
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>
<key>NSPhotoLibraryUsageDescription</key>
<string>Need to upload image</string>
<key>NSCameraUsageDescription</key>
<string>Need to upload image</string>
<key>NSMicrophoneUsageDescription</key>
<string>Need to upload image</string>
</dict>
</plist>
......@@ -27,7 +27,7 @@ class MyApp extends StatelessWidget {
// home: SplashScreenPage(),
home: ShopList(),
home: EditProfile(),
);
}
......
import 'dart:io';
import 'package:feelverapp/util/SizeConfig.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:image_cropper/image_cropper.dart';
import 'package:image_picker/image_picker.dart';
class ImagePickerUtil {
final BuildContext context;
final Function callback;
ImagePickerUtil(this.context, this.callback) {
showCupertinoModalPopup(
context: context,
builder: (context) {
return CupertinoActionSheet(
actions: <Widget>[
Container(
child: CupertinoActionSheetAction(
onPressed: () async {
var res = await _imagePick(ImageSource.camera);
this.callback(res);
},
child: Row(
children: <Widget>[
Icon(
Icons.camera,
color: Colors.black87,
size: SizeConfig.getFontSize(24),
),
SizedBox(width: SizeConfig.getPadding(10)),
Text(
'กล้อง',
style: TextStyle(
color: Colors.black87,
fontSize: SizeConfig.getFontSize(18)),
),
],
),
),
),
Container(
child: CupertinoActionSheetAction(
onPressed: () async {
var res = await _imagePick(ImageSource.gallery);
this.callback(res);
},
child: Row(
children: <Widget>[
Icon(
Icons.photo,
color: Colors.black87,
size: SizeConfig.getFontSize(24),
),
SizedBox(width: SizeConfig.getPadding(10)),
Text(
'รูปภาพ',
style: TextStyle(
color: Colors.black87,
fontSize: SizeConfig.getFontSize(18)),
),
],
),
),
),
],
);
},
);
}
Future<File> _imagePick(ImageSource source) async {
Navigator.pop(context);
var file = await ImagePicker.pickImage(source: source);
return await _cropImage(file);
}
Future<File> _cropImage(File file) async {
File croppedFile = await ImageCropper.cropImage(
sourcePath: file.path,
aspectRatio: CropAspectRatio(ratioX: 1, ratioY: 1),
androidUiSettings: AndroidUiSettings(
toolbarColor: Theme.of(context).primaryColor,
toolbarWidgetColor: Colors.white,
initAspectRatio: CropAspectRatioPreset.original,
lockAspectRatio: false),
iosUiSettings: IOSUiSettings(
minimumAspectRatio: 1.0,
),
);
return croppedFile;
}
}
......@@ -26,9 +26,16 @@ class EditprofilePresenter extends BasePresenter<EditProfile> {
Api _api;
final formKey = GlobalKey<FormState>();
TextEditingController emailCtrl = TextEditingController();
String age,lastname,firstname,sex,address,email,phone;
GetprofileModel getmodel;
TextEditingController addresCtrl =TextEditingController() ;
TextEditingController ageCtrl =TextEditingController() ;
TextEditingController selectedSex =TextEditingController() ;
TextEditingController nameCtrl = TextEditingController();
TextEditingController phoneCtrl = TextEditingController();
TextEditingController emailCtrl = TextEditingController();
TextEditingController lnameCtrl = TextEditingController();
......@@ -94,6 +101,13 @@ else {
if (res.fail == null) {
setState((){
getmodel = res.success;
ageCtrl.text=getmodel.result[0].age.toString();
nameCtrl.text=getmodel.result[0].name;
lnameCtrl.text=getmodel.result[0].lastname;
selectedSex.text= getmodel.result[0].sex=='m'?"ชาย":"หญิง";
addresCtrl.text=getmodel.result[0].address.toString();
emailCtrl.text=getmodel.result[0].email;
phoneCtrl.text=getmodel.result[0].phone.toString();
});
......
......@@ -76,6 +76,13 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
flutter_plugin_android_lifecycle:
dependency: transitive
description:
name: flutter_plugin_android_lifecycle
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.8"
flutter_screenutil:
dependency: "direct main"
description:
......@@ -114,6 +121,27 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.4"
image_cropper:
dependency: "direct main"
description:
name: image_cropper
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.3"
image_picker:
dependency: "direct main"
description:
name: image_picker
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.7+4"
image_picker_platform_interface:
dependency: transitive
description:
name: image_picker_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
intl:
dependency: transitive
description:
......
......@@ -25,6 +25,8 @@ dependencies:
cupertino_icons: ^0.1.2
flutter_screenutil: ^1.0.2
http: ^0.12.0+4
image_cropper: ^1.2.3
image_picker: ^0.6.7+4
json_annotation: ^3.0.1
rflutter_alert: ^1.0.3
shared_preferences: ^0.5.6+1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment