WhiteLabelService class

Constructors

WhiteLabelService({required String projectDir, required ConfigService config})

Properties

config → ConfigService
final
hashCode → int
The hash code for this object.
no setterinherited
projectDir → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

applyClientFonts(String clientName, String clientAssetsPath) → Future<bool>
Swaps system fonts for client fonts and updates pubspec configuration. Returns true when fonts were changed and need restoring on cleanup.
cleanAndroidIconCache() → Future<void>
Fixes a specific Android adaptive icon bug.
findClientFontsDir(String clientName, String clientAssetsPath) → Directory?
Locates the client's fonts directory. clients/<client>/fonts wins, then <ASSETS_PATH>/fonts, matching what doctor validates.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
renameOutput({required String clientName, required String version, required String type}) → Future<File>
Renames the final .apk, .aab or .ipa to include client name and version.
syncBrandingAssets(String clientName, String sourcePath) → Future<void>
Copies client-specific branding images into the active assets folder.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

defaultClientName → const String
The client whose branding and env act as the fallback for plain flutter run; its branding folder is never removed by cleanup.
managedMarkerFile → const String
Marker written into branding folders the CLI owns, so cleanup never deletes a folder a developer created by hand.