Cryptomask Docs
  • CRYPTOMASK SERVER
    • Installing Database
    • Installing Cryptomask Server
  • Cryptomask Wallet
    • Quickstart
    • Changing App Name
    • Changing App ID
    • Changing App Icon
    • Customize and Extend
    • Building and Releasing
Powered by GitBook
On this page
  • Changing App theme color
  • Changing Browser homepage
  • Adding an Additional Language
  1. Cryptomask Wallet

Customize and Extend

Changing App theme color

Changing theme color is very simple, You just need to change the kPrimaryColor variable in constant.dart file.

Changing Browser homepage

To change the browser homepage, simply update the BROWSER_HOMEPAGE variable in the .env file.

Adding an Additional Language

To add an additional language to your application, follow these steps:

  1. Create Localized Strings: You need to provide localised strings for the new language. In your translation.dart file, define a JSON-like object for the targeted language beneath the existing en variable.

  2. Update Supported Locales: In the locale_provider.dart file, add an entry for the targeted language in the supportedLocales array to ensure the app recognises the new language.

  3. Modify the Translation Loading Function: Inside the loadTranslationsFromJson function, add an additional if statement to support the targeted language. This will allow the app to load the appropriate translations when the user selects the new language.

By following these steps, you can successfully integrate an additional language into your application, enhancing its accessibility for a wider audience.

PreviousChanging App IconNextBuilding and Releasing

Last updated 7 months ago