Skip to content

adding a theme InheritedWidget that toggles credit card and stc pay screens as the app Ui (dark , light)#58

Open
AbubakerSallam wants to merge 2 commits intomoyasar:mainfrom
AbubakerSallam:main
Open

adding a theme InheritedWidget that toggles credit card and stc pay screens as the app Ui (dark , light)#58
AbubakerSallam wants to merge 2 commits intomoyasar:mainfrom
AbubakerSallam:main

Conversation

@AbubakerSallam
Copy link

MoyasarTheme

added a class MoyasarTheme that will be wrapping the PaymentMethods widget and takes data parametar ( them data of the app , that can be send as needed dark or light).

                  data: AppTheme.darkTheme,
                  child: PaymentMethods(
                    paymentConfig: paymentConfig,
                    onPaymentResult: onPaymentResult,
                  ),
                ),```
<img width="324" height="670" alt="dark1" src="https://github.com/user-attachments/assets/e6612b47-f75f-477b-8ce9-d678cfd313d2" />
<img width="326" height="667" alt="dark2" src="https://github.com/user-attachments/assets/1b8c2944-08dc-4bd6-9ee1-ce6a3eb410c5" />
<img width="325" height="673" alt="light1" src="https://github.com/user-attachments/assets/ed0b57c0-7591-4c07-bb9e-26c96452b5c4" />
<img width="323" height="695" alt="light2" src="https://github.com/user-attachments/assets/6ce7264c-0562-403c-b712-98d2133d89d6" />

button style, textFields, text colors, background colors) , stcpay screen(text and button colors)
@AbubakerSallam
Copy link
Author

MoyasarTheme class allows programmers to add thier own styling to the widgets in the package
some pages may need some inhancements, apple pay page isn't modefid.

@AbubakerSallam
Copy link
Author

dark1 dark2 light1 light2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant