Desafio 01 flutter bootcamp, plataforma Dio.me Pro
Para este desafio, foi utilizado o aplicativo padrão que é criado ao iniciar um novo projeto Flutter. Nele foram feitas as seguintes alterações:
- Foi definida uma função para diminuir o valor exibido no centro do aplicativo.
- Outro FloatingActionButton foi adicionado para que o usuário possa decrementar o valor no centro.
- Lógica implementada para alterar a cor do número no centro com base em seu valor:
- positivo (cor azul),
- negativo (cor vermelha),
- neutro (cor preta padrão).
- A cor do botão de incremento foi alterada para azul e do botão de decremento para vermelho, tornando mais intuitivo entender qual botão leva a uma determinada cor no valor central.
- A AppBar e o texto no centro do aplicativo foram atualizados.
Challenge 01 Flutter Bootcamp, Platform Dio.me Pro
For this challenge, the default application that is created when starting a new Flutter project was used. The following changes were made to it:
- A function was defined to decrease the value displayed in the center of the application.
- Another FloatingActionButton was added so that the user can decrement the value in the center.
- Implemented logic to change the color of the number in the center based on its value:
- positive (blue color),
- negative (red color),
- neutral (default black color).
- The color of the increment button was changed to blue and the decrement button to red, making it more intuitive to understand which button leads to a certain color in the center value.
- The AppBar and the text in the center of the application were updated.