This commit reduces code duplication by creating a new constructor to the
RoundedButton class, making it usable as a replacement for the following buttons:
the "Resend verification email" button
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.
👇 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
This commit reduces code duplication by creating a new constructor to the
RoundedButton
class, making it usable as a replacement for the following buttons:SplashErrorPage
Beforehand, these two buttons used tedious boilerplate by invoking the Material
ElevatedButton
; a thing theRoundedButton
was supposed to eliminate.Additionally, I simplified some code in the files this change affected.