WT 1.1.18+9 sales page products
This commit is contained in:
@@ -173,7 +173,7 @@ class SalesPage extends StatelessWidget with Trans, Logging {
|
||||
darkShadow: true,
|
||||
blurRadius: 12,
|
||||
animationCurve: Curves.easeIn,
|
||||
height: 150,
|
||||
height: 180,
|
||||
width: 160,
|
||||
onTap: () => bloc.add(SalesPurchase(productId: bloc.product2Display[idx].productId)),
|
||||
isMultiColor: true,
|
||||
@@ -217,13 +217,6 @@ class SalesPage extends StatelessWidget with Trans, Logging {
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: FontSize(16),
|
||||
textAlign: TextAlign.center,
|
||||
/* textShadow: <Shadow>[
|
||||
Shadow(
|
||||
offset: Offset(3.0, 3.0),
|
||||
blurRadius: 4.0,
|
||||
color: Colors.black54,
|
||||
),
|
||||
], */
|
||||
),
|
||||
"h1": Style(
|
||||
color: Colors.blue[400],
|
||||
@@ -342,35 +335,4 @@ class SalesPage extends StatelessWidget with Trans, Logging {
|
||||
},
|
||||
));
|
||||
}
|
||||
|
||||
List<Widget> getButtons(SalesBloc bloc) {
|
||||
List<Widget> buttons = [];
|
||||
|
||||
bloc.product2Display.forEach((element) {
|
||||
final String title = element.sort == 3 ? t("Montly") : t("Annual");
|
||||
final String desc4 = element.sort == 1 ? "" : t("Predictions with Artificial Intelligence");
|
||||
String? badge;
|
||||
if (element.sort == 2) {
|
||||
badge = t("14% discount");
|
||||
} else if (element.sort == 1) {
|
||||
badge = t("2 months free");
|
||||
}
|
||||
Widget button = SalesButton(
|
||||
title: title,
|
||||
price: element.localizedPrice!,
|
||||
desc1: t("Development programs"),
|
||||
desc2: t("Suggestions based on your actual status"),
|
||||
desc3: t("Special customized training plans"),
|
||||
desc4: desc4,
|
||||
descStyle: GoogleFonts.inter(fontSize: 10, color: Colors.blue[800]),
|
||||
badgeText: badge,
|
||||
badgeColor: element.sort == 3 ? Colors.transparent : Colors.orange,
|
||||
style: GoogleFonts.archivoBlack(fontSize: 14, color: Colors.blue[800]),
|
||||
onTap: () => {bloc.add(SalesPurchase(productId: element.productId))},
|
||||
);
|
||||
buttons.add(button);
|
||||
});
|
||||
|
||||
return buttons;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user