no message

parent ff1456fd
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
android:label="feelverapp" android:label="feelverapp"
android:icon="@mipmap/ic_launcher"> android:icon="@mipmap/ic_launcher">
<activity <activity
android:name=".MainActivity" android:name=".MainActivity"
android:launchMode="singleTop" android:launchMode="singleTop"
android:theme="@style/LaunchTheme" android:theme="@style/LaunchTheme"
......
PODS: PODS:
- Flutter (1.0.0) - 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): - path_provider_linux (0.0.1):
- Flutter - Flutter
- shared_preferences (0.0.1): - shared_preferences (0.0.1):
...@@ -10,18 +17,32 @@ PODS: ...@@ -10,18 +17,32 @@ PODS:
- Flutter - Flutter
- shared_preferences_web (0.0.1): - shared_preferences_web (0.0.1):
- Flutter - Flutter
- TOCropViewController (2.5.3)
DEPENDENCIES: DEPENDENCIES:
- Flutter (from `Flutter`) - 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`) - path_provider_linux (from `.symlinks/plugins/path_provider_linux/ios`)
- shared_preferences (from `.symlinks/plugins/shared_preferences/ios`) - shared_preferences (from `.symlinks/plugins/shared_preferences/ios`)
- shared_preferences_linux (from `.symlinks/plugins/shared_preferences_linux/ios`) - shared_preferences_linux (from `.symlinks/plugins/shared_preferences_linux/ios`)
- shared_preferences_macos (from `.symlinks/plugins/shared_preferences_macos/ios`) - shared_preferences_macos (from `.symlinks/plugins/shared_preferences_macos/ios`)
- shared_preferences_web (from `.symlinks/plugins/shared_preferences_web/ios`) - shared_preferences_web (from `.symlinks/plugins/shared_preferences_web/ios`)
SPEC REPOS:
trunk:
- TOCropViewController
EXTERNAL SOURCES: EXTERNAL SOURCES:
Flutter: Flutter:
:path: 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_provider_linux:
:path: ".symlinks/plugins/path_provider_linux/ios" :path: ".symlinks/plugins/path_provider_linux/ios"
shared_preferences: shared_preferences:
...@@ -35,11 +56,15 @@ EXTERNAL SOURCES: ...@@ -35,11 +56,15 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS: SPEC CHECKSUMS:
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
flutter_plugin_android_lifecycle: dc0b544e129eebb77a6bfb1239d4d1c673a60a35
image_cropper: 3c16d7651730ffe85897f5a1c4e2547e6b54989a
image_picker: 9c3312491f862b28d21ecd8fdf0ee14e601b3f09
path_provider_linux: 4d630dc393e1f20364f3e3b4a2ff41d9674a84e4 path_provider_linux: 4d630dc393e1f20364f3e3b4a2ff41d9674a84e4
shared_preferences: af6bfa751691cdc24be3045c43ec037377ada40d shared_preferences: af6bfa751691cdc24be3045c43ec037377ada40d
shared_preferences_linux: afefbfe8d921e207f01ede8b60373d9e3b566b78 shared_preferences_linux: afefbfe8d921e207f01ede8b60373d9e3b566b78
shared_preferences_macos: f3f29b71ccbb56bf40c9dd6396c9acf15e214087 shared_preferences_macos: f3f29b71ccbb56bf40c9dd6396c9acf15e214087
shared_preferences_web: 141cce0c3ed1a1c5bf2a0e44f52d31eeb66e5ea9 shared_preferences_web: 141cce0c3ed1a1c5bf2a0e44f52d31eeb66e5ea9
TOCropViewController: 20a14b6a7a098308bf369e7c8d700dc983a974e6
PODFILE CHECKSUM: 1b66dae606f75376c5f2135a8290850eeb09ae83 PODFILE CHECKSUM: 1b66dae606f75376c5f2135a8290850eeb09ae83
......
...@@ -86,7 +86,6 @@ ...@@ -86,7 +86,6 @@
33024327C221F515472E9F1F /* Pods-Runner.release.xcconfig */, 33024327C221F515472E9F1F /* Pods-Runner.release.xcconfig */,
79C89B9F733C7608F23FFD16 /* Pods-Runner.profile.xcconfig */, 79C89B9F733C7608F23FFD16 /* Pods-Runner.profile.xcconfig */,
); );
name = Pods;
path = Pods; path = Pods;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
...@@ -181,7 +180,9 @@ ...@@ -181,7 +180,9 @@
TargetAttributes = { TargetAttributes = {
97C146ED1CF9000F007C117D = { 97C146ED1CF9000F007C117D = {
CreatedOnToolsVersion = 7.3.1; CreatedOnToolsVersion = 7.3.1;
DevelopmentTeam = DDWPE4NQAQ;
LastSwiftMigration = 1100; LastSwiftMigration = 1100;
ProvisioningStyle = Automatic;
}; };
}; };
}; };
...@@ -508,7 +509,10 @@ ...@@ -508,7 +509,10 @@
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = DDWPE4NQAQ;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
...@@ -522,6 +526,7 @@ ...@@ -522,6 +526,7 @@
); );
PRODUCT_BUNDLE_IDENTIFIER = com.2fellows.feelverapp; PRODUCT_BUNDLE_IDENTIFIER = com.2fellows.feelverapp;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0; 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 @@ ...@@ -41,5 +41,15 @@
</array> </array>
<key>UIViewControllerBasedStatusBarAppearance</key> <key>UIViewControllerBasedStatusBarAppearance</key>
<false/> <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> </plist>
...@@ -27,7 +27,7 @@ class MyApp extends StatelessWidget { ...@@ -27,7 +27,7 @@ class MyApp extends StatelessWidget {
// home: SplashScreenPage(), // 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> { ...@@ -26,9 +26,16 @@ class EditprofilePresenter extends BasePresenter<EditProfile> {
Api _api; Api _api;
final formKey = GlobalKey<FormState>(); final formKey = GlobalKey<FormState>();
TextEditingController emailCtrl = TextEditingController();
String age,lastname,firstname,sex,address,email,phone;
GetprofileModel getmodel; 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 { ...@@ -94,6 +101,13 @@ else {
if (res.fail == null) { if (res.fail == null) {
setState((){ setState((){
getmodel = res.success; 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: ...@@ -76,6 +76,13 @@ packages:
description: flutter description: flutter
source: sdk source: sdk
version: "0.0.0" 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: flutter_screenutil:
dependency: "direct main" dependency: "direct main"
description: description:
...@@ -114,6 +121,27 @@ packages: ...@@ -114,6 +121,27 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.4" 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: intl:
dependency: transitive dependency: transitive
description: description:
......
...@@ -25,6 +25,8 @@ dependencies: ...@@ -25,6 +25,8 @@ dependencies:
cupertino_icons: ^0.1.2 cupertino_icons: ^0.1.2
flutter_screenutil: ^1.0.2 flutter_screenutil: ^1.0.2
http: ^0.12.0+4 http: ^0.12.0+4
image_cropper: ^1.2.3
image_picker: ^0.6.7+4
json_annotation: ^3.0.1 json_annotation: ^3.0.1
rflutter_alert: ^1.0.3 rflutter_alert: ^1.0.3
shared_preferences: ^0.5.6+1 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