This is a take home coding project for a Junior Software Engineering position. I chose to create this in Flutter since I was told in the interview if Flutter could be used for work projects then I'd be baptized in it.
The project is to create a mobile application that has the functionality of a profile page, following the UI guide here. For the profile picture functionality I am using the image_cropper and image_picker packages.
To run this you need to install Flutter. Follow the getting started guide for your operating system.
Open the iOS simulator with open -a simulator
then from the command line run flutter run
. To use your own images for profile pictures, simply drag and drop them into iOS simulator. They should be available in Photos.
- If you are getting a codeSigning error when attempting to run the project, run
flutter clean
thenflutter run
.
While the project runs as intended on the emulator and my physical device (moto e XT2052DL) the emulator debugger spits out a handful of warning messages which are detailed below. I am not sure how to resolve these, and I'd be grateful for any feedback you all have about it.
To use your own images for profile pictures, drag and drop them into the emulator. They should be available in Downloads.
- If you can't exit the ImagePicker view with swipe gestures on physical devices, switch to 3 way navigation in settings.
- Focusing on any of the TextFields will give a warning message like
W/IInputConnectionWrapper( 4756): beginBatchEdit on inactive InputConnection
. As far as I can tell this is has been a known issue for some time which you can follow here - The image_cropper package uses greylisted methods which you can read more about here
D/ExifInterface( 7519): No image meets the size requirements of a thumbnail image.
On cropping an image.