mirror of
https://github.com/ente-io/ente.git
synced 2025-08-07 23:18:10 +00:00
[auth] minor changes
This commit is contained in:
parent
a4b14fe5b1
commit
8290809dfb
@ -33,11 +33,11 @@ class BannerWidget extends StatelessWidget {
|
|||||||
final colorScheme = getEnteColorScheme(context);
|
final colorScheme = getEnteColorScheme(context);
|
||||||
Color dashColor;
|
Color dashColor;
|
||||||
List<BoxShadow>? boxShadow;
|
List<BoxShadow>? boxShadow;
|
||||||
String rivePath;
|
String imagePath;
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case BannerType.rateUs:
|
case BannerType.rateUs:
|
||||||
rivePath = "assets/rate_us.png";
|
imagePath = "assets/rate_us.png";
|
||||||
dashColor = const Color.fromRGBO(255, 191, 12, 1);
|
dashColor = const Color.fromRGBO(255, 191, 12, 1);
|
||||||
boxShadow = [
|
boxShadow = [
|
||||||
BoxShadow(
|
BoxShadow(
|
||||||
@ -52,7 +52,7 @@ class BannerWidget extends StatelessWidget {
|
|||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
case BannerType.starUs:
|
case BannerType.starUs:
|
||||||
rivePath = "assets/star_us.png";
|
imagePath = "assets/star_us.png";
|
||||||
dashColor = const Color.fromRGBO(233, 233, 233, 1);
|
dashColor = const Color.fromRGBO(233, 233, 233, 1);
|
||||||
boxShadow = [
|
boxShadow = [
|
||||||
BoxShadow(
|
BoxShadow(
|
||||||
@ -67,7 +67,7 @@ class BannerWidget extends StatelessWidget {
|
|||||||
];
|
];
|
||||||
|
|
||||||
case BannerType.freeStorage:
|
case BannerType.freeStorage:
|
||||||
rivePath = "assets/ente_5gb.png";
|
imagePath = "assets/ente_5gb.png";
|
||||||
dashColor = const Color.fromRGBO(29, 185, 84, 1);
|
dashColor = const Color.fromRGBO(29, 185, 84, 1);
|
||||||
boxShadow = [
|
boxShadow = [
|
||||||
BoxShadow(
|
BoxShadow(
|
||||||
@ -82,7 +82,7 @@ class BannerWidget extends StatelessWidget {
|
|||||||
];
|
];
|
||||||
case BannerType.discount:
|
case BannerType.discount:
|
||||||
dashColor = const Color.fromRGBO(29, 185, 84, 1);
|
dashColor = const Color.fromRGBO(29, 185, 84, 1);
|
||||||
rivePath = "assets/discount.png";
|
imagePath = "assets/discount.png";
|
||||||
boxShadow = [
|
boxShadow = [
|
||||||
BoxShadow(
|
BoxShadow(
|
||||||
color: const Color.fromRGBO(38, 203, 95, 1).withOpacity(0.08),
|
color: const Color.fromRGBO(38, 203, 95, 1).withOpacity(0.08),
|
||||||
@ -135,7 +135,7 @@ class BannerWidget extends StatelessWidget {
|
|||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
height: 60,
|
height: 60,
|
||||||
width: 60,
|
width: 60,
|
||||||
child: Image.asset(rivePath),
|
child: Image.asset(imagePath),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user