AnalogIO / coffeecard_app

Cross-platform coffee card app for Cafe Analog
https://www.cafeanalog.dk/app
MIT License
6 stars 1 forks source link

refactor(ui): add RoundedButton.bright constructor #555

Closed marfavi closed 10 months ago

marfavi commented 10 months ago

This commit reduces code duplication by creating a new constructor to the RoundedButton class, making it usable as a replacement for the following buttons:

  1. the "Resend verification email" button
  2. the button in SplashErrorPage

Beforehand, these two buttons used tedious boilerplate by invoking the Material ElevatedButton; a thing the RoundedButton was supposed to eliminate.

Additionally, I simplified some code in the files this change affected.

ghost commented 10 months ago
👇 Click on the image for a new way to code review #### [![Review these changes using an interactive CodeSee Map](https://s3.us-east-2.amazonaws.com/maps.codesee.io/images/github/AnalogIO/coffeecard_app/555/f7199df3/6b6b0b6bae390238dbdc80e6891d3a7c1841f006.svg)](https://app.codesee.io/r/reviews?pr=555&src=https%3A%2F%2Fgithub.com%2FAnalogIO%2Fcoffeecard_app) #### Legend CodeSee Map legend