Yes No App is a chat application that answers yes or no questions using the YesNo API. This application is built with Flutter and uses the dio
package for HTTP requests.
Yes No App is an interactive application where users can ask questions and get yes or no answers. The app uses the YesNo API to generate responses and display related images.
- Flutter SDK: Installation instructions
- Android Studio or Xcode (for emulation)
- Clone this repository:
git clone https://github.com/yourusername/yes_no_app.git cd yes_no_app
- Install the dependencies:
flutter pub get
- Run the application:
flutter run
To use the application, simply start the app on your emulator or physical device. The user can type a question and send the message. If the question ends with a question mark, the app will respond with a yes or no answer, along with a related image.
The project is organized as follows:
- lib/: Contains the source code of the application.
- config/: Theme configuration and other settings.
- theme/: Application theme file (
app_theme.dart
).
- theme/: Application theme file (
- domain/: Domain entities and models.
- entities/: Contains the
Message
entity.
- entities/: Contains the
- infraestructure/: Infrastructure models and services.
- models/: Contains the
YesNoModel
. - helpers/: Contains the helper
get_yes_no_answer.dart
.
- models/: Contains the
- src/: Contains screens and providers.
- providers/: Contains
ChatProvider
andUserProvider
. - screens/: Contains the application screens (
chat_screen.dart
). - widgets/: Contains reusable widgets.
- chat/: Contains the widgets
HerMessageBubble
,MyMessageBubble
. - shared/: Contains the widget
MessageFieldBox
.
- chat/: Contains the widgets
- providers/: Contains
- config/: Theme configuration and other settings.
- Fork this repository.
- Create a new branch (
git checkout -b feature/new-feature
). - Make your changes and commit them (
git commit -m 'Add new feature'
). - Push your changes (
git push origin feature/new-feature
). - Open a pull request on GitHub.
Please make sure to follow the existing coding style and add tests for your changes.
This project is licensed under the MIT License. For more details, see the LICENSE file.
- GitHub: Fredy002
- LinkedIn: Fredy Antonio Almeyda Alania
Feel free to explore the code to understand how the styling is achieved and maybe tweak some values to see how the design changes. Happy coding!