Load Flutter runtime config from Vault
Build and deploy Flutter Web / build (push) Successful in 6m25s
Build and deploy Flutter Web / build (push) Successful in 6m25s
This commit is contained in:
@@ -15,16 +15,17 @@ import '../../../app/router/app_router.dart';
|
||||
import '../../../app/theme/mapflow_theme.dart';
|
||||
import '../../../shared/auth/telegram_login_button.dart';
|
||||
import '../../../shared/auth/telegram_session.dart' as telegram_session;
|
||||
import '../../../shared/runtime_config/runtime_config.dart' as runtime_config;
|
||||
import '../application/place_cubit.dart';
|
||||
import '../data/auth_repository.dart';
|
||||
import '../data/places_repository.dart';
|
||||
import '../domain/place_models.dart';
|
||||
import 'widgets/place_photo_card.dart';
|
||||
|
||||
const _mapboxStyle = String.fromEnvironment(
|
||||
'MAPBOX_STYLE',
|
||||
defaultValue: 'mapbox/standard',
|
||||
);
|
||||
String get _mapboxStyle {
|
||||
final style = runtime_config.mapboxStyle();
|
||||
return style.isEmpty ? 'mapbox/standard' : style;
|
||||
}
|
||||
|
||||
class MapflowShell extends StatelessWidget {
|
||||
const MapflowShell({super.key});
|
||||
|
||||
Reference in New Issue
Block a user