Refactor theme system and remove unused platforms
- Overhaul theme system with Svrnty design and WCAG AAA compliance - Remove android, macos, and web platform files (iOS-only focus) - Update components with improved dark mode map and UI refinements - Enhance settings page with additional configuration options - Add theme system documentation in lib/theme/README.md - Update CLAUDE.md with comprehensive theme guidelines Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -32,9 +32,16 @@ class GrpcCqrsApiClient {
|
||||
|
||||
ClientChannel get channel {
|
||||
if (_channel == null) {
|
||||
final credentials = config.useTls
|
||||
? const ChannelCredentials.secure()
|
||||
: const ChannelCredentials.insecure();
|
||||
final ChannelCredentials credentials;
|
||||
if (!config.useTls) {
|
||||
credentials = const ChannelCredentials.insecure();
|
||||
} else if (config.allowSelfSignedCertificate) {
|
||||
credentials = ChannelCredentials.secure(
|
||||
onBadCertificate: (certificate, host) => true,
|
||||
);
|
||||
} else {
|
||||
credentials = const ChannelCredentials.secure();
|
||||
}
|
||||
|
||||
_channel = ClientChannel(
|
||||
config.host,
|
||||
|
||||
@@ -34,12 +34,12 @@ class GrpcConfig {
|
||||
|
||||
/// Development configuration pointing to local/development gRPC server.
|
||||
///
|
||||
/// Uses plaintext (insecure) credentials for development convenience.
|
||||
/// Uses TLS with self-signed certificate support for local HTTPS.
|
||||
static const GrpcConfig development = GrpcConfig(
|
||||
host: '192.168.88.228',
|
||||
host: 'localhost',
|
||||
port: 5011,
|
||||
timeout: Duration(seconds: 30),
|
||||
useTls: false,
|
||||
useTls: true,
|
||||
allowSelfSignedCertificate: true,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user