A coding challenge for Flutter enthusiasts applying for a job at Widgetbook
Widgetbook Challenge
This flutter app represents a coding challenge for Flutter enthusiasts applying for a job at Widgetbook.
If you just stumbled upon this repository for any other reason, you are welcome to participate in the challenge to cure your boredom. But make sure to send us an application after finishing ??
Requirements
The app has been created with flutter 2.10.3
(dart 2.16.1
).
Assignment
In this coding challenge, you will implement an application which accepts an input from the user and sends the input to a simulated backend. The flow of the user is the following:
- The user is greeted on the home screen with the provided
Scaffold
which hosts aTextField
and a submissionButton
. - The user inserts a name into the
TextField
and presses theButton
to send the request to the simulated backend. - The application computes the request, while the UI waits for the response.
- Once the request finished, the message of the response is shown in the UI below the submission button. If any error occurs while requesting from the server, an error message is shown instead.
Tasks
- Read this documentation.
- Clone (do not fork) the repository.
- Understand the provided code.
- Implement a
TextField
accepting aname
.- make sure to verify that no invalid input (e.g. numbers) has been inserted!
- Implement a
Button
. - Implement the compution of the request whenever the
onPressed
of the button is triggered. - Show the response of the simulated backend.
- Upload your code to a new repository
- do not create a fork
- do not create a pull request
- send us the link to your repository with the solution
- if you don’t like the idea of your solution to be publicly available make sure to create a private repository and invite JensHor.
Additional info
- You are allowed to use any package available on pub.dev.
- You are allowed to create additional
Widget
s and classes. - We do not expect a fancy design. For UI components, you can use Material or Cupertino widgets.
- Please do not modify the
WidgetbookApi
class. - Make sure to submit a solution from which you’d say that it is embracing standard software development patterns and practices.
Questions?
- If you have any questions regarding this assignment, let us know within an issue!