text
stringlengths
6
13.6M
id
stringlengths
13
176
metadata
dict
__index_level_0__
int64
0
1.69k
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import '../artifacts.dart'; import '../base/common.dart'; import '../base/file_system.dart'; import '../build_info.dart'; import '../cache.dart'; import '../flutter_manifest.dart'; import '../globals.dart' as globals; import '../project.dart'; String flutterMacOSFrameworkDir(BuildMode mode, FileSystem fileSystem, Artifacts artifacts) { final String flutterMacOSFramework = artifacts.getArtifactPath( Artifact.flutterMacOSFramework, platform: TargetPlatform.darwin, mode: mode, ); return fileSystem.path .normalize(fileSystem.path.dirname(flutterMacOSFramework)); } /// Writes or rewrites Xcode property files with the specified information. /// /// useMacOSConfig: Optional parameter that controls whether we use the macOS /// project file instead. Defaults to false. /// /// targetOverride: Optional parameter, if null or unspecified the default value /// from xcode_backend.sh is used 'lib/main.dart'. Future<void> updateGeneratedXcodeProperties({ required FlutterProject project, required BuildInfo buildInfo, String? targetOverride, bool useMacOSConfig = false, String? buildDirOverride, String? configurationBuildDir, }) async { final List<String> xcodeBuildSettings = await _xcodeBuildSettingsLines( project: project, buildInfo: buildInfo, targetOverride: targetOverride, useMacOSConfig: useMacOSConfig, buildDirOverride: buildDirOverride, configurationBuildDir: configurationBuildDir, ); _updateGeneratedXcodePropertiesFile( project: project, xcodeBuildSettings: xcodeBuildSettings, useMacOSConfig: useMacOSConfig, ); _updateGeneratedEnvironmentVariablesScript( project: project, xcodeBuildSettings: xcodeBuildSettings, useMacOSConfig: useMacOSConfig, ); } /// Generate a xcconfig file to inherit FLUTTER_ build settings /// for Xcode targets that need them. /// See [XcodeBasedProject.generatedXcodePropertiesFile]. void _updateGeneratedXcodePropertiesFile({ required FlutterProject project, required List<String> xcodeBuildSettings, bool useMacOSConfig = false, }) { final StringBuffer localsBuffer = StringBuffer(); localsBuffer.writeln('// This is a generated file; do not edit or check into version control.'); xcodeBuildSettings.forEach(localsBuffer.writeln); final File generatedXcodePropertiesFile = useMacOSConfig ? project.macos.generatedXcodePropertiesFile : project.ios.generatedXcodePropertiesFile; generatedXcodePropertiesFile.createSync(recursive: true); generatedXcodePropertiesFile.writeAsStringSync(localsBuffer.toString()); } /// Generate a script to export all the FLUTTER_ environment variables needed /// as flags for Flutter tools. /// See [XcodeBasedProject.generatedEnvironmentVariableExportScript]. void _updateGeneratedEnvironmentVariablesScript({ required FlutterProject project, required List<String> xcodeBuildSettings, bool useMacOSConfig = false, }) { final StringBuffer localsBuffer = StringBuffer(); localsBuffer.writeln('#!/bin/sh'); localsBuffer.writeln('# This is a generated file; do not edit or check into version control.'); for (final String line in xcodeBuildSettings) { if (!line.contains('[')) { // Exported conditional Xcode build settings do not work. localsBuffer.writeln('export "$line"'); } } final File generatedModuleBuildPhaseScript = useMacOSConfig ? project.macos.generatedEnvironmentVariableExportScript : project.ios.generatedEnvironmentVariableExportScript; generatedModuleBuildPhaseScript.createSync(recursive: true); generatedModuleBuildPhaseScript.writeAsStringSync(localsBuffer.toString()); globals.os.chmod(generatedModuleBuildPhaseScript, '755'); } /// Build name parsed and validated from build info and manifest. Used for CFBundleShortVersionString. String? parsedBuildName({ required FlutterManifest manifest, BuildInfo? buildInfo, }) { final String? buildNameToParse = buildInfo?.buildName ?? manifest.buildName; return validatedBuildNameForPlatform(TargetPlatform.ios, buildNameToParse, globals.logger); } /// Build number parsed and validated from build info and manifest. Used for CFBundleVersion. String? parsedBuildNumber({ required FlutterManifest manifest, BuildInfo? buildInfo, }) { String? buildNumberToParse = buildInfo?.buildNumber ?? manifest.buildNumber; final String? buildNumber = validatedBuildNumberForPlatform( TargetPlatform.ios, buildNumberToParse, globals.logger, ); if (buildNumber != null && buildNumber.isNotEmpty) { return buildNumber; } // Drop back to parsing build name if build number is not present. Build number is optional in the manifest, but // FLUTTER_BUILD_NUMBER is required as the backing value for the required CFBundleVersion. buildNumberToParse = buildInfo?.buildName ?? manifest.buildName; return validatedBuildNumberForPlatform( TargetPlatform.ios, buildNumberToParse, globals.logger, ); } /// List of lines of build settings. Example: 'FLUTTER_BUILD_DIR=build' Future<List<String>> _xcodeBuildSettingsLines({ required FlutterProject project, required BuildInfo buildInfo, String? targetOverride, bool useMacOSConfig = false, String? buildDirOverride, String? configurationBuildDir, }) async { final List<String> xcodeBuildSettings = <String>[]; final String flutterRoot = globals.fs.path.normalize(Cache.flutterRoot!); xcodeBuildSettings.add('FLUTTER_ROOT=$flutterRoot'); // This holds because requiresProjectRoot is true for this command xcodeBuildSettings.add('FLUTTER_APPLICATION_PATH=${globals.fs.path.normalize(project.directory.path)}'); // Tell CocoaPods behavior to codesign in parallel with rest of scripts to speed it up. // Value must be "true", not "YES". https://github.com/CocoaPods/CocoaPods/pull/6088 xcodeBuildSettings.add('COCOAPODS_PARALLEL_CODE_SIGN=true'); // Relative to FLUTTER_APPLICATION_PATH, which is [Directory.current]. if (targetOverride != null) { xcodeBuildSettings.add('FLUTTER_TARGET=$targetOverride'); } // The build outputs directory, relative to FLUTTER_APPLICATION_PATH. xcodeBuildSettings.add('FLUTTER_BUILD_DIR=${buildDirOverride ?? getBuildDirectory()}'); final String buildName = parsedBuildName(manifest: project.manifest, buildInfo: buildInfo) ?? '1.0.0'; xcodeBuildSettings.add('FLUTTER_BUILD_NAME=$buildName'); final String buildNumber = parsedBuildNumber(manifest: project.manifest, buildInfo: buildInfo) ?? '1'; xcodeBuildSettings.add('FLUTTER_BUILD_NUMBER=$buildNumber'); // CoreDevices in debug and profile mode are launched, but not built, via Xcode. // Set the CONFIGURATION_BUILD_DIR so Xcode knows where to find the app // bundle to launch. if (configurationBuildDir != null) { xcodeBuildSettings.add('CONFIGURATION_BUILD_DIR=$configurationBuildDir'); } final LocalEngineInfo? localEngineInfo = globals.artifacts?.localEngineInfo; if (localEngineInfo != null) { final String engineOutPath = localEngineInfo.targetOutPath; xcodeBuildSettings.add('FLUTTER_ENGINE=${globals.fs.path.dirname(globals.fs.path.dirname(engineOutPath))}'); final String localEngineName = localEngineInfo.localTargetName; xcodeBuildSettings.add('LOCAL_ENGINE=$localEngineName'); final String localEngineHostName = localEngineInfo.localHostName; xcodeBuildSettings.add('LOCAL_ENGINE_HOST=$localEngineHostName'); // Tell Xcode not to build universal binaries for local engines, which are // single-architecture. // // This assumes that local engine binary paths are consistent with // the conventions uses in the engine: 32-bit iOS engines are built to // paths ending in _arm, 64-bit builds are not. String arch; if (useMacOSConfig) { if (localEngineName.contains('_arm64')) { arch = 'arm64'; } else { arch = 'x86_64'; } } else { if (localEngineName.endsWith('_arm')) { throwToolExit('32-bit iOS local engine binaries are not supported.'); } else if (localEngineName.contains('_arm64')) { arch = 'arm64'; } else if (localEngineName.contains('_sim')) { arch = 'x86_64'; } else { arch = 'arm64'; } } xcodeBuildSettings.add('ARCHS=$arch'); } if (!useMacOSConfig) { // If any plugins or their dependencies do not support arm64 simulators // (to run natively without Rosetta translation on an ARM Mac), // the app will fail to build unless it also excludes arm64 simulators. String excludedSimulatorArchs = 'i386'; if (!(await project.ios.pluginsSupportArmSimulator())) { excludedSimulatorArchs += ' arm64'; } xcodeBuildSettings.add('EXCLUDED_ARCHS[sdk=iphonesimulator*]=$excludedSimulatorArchs'); xcodeBuildSettings.add('EXCLUDED_ARCHS[sdk=iphoneos*]=armv7'); } for (final MapEntry<String, String> config in buildInfo.toEnvironmentConfig().entries) { xcodeBuildSettings.add('${config.key}=${config.value}'); } return xcodeBuildSettings; }
flutter/packages/flutter_tools/lib/src/ios/xcode_build_settings.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/ios/xcode_build_settings.dart", "repo_id": "flutter", "token_count": 2863 }
822
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'package:dwds/dwds.dart'; import 'package:package_config/package_config.dart'; import 'package:unified_analytics/unified_analytics.dart'; import 'package:vm_service/vm_service.dart' as vmservice; import 'package:webkit_inspection_protocol/webkit_inspection_protocol.dart' hide StackTrace; import '../application_package.dart'; import '../base/async_guard.dart'; import '../base/common.dart'; import '../base/file_system.dart'; import '../base/io.dart'; import '../base/logger.dart'; import '../base/net.dart'; import '../base/terminal.dart'; import '../base/time.dart'; import '../base/utils.dart'; import '../build_info.dart'; import '../cache.dart'; import '../dart/language_version.dart'; import '../devfs.dart'; import '../device.dart'; import '../flutter_plugins.dart'; import '../globals.dart' as globals; import '../project.dart'; import '../reporting/reporting.dart'; import '../resident_devtools_handler.dart'; import '../resident_runner.dart'; import '../run_hot.dart'; import '../vmservice.dart'; import '../web/chrome.dart'; import '../web/compile.dart'; import '../web/file_generators/flutter_service_worker_js.dart'; import '../web/file_generators/main_dart.dart' as main_dart; import '../web/web_device.dart'; import '../web/web_runner.dart'; import 'devfs_web.dart'; /// Injectable factory to create a [ResidentWebRunner]. class DwdsWebRunnerFactory extends WebRunnerFactory { @override ResidentRunner createWebRunner( FlutterDevice device, { String? target, required bool stayResident, required FlutterProject flutterProject, required bool? ipv6, required DebuggingOptions debuggingOptions, UrlTunneller? urlTunneller, required Logger logger, required FileSystem fileSystem, required SystemClock systemClock, required Usage usage, required Analytics analytics, bool machine = false, }) { return ResidentWebRunner( device, target: target, flutterProject: flutterProject, debuggingOptions: debuggingOptions, ipv6: ipv6, stayResident: stayResident, urlTunneller: urlTunneller, machine: machine, usage: usage, analytics: analytics, systemClock: systemClock, fileSystem: fileSystem, logger: logger, ); } } const String kExitMessage = 'Failed to establish connection with the application ' 'instance in Chrome.\nThis can happen if the websocket connection used by the ' 'web tooling is unable to correctly establish a connection, for example due to a firewall.'; class ResidentWebRunner extends ResidentRunner { ResidentWebRunner( FlutterDevice device, { String? target, bool stayResident = true, bool machine = false, required this.flutterProject, required bool? ipv6, required DebuggingOptions debuggingOptions, required FileSystem fileSystem, required Logger logger, required SystemClock systemClock, required Usage usage, required Analytics analytics, UrlTunneller? urlTunneller, ResidentDevtoolsHandlerFactory devtoolsHandler = createDefaultHandler, }) : _fileSystem = fileSystem, _logger = logger, _systemClock = systemClock, _usage = usage, _analytics = analytics, _urlTunneller = urlTunneller, super( <FlutterDevice>[device], target: target ?? fileSystem.path.join('lib', 'main.dart'), debuggingOptions: debuggingOptions, ipv6: ipv6, stayResident: stayResident, machine: machine, devtoolsHandler: devtoolsHandler, ); final FileSystem _fileSystem; final Logger _logger; final SystemClock _systemClock; final Usage _usage; final Analytics _analytics; final UrlTunneller? _urlTunneller; @override Logger get logger => _logger; @override FileSystem get fileSystem => _fileSystem; FlutterDevice? get device => flutterDevices.first; final FlutterProject flutterProject; // Used with the new compiler to generate a bootstrap file containing plugins // and platform initialization. Directory? _generatedEntrypointDirectory; // Only the debug builds of the web support the service protocol. @override bool get supportsServiceProtocol => isRunningDebug && deviceIsDebuggable; @override bool get debuggingEnabled => isRunningDebug && deviceIsDebuggable; /// WebServer device is debuggable when running with --start-paused. bool get deviceIsDebuggable => device!.device is! WebServerDevice || debuggingOptions.startPaused; @override bool get supportsWriteSkSL => false; @override // Web uses a different plugin registry. bool get generateDartPluginRegistry => false; bool get _enableDwds => debuggingEnabled; ConnectionResult? _connectionResult; StreamSubscription<vmservice.Event>? _stdOutSub; StreamSubscription<vmservice.Event>? _stdErrSub; StreamSubscription<vmservice.Event>? _extensionEventSub; bool _exited = false; WipConnection? _wipConnection; ChromiumLauncher? _chromiumLauncher; FlutterVmService get _vmService { if (_instance != null) { return _instance!; } final vmservice.VmService? service = _connectionResult?.vmService; final Uri websocketUri = Uri.parse(_connectionResult!.debugConnection!.uri); final Uri httpUri = _httpUriFromWebsocketUri(websocketUri); return _instance ??= FlutterVmService(service!, wsAddress: websocketUri, httpAddress: httpUri); } FlutterVmService? _instance; @override Future<void> cleanupAfterSignal() async { await _cleanup(); } @override Future<void> cleanupAtFinish() async { await _cleanup(); } Future<void> _cleanup() async { if (_exited) { return; } await residentDevtoolsHandler!.shutdown(); await _stdOutSub?.cancel(); await _stdErrSub?.cancel(); await _extensionEventSub?.cancel(); await device!.device!.stopApp(null); try { _generatedEntrypointDirectory?.deleteSync(recursive: true); } on FileSystemException { // Best effort to clean up temp dirs. _logger.printTrace( 'Failed to clean up temp directory: ${_generatedEntrypointDirectory!.path}', ); } _exited = true; } Future<void> _cleanupAndExit() async { await _cleanup(); appFinished(); } @override void printHelp({bool details = true}) { if (details) { return printHelpDetails(); } const String fire = '🔥'; const String rawMessage = ' To hot restart changes while running, press "r" or "R".'; final String message = _logger.terminal.color( fire + _logger.terminal.bolden(rawMessage), TerminalColor.red, ); _logger.printStatus(message); const String quitMessage = 'To quit, press "q".'; _logger.printStatus('For a more detailed help message, press "h". $quitMessage'); _logger.printStatus(''); printDebuggerList(); } @override Future<void> stopEchoingDeviceLog() async { // Do nothing for ResidentWebRunner await device!.stopEchoingDeviceLog(); } @override Future<int> run({ Completer<DebugConnectionInfo>? connectionInfoCompleter, Completer<void>? appStartedCompleter, bool enableDevTools = false, // ignored, we don't yet support devtools for web String? route, }) async { final ApplicationPackage? package = await ApplicationPackageFactory.instance!.getPackageForPlatform( TargetPlatform.web_javascript, buildInfo: debuggingOptions.buildInfo, ); if (package == null) { _logger.printStatus('This application is not configured to build on the web.'); _logger.printStatus('To add web support to a project, run `flutter create .`.'); } final String modeName = debuggingOptions.buildInfo.friendlyModeName; _logger.printStatus( 'Launching ${getDisplayPath(target, _fileSystem)} ' 'on ${device!.device!.name} in $modeName mode...', ); if (device!.device is ChromiumDevice) { _chromiumLauncher = (device!.device! as ChromiumDevice).chromeLauncher; } try { return await asyncGuard(() async { Future<int> getPort() async { if (debuggingOptions.port == null) { return globals.os.findFreePort(); } final int? port = int.tryParse(debuggingOptions.port ?? ''); if (port == null) { logger.printError(''' Received a non-integer value for port: ${debuggingOptions.port} A randomly-chosen available port will be used instead. '''); return globals.os.findFreePort(); } if (port < 0 || port > 65535) { throwToolExit(''' Invalid port: ${debuggingOptions.port} Please provide a valid TCP port (an integer between 0 and 65535, inclusive). '''); } return port; } final ExpressionCompiler? expressionCompiler = debuggingOptions.webEnableExpressionEvaluation ? WebExpressionCompiler(device!.generator!, fileSystem: _fileSystem) : null; device!.devFS = WebDevFS( hostname: debuggingOptions.hostname ?? 'localhost', port: await getPort(), tlsCertPath: debuggingOptions.tlsCertPath, tlsCertKeyPath: debuggingOptions.tlsCertKeyPath, packagesFilePath: packagesFilePath, urlTunneller: _urlTunneller, useSseForDebugProxy: debuggingOptions.webUseSseForDebugProxy, useSseForDebugBackend: debuggingOptions.webUseSseForDebugBackend, useSseForInjectedClient: debuggingOptions.webUseSseForInjectedClient, buildInfo: debuggingOptions.buildInfo, enableDwds: _enableDwds, enableDds: debuggingOptions.enableDds, entrypoint: _fileSystem.file(target).uri, expressionCompiler: expressionCompiler, extraHeaders: debuggingOptions.webHeaders, chromiumLauncher: _chromiumLauncher, nullAssertions: debuggingOptions.nullAssertions, nullSafetyMode: debuggingOptions.buildInfo.nullSafetyMode, nativeNullAssertions: debuggingOptions.nativeNullAssertions, ddcModuleSystem: debuggingOptions.buildInfo.ddcModuleFormat == DdcModuleFormat.ddc, webRenderer: debuggingOptions.webRenderer, rootDirectory: fileSystem.directory(projectRootPath), ); Uri url = await device!.devFS!.create(); if (debuggingOptions.tlsCertKeyPath != null && debuggingOptions.tlsCertPath != null) { url = url.replace(scheme: 'https'); } if (debuggingOptions.buildInfo.isDebug) { await runSourceGenerators(); final UpdateFSReport report = await _updateDevFS(fullRestart: true); if (!report.success) { _logger.printError('Failed to compile application.'); appFailedToStart(); return 1; } device!.generator!.accept(); cacheInitialDillCompilation(); } else { final WebBuilder webBuilder = WebBuilder( logger: _logger, processManager: globals.processManager, buildSystem: globals.buildSystem, fileSystem: _fileSystem, flutterVersion: globals.flutterVersion, usage: globals.flutterUsage, analytics: globals.analytics, ); await webBuilder.buildWeb( flutterProject, target, debuggingOptions.buildInfo, ServiceWorkerStrategy.none, compilerConfigs: <WebCompilerConfig>[ JsCompilerConfig.run( nativeNullAssertions: debuggingOptions.nativeNullAssertions, renderer: debuggingOptions.webRenderer, ) ] ); } await device!.device!.startApp( package, mainPath: target, debuggingOptions: debuggingOptions, platformArgs: <String, Object>{ 'uri': url.toString(), }, ); return attach( connectionInfoCompleter: connectionInfoCompleter, appStartedCompleter: appStartedCompleter, enableDevTools: enableDevTools, ); }); } on WebSocketException catch (error, stackTrace) { appFailedToStart(); _logger.printError('$error', stackTrace: stackTrace); throwToolExit(kExitMessage); } on ChromeDebugException catch (error, stackTrace) { appFailedToStart(); _logger.printError('$error', stackTrace: stackTrace); throwToolExit(kExitMessage); } on AppConnectionException catch (error, stackTrace) { appFailedToStart(); _logger.printError('$error', stackTrace: stackTrace); throwToolExit(kExitMessage); } on SocketException catch (error, stackTrace) { appFailedToStart(); _logger.printError('$error', stackTrace: stackTrace); throwToolExit(kExitMessage); } on Exception { appFailedToStart(); rethrow; } } @override Future<OperationResult> restart({ bool fullRestart = false, bool? pause = false, String? reason, bool benchmarkMode = false, }) async { final DateTime start = _systemClock.now(); final Status status = _logger.startProgress( 'Performing hot restart...', progressId: 'hot.restart', ); if (debuggingOptions.buildInfo.isDebug) { await runSourceGenerators(); // Full restart is always false for web, since the extra recompile is wasteful. final UpdateFSReport report = await _updateDevFS(); if (report.success) { device!.generator!.accept(); } else { status.stop(); await device!.generator!.reject(); return OperationResult(1, 'Failed to recompile application.'); } } else { try { final WebBuilder webBuilder = WebBuilder( logger: _logger, processManager: globals.processManager, buildSystem: globals.buildSystem, fileSystem: _fileSystem, flutterVersion: globals.flutterVersion, usage: globals.flutterUsage, analytics: globals.analytics, ); await webBuilder.buildWeb( flutterProject, target, debuggingOptions.buildInfo, ServiceWorkerStrategy.none, compilerConfigs: <WebCompilerConfig>[ JsCompilerConfig.run( nativeNullAssertions: debuggingOptions.nativeNullAssertions, renderer: debuggingOptions.webRenderer, ) ], ); } on ToolExit { return OperationResult(1, 'Failed to recompile application.'); } } try { if (!deviceIsDebuggable) { _logger.printStatus('Recompile complete. Page requires refresh.'); } else if (isRunningDebug) { await _vmService.service.callMethod('hotRestart'); } else { // On non-debug builds, a hard refresh is required to ensure the // up to date sources are loaded. await _wipConnection?.sendCommand('Page.reload', <String, Object>{ 'ignoreCache': !debuggingOptions.buildInfo.isDebug, }); } } on Exception catch (err) { return OperationResult(1, err.toString(), fatal: true); } finally { status.stop(); } final Duration elapsed = _systemClock.now().difference(start); final String elapsedMS = getElapsedAsMilliseconds(elapsed); _logger.printStatus('Restarted application in $elapsedMS.'); unawaited(residentDevtoolsHandler!.hotRestart(flutterDevices)); // Don't track restart times for dart2js builds or web-server devices. if (debuggingOptions.buildInfo.isDebug && deviceIsDebuggable) { _usage.sendTiming('hot', 'web-incremental-restart', elapsed); _analytics.send(Event.timing( workflow: 'hot', variableName: 'web-incremental-restart', elapsedMilliseconds: elapsed.inMilliseconds, )); final String sdkName = await device!.device!.sdkNameAndVersion; HotEvent( 'restart', targetPlatform: getNameForTargetPlatform(TargetPlatform.web_javascript), sdkName: sdkName, emulator: false, fullRestart: true, reason: reason, overallTimeInMs: elapsed.inMilliseconds, ).send(); _analytics.send(Event.hotRunnerInfo( label: 'restart', targetPlatform: getNameForTargetPlatform(TargetPlatform.web_javascript), sdkName: sdkName, emulator: false, fullRestart: true, reason: reason, overallTimeInMs: elapsed.inMilliseconds )); } return OperationResult.ok; } // Flutter web projects need to include a generated main entrypoint to call the // appropriate bootstrap method and inject plugins. // Keep this in sync with build_system/targets/web.dart. Future<Uri> _generateEntrypoint(Uri mainUri, PackageConfig? packageConfig) async { File? result = _generatedEntrypointDirectory?.childFile('web_entrypoint.dart'); if (_generatedEntrypointDirectory == null) { _generatedEntrypointDirectory ??= _fileSystem.systemTempDirectory.createTempSync('flutter_tools.') ..createSync(); result = _generatedEntrypointDirectory!.childFile('web_entrypoint.dart'); // Generates the generated_plugin_registrar await injectBuildTimePluginFiles(flutterProject, webPlatform: true, destination: _generatedEntrypointDirectory!); // The below works because `injectBuildTimePluginFiles` is configured to write // the web_plugin_registrant.dart file alongside the generated main.dart const String generatedImport = 'web_plugin_registrant.dart'; Uri? importedEntrypoint = packageConfig!.toPackageUri(mainUri); // Special handling for entrypoints that are not under lib, such as test scripts. if (importedEntrypoint == null) { final String parent = _fileSystem.file(mainUri).parent.path; flutterDevices.first.generator! ..addFileSystemRoot(parent) ..addFileSystemRoot(_fileSystem.directory('test').absolute.path); importedEntrypoint = Uri( scheme: 'org-dartlang-app', path: '/${mainUri.pathSegments.last}', ); } final LanguageVersion languageVersion = determineLanguageVersion( _fileSystem.file(mainUri), packageConfig[flutterProject.manifest.appName], Cache.flutterRoot!, ); final String entrypoint = main_dart.generateMainDartFile(importedEntrypoint.toString(), languageVersion: languageVersion, pluginRegistrantEntrypoint: generatedImport, ); result.writeAsStringSync(entrypoint); } return result!.absolute.uri; } Future<UpdateFSReport> _updateDevFS({bool fullRestart = false}) async { final bool isFirstUpload = !assetBundle.wasBuiltOnce(); final bool rebuildBundle = assetBundle.needsBuild(); if (rebuildBundle) { _logger.printTrace('Updating assets'); final int result = await assetBundle.build( packagesPath: debuggingOptions.buildInfo.packagesPath, targetPlatform: TargetPlatform.web_javascript, ); if (result != 0) { return UpdateFSReport(); } } final InvalidationResult invalidationResult = await projectFileInvalidator.findInvalidated( lastCompiled: device!.devFS!.lastCompiled, urisToMonitor: device!.devFS!.sources, packagesPath: packagesFilePath, packageConfig: device!.devFS!.lastPackageConfig ?? debuggingOptions.buildInfo.packageConfig, ); final Status devFSStatus = _logger.startProgress( 'Waiting for connection from debug service on ${device!.device!.name}...', ); final UpdateFSReport report = await device!.devFS!.update( mainUri: await _generateEntrypoint( _fileSystem.file(mainPath).absolute.uri, invalidationResult.packageConfig, ), target: target, bundle: assetBundle, bundleFirstUpload: isFirstUpload, generator: device!.generator!, fullRestart: fullRestart, dillOutputPath: dillOutputPath, pathToReload: getReloadPath(fullRestart: fullRestart, swap: false), invalidatedFiles: invalidationResult.uris!, packageConfig: invalidationResult.packageConfig!, trackWidgetCreation: debuggingOptions.buildInfo.trackWidgetCreation, shaderCompiler: device!.developmentShaderCompiler, ); devFSStatus.stop(); _logger.printTrace('Synced ${getSizeAsMB(report.syncedBytes)}.'); return report; } @override Future<int> attach({ Completer<DebugConnectionInfo>? connectionInfoCompleter, Completer<void>? appStartedCompleter, bool allowExistingDdsInstance = false, bool enableDevTools = false, // ignored, we don't yet support devtools for web bool needsFullRestart = true, }) async { if (_chromiumLauncher != null) { final Chromium chrome = await _chromiumLauncher!.connectedInstance; final ChromeTab? chromeTab = await chrome.chromeConnection.getTab((ChromeTab chromeTab) { return !chromeTab.url.startsWith('chrome-extension'); }, retryFor: const Duration(seconds: 5)); if (chromeTab == null) { throwToolExit('Failed to connect to Chrome instance.'); } _wipConnection = await chromeTab.connect(); } Uri? websocketUri; if (supportsServiceProtocol) { final WebDevFS webDevFS = device!.devFS! as WebDevFS; final bool useDebugExtension = device!.device is WebServerDevice && debuggingOptions.startPaused; _connectionResult = await webDevFS.connect(useDebugExtension); unawaited(_connectionResult!.debugConnection!.onDone.whenComplete(_cleanupAndExit)); void onLogEvent(vmservice.Event event) { final String message = processVmServiceMessage(event); _logger.printStatus(message); } _stdOutSub = _vmService.service.onStdoutEvent.listen(onLogEvent); _stdErrSub = _vmService.service.onStderrEvent.listen(onLogEvent); try { await _vmService.service.streamListen(vmservice.EventStreams.kStdout); } on vmservice.RPCError { // It is safe to ignore this error because we expect an error to be // thrown if we're not already subscribed. } try { await _vmService.service.streamListen(vmservice.EventStreams.kStderr); } on vmservice.RPCError { // It is safe to ignore this error because we expect an error to be // thrown if we're not already subscribed. } try { await _vmService.service.streamListen(vmservice.EventStreams.kIsolate); } on vmservice.RPCError { // It is safe to ignore this error because we expect an error to be // thrown if we're not already subscribed. } await setUpVmService( reloadSources: (String isolateId, {bool? force, bool? pause}) async { await restart(pause: pause); }, device: device!.device, flutterProject: flutterProject, printStructuredErrorLogMethod: printStructuredErrorLog, vmService: _vmService.service, ); websocketUri = Uri.parse(_connectionResult!.debugConnection!.uri); device!.vmService = _vmService; // Run main immediately if the app is not started paused or if there // is no debugger attached. Otherwise, runMain when a resume event // is received. if (!debuggingOptions.startPaused || !supportsServiceProtocol) { _connectionResult!.appConnection!.runMain(); } else { late StreamSubscription<void> resumeSub; resumeSub = _vmService.service.onDebugEvent.listen((vmservice.Event event) { if (event.type == vmservice.EventKind.kResume) { _connectionResult!.appConnection!.runMain(); resumeSub.cancel(); } }); } if (enableDevTools) { // The method below is guaranteed never to return a failing future. unawaited(residentDevtoolsHandler!.serveAndAnnounceDevTools( devToolsServerAddress: debuggingOptions.devToolsServerAddress, flutterDevices: flutterDevices, )); } } if (websocketUri != null) { if (debuggingOptions.vmserviceOutFile != null) { _fileSystem.file(debuggingOptions.vmserviceOutFile) ..createSync(recursive: true) ..writeAsStringSync(websocketUri.toString()); } _logger.printStatus('Debug service listening on $websocketUri'); if (debuggingOptions.buildInfo.nullSafetyMode != NullSafetyMode.sound) { _logger.printStatus(''); _logger.printStatus( 'Running without sound null safety ⚠️', emphasis: true, ); _logger.printStatus( 'Dart 3 will only support sound null safety, see https://dart.dev/null-safety', ); } } appStartedCompleter?.complete(); connectionInfoCompleter?.complete(DebugConnectionInfo(wsUri: websocketUri)); if (stayResident) { await waitForAppToFinish(); } else { await stopEchoingDeviceLog(); await exitApp(); } await cleanupAtFinish(); return 0; } @override Future<void> exitApp() async { await device!.exitApps(); appFinished(); } } Uri _httpUriFromWebsocketUri(Uri websocketUri) { const String wsPath = '/ws'; final String path = websocketUri.path; return websocketUri.replace(scheme: 'http', path: path.substring(0, path.length - wsPath.length)); }
flutter/packages/flutter_tools/lib/src/isolated/resident_web_runner.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/isolated/resident_web_runner.dart", "repo_id": "flutter", "token_count": 9809 }
823
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/file.dart'; import 'package:process/process.dart'; import 'package:unified_analytics/unified_analytics.dart'; import '../base/common.dart'; import '../base/error_handling_io.dart'; import '../base/file_system.dart'; import '../base/io.dart'; import '../base/logger.dart'; import '../base/os.dart'; import '../base/platform.dart'; import '../base/process.dart'; import '../base/project_migrator.dart'; import '../base/version.dart'; import '../build_info.dart'; import '../cache.dart'; import '../ios/xcodeproj.dart'; import '../migrations/cocoapods_script_symlink.dart'; import '../migrations/cocoapods_toolchain_directory_migration.dart'; import '../reporting/reporting.dart'; import '../xcode_project.dart'; const String noCocoaPodsConsequence = ''' CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side. Without CocoaPods, plugins will not work on iOS or macOS. For more info, see https://flutter.dev/platform-plugins'''; const String unknownCocoaPodsConsequence = ''' Flutter is unable to determine the installed CocoaPods's version. Ensure that the output of 'pod --version' contains only digits and . to be recognized by Flutter.'''; const String brokenCocoaPodsConsequence = ''' You appear to have CocoaPods installed but it is not working. This can happen if the version of Ruby that CocoaPods was installed with is different from the one being used to invoke it. This can usually be fixed by re-installing CocoaPods.'''; const String outOfDateFrameworksPodfileConsequence = ''' This can cause a mismatched version of Flutter to be embedded in your app, which may result in App Store submission rejection or crashes. If you have local Podfile edits you would like to keep, see https://github.com/flutter/flutter/issues/24641 for instructions.'''; const String outOfDatePluginsPodfileConsequence = ''' This can cause issues if your application depends on plugins that do not support iOS or macOS. See https://flutter.dev/docs/development/packages-and-plugins/developing-packages#plugin-platforms for details. If you have local Podfile edits you would like to keep, see https://github.com/flutter/flutter/issues/45197 for instructions.'''; const String cocoaPodsInstallInstructions = 'see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.'; const String cocoaPodsUpdateInstructions = 'see https://guides.cocoapods.org/using/getting-started.html#updating-cocoapods for instructions.'; const String podfileIosMigrationInstructions = ''' rm ios/Podfile'''; const String podfileMacOSMigrationInstructions = ''' rm macos/Podfile'''; /// Result of evaluating the CocoaPods installation. enum CocoaPodsStatus { /// iOS plugins will not work, installation required. notInstalled, /// iOS plugins might not work, upgrade recommended. unknownVersion, /// iOS plugins will not work, upgrade required. belowMinimumVersion, /// iOS plugins may not work in certain situations (Swift, static libraries), /// upgrade recommended. belowRecommendedVersion, /// Everything should be fine. recommended, /// iOS plugins will not work, re-install required. brokenInstall, } const Version cocoaPodsMinimumVersion = Version.withText(1, 10, 0, '1.10.0'); const Version cocoaPodsRecommendedVersion = Version.withText(1, 13, 0, '1.13.0'); /// Cocoapods is a dependency management solution for iOS and macOS applications. /// /// Cocoapods is generally installed via ruby gems and interacted with via /// the `pod` CLI command. /// /// See also: /// * https://cocoapods.org/ - the cocoapods website. /// * https://flutter.dev/docs/get-started/install/macos#deploy-to-ios-devices - instructions for /// installing iOS/macOS dependencies. class CocoaPods { CocoaPods({ required FileSystem fileSystem, required ProcessManager processManager, required XcodeProjectInterpreter xcodeProjectInterpreter, required Logger logger, required Platform platform, required Usage usage, required Analytics analytics, }) : _fileSystem = fileSystem, _processManager = processManager, _xcodeProjectInterpreter = xcodeProjectInterpreter, _logger = logger, _usage = usage, _analytics = analytics, _processUtils = ProcessUtils(processManager: processManager, logger: logger), _operatingSystemUtils = OperatingSystemUtils( fileSystem: fileSystem, logger: logger, platform: platform, processManager: processManager, ); final FileSystem _fileSystem; final ProcessManager _processManager; final ProcessUtils _processUtils; final OperatingSystemUtils _operatingSystemUtils; final XcodeProjectInterpreter _xcodeProjectInterpreter; final Logger _logger; final Usage _usage; final Analytics _analytics; Future<String?>? _versionText; Future<bool> get isInstalled => _processUtils.exitsHappy(<String>['which', 'pod']); Future<String?> get cocoaPodsVersionText { _versionText ??= _processUtils.run( <String>['pod', '--version'], environment: <String, String>{ 'LANG': 'en_US.UTF-8', }, ).then<String?>((RunResult result) { return result.exitCode == 0 ? result.stdout.trim() : null; }, onError: (dynamic _) => null); return _versionText!; } Future<CocoaPodsStatus> get evaluateCocoaPodsInstallation async { if (!(await isInstalled)) { return CocoaPodsStatus.notInstalled; } final String? versionText = await cocoaPodsVersionText; if (versionText == null) { return CocoaPodsStatus.brokenInstall; } try { final Version? installedVersion = Version.parse(versionText); if (installedVersion == null) { return CocoaPodsStatus.unknownVersion; } if (installedVersion < cocoaPodsMinimumVersion) { return CocoaPodsStatus.belowMinimumVersion; } if (installedVersion < cocoaPodsRecommendedVersion) { return CocoaPodsStatus.belowRecommendedVersion; } return CocoaPodsStatus.recommended; } on FormatException { return CocoaPodsStatus.notInstalled; } } Future<bool> processPods({ required XcodeBasedProject xcodeProject, required BuildMode buildMode, bool dependenciesChanged = true, }) async { if (!xcodeProject.podfile.existsSync()) { throwToolExit('Podfile missing'); } _warnIfPodfileOutOfDate(xcodeProject); bool podsProcessed = false; if (_shouldRunPodInstall(xcodeProject, dependenciesChanged)) { if (!await _checkPodCondition()) { throwToolExit('CocoaPods not installed or not in valid state.'); } await _runPodInstall(xcodeProject, buildMode); // This migrator works around a CocoaPods bug, and should be run after `pod install` is run. final ProjectMigration postPodMigration = ProjectMigration(<ProjectMigrator>[ CocoaPodsScriptReadlink(xcodeProject, _xcodeProjectInterpreter, _logger), CocoaPodsToolchainDirectoryMigration( xcodeProject, _xcodeProjectInterpreter, _logger, ), ]); postPodMigration.run(); podsProcessed = true; } return podsProcessed; } /// Make sure the CocoaPods tools are in the right states. Future<bool> _checkPodCondition() async { final CocoaPodsStatus installation = await evaluateCocoaPodsInstallation; switch (installation) { case CocoaPodsStatus.notInstalled: _logger.printWarning( 'Warning: CocoaPods not installed. Skipping pod install.\n' '$noCocoaPodsConsequence\n' 'To install $cocoaPodsInstallInstructions\n', emphasis: true, ); return false; case CocoaPodsStatus.brokenInstall: _logger.printWarning( 'Warning: CocoaPods is installed but broken. Skipping pod install.\n' '$brokenCocoaPodsConsequence\n' 'To re-install $cocoaPodsInstallInstructions\n', emphasis: true, ); return false; case CocoaPodsStatus.unknownVersion: _logger.printWarning( 'Warning: Unknown CocoaPods version installed.\n' '$unknownCocoaPodsConsequence\n' 'To upgrade $cocoaPodsInstallInstructions\n', emphasis: true, ); case CocoaPodsStatus.belowMinimumVersion: _logger.printWarning( 'Warning: CocoaPods minimum required version $cocoaPodsMinimumVersion or greater not installed. Skipping pod install.\n' '$noCocoaPodsConsequence\n' 'To upgrade $cocoaPodsInstallInstructions\n', emphasis: true, ); return false; case CocoaPodsStatus.belowRecommendedVersion: _logger.printWarning( 'Warning: CocoaPods recommended version $cocoaPodsRecommendedVersion or greater not installed.\n' 'Pods handling may fail on some projects involving plugins.\n' 'To upgrade $cocoaPodsInstallInstructions\n', emphasis: true, ); case CocoaPodsStatus.recommended: break; } return true; } /// Ensures the given Xcode-based sub-project of a parent Flutter project /// contains a suitable `Podfile` and that its `Flutter/Xxx.xcconfig` files /// include pods configuration. Future<void> setupPodfile(XcodeBasedProject xcodeProject) async { if (!_xcodeProjectInterpreter.isInstalled) { // Don't do anything for iOS when host platform doesn't support it. return; } final Directory runnerProject = xcodeProject.xcodeProject; if (!runnerProject.existsSync()) { return; } final File podfile = xcodeProject.podfile; if (podfile.existsSync()) { addPodsDependencyToFlutterXcconfig(xcodeProject); return; } String podfileTemplateName; if (xcodeProject is MacOSProject) { podfileTemplateName = 'Podfile-macos'; } else { final bool isSwift = (await _xcodeProjectInterpreter.getBuildSettings( runnerProject.path, buildContext: const XcodeProjectBuildContext(), )).containsKey('SWIFT_VERSION'); podfileTemplateName = isSwift ? 'Podfile-ios-swift' : 'Podfile-ios-objc'; } final File podfileTemplate = _fileSystem.file(_fileSystem.path.join( Cache.flutterRoot!, 'packages', 'flutter_tools', 'templates', 'cocoapods', podfileTemplateName, )); podfileTemplate.copySync(podfile.path); addPodsDependencyToFlutterXcconfig(xcodeProject); } /// Ensures all `Flutter/Xxx.xcconfig` files for the given Xcode-based /// sub-project of a parent Flutter project include pods configuration. void addPodsDependencyToFlutterXcconfig(XcodeBasedProject xcodeProject) { _addPodsDependencyToFlutterXcconfig(xcodeProject, 'Debug'); _addPodsDependencyToFlutterXcconfig(xcodeProject, 'Release'); } void _addPodsDependencyToFlutterXcconfig(XcodeBasedProject xcodeProject, String mode) { final File file = xcodeProject.xcodeConfigFor(mode); if (file.existsSync()) { final String content = file.readAsStringSync(); final String includeFile = 'Pods/Target Support Files/Pods-Runner/Pods-Runner.${mode .toLowerCase()}.xcconfig'; final String include = '#include? "$includeFile"'; if (!content.contains('Pods/Target Support Files/Pods-')) { file.writeAsStringSync('$include\n$content', flush: true); } } } /// Ensures that pod install is deemed needed on next check. void invalidatePodInstallOutput(XcodeBasedProject xcodeProject) { final File manifestLock = xcodeProject.podManifestLock; ErrorHandlingFileSystem.deleteIfExists(manifestLock); } // Check if you need to run pod install. // The pod install will run if any of below is true. // 1. Flutter dependencies have changed // 2. Podfile.lock doesn't exist or is older than Podfile // 3. Pods/Manifest.lock doesn't exist (It is deleted when plugins change) // 4. Podfile.lock doesn't match Pods/Manifest.lock. bool _shouldRunPodInstall(XcodeBasedProject xcodeProject, bool dependenciesChanged) { if (dependenciesChanged) { return true; } final File podfileFile = xcodeProject.podfile; final File podfileLockFile = xcodeProject.podfileLock; final File manifestLockFile = xcodeProject.podManifestLock; return !podfileLockFile.existsSync() || !manifestLockFile.existsSync() || podfileLockFile.statSync().modified.isBefore(podfileFile.statSync().modified) || podfileLockFile.readAsStringSync() != manifestLockFile.readAsStringSync(); } Future<void> _runPodInstall(XcodeBasedProject xcodeProject, BuildMode buildMode) async { final Status status = _logger.startProgress('Running pod install...'); final ProcessResult result = await _processManager.run( <String>['pod', 'install', '--verbose'], workingDirectory: _fileSystem.path.dirname(xcodeProject.podfile.path), environment: <String, String>{ // See https://github.com/flutter/flutter/issues/10873. // CocoaPods analytics adds a lot of latency. 'COCOAPODS_DISABLE_STATS': 'true', 'LANG': 'en_US.UTF-8', }, ); status.stop(); if (_logger.isVerbose || result.exitCode != 0) { final String stdout = result.stdout as String; if (stdout.isNotEmpty) { _logger.printStatus("CocoaPods' output:\n↳"); _logger.printStatus(stdout, indent: 4); } final String stderr = result.stderr as String; if (stderr.isNotEmpty) { _logger.printStatus('Error output from CocoaPods:\n↳'); _logger.printStatus(stderr, indent: 4); } } if (result.exitCode != 0) { invalidatePodInstallOutput(xcodeProject); _diagnosePodInstallFailure(result, xcodeProject); throwToolExit('Error running pod install'); } else if (xcodeProject.podfileLock.existsSync()) { // Even if the Podfile.lock didn't change, update its modified date to now // so Podfile.lock is newer than Podfile. _processManager.runSync( <String>['touch', xcodeProject.podfileLock.path], workingDirectory: _fileSystem.path.dirname(xcodeProject.podfile.path), ); } } void _diagnosePodInstallFailure(ProcessResult result, XcodeBasedProject xcodeProject) { final Object? stdout = result.stdout; final Object? stderr = result.stderr; if (stdout is! String || stderr is! String) { return; } if (stdout.contains('out-of-date source repos')) { _logger.printError( "Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies.\n" 'To update the CocoaPods specs, run:\n' ' pod repo update\n', emphasis: true, ); } else if ((_isFfiX86Error(stdout) || _isFfiX86Error(stderr)) && _operatingSystemUtils.hostPlatform == HostPlatform.darwin_arm64) { // https://github.com/flutter/flutter/issues/70796 UsageEvent( 'pod-install-failure', 'arm-ffi', flutterUsage: _usage, ).send(); _analytics.send(Event.appleUsageEvent( workflow: 'pod-install-failure', parameter: 'arm-ffi', )); _logger.printError( 'Error: To set up CocoaPods for ARM macOS, run:\n' ' sudo gem uninstall ffi && sudo gem install ffi -- --enable-libffi-alloc\n', emphasis: true, ); } else if (stdout.contains('required a higher minimum deployment target')) { final ({String failingPod, String sourcePlugin, String podPluginSubdir})? podInfo = _parseMinDeploymentFailureInfo(stdout); if (podInfo != null) { final String sourcePlugin = podInfo.sourcePlugin; // If the plugin's podfile has set its own minimum version correctly // based on the requirements of its dependencies the failing pod should // be the plugin itself, but if not they may be different (e.g., if // a plugin says its minimum iOS version is 11, but depends on a pod // with a minimum version of 12, then building for 11 will report that // pod as failing.) if (podInfo.failingPod == podInfo.sourcePlugin) { final Directory symlinksDir; final String podPlatformString; final String platformName; final String docsLink; if (xcodeProject is IosProject) { symlinksDir = xcodeProject.symlinks; podPlatformString = 'ios'; platformName = 'iOS'; docsLink = 'https://docs.flutter.dev/deployment/ios'; } else if (xcodeProject is MacOSProject) { symlinksDir = xcodeProject.ephemeralDirectory.childDirectory('.symlinks'); podPlatformString = 'osx'; platformName = 'macOS'; docsLink = 'https://docs.flutter.dev/deployment/macos'; } else { return; } final File podspec = symlinksDir .childDirectory('plugins') .childDirectory(sourcePlugin) .childDirectory(podInfo.podPluginSubdir) .childFile('$sourcePlugin.podspec'); final String? minDeploymentVersion = _findPodspecMinDeploymentVersion( podspec, podPlatformString ); if (minDeploymentVersion != null) { _logger.printError( 'Error: The plugin "$sourcePlugin" requires a higher minimum ' '$platformName deployment version than your application is targeting.\n' "To build, increase your application's deployment target to at " 'least $minDeploymentVersion as described at $docsLink', emphasis: true, ); } else { // If for some reason the min version can't be parsed out, provide // a less specific error message that still describes the problem, // but also requests filing a Flutter issue so the parsing in // _findPodspecMinDeploymentVersion can be improved. _logger.printError( 'Error: The plugin "$sourcePlugin" requires a higher minimum ' '$platformName deployment version than your application is targeting.\n' "To build, increase your application's deployment target as " 'described at $docsLink\n\n' 'The minimum required version for "$sourcePlugin" could not be ' 'determined. Please file an issue at ' 'https://github.com/flutter/flutter/issues about this error message.', emphasis: true, ); } } else { // In theory this could find the failing pod's spec and parse out its // minimum deployment version, but finding that spec would add a lot // of complexity to handle a case that plugin authors should not // create, so this just provides the actionable step of following up // with the plugin developer. _logger.printError( 'Error: The pod "${podInfo.failingPod}" required by the plugin ' '"$sourcePlugin" requires a higher minimum iOS deployment version ' "than the plugin's reported minimum version.\n" 'To build, remove the plugin "$sourcePlugin", or contact the plugin\'s ' 'developers for assistance.', emphasis: true, ); } } } } ({String failingPod, String sourcePlugin, String podPluginSubdir})? _parseMinDeploymentFailureInfo(String podInstallOutput) { final RegExp sourceLine = RegExp(r'\(from `.*\.symlinks/plugins/([^/]+)/([^/]+)`\)'); final RegExp dependencyLine = RegExp(r'Specs satisfying the `([^ ]+).*` dependency were found, ' 'but they required a higher minimum deployment target'); final RegExpMatch? sourceMatch = sourceLine.firstMatch(podInstallOutput); final RegExpMatch? dependencyMatch = dependencyLine.firstMatch(podInstallOutput); if (sourceMatch == null || dependencyMatch == null) { return null; } return ( failingPod: dependencyMatch.group(1)!, sourcePlugin: sourceMatch.group(1)!, podPluginSubdir: sourceMatch.group(2)! ); } String? _findPodspecMinDeploymentVersion(File podspec, String platformString) { if (!podspec.existsSync()) { return null; } // There are two ways the deployment target can be specified; see // https://guides.cocoapods.org/syntax/podspec.html#group_platform final RegExp platformPattern = RegExp( // Example: spec.platform = :osx, '10.8' // where "spec" is an arbitrary variable name. r'^\s*[a-zA-Z_]+\.platform\s*=\s*' ':$platformString' r'''\s*,\s*["']([^"']+)["']''', multiLine: true ); final RegExp deploymentTargetPlatform = RegExp( // Example: spec.osx.deployment_target = '10.8' // where "spec" is an arbitrary variable name. r'^\s*[a-zA-Z_]+\.' '$platformString\\.deployment_target' r'''\s*=\s*["']([^"']+)["']''', multiLine: true ); final String podspecContents = podspec.readAsStringSync(); final RegExpMatch? match = platformPattern.firstMatch(podspecContents) ?? deploymentTargetPlatform.firstMatch(podspecContents); return match?.group(1); } bool _isFfiX86Error(String error) { return error.contains('ffi_c.bundle') || error.contains('/ffi/'); } void _warnIfPodfileOutOfDate(XcodeBasedProject xcodeProject) { final bool isIos = xcodeProject is IosProject; if (isIos) { // Previously, the Podfile created a symlink to the cached artifacts engine framework // and installed the Flutter pod from that path. This could get out of sync with the copy // of the Flutter engine that was copied to ios/Flutter by the xcode_backend script. // It was possible for the symlink to point to a Debug version of the engine when the // Xcode build configuration was Release, which caused App Store submission rejections. // // Warn the user if they are still symlinking to the framework. final Link flutterSymlink = _fileSystem.link(_fileSystem.path.join( xcodeProject.symlinks.path, 'flutter', )); if (flutterSymlink.existsSync()) { throwToolExit( 'Warning: Podfile is out of date\n' '$outOfDateFrameworksPodfileConsequence\n' 'To regenerate the Podfile, run:\n' '$podfileIosMigrationInstructions\n', ); } } // Most of the pod and plugin parsing logic was moved from the Podfile // into the tool's podhelper.rb script. If the Podfile still references // the old parsed .flutter-plugins file, prompt the regeneration. Old line was: // plugin_pods = parse_KV_file('../.flutter-plugins') if (xcodeProject.podfile.existsSync() && xcodeProject.podfile.readAsStringSync().contains(".flutter-plugins'")) { const String warning = 'Warning: Podfile is out of date\n' '$outOfDatePluginsPodfileConsequence\n' 'To regenerate the Podfile, run:\n'; if (isIos) { throwToolExit('$warning\n$podfileIosMigrationInstructions\n'); } else { // The old macOS Podfile will work until `.flutter-plugins` is removed. // Warn instead of exit. _logger.printWarning('$warning\n$podfileMacOSMigrationInstructions\n', emphasis: true); } } } }
flutter/packages/flutter_tools/lib/src/macos/cocoapods.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/macos/cocoapods.dart", "repo_id": "flutter", "token_count": 8838 }
824
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import '../base/file_system.dart'; import '../base/project_migrator.dart'; import '../xcode_project.dart'; /// Migrate the Xcode project for Xcode compatibility to avoid an "Update to recommended settings" Xcode warning. class XcodeProjectObjectVersionMigration extends ProjectMigrator { XcodeProjectObjectVersionMigration( XcodeBasedProject project, super.logger, ) : _xcodeProjectInfoFile = project.xcodeProjectInfoFile, _xcodeProjectSchemeFile = project.xcodeProjectSchemeFile(); final File _xcodeProjectInfoFile; final File _xcodeProjectSchemeFile; @override void migrate() { if (_xcodeProjectInfoFile.existsSync()) { processFileLines(_xcodeProjectInfoFile); } else { logger.printTrace('Xcode project not found, skipping Xcode compatibility migration.'); } if (_xcodeProjectSchemeFile.existsSync()) { processFileLines(_xcodeProjectSchemeFile); } else { logger.printTrace('Runner scheme not found, skipping Xcode compatibility migration.'); } } @override String? migrateLine(String line) { String updatedString = line; final Map<Pattern, String> originalToReplacement = <Pattern, String>{ // objectVersion value has been 46, 50, 51, and 54 in the template. RegExp(r'objectVersion = \d+;'): 'objectVersion = 54;', // LastUpgradeCheck is in the Xcode project file, not scheme file. // Value has been 0730, 0800, 1020, 1300, 1430, and 1510 in the template. RegExp(r'LastUpgradeCheck = \d+;'): 'LastUpgradeCheck = 1510;', // LastUpgradeVersion is in the scheme file, not Xcode project file. RegExp(r'LastUpgradeVersion = "\d+"'): 'LastUpgradeVersion = "1510"', }; originalToReplacement.forEach((Pattern original, String replacement) { if (line.contains(original)) { updatedString = line.replaceAll(original, replacement); if (!migrationRequired && updatedString != line) { // Only print once. logger.printStatus('Updating project for Xcode compatibility.'); } } }); return updatedString; } }
flutter/packages/flutter_tools/lib/src/migrations/xcode_project_object_version_migration.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/migrations/xcode_project_object_version_migration.dart", "repo_id": "flutter", "token_count": 765 }
825
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'base/io.dart'; import 'base/platform.dart'; import 'doctor_validator.dart'; /// A validator that displays configured HTTP_PROXY environment variables. /// /// if the `HTTP_PROXY` environment variable is non-empty, the contents are /// validated along with `NO_PROXY`. class ProxyValidator extends DoctorValidator { ProxyValidator({ required Platform platform, }) : shouldShow = _getEnv('HTTP_PROXY', platform).isNotEmpty, _httpProxy = _getEnv('HTTP_PROXY', platform), _noProxy = _getEnv('NO_PROXY', platform), super('Proxy Configuration'); final bool shouldShow; final String _httpProxy; final String _noProxy; /// Gets a trimmed, non-null environment variable. If the variable is not set /// an empty string will be returned. Checks for the lowercase version of the /// environment variable first, then uppercase to match Dart's HTTP implementation. static String _getEnv(String key, Platform platform) => platform.environment[key.toLowerCase()]?.trim() ?? platform.environment[key.toUpperCase()]?.trim() ?? ''; @override Future<ValidationResult> validate() async { if (_httpProxy.isEmpty) { return const ValidationResult( ValidationType.success, <ValidationMessage>[]); } final List<ValidationMessage> messages = <ValidationMessage>[ const ValidationMessage('HTTP_PROXY is set'), if (_noProxy.isEmpty) const ValidationMessage.hint('NO_PROXY is not set') else ...<ValidationMessage>[ ValidationMessage('NO_PROXY is $_noProxy'), for (final String host in await _getLoopbackAddresses()) if (_noProxy.contains(host)) ValidationMessage('NO_PROXY contains $host') else ValidationMessage.hint('NO_PROXY does not contain $host'), ], ]; final bool hasIssues = messages.any( (ValidationMessage msg) => msg.isHint || msg.isError); return ValidationResult( hasIssues ? ValidationType.partial : ValidationType.success, messages, ); } Future<List<String>> _getLoopbackAddresses() async { final List<String> loopBackAddresses = <String>['localhost']; final List<NetworkInterface> networkInterfaces = await listNetworkInterfaces(includeLinkLocal: true, includeLoopback: true); for (final NetworkInterface networkInterface in networkInterfaces) { for (final InternetAddress internetAddress in networkInterface.addresses) { if (internetAddress.isLoopback) { loopBackAddresses.add(internetAddress.address); } } } return loopBackAddresses; } }
flutter/packages/flutter_tools/lib/src/proxy_validator.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/proxy_validator.dart", "repo_id": "flutter", "token_count": 967 }
826
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:args/args.dart'; import 'package:args/command_runner.dart'; import 'package:completion/completion.dart'; import 'package:file/file.dart'; import 'package:unified_analytics/unified_analytics.dart'; import '../artifacts.dart'; import '../base/common.dart'; import '../base/context.dart'; import '../base/file_system.dart'; import '../base/terminal.dart'; import '../base/utils.dart'; import '../cache.dart'; import '../convert.dart'; import '../globals.dart' as globals; import '../tester/flutter_tester.dart'; import '../version.dart'; import '../web/web_device.dart'; /// Common flutter command line options. abstract final class FlutterGlobalOptions { static const String kColorFlag = 'color'; static const String kContinuousIntegrationFlag = 'ci'; static const String kDeviceIdOption = 'device-id'; static const String kDisableAnalyticsFlag = 'disable-analytics'; static const String kEnableAnalyticsFlag = 'enable-analytics'; static const String kLocalEngineOption = 'local-engine'; static const String kLocalEngineSrcPathOption = 'local-engine-src-path'; static const String kLocalEngineHostOption = 'local-engine-host'; static const String kLocalWebSDKOption = 'local-web-sdk'; static const String kMachineFlag = 'machine'; static const String kPackagesOption = 'packages'; static const String kPrefixedErrorsFlag = 'prefixed-errors'; static const String kQuietFlag = 'quiet'; static const String kShowTestDeviceFlag = 'show-test-device'; static const String kShowWebServerDeviceFlag = 'show-web-server-device'; static const String kSuppressAnalyticsFlag = 'suppress-analytics'; static const String kVerboseFlag = 'verbose'; static const String kVersionCheckFlag = 'version-check'; static const String kVersionFlag = 'version'; static const String kWrapColumnOption = 'wrap-column'; static const String kWrapFlag = 'wrap'; static const String kDebugLogsDirectoryFlag = 'debug-logs-dir'; } class FlutterCommandRunner extends CommandRunner<void> { FlutterCommandRunner({ bool verboseHelp = false }) : super( 'flutter', 'Manage your Flutter app development.\n' '\n' 'Common commands:\n' '\n' ' flutter create <output directory>\n' ' Create a new Flutter project in the specified directory.\n' '\n' ' flutter run [options]\n' ' Run your Flutter application on an attached device or in an emulator.', ) { argParser.addFlag(FlutterGlobalOptions.kVerboseFlag, abbr: 'v', negatable: false, help: 'Noisy logging, including all shell commands executed.\n' 'If used with "--help", shows hidden options. ' 'If used with "flutter doctor", shows additional diagnostic information. ' '(Use "-vv" to force verbose logging in those cases.)'); argParser.addFlag(FlutterGlobalOptions.kPrefixedErrorsFlag, negatable: false, help: 'Causes lines sent to stderr to be prefixed with "ERROR:".', hide: !verboseHelp); argParser.addFlag(FlutterGlobalOptions.kQuietFlag, negatable: false, hide: !verboseHelp, help: 'Reduce the amount of output from some commands.'); argParser.addFlag(FlutterGlobalOptions.kWrapFlag, hide: !verboseHelp, help: 'Toggles output word wrapping, regardless of whether or not the output is a terminal.', defaultsTo: true); argParser.addOption(FlutterGlobalOptions.kWrapColumnOption, hide: !verboseHelp, help: 'Sets the output wrap column. If not set, uses the width of the terminal. No ' 'wrapping occurs if not writing to a terminal. Use "--no-wrap" to turn off wrapping ' 'when connected to a terminal.'); argParser.addOption(FlutterGlobalOptions.kDeviceIdOption, abbr: 'd', help: 'Target device id or name (prefixes allowed).'); argParser.addFlag(FlutterGlobalOptions.kVersionFlag, negatable: false, help: 'Reports the version of this tool.'); argParser.addFlag(FlutterGlobalOptions.kMachineFlag, negatable: false, hide: !verboseHelp, help: 'When used with the "--version" flag, outputs the information using JSON.'); argParser.addFlag(FlutterGlobalOptions.kColorFlag, hide: !verboseHelp, help: 'Whether to use terminal colors (requires support for ANSI escape sequences).', defaultsTo: true); argParser.addFlag(FlutterGlobalOptions.kVersionCheckFlag, defaultsTo: true, hide: !verboseHelp, help: 'Allow Flutter to check for updates when this command runs.'); argParser.addFlag(FlutterGlobalOptions.kEnableAnalyticsFlag, negatable: false, help: 'Enable telemetry reporting each time a flutter or dart ' 'command runs.'); argParser.addFlag(FlutterGlobalOptions.kDisableAnalyticsFlag, negatable: false, help: 'Disable telemetry reporting each time a flutter or dart ' 'command runs, until it is re-enabled.'); argParser.addFlag(FlutterGlobalOptions.kSuppressAnalyticsFlag, negatable: false, help: 'Suppress analytics reporting for the current CLI invocation.'); argParser.addOption(FlutterGlobalOptions.kPackagesOption, hide: !verboseHelp, help: 'Path to your "package_config.json" file.'); if (verboseHelp) { argParser.addSeparator('Local build selection options (not normally required):'); } argParser.addOption(FlutterGlobalOptions.kLocalEngineSrcPathOption, hide: !verboseHelp, help: 'Path to your engine src directory, if you are building Flutter locally.\n' 'Defaults to \$$kFlutterEngineEnvironmentVariableName if set, otherwise defaults to ' 'the path given in your pubspec.yaml dependency_overrides for $kFlutterEnginePackageName, ' 'if any.'); argParser.addOption(FlutterGlobalOptions.kLocalEngineOption, hide: !verboseHelp, help: 'Name of a build output within the engine out directory, if you are building Flutter locally.\n' 'Use this to select a specific version of the engine if you have built multiple engine targets.\n' 'This path is relative to "--local-engine-src-path" (see above).'); argParser.addOption(FlutterGlobalOptions.kLocalEngineHostOption, hide: !verboseHelp, help: 'The host operating system for which engine artifacts should be selected, if you are building Flutter locally.\n' 'This is only used when "--local-engine" is also specified.\n' 'By default, the host is determined automatically, but you may need to specify this if you are building on one ' 'platform (e.g. MacOS ARM64) but intend to run Flutter on another (e.g. Android).'); argParser.addOption(FlutterGlobalOptions.kLocalWebSDKOption, hide: !verboseHelp, help: 'Name of a build output within the engine out directory, if you are building Flutter locally.\n' 'Use this to select a specific version of the web sdk if you have built multiple engine targets.\n' 'This path is relative to "--local-engine-src-path" (see above).'); if (verboseHelp) { argParser.addSeparator('Options for testing the "flutter" tool itself:'); } argParser.addFlag(FlutterGlobalOptions.kShowTestDeviceFlag, negatable: false, hide: !verboseHelp, help: 'List the special "flutter-tester" device in device listings. ' 'This headless device is used to test Flutter tooling.'); argParser.addFlag(FlutterGlobalOptions.kShowWebServerDeviceFlag, negatable: false, hide: !verboseHelp, help: 'List the special "web-server" device in device listings.', ); argParser.addFlag( FlutterGlobalOptions.kContinuousIntegrationFlag, negatable: false, help: 'Enable a set of CI-specific test debug settings.', hide: !verboseHelp, ); argParser.addOption( FlutterGlobalOptions.kDebugLogsDirectoryFlag, help: 'Path to a directory where logs for debugging may be added.', hide: !verboseHelp, ); } @override ArgParser get argParser => _argParser; final ArgParser _argParser = ArgParser( allowTrailingOptions: false, usageLineLength: globals.outputPreferences.wrapText ? globals.outputPreferences.wrapColumn : null, ); @override String get usageFooter { return wrapText('Run "flutter help -v" for verbose help output, including less commonly used options.', columnWidth: globals.outputPreferences.wrapColumn, shouldWrap: globals.outputPreferences.wrapText, ); } @override String get usage { final String usageWithoutDescription = super.usage.substring(description.length + 2); final String prefix = wrapText(description, shouldWrap: globals.outputPreferences.wrapText, columnWidth: globals.outputPreferences.wrapColumn, ); return '$prefix\n\n$usageWithoutDescription'; } @override ArgResults parse(Iterable<String> args) { try { // This is where the CommandRunner would call argParser.parse(args). We // override this function so we can call tryArgsCompletion instead, so the // completion package can interrogate the argParser, and as part of that, // it calls argParser.parse(args) itself and returns the result. return tryArgsCompletion(args.toList(), argParser); } on ArgParserException catch (error) { if (error.commands.isEmpty) { usageException(error.message); } Command<void>? command = commands[error.commands.first]; for (final String commandName in error.commands.skip(1)) { command = command?.subcommands[commandName]; } command!.usageException(error.message); } } @override Future<void> run(Iterable<String> args) { // Have invocations of 'build', 'custom-devices', and 'pub' print out // their sub-commands. // TODO(ianh): Move this to the Build command itself somehow. if (args.length == 1) { if (args.first == 'build') { args = <String>['build', '-h']; } else if (args.first == 'custom-devices') { args = <String>['custom-devices', '-h']; } else if (args.first == 'pub') { args = <String>['pub', '-h']; } } return super.run(args); } @override Future<void> runCommand(ArgResults topLevelResults) async { final Map<Type, Object?> contextOverrides = <Type, Object?>{}; // If the flag for enabling or disabling telemetry is passed in, // we will return out if (topLevelResults.wasParsed(FlutterGlobalOptions.kDisableAnalyticsFlag) || topLevelResults.wasParsed(FlutterGlobalOptions.kEnableAnalyticsFlag)) { return; } // Don't set wrapColumns unless the user said to: if it's set, then all // wrapping will occur at this width explicitly, and won't adapt if the // terminal size changes during a run. int? wrapColumn; if (topLevelResults.wasParsed(FlutterGlobalOptions.kWrapColumnOption)) { try { wrapColumn = int.parse(topLevelResults[FlutterGlobalOptions.kWrapColumnOption] as String); if (wrapColumn < 0) { throwToolExit(globals.userMessages.runnerWrapColumnInvalid(topLevelResults[FlutterGlobalOptions.kWrapColumnOption])); } } on FormatException { throwToolExit(globals.userMessages.runnerWrapColumnParseError(topLevelResults[FlutterGlobalOptions.kWrapColumnOption])); } } // If we're not writing to a terminal with a defined width, then don't wrap // anything, unless the user explicitly said to. final bool useWrapping = topLevelResults.wasParsed(FlutterGlobalOptions.kWrapFlag) ? topLevelResults[FlutterGlobalOptions.kWrapFlag] as bool : globals.stdio.terminalColumns != null && topLevelResults[FlutterGlobalOptions.kWrapFlag] as bool; contextOverrides[OutputPreferences] = OutputPreferences( wrapText: useWrapping, showColor: topLevelResults[FlutterGlobalOptions.kColorFlag] as bool?, wrapColumn: wrapColumn, ); if (((topLevelResults[FlutterGlobalOptions.kShowTestDeviceFlag] as bool?) ?? false) || topLevelResults[FlutterGlobalOptions.kDeviceIdOption] == FlutterTesterDevices.kTesterDeviceId) { FlutterTesterDevices.showFlutterTesterDevice = true; } if (((topLevelResults[FlutterGlobalOptions.kShowWebServerDeviceFlag] as bool?) ?? false) || topLevelResults[FlutterGlobalOptions.kDeviceIdOption] == WebServerDevice.kWebServerDeviceId) { WebServerDevice.showWebServerDevice = true; } // Set up the tooling configuration. final EngineBuildPaths? engineBuildPaths = await globals.localEngineLocator?.findEnginePath( engineSourcePath: topLevelResults[FlutterGlobalOptions.kLocalEngineSrcPathOption] as String?, localEngine: topLevelResults[FlutterGlobalOptions.kLocalEngineOption] as String?, localHostEngine: topLevelResults[FlutterGlobalOptions.kLocalEngineHostOption] as String?, localWebSdk: topLevelResults[FlutterGlobalOptions.kLocalWebSDKOption] as String?, packagePath: topLevelResults[FlutterGlobalOptions.kPackagesOption] as String?, ); if (engineBuildPaths != null) { contextOverrides.addAll(<Type, Object?>{ Artifacts: Artifacts.getLocalEngine(engineBuildPaths), }); } await context.run<void>( overrides: contextOverrides.map<Type, Generator>((Type type, Object? value) { return MapEntry<Type, Generator>(type, () => value); }), body: () async { globals.logger.quiet = (topLevelResults[FlutterGlobalOptions.kQuietFlag] as bool?) ?? false; if (globals.platform.environment['FLUTTER_ALREADY_LOCKED'] != 'true') { await globals.cache.lock(); } if ((topLevelResults[FlutterGlobalOptions.kSuppressAnalyticsFlag] as bool?) ?? false) { globals.flutterUsage.suppressAnalytics = true; globals.analytics.suppressTelemetry(); } globals.flutterVersion.ensureVersionFile(); final bool machineFlag = topLevelResults[FlutterGlobalOptions.kMachineFlag] as bool? ?? false; final bool ci = await globals.botDetector.isRunningOnBot; final bool redirectedCompletion = !globals.stdio.hasTerminal && (topLevelResults.command?.name ?? '').endsWith('-completion'); final bool isMachine = machineFlag || ci || redirectedCompletion; final bool versionCheckFlag = topLevelResults[FlutterGlobalOptions.kVersionCheckFlag] as bool? ?? false; final bool explicitVersionCheckPassed = topLevelResults.wasParsed(FlutterGlobalOptions.kVersionCheckFlag) && versionCheckFlag; if (topLevelResults.command?.name != 'upgrade' && (explicitVersionCheckPassed || (versionCheckFlag && !isMachine))) { await globals.flutterVersion.checkFlutterVersionFreshness(); } // See if the user specified a specific device. final String? specifiedDeviceId = topLevelResults[FlutterGlobalOptions.kDeviceIdOption] as String?; if (specifiedDeviceId != null) { globals.deviceManager?.specifiedDeviceId = specifiedDeviceId; } if ((topLevelResults[FlutterGlobalOptions.kVersionFlag] as bool?) ?? false) { globals.flutterUsage.sendCommand(FlutterGlobalOptions.kVersionFlag); globals.analytics.send(Event.flutterCommandResult( commandPath: 'version', result: 'success', commandHasTerminal: globals.stdio.hasTerminal, )); final FlutterVersion version = globals.flutterVersion.fetchTagsAndGetVersion( clock: globals.systemClock, ); final String status; if (machineFlag) { final Map<String, Object> jsonOut = version.toJson(); jsonOut['flutterRoot'] = Cache.flutterRoot!; status = const JsonEncoder.withIndent(' ').convert(jsonOut); } else { status = version.toString(); } globals.printStatus(status); return; } if (machineFlag && topLevelResults.command?.name != 'analyze') { throwToolExit('The "--machine" flag is only valid with the "--version" flag or the "analyze --suggestions" command.', exitCode: 2); } await super.runCommand(topLevelResults); }, ); } /// Get the root directories of the repo - the directories containing Dart packages. List<String> getRepoRoots() { final String root = globals.fs.path.absolute(Cache.flutterRoot!); // not bin, and not the root return <String>['dev', 'examples', 'packages'].map<String>((String item) { return globals.fs.path.join(root, item); }).toList(); } /// Get all pub packages in the Flutter repo. List<Directory> getRepoPackages() { return getRepoRoots() .expand<String>((String root) => _gatherProjectPaths(root)) .map<Directory>((String dir) => globals.fs.directory(dir)) .toList(); } static List<String> _gatherProjectPaths(String rootPath) { if (globals.fs.isFileSync(globals.fs.path.join(rootPath, '.dartignore'))) { return <String>[]; } final List<String> projectPaths = globals.fs.directory(rootPath) .listSync(followLinks: false) .expand((FileSystemEntity entity) { if (entity is Directory && !globals.fs.path.split(entity.path).contains('.dart_tool')) { return _gatherProjectPaths(entity.path); } return <String>[]; }) .toList(); if (globals.fs.isFileSync(globals.fs.path.join(rootPath, 'pubspec.yaml'))) { projectPaths.add(rootPath); } return projectPaths; } }
flutter/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart", "repo_id": "flutter", "token_count": 6550 }
827
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'package:stream_channel/stream_channel.dart'; /// A remote device where tests can be executed on. /// /// Reusability of an instance across multiple runs is not guaranteed for all /// implementations. /// /// Methods may throw [TestDeviceException] if a problem is encountered. abstract class TestDevice { /// Starts the test device with the provided entrypoint. /// /// Returns a channel that can be used to communicate with the test process. /// /// It is up to the device to determine if [entrypointPath] is a precompiled /// or raw source file. Future<StreamChannel<String>> start(String entrypointPath); /// Should complete with null if the VM Service is not enabled. Future<Uri?> get vmServiceUri; /// Terminates the test device. Future<void> kill(); /// Waits for the test device to stop. Future<void> get finished; } /// Thrown when the device encounters a problem. class TestDeviceException implements Exception { TestDeviceException(this.message, this.stackTrace); final String message; final StackTrace stackTrace; @override String toString() => 'TestDeviceException($message)'; }
flutter/packages/flutter_tools/lib/src/test/test_device.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/test/test_device.dart", "repo_id": "flutter", "token_count": 353 }
828
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import '../../base/utils.dart'; import '../../globals.dart' as globals; /// The caching strategy for the generated service worker. enum ServiceWorkerStrategy implements CliEnum { /// Download the app shell eagerly and all other assets lazily. /// Prefer the offline cached version. offlineFirst, /// Do not generate a service worker, none; @override String get cliName => snakeCase(name, '-'); static ServiceWorkerStrategy fromCliName(String? value) => value == null ? ServiceWorkerStrategy.offlineFirst : values.singleWhere( (ServiceWorkerStrategy element) => element.cliName == value, orElse: () => throw ArgumentError.value(value, 'value', 'Not supported.'), ); @override String get helpText => switch (this) { ServiceWorkerStrategy.offlineFirst => 'Attempt to cache the application shell eagerly and then lazily ' 'cache all subsequent assets as they are loaded. When making a ' 'network request for an asset, the offline cache will be ' 'preferred.', ServiceWorkerStrategy.none => 'Generate a service worker with no body. This is useful for local ' 'testing or in cases where the service worker caching ' 'functionality is not desirable' }; } /// Generate a service worker with an app-specific cache name a map of /// resource files. /// /// The tool embeds file hashes directly into the worker so that the byte for byte /// invalidation will automatically reactivate workers whenever a new /// version is deployed. String generateServiceWorker( String fileGeneratorsPath, Map<String, String> resources, List<String> coreBundle, { required ServiceWorkerStrategy serviceWorkerStrategy, }) { if (serviceWorkerStrategy == ServiceWorkerStrategy.none) { return ''; } final String flutterServiceWorkerJsPath = globals.localFileSystem.path.join( fileGeneratorsPath, 'js', 'flutter_service_worker.js', ); return globals.localFileSystem .file(flutterServiceWorkerJsPath) .readAsStringSync() .replaceAll( r'$$RESOURCES_MAP', '{${resources.entries.map((MapEntry<String, String> entry) => '"${entry.key}": "${entry.value}"').join(",\n")}}', ) .replaceAll( r'$$CORE_LIST', '[${coreBundle.map((String file) => '"$file"').join(',\n')}]', ); }
flutter/packages/flutter_tools/lib/src/web/file_generators/flutter_service_worker_js.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/web/file_generators/flutter_service_worker_js.dart", "repo_id": "flutter", "token_count": 912 }
829
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import '../../base/file_system.dart'; import '../../base/project_migrator.dart'; import '../../cmake_project.dart'; import 'utils.dart'; const String _cmakeFileBefore = r''' # Apply the standard set of build settings. This can be removed for applications # that need different build settings. apply_standard_settings(${BINARY_NAME}) # Disable Windows macros that collide with C++ standard library functions. target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX") '''; const String _cmakeFileAfter = r''' # Apply the standard set of build settings. This can be removed for applications # that need different build settings. apply_standard_settings(${BINARY_NAME}) # Add preprocessor definitions for the build version. target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION=\"${FLUTTER_VERSION}\"") target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MAJOR=${FLUTTER_VERSION_MAJOR}") target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MINOR=${FLUTTER_VERSION_MINOR}") target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_PATCH=${FLUTTER_VERSION_PATCH}") target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_BUILD=${FLUTTER_VERSION_BUILD}") # Disable Windows macros that collide with C++ standard library functions. target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX") '''; const String _resourceFileBefore = ''' #ifdef FLUTTER_BUILD_NUMBER #define VERSION_AS_NUMBER FLUTTER_BUILD_NUMBER #else #define VERSION_AS_NUMBER 1,0,0 #endif #ifdef FLUTTER_BUILD_NAME #define VERSION_AS_STRING #FLUTTER_BUILD_NAME #else #define VERSION_AS_STRING "1.0.0" #endif '''; const String _resourceFileAfter = ''' #if defined(FLUTTER_VERSION_MAJOR) && defined(FLUTTER_VERSION_MINOR) && defined(FLUTTER_VERSION_PATCH) && defined(FLUTTER_VERSION_BUILD) #define VERSION_AS_NUMBER FLUTTER_VERSION_MAJOR,FLUTTER_VERSION_MINOR,FLUTTER_VERSION_PATCH,FLUTTER_VERSION_BUILD #else #define VERSION_AS_NUMBER 1,0,0,0 #endif #if defined(FLUTTER_VERSION) #define VERSION_AS_STRING FLUTTER_VERSION #else #define VERSION_AS_STRING "1.0.0" #endif '''; /// Migrates Windows apps to set Flutter's version information. /// /// See https://github.com/flutter/flutter/issues/73652. class VersionMigration extends ProjectMigrator { VersionMigration(WindowsProject project, super.logger) : _cmakeFile = project.runnerCmakeFile, _resourceFile = project.runnerResourceFile; final File _cmakeFile; final File _resourceFile; @override void migrate() { // Skip this migration if the affected files do not exist. This indicates // the app has done non-trivial changes to its runner and this migration // might not work as expected if applied. if (!_cmakeFile.existsSync()) { logger.printTrace(''' windows/runner/CMakeLists.txt file not found, skipping version migration. This indicates non-trivial changes have been made to the Windows runner in the "windows" folder. If needed, you can reset the Windows runner by deleting the "windows" folder and then using the "flutter create --platforms=windows ." command. '''); return; } if (!_resourceFile.existsSync()) { logger.printTrace(''' windows/runner/Runner.rc file not found, skipping version migration. This indicates non-trivial changes have been made to the Windows runner in the "windows" folder. If needed, you can reset the Windows runner by deleting the "windows" folder and then using the "flutter create --platforms=windows ." command. '''); return; } // Migrate the windows/runner/CMakeLists.txt file. final String originalCmakeContents = _cmakeFile.readAsStringSync(); final String newCmakeContents = replaceFirst( originalCmakeContents, _cmakeFileBefore, _cmakeFileAfter, ); if (originalCmakeContents != newCmakeContents) { logger.printStatus('windows/runner/CMakeLists.txt does not define version information, updating.'); _cmakeFile.writeAsStringSync(newCmakeContents); } // Migrate the windows/runner/Runner.rc file. final String originalResourceFileContents = _resourceFile.readAsStringSync(); final String newResourceFileContents = replaceFirst( originalResourceFileContents, _resourceFileBefore, _resourceFileAfter, ); if (originalResourceFileContents != newResourceFileContents) { logger.printStatus( 'windows/runner/Runner.rc does not use Flutter version information, updating.', ); _resourceFile.writeAsStringSync(newResourceFileContents); } } }
flutter/packages/flutter_tools/lib/src/windows/migrations/version_migration.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/windows/migrations/version_migration.dart", "repo_id": "flutter", "token_count": 1556 }
830
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="{{androidIdentifier}}.host"> <!-- The INTERNET permission is required for development. Specifically, flutter needs it to communicate with the running application to allow setting breakpoints, to provide hot reload, etc. --> <uses-permission android:name="android.permission.INTERNET"/> <application android:label="{{projectName}}" android:icon="@mipmap/ic_launcher"> <activity android:name=".MainActivity" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:exported="true" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize"> <!-- This keeps the window background of the activity showing until Flutter renders its first frame. It can be removed if there is no splash screen (such as the default splash screen defined in @style/LaunchTheme). --> <meta-data android:name="io.flutter.app.android.SplashScreenUntilFirstFrame" android:value="true" /> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> <!-- Don't delete the meta-data below. This is used by the Flutter tool to generate GeneratedPluginRegistrant.java --> <meta-data android:name="flutterEmbedding" android:value="2" /> </application> <!-- Required to query activities that can process text, see: https://developer.android.com/training/package-visibility and https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT. In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. --> <queries> <intent> <action android:name="android.intent.action.PROCESS_TEXT"/> <data android:mimeType="text/plain"/> </intent> </queries> </manifest>
flutter/packages/flutter_tools/templates/module/android/host_app_common/app.tmpl/src/main/AndroidManifest.xml.tmpl/0
{ "file_path": "flutter/packages/flutter_tools/templates/module/android/host_app_common/app.tmpl/src/main/AndroidManifest.xml.tmpl", "repo_id": "flutter", "token_count": 987 }
831
name: {{projectName}} description: {{description}} version: 0.0.1 homepage: environment: sdk: {{dartSdkVersionBounds}} flutter: ">=1.17.0" dependencies: flutter: sdk: flutter dev_dependencies: flutter_test: sdk: flutter flutter_lints: ^3.0.0 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec # The following section is specific to Flutter packages. flutter: # To add assets to your package, add an assets section, like this: # assets: # - images/a_dot_burr.jpeg # - images/a_dot_ham.jpeg # # For details regarding assets in packages, see # https://flutter.dev/assets-and-images/#from-packages # # An image asset can refer to one or more resolution-specific "variants", see # https://flutter.dev/assets-and-images/#resolution-aware # To add custom fonts to your package, add a fonts section here, # in this "flutter" section. Each entry in this list should have a # "family" key with the font family name, and a "fonts" key with a # list giving the asset and other descriptors for the font. For # example: # fonts: # - family: Schyler # fonts: # - asset: fonts/Schyler-Regular.ttf # - asset: fonts/Schyler-Italic.ttf # style: italic # - family: Trajan Pro # fonts: # - asset: fonts/TrajanPro.ttf # - asset: fonts/TrajanPro_Bold.ttf # weight: 700 # # For details regarding fonts in packages, see # https://flutter.dev/custom-fonts/#from-packages
flutter/packages/flutter_tools/templates/package/pubspec.yaml.tmpl/0
{ "file_path": "flutter/packages/flutter_tools/templates/package/pubspec.yaml.tmpl", "repo_id": "flutter", "token_count": 569 }
832
# {{projectName}} {{description}} ## Getting Started This project is a starting point for a Flutter [plug-in package](https://flutter.dev/developing-packages/), a specialized package that includes platform-specific implementation code for Android and/or iOS. For help getting started with Flutter development, view the [online documentation](https://flutter.dev/docs), which offers tutorials, samples, guidance on mobile development, and a full API reference. {{#no_platforms}} The plugin project was generated without specifying the `--platforms` flag, no platforms are currently supported. To add platforms, run `flutter create -t plugin --platforms <platforms> .` in this directory. You can also find a detailed instruction on how to add platforms in the `pubspec.yaml` at https://flutter.dev/docs/development/packages-and-plugins/developing-packages#plugin-platforms. {{/no_platforms}}
flutter/packages/flutter_tools/templates/plugin/README.md.tmpl/0
{ "file_path": "flutter/packages/flutter_tools/templates/plugin/README.md.tmpl", "repo_id": "flutter", "token_count": 228 }
833
# # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. # Run `pod lib lint {{projectName}}.podspec` to validate before publishing. # Pod::Spec.new do |s| s.name = '{{projectName}}' s.version = '0.0.1' s.summary = '{{description}}' s.description = <<-DESC {{description}} DESC s.homepage = 'http://example.com' s.license = { :file => '../LICENSE' } s.author = { 'Your Company' => '[email protected]' } s.source = { :path => '.' } s.source_files = 'Classes/**/*' s.dependency 'Flutter' s.platform = :ios, '12.0' # Flutter.framework does not contain a i386 slice. s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } s.swift_version = '5.0' end
flutter/packages/flutter_tools/templates/plugin/ios-swift.tmpl/projectName.podspec.tmpl/0
{ "file_path": "flutter/packages/flutter_tools/templates/plugin/ios-swift.tmpl/projectName.podspec.tmpl", "repo_id": "flutter", "token_count": 394 }
834
#ifndef FLUTTER_PLUGIN_{{pluginClassCapitalSnakeCase}}_C_API_H_ #define FLUTTER_PLUGIN_{{pluginClassCapitalSnakeCase}}_C_API_H_ #include <flutter_plugin_registrar.h> #ifdef FLUTTER_PLUGIN_IMPL #define FLUTTER_PLUGIN_EXPORT __declspec(dllexport) #else #define FLUTTER_PLUGIN_EXPORT __declspec(dllimport) #endif #if defined(__cplusplus) extern "C" { #endif FLUTTER_PLUGIN_EXPORT void {{pluginClass}}CApiRegisterWithRegistrar( FlutterDesktopPluginRegistrarRef registrar); #if defined(__cplusplus) } // extern "C" #endif #endif // FLUTTER_PLUGIN_{{pluginClassCapitalSnakeCase}}_C_API_H_
flutter/packages/flutter_tools/templates/plugin/windows.tmpl/include/projectName.tmpl/pluginClassSnakeCase_c_api.h.tmpl/0
{ "file_path": "flutter/packages/flutter_tools/templates/plugin/windows.tmpl/include/projectName.tmpl/pluginClassSnakeCase_c_api.h.tmpl", "repo_id": "flutter", "token_count": 242 }
835
// This is an example Flutter widget test. // // To perform an interaction with a widget in your test, use the WidgetTester // utility in the flutter_test package. For example, you can send tap and scroll // gestures. You can also use WidgetTester to find child widgets in the widget // tree, read text, and verify that the values of widget properties are correct. // // Visit https://flutter.dev/docs/cookbook/testing/widget/introduction for // more information about Widget testing. import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { group('MyWidget', () { testWidgets('should display a string of text', (WidgetTester tester) async { // Define a Widget const myWidget = MaterialApp( home: Scaffold( body: Text('Hello'), ), ); // Build myWidget and trigger a frame. await tester.pumpWidget(myWidget); // Verify myWidget shows some text expect(find.byType(Text), findsOneWidget); }); }); }
flutter/packages/flutter_tools/templates/skeleton/test/widget_test.dart.tmpl/0
{ "file_path": "flutter/packages/flutter_tools/templates/skeleton/test/widget_test.dart.tmpl", "repo_id": "flutter", "token_count": 339 }
836
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:args/command_runner.dart'; import 'package:file/memory.dart'; import 'package:flutter_tools/src/artifacts.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/base/terminal.dart'; import 'package:flutter_tools/src/commands/analyze.dart'; import 'package:flutter_tools/src/project.dart'; import 'package:flutter_tools/src/project_validator.dart'; import 'package:flutter_tools/src/project_validator_result.dart'; import '../../src/common.dart'; import '../../src/context.dart'; import '../../src/test_flutter_command_runner.dart'; class ProjectValidatorDummy extends ProjectValidator { @override Future<List<ProjectValidatorResult>> start(FlutterProject project, {Logger? logger, FileSystem? fileSystem}) async { return <ProjectValidatorResult>[ const ProjectValidatorResult(name: 'pass', value: 'value', status: StatusProjectValidator.success), const ProjectValidatorResult(name: 'fail', value: 'my error', status: StatusProjectValidator.error), const ProjectValidatorResult(name: 'pass two', value: 'pass', warning: 'my warning', status: StatusProjectValidator.warning), ]; } @override bool supportsProject(FlutterProject project) { return true; } @override String get title => 'First Dummy'; } class ProjectValidatorSecondDummy extends ProjectValidator { @override Future<List<ProjectValidatorResult>> start(FlutterProject project, {Logger? logger, FileSystem? fileSystem}) async { return <ProjectValidatorResult>[ const ProjectValidatorResult(name: 'second', value: 'pass', status: StatusProjectValidator.success), const ProjectValidatorResult(name: 'other fail', value: 'second fail', status: StatusProjectValidator.error), ]; } @override bool supportsProject(FlutterProject project) { return true; } @override String get title => 'Second Dummy'; } class ProjectValidatorCrash extends ProjectValidator { @override Future<List<ProjectValidatorResult>> start(FlutterProject project, {Logger? logger, FileSystem? fileSystem}) async { throw Exception('my exception'); } @override bool supportsProject(FlutterProject project) { return true; } @override String get title => 'Crash'; } void main() { late FileSystem fileSystem; late Terminal terminal; late ProcessManager processManager; late Platform platform; group('analyze --suggestions command', () { setUp(() { fileSystem = MemoryFileSystem.test(); terminal = Terminal.test(); processManager = FakeProcessManager.empty(); platform = FakePlatform(); }); testUsingContext('success, error and warning', () async { final BufferLogger loggerTest = BufferLogger.test(); final AnalyzeCommand command = AnalyzeCommand( artifacts: Artifacts.test(), fileSystem: fileSystem, logger: loggerTest, platform: platform, terminal: terminal, processManager: processManager, allProjectValidators: <ProjectValidator>[ ProjectValidatorDummy(), ProjectValidatorSecondDummy() ], suppressAnalytics: true, ); final CommandRunner<void> runner = createTestCommandRunner(command); await runner.run(<String>['analyze', '--suggestions', './']); const String expected = '\n' '┌──────────────────────────────────────────┐\n' '│ First Dummy │\n' '│ [✓] pass: value │\n' '│ [✗] fail: my error │\n' '│ [!] pass two: pass (warning: my warning) │\n' '│ Second Dummy │\n' '│ [✓] second: pass │\n' '│ [✗] other fail: second fail │\n' '└──────────────────────────────────────────┘\n'; expect(loggerTest.statusText, contains(expected)); }); testUsingContext('crash', () async { final BufferLogger loggerTest = BufferLogger.test(); final AnalyzeCommand command = AnalyzeCommand( artifacts: Artifacts.test(), fileSystem: fileSystem, logger: loggerTest, platform: platform, terminal: terminal, processManager: processManager, allProjectValidators: <ProjectValidator>[ ProjectValidatorCrash(), ], suppressAnalytics: true, ); final CommandRunner<void> runner = createTestCommandRunner(command); await runner.run(<String>['analyze', '--suggestions', './']); const String expected = '[☠] Exception: my exception: #0 ProjectValidatorCrash.start'; expect(loggerTest.statusText, contains(expected)); }); testUsingContext('--watch and --suggestions not compatible together', () async { final BufferLogger loggerTest = BufferLogger.test(); final AnalyzeCommand command = AnalyzeCommand( artifacts: Artifacts.test(), fileSystem: fileSystem, logger: loggerTest, platform: platform, terminal: terminal, processManager: processManager, allProjectValidators: <ProjectValidator>[], suppressAnalytics: true, ); final CommandRunner<void> runner = createTestCommandRunner(command); Future<void> result () => runner.run(<String>['analyze', '--suggestions', '--watch']); expect(result, throwsToolExit(message: 'flag --watch is not compatible with --suggestions')); }); }); }
flutter/packages/flutter_tools/test/commands.shard/hermetic/analyze_suggestion_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/commands.shard/hermetic/analyze_suggestion_test.dart", "repo_id": "flutter", "token_count": 2145 }
837
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:args/command_runner.dart'; import 'package:flutter_tools/src/android/java.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/cache.dart'; import 'package:flutter_tools/src/commands/create.dart'; import 'package:flutter_tools/src/convert.dart'; import 'package:flutter_tools/src/dart/pub.dart'; import 'package:flutter_tools/src/doctor.dart'; import 'package:flutter_tools/src/doctor_validator.dart'; import 'package:flutter_tools/src/features.dart'; import 'package:flutter_tools/src/globals.dart' as globals; import 'package:flutter_tools/src/project.dart'; import 'package:test/fake.dart'; import '../../src/common.dart'; import '../../src/context.dart'; import '../../src/fakes.dart'; import '../../src/test_flutter_command_runner.dart'; import '../../src/testbed.dart'; class FakePub extends Fake implements Pub { int calledGetOffline = 0; int calledOnline = 0; @override Future<void> get({ PubContext? context, required FlutterProject project, bool upgrade = false, bool offline = false, bool generateSyntheticPackage = false, bool generateSyntheticPackageForExample = false, String? flutterRootOverride, bool checkUpToDate = false, bool shouldSkipThirdPartyGenerator = true, PubOutputMode outputMode = PubOutputMode.all, }) async { project.directory.childFile('.packages').createSync(); if (offline) { calledGetOffline += 1; } else { calledOnline += 1; } } } void main() { group('usageValues', () { late Testbed testbed; late FakePub fakePub; setUpAll(() { Cache.disableLocking(); Cache.flutterRoot = 'flutter'; }); setUp(() { testbed = Testbed(setup: () { fakePub = FakePub(); Cache.flutterRoot = 'flutter'; final List<String> filePaths = <String>[ globals.fs.path.join('flutter', 'packages', 'flutter', 'pubspec.yaml'), globals.fs.path.join('flutter', 'packages', 'flutter_driver', 'pubspec.yaml'), globals.fs.path.join('flutter', 'packages', 'flutter_test', 'pubspec.yaml'), globals.fs.path.join('flutter', 'bin', 'cache', 'artifacts', 'gradle_wrapper', 'wrapper'), globals.fs.path.join('usr', 'local', 'bin', 'adb'), globals.fs.path.join('Android', 'platform-tools', 'adb.exe'), ]; for (final String filePath in filePaths) { globals.fs.file(filePath).createSync(recursive: true); } final List<String> templatePaths = <String>[ globals.fs.path.join('flutter', 'packages', 'flutter_tools', 'templates', 'app'), globals.fs.path.join('flutter', 'packages', 'flutter_tools', 'templates', 'app_integration_test'), globals.fs.path.join('flutter', 'packages', 'flutter_tools', 'templates', 'app_shared'), globals.fs.path.join('flutter', 'packages', 'flutter_tools', 'templates', 'app_test_widget'), globals.fs.path.join('flutter', 'packages', 'flutter_tools', 'templates', 'cocoapods'), globals.fs.path.join('flutter', 'packages', 'flutter_tools', 'templates', 'skeleton'), globals.fs.path.join('flutter', 'packages', 'flutter_tools', 'templates', 'module', 'common'), globals.fs.path.join('flutter', 'packages', 'flutter_tools', 'templates', 'package'), globals.fs.path.join('flutter', 'packages', 'flutter_tools', 'templates', 'package_ffi'), globals.fs.path.join('flutter', 'packages', 'flutter_tools', 'templates', 'plugin'), globals.fs.path.join('flutter', 'packages', 'flutter_tools', 'templates', 'plugin_ffi'), globals.fs.path.join('flutter', 'packages', 'flutter_tools', 'templates', 'plugin_shared'), ]; for (final String templatePath in templatePaths) { globals.fs.directory(templatePath).createSync(recursive: true); } // Set up enough of the packages to satisfy the templating code. final File packagesFile = globals.fs.file( globals.fs.path.join('flutter', 'packages', 'flutter_tools', '.dart_tool', 'package_config.json')); final File flutterManifest = globals.fs.file( globals.fs.path.join('flutter', 'packages', 'flutter_tools', 'templates', 'template_manifest.json')) ..createSync(recursive: true); final Directory templateImagesDirectory = globals.fs.directory('flutter_template_images'); templateImagesDirectory.createSync(recursive: true); packagesFile.createSync(recursive: true); packagesFile.writeAsStringSync(json.encode(<String, Object>{ 'configVersion': 2, 'packages': <Object>[ <String, Object>{ 'name': 'flutter_template_images', 'languageVersion': '2.8', 'rootUri': templateImagesDirectory.uri.toString(), 'packageUri': 'lib/', }, ], })); flutterManifest.writeAsStringSync('{"files":[]}'); }, overrides: <Type, Generator>{ DoctorValidatorsProvider: () => FakeDoctorValidatorsProvider(), FeatureFlags: () => TestFeatureFlags(isNativeAssetsEnabled: true), }); }); testUsingContext('set template type as usage value', () => testbed.run(() async { final CreateCommand command = CreateCommand(); final CommandRunner<void> runner = createTestCommandRunner(command); await runner.run(<String>['create', '--no-pub', '--template=module', 'testy']); expect((await command.usageValues).commandCreateProjectType, 'module'); await runner.run(<String>['create', '--no-pub', '--template=app', 'testy1']); expect((await command.usageValues).commandCreateProjectType, 'app'); await runner.run(<String>['create', '--no-pub', '--template=skeleton', 'testy2']); expect((await command.usageValues).commandCreateProjectType, 'skeleton'); await runner.run(<String>['create', '--no-pub', '--template=package', 'testy3']); expect((await command.usageValues).commandCreateProjectType, 'package'); await runner.run(<String>['create', '--no-pub', '--template=plugin', 'testy4']); expect((await command.usageValues).commandCreateProjectType, 'plugin'); await runner.run(<String>['create', '--no-pub', '--template=plugin_ffi', 'testy5']); expect((await command.usageValues).commandCreateProjectType, 'plugin_ffi'); await runner.run(<String>['create', '--no-pub', '--template=package_ffi', 'testy6']); expect((await command.usageValues).commandCreateProjectType, 'package_ffi'); }), overrides: <Type, Generator>{ Java: () => FakeJava(), }); testUsingContext('set iOS host language type as usage value', () => testbed.run(() async { final CreateCommand command = CreateCommand(); final CommandRunner<void> runner = createTestCommandRunner(command); await runner.run(<String>[ 'create', '--no-pub', '--template=app', 'testy', ]); expect((await command.usageValues).commandCreateIosLanguage, 'swift'); await runner.run(<String>[ 'create', '--no-pub', '--template=app', '--ios-language=objc', 'testy', ]); expect((await command.usageValues).commandCreateIosLanguage, 'objc'); }), overrides: <Type, Generator>{ Java: () => FakeJava(), }); testUsingContext('set Android host language type as usage value', () => testbed.run(() async { final CreateCommand command = CreateCommand(); final CommandRunner<void> runner = createTestCommandRunner(command); await runner.run(<String>['create', '--no-pub', '--template=app', 'testy']); expect((await command.usageValues).commandCreateAndroidLanguage, 'kotlin'); await runner.run(<String>[ 'create', '--no-pub', '--template=app', '--android-language=java', 'testy', ]); expect((await command.usageValues).commandCreateAndroidLanguage, 'java'); }), overrides: <Type, Generator>{ Java: () => FakeJava(), }); testUsingContext('create --offline', () => testbed.run(() async { final CreateCommand command = CreateCommand(); final CommandRunner<void> runner = createTestCommandRunner(command); await runner.run(<String>['create', 'testy', '--offline']); expect(fakePub.calledOnline, 0); expect(fakePub.calledGetOffline, 1); expect(command.argParser.options.containsKey('offline'), true); expect(command.shouldUpdateCache, true); }, overrides: <Type, Generator>{ Java: () => null, Pub: () => fakePub, })); testUsingContext('package_ffi template not enabled', () async { final CreateCommand command = CreateCommand(); final CommandRunner<void> runner = createTestCommandRunner(command); expect( runner.run( <String>[ 'create', '--no-pub', '--template=package_ffi', 'my_ffi_package', ], ), throwsUsageException( message: '"package_ffi" is not an allowed value for option "template"', ), ); }, overrides: <Type, Generator>{ FeatureFlags: () => TestFeatureFlags( isNativeAssetsEnabled: false, // ignore: avoid_redundant_argument_values, If we graduate the feature to true by default, don't break this test. ), }); }); } class FakeDoctorValidatorsProvider implements DoctorValidatorsProvider { @override List<DoctorValidator> get validators => <DoctorValidator>[]; @override List<Workflow> get workflows => <Workflow>[]; }
flutter/packages/flutter_tools/test/commands.shard/hermetic/create_usage_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/commands.shard/hermetic/create_usage_test.dart", "repo_id": "flutter", "token_count": 3793 }
838
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:io' as io; import 'dart:typed_data'; import 'package:flutter_tools/src/base/io.dart'; import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/doctor_validator.dart'; import 'package:flutter_tools/src/proxy_validator.dart'; import '../../src/common.dart'; void main() { setUp(() { setNetworkInterfaceLister( ({ bool includeLoopback = true, bool includeLinkLocal = true, InternetAddressType type = InternetAddressType.any, }) async { final List<FakeNetworkInterface> interfaces = <FakeNetworkInterface>[ FakeNetworkInterface(<FakeInternetAddress>[ const FakeInternetAddress('127.0.0.1'), ]), FakeNetworkInterface(<FakeInternetAddress>[ const FakeInternetAddress('::1'), ]), ]; return Future<List<NetworkInterface>>.value(interfaces); }); }); tearDown(() { resetNetworkInterfaceLister(); }); testWithoutContext('ProxyValidator does not show if HTTP_PROXY is not set', () { final Platform platform = FakePlatform(environment: <String, String>{}); expect(ProxyValidator(platform: platform).shouldShow, isFalse); }); testWithoutContext('ProxyValidator does not show if HTTP_PROXY is only whitespace', () { final Platform platform = FakePlatform(environment: <String, String>{'HTTP_PROXY': ' '}); expect(ProxyValidator(platform: platform).shouldShow, isFalse); }); testWithoutContext('ProxyValidator shows when HTTP_PROXY is set', () { final Platform platform = FakePlatform(environment: <String, String>{'HTTP_PROXY': 'fakeproxy.local'}); expect(ProxyValidator(platform: platform).shouldShow, isTrue); }); testWithoutContext('ProxyValidator shows when http_proxy is set', () { final Platform platform = FakePlatform(environment: <String, String>{'http_proxy': 'fakeproxy.local'}); expect(ProxyValidator(platform: platform).shouldShow, isTrue); }); testWithoutContext('ProxyValidator reports success when NO_PROXY is configured correctly', () async { final Platform platform = FakePlatform( environment: <String, String>{ 'HTTP_PROXY': 'fakeproxy.local', 'NO_PROXY': 'localhost,127.0.0.1,::1', }, ); final ValidationResult results = await ProxyValidator(platform: platform).validate(); expect(results.messages, const <ValidationMessage>[ ValidationMessage('HTTP_PROXY is set'), ValidationMessage('NO_PROXY is localhost,127.0.0.1,::1'), ValidationMessage('NO_PROXY contains localhost'), ValidationMessage('NO_PROXY contains 127.0.0.1'), ValidationMessage('NO_PROXY contains ::1'), ]); }); testWithoutContext('ProxyValidator reports success when no_proxy is configured correctly', () async { final Platform platform = FakePlatform( environment: <String, String>{ 'http_proxy': 'fakeproxy.local', 'no_proxy': 'localhost,127.0.0.1,::1', }, ); final ValidationResult results = await ProxyValidator(platform: platform).validate(); expect(results.messages, const <ValidationMessage>[ ValidationMessage('HTTP_PROXY is set'), ValidationMessage('NO_PROXY is localhost,127.0.0.1,::1'), ValidationMessage('NO_PROXY contains localhost'), ValidationMessage('NO_PROXY contains 127.0.0.1'), ValidationMessage('NO_PROXY contains ::1'), ]); }); testWithoutContext('ProxyValidator reports issues when NO_PROXY is missing localhost', () async { final Platform platform = FakePlatform( environment: <String, String>{ 'HTTP_PROXY': 'fakeproxy.local', 'NO_PROXY': '127.0.0.1,::1', }, ); final ValidationResult results = await ProxyValidator(platform: platform).validate(); expect(results.messages, const <ValidationMessage>[ ValidationMessage('HTTP_PROXY is set'), ValidationMessage('NO_PROXY is 127.0.0.1,::1'), ValidationMessage.hint('NO_PROXY does not contain localhost'), ValidationMessage('NO_PROXY contains 127.0.0.1'), ValidationMessage('NO_PROXY contains ::1'), ]); }); testWithoutContext('ProxyValidator reports issues when NO_PROXY is missing 127.0.0.1', () async { final Platform platform = FakePlatform(environment: <String, String>{ 'HTTP_PROXY': 'fakeproxy.local', 'NO_PROXY': 'localhost,::1', }); final ValidationResult results = await ProxyValidator(platform: platform).validate(); expect(results.messages, const <ValidationMessage>[ ValidationMessage('HTTP_PROXY is set'), ValidationMessage('NO_PROXY is localhost,::1'), ValidationMessage('NO_PROXY contains localhost'), ValidationMessage.hint('NO_PROXY does not contain 127.0.0.1'), ValidationMessage('NO_PROXY contains ::1'), ]); }); testWithoutContext('ProxyValidator reports issues when NO_PROXY is missing ::1', () async { final Platform platform = FakePlatform(environment: <String, String>{ 'HTTP_PROXY': 'fakeproxy.local', 'NO_PROXY': 'localhost,127.0.0.1', }); final ValidationResult results = await ProxyValidator(platform: platform).validate(); expect(results.messages, const <ValidationMessage>[ ValidationMessage('HTTP_PROXY is set'), ValidationMessage('NO_PROXY is localhost,127.0.0.1'), ValidationMessage('NO_PROXY contains localhost'), ValidationMessage('NO_PROXY contains 127.0.0.1'), ValidationMessage.hint('NO_PROXY does not contain ::1'), ]); }); testWithoutContext('ProxyValidator reports issues when NO_PROXY is missing localhost, 127.0.0.1', () async { final Platform platform = FakePlatform( environment: <String, String>{ 'HTTP_PROXY': 'fakeproxy.local', 'NO_PROXY': '::1', }, ); final ValidationResult results = await ProxyValidator(platform: platform).validate(); expect(results.messages, const <ValidationMessage>[ ValidationMessage('HTTP_PROXY is set'), ValidationMessage('NO_PROXY is ::1'), ValidationMessage.hint('NO_PROXY does not contain localhost'), ValidationMessage.hint('NO_PROXY does not contain 127.0.0.1'), ValidationMessage('NO_PROXY contains ::1'), ]); }); testWithoutContext('ProxyValidator reports issues when NO_PROXY is missing localhost, ::1', () async { final Platform platform = FakePlatform( environment: <String, String>{ 'HTTP_PROXY': 'fakeproxy.local', 'NO_PROXY': '127.0.0.1', }, ); final ValidationResult results = await ProxyValidator(platform: platform).validate(); expect(results.messages, const <ValidationMessage>[ ValidationMessage('HTTP_PROXY is set'), ValidationMessage('NO_PROXY is 127.0.0.1'), ValidationMessage.hint('NO_PROXY does not contain localhost'), ValidationMessage('NO_PROXY contains 127.0.0.1'), ValidationMessage.hint('NO_PROXY does not contain ::1'), ]); }); testWithoutContext('ProxyValidator reports issues when NO_PROXY is missing 127.0.0.1, ::1', () async { final Platform platform = FakePlatform( environment: <String, String>{ 'HTTP_PROXY': 'fakeproxy.local', 'NO_PROXY': 'localhost', }, ); final ValidationResult results = await ProxyValidator(platform: platform).validate(); expect(results.messages, const <ValidationMessage>[ ValidationMessage('HTTP_PROXY is set'), ValidationMessage('NO_PROXY is localhost'), ValidationMessage('NO_PROXY contains localhost'), ValidationMessage.hint('NO_PROXY does not contain 127.0.0.1'), ValidationMessage.hint('NO_PROXY does not contain ::1'), ]); }); } class FakeNetworkInterface extends NetworkInterface { FakeNetworkInterface(List<FakeInternetAddress> addresses): super(FakeNetworkInterfaceDelegate(addresses)); @override String get name => 'FakeNetworkInterface$index'; } class FakeNetworkInterfaceDelegate implements io.NetworkInterface { FakeNetworkInterfaceDelegate(this._fakeAddresses); final List<FakeInternetAddress> _fakeAddresses; @override List<io.InternetAddress> get addresses => _fakeAddresses; @override int get index => addresses.length; @override String get name => 'FakeNetworkInterfaceDelegate$index'; } class FakeInternetAddress implements io.InternetAddress { const FakeInternetAddress(this._fakeAddress); final String _fakeAddress; @override String get address => _fakeAddress; @override String get host => throw UnimplementedError(); @override bool get isLinkLocal => throw UnimplementedError(); @override bool get isLoopback => true; @override bool get isMulticast => throw UnimplementedError(); @override Uint8List get rawAddress => throw UnimplementedError(); @override Future<io.InternetAddress> reverse() => throw UnimplementedError(); @override io.InternetAddressType get type => throw UnimplementedError(); }
flutter/packages/flutter_tools/test/commands.shard/hermetic/proxy_validator_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/commands.shard/hermetic/proxy_validator_test.dart", "repo_id": "flutter", "token_count": 3129 }
839
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // TODO(gspencergoog): Remove this tag once this test's state leaks/test // dependencies have been fixed. // https://github.com/flutter/flutter/issues/85160 // Fails with "flutter test --test-randomize-ordering-seed=1000" @Tags(<String>['no-shuffle']) library; import 'dart:async'; import 'dart:convert'; import 'package:args/command_runner.dart'; import 'package:file/memory.dart'; import 'package:flutter_tools/src/base/bot_detector.dart'; import 'package:flutter_tools/src/base/error_handling_io.dart'; import 'package:flutter_tools/src/base/file_system.dart' hide IOSink; import 'package:flutter_tools/src/base/io.dart'; import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/cache.dart'; import 'package:flutter_tools/src/commands/packages.dart'; import 'package:flutter_tools/src/dart/pub.dart'; import 'package:flutter_tools/src/globals.dart' as globals; import 'package:unified_analytics/unified_analytics.dart'; import '../../src/common.dart'; import '../../src/context.dart'; import '../../src/fake_process_manager.dart'; import '../../src/fakes.dart'; import '../../src/test_flutter_command_runner.dart'; void main() { late FakeStdio mockStdio; setUp(() { mockStdio = FakeStdio()..stdout.terminalColumns = 80; }); Cache.disableLocking(); group('packages get/upgrade', () { late Directory tempDir; late FakeAnalytics fakeAnalytics; setUp(() { tempDir = globals.fs.systemTempDirectory.createTempSync('flutter_tools_packages_test.'); fakeAnalytics = getInitializedFakeAnalyticsInstance( fs: MemoryFileSystem.test(), fakeFlutterVersion: FakeFlutterVersion(), ); }); tearDown(() { tryToDelete(tempDir); }); Future<String> createProjectWithPlugin(String plugin, { List<String>? arguments }) async { final String projectPath = await createProject(tempDir, arguments: arguments); final File pubspec = globals.fs.file(globals.fs.path.join(projectPath, 'pubspec.yaml')); String content = await pubspec.readAsString(); final List<String> contentLines = LineSplitter.split(content).toList(); final int depsIndex = contentLines.indexOf('dependencies:'); expect(depsIndex, isNot(-1)); contentLines.replaceRange(depsIndex, depsIndex + 1, <String>[ 'dependencies:', ' $plugin:', ]); content = contentLines.join('\n'); await pubspec.writeAsString(content, flush: true); return projectPath; } Future<PackagesCommand> runCommandIn(String projectPath, String verb, { List<String>? args }) async { final PackagesCommand command = PackagesCommand(); final CommandRunner<void> runner = createTestCommandRunner(command); await runner.run(<String>[ 'packages', verb, ...?args, '--directory', projectPath, ]); return command; } void expectExists(String projectPath, String relPath) { expect( globals.fs.isFileSync(globals.fs.path.join(projectPath, relPath)), true, reason: '$projectPath/$relPath should exist, but does not', ); } void expectContains(String projectPath, String relPath, String substring) { expectExists(projectPath, relPath); expect( globals.fs.file(globals.fs.path.join(projectPath, relPath)).readAsStringSync(), contains(substring), reason: '$projectPath/$relPath has unexpected content', ); } void expectNotExists(String projectPath, String relPath) { expect( globals.fs.isFileSync(globals.fs.path.join(projectPath, relPath)), false, reason: '$projectPath/$relPath should not exist, but does', ); } void expectNotContains(String projectPath, String relPath, String substring) { expectExists(projectPath, relPath); expect( globals.fs.file(globals.fs.path.join(projectPath, relPath)).readAsStringSync(), isNot(contains(substring)), reason: '$projectPath/$relPath has unexpected content', ); } final List<String> pubOutput = <String>[ globals.fs.path.join('.dart_tool', 'package_config.json'), 'pubspec.lock', ]; const List<String> pluginRegistrants = <String>[ 'ios/Runner/GeneratedPluginRegistrant.h', 'ios/Runner/GeneratedPluginRegistrant.m', 'android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java', ]; const List<String> modulePluginRegistrants = <String>[ '.ios/Flutter/FlutterPluginRegistrant/Classes/GeneratedPluginRegistrant.h', '.ios/Flutter/FlutterPluginRegistrant/Classes/GeneratedPluginRegistrant.m', '.android/Flutter/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java', ]; const List<String> pluginWitnesses = <String>[ '.flutter-plugins', 'ios/Podfile', ]; const List<String> modulePluginWitnesses = <String>[ '.flutter-plugins', '.ios/Podfile', ]; const Map<String, String> pluginContentWitnesses = <String, String>{ 'ios/Flutter/Debug.xcconfig': '#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"', 'ios/Flutter/Release.xcconfig': '#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"', }; const Map<String, String> modulePluginContentWitnesses = <String, String>{ '.ios/Config/Debug.xcconfig': '#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"', '.ios/Config/Release.xcconfig': '#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"', }; void expectDependenciesResolved(String projectPath) { for (final String output in pubOutput) { expectExists(projectPath, output); } } void expectZeroPluginsInjected(String projectPath) { for (final String registrant in modulePluginRegistrants) { expectExists(projectPath, registrant); } for (final String witness in pluginWitnesses) { expectNotExists(projectPath, witness); } modulePluginContentWitnesses.forEach((String witness, String content) { expectNotContains(projectPath, witness, content); }); } void expectPluginInjected(String projectPath) { for (final String registrant in pluginRegistrants) { expectExists(projectPath, registrant); } for (final String witness in pluginWitnesses) { expectExists(projectPath, witness); } pluginContentWitnesses.forEach((String witness, String content) { expectContains(projectPath, witness, content); }); } void expectModulePluginInjected(String projectPath) { for (final String registrant in modulePluginRegistrants) { expectExists(projectPath, registrant); } for (final String witness in modulePluginWitnesses) { expectExists(projectPath, witness); } modulePluginContentWitnesses.forEach((String witness, String content) { expectContains(projectPath, witness, content); }); } void removeGeneratedFiles(String projectPath) { final Iterable<String> allFiles = <List<String>>[ pubOutput, modulePluginRegistrants, pluginWitnesses, ].expand<String>((List<String> list) => list); for (final String path in allFiles) { final File file = globals.fs.file(globals.fs.path.join(projectPath, path)); ErrorHandlingFileSystem.deleteIfExists(file); } } testUsingContext('get fetches packages and has output from pub', () async { final String projectPath = await createProject(tempDir, arguments: <String>['--no-pub', '--template=module']); removeGeneratedFiles(projectPath); await runCommandIn(projectPath, 'get'); expect(mockStdio.stdout.writes.map(utf8.decode), allOf( contains(matches(RegExp(r'Resolving dependencies in .+flutter_project\.\.\.'))), contains(matches(RegExp(r'\+ flutter 0\.0\.0 from sdk flutter'))), contains(matches(RegExp(r'Changed \d+ dependencies in .+flutter_project!'))), ), ); expectDependenciesResolved(projectPath); expectZeroPluginsInjected(projectPath); expect( analyticsTimingEventExists( sentEvents: fakeAnalytics.sentEvents, workflow: 'pub', variableName: 'get', label: 'success', ), true, ); }, overrides: <Type, Generator>{ Stdio: () => mockStdio, Pub: () => Pub.test( fileSystem: globals.fs, logger: globals.logger, processManager: globals.processManager, usage: globals.flutterUsage, botDetector: globals.botDetector, platform: globals.platform, stdio: mockStdio, ), Analytics: () => fakeAnalytics, }); testUsingContext('get --offline fetches packages', () async { final String projectPath = await createProject(tempDir, arguments: <String>['--no-pub', '--template=module']); removeGeneratedFiles(projectPath); await runCommandIn(projectPath, 'get', args: <String>['--offline']); expectDependenciesResolved(projectPath); expectZeroPluginsInjected(projectPath); }, overrides: <Type, Generator>{ Stdio: () => mockStdio, Pub: () => Pub.test( fileSystem: globals.fs, logger: globals.logger, processManager: globals.processManager, usage: globals.flutterUsage, botDetector: globals.botDetector, platform: globals.platform, stdio: mockStdio, ), }); testUsingContext('get generates synthetic package when l10n.yaml has synthetic-package: true', () async { final String projectPath = await createProject(tempDir, arguments: <String>['--no-pub', '--template=module']); final Directory projectDir = globals.fs.directory(projectPath); projectDir .childDirectory('lib') .childDirectory('l10n') .childFile('app_en.arb') ..createSync(recursive: true) ..writeAsStringSync('{ "hello": "Hello world!" }'); String pubspecFileContent = projectDir.childFile('pubspec.yaml').readAsStringSync(); pubspecFileContent = pubspecFileContent.replaceFirst(RegExp(r'\nflutter\:'), ''' flutter: generate: true '''); projectDir .childFile('pubspec.yaml') .writeAsStringSync(pubspecFileContent); projectDir .childFile('l10n.yaml') .writeAsStringSync('synthetic-package: true'); await runCommandIn(projectPath, 'get'); expect( projectDir .childDirectory('.dart_tool') .childDirectory('flutter_gen') .childDirectory('gen_l10n') .childFile('app_localizations.dart') .existsSync(), true ); }, overrides: <Type, Generator>{ Pub: () => Pub( fileSystem: globals.fs, logger: globals.logger, processManager: globals.processManager, usage: globals.flutterUsage, botDetector: globals.botDetector, platform: globals.platform, ), }); testUsingContext('get generates normal files when l10n.yaml has synthetic-package: false', () async { final String projectPath = await createProject(tempDir, arguments: <String>['--no-pub', '--template=module']); final Directory projectDir = globals.fs.directory(projectPath); projectDir .childDirectory('lib') .childDirectory('l10n') .childFile('app_en.arb') ..createSync(recursive: true) ..writeAsStringSync('{ "hello": "Hello world!" }'); projectDir .childFile('l10n.yaml') .writeAsStringSync('synthetic-package: false'); await runCommandIn(projectPath, 'get'); expect( projectDir .childDirectory('lib') .childDirectory('l10n') .childFile('app_localizations.dart') .existsSync(), true ); }, overrides: <Type, Generator>{ Pub: () => Pub( fileSystem: globals.fs, logger: globals.logger, processManager: globals.processManager, usage: globals.flutterUsage, botDetector: globals.botDetector, platform: globals.platform, ), }); testUsingContext('set no plugins as usage value', () async { final String projectPath = await createProject(tempDir, arguments: <String>['--no-pub', '--template=module']); removeGeneratedFiles(projectPath); final PackagesCommand command = await runCommandIn(projectPath, 'get'); final PackagesGetCommand getCommand = command.subcommands['get']! as PackagesGetCommand; expect((await getCommand.usageValues).commandPackagesNumberPlugins, 0); expect( (await getCommand.unifiedAnalyticsUsageValues('pub/get')) .eventData['packagesNumberPlugins'], 0, ); }, overrides: <Type, Generator>{ Stdio: () => mockStdio, Pub: () => Pub.test( fileSystem: globals.fs, logger: globals.logger, processManager: globals.processManager, usage: globals.flutterUsage, botDetector: globals.botDetector, platform: globals.platform, stdio: mockStdio, ), }); testUsingContext('set the number of plugins as usage value', () async { final String projectPath = await createProject( tempDir, arguments: <String>['--template=plugin', '--no-pub', '--platforms=ios,android,macos,windows'], ); final String exampleProjectPath = globals.fs.path.join(projectPath, 'example'); final PackagesCommand command = await runCommandIn(exampleProjectPath, 'get'); final PackagesGetCommand getCommand = command.subcommands['get']! as PackagesGetCommand; // A plugin example depends on the plugin itself, and integration_test. expect((await getCommand.usageValues).commandPackagesNumberPlugins, 2); expect( (await getCommand.unifiedAnalyticsUsageValues('pub/get')) .eventData['packagesNumberPlugins'], 2, ); }, overrides: <Type, Generator>{ Stdio: () => mockStdio, Pub: () => Pub.test( fileSystem: globals.fs, logger: globals.logger, processManager: globals.processManager, usage: globals.flutterUsage, botDetector: globals.botDetector, platform: globals.platform, stdio: mockStdio, ), }); testUsingContext('indicate that the project is not a module in usage value', () async { final String projectPath = await createProject(tempDir, arguments: <String>['--no-pub']); removeGeneratedFiles(projectPath); final PackagesCommand command = await runCommandIn(projectPath, 'get'); final PackagesGetCommand getCommand = command.subcommands['get']! as PackagesGetCommand; expect((await getCommand.usageValues).commandPackagesProjectModule, false); expect( (await getCommand.unifiedAnalyticsUsageValues('pub/get')) .eventData['packagesProjectModule'], false, ); }, overrides: <Type, Generator>{ Stdio: () => mockStdio, Pub: () => Pub.test( fileSystem: globals.fs, logger: globals.logger, processManager: globals.processManager, usage: globals.flutterUsage, botDetector: globals.botDetector, platform: globals.platform, stdio: mockStdio, ), }); testUsingContext('indicate that the project is a module in usage value', () async { final String projectPath = await createProject(tempDir, arguments: <String>['--no-pub', '--template=module']); removeGeneratedFiles(projectPath); final PackagesCommand command = await runCommandIn(projectPath, 'get'); final PackagesGetCommand getCommand = command.subcommands['get']! as PackagesGetCommand; expect((await getCommand.usageValues).commandPackagesProjectModule, true); expect( (await getCommand.unifiedAnalyticsUsageValues('pub/get')) .eventData['packagesProjectModule'], true, ); }, overrides: <Type, Generator>{ Stdio: () => mockStdio, Pub: () => Pub.test( fileSystem: globals.fs, logger: globals.logger, processManager: globals.processManager, usage: globals.flutterUsage, botDetector: globals.botDetector, platform: globals.platform, stdio: mockStdio, ), }); testUsingContext('indicate that Android project reports v2 in usage value', () async { final String projectPath = await createProject(tempDir, arguments: <String>['--no-pub']); removeGeneratedFiles(projectPath); final PackagesCommand command = await runCommandIn(projectPath, 'get'); final PackagesGetCommand getCommand = command.subcommands['get']! as PackagesGetCommand; expect((await getCommand.usageValues).commandPackagesAndroidEmbeddingVersion, 'v2'); expect( (await getCommand.unifiedAnalyticsUsageValues('pub/get')) .eventData['packagesAndroidEmbeddingVersion'], 'v2', ); }, overrides: <Type, Generator>{ Stdio: () => mockStdio, Pub: () => Pub.test( fileSystem: globals.fs, logger: globals.logger, processManager: globals.processManager, usage: globals.flutterUsage, botDetector: globals.botDetector, platform: globals.platform, stdio: mockStdio, ), }); testUsingContext('upgrade fetches packages', () async { final String projectPath = await createProject(tempDir, arguments: <String>['--no-pub', '--template=module']); removeGeneratedFiles(projectPath); await runCommandIn(projectPath, 'upgrade'); expectDependenciesResolved(projectPath); expectZeroPluginsInjected(projectPath); }, overrides: <Type, Generator>{ Stdio: () => mockStdio, Pub: () => Pub.test( fileSystem: globals.fs, logger: globals.logger, processManager: globals.processManager, usage: globals.flutterUsage, botDetector: globals.botDetector, platform: globals.platform, stdio: mockStdio, ), }); testUsingContext('get fetches packages and injects plugin', () async { final String projectPath = await createProjectWithPlugin('path_provider', arguments: <String>['--no-pub', '--template=module']); removeGeneratedFiles(projectPath); await runCommandIn(projectPath, 'get'); expectDependenciesResolved(projectPath); expectModulePluginInjected(projectPath); }, overrides: <Type, Generator>{ Stdio: () => mockStdio, Pub: () => Pub.test( fileSystem: globals.fs, logger: globals.logger, processManager: globals.processManager, usage: globals.flutterUsage, botDetector: globals.botDetector, platform: globals.platform, stdio: mockStdio, ), }); testUsingContext('get fetches packages and injects plugin in plugin project', () async { final String projectPath = await createProject( tempDir, arguments: <String>['--template=plugin', '--no-pub', '--platforms=ios,android'], ); final String exampleProjectPath = globals.fs.path.join(projectPath, 'example'); removeGeneratedFiles(projectPath); removeGeneratedFiles(exampleProjectPath); await runCommandIn(projectPath, 'get'); expectDependenciesResolved(projectPath); await runCommandIn(exampleProjectPath, 'get'); expectDependenciesResolved(exampleProjectPath); expectPluginInjected(exampleProjectPath); }, overrides: <Type, Generator>{ Stdio: () => mockStdio, Pub: () => Pub.test( fileSystem: globals.fs, logger: globals.logger, processManager: globals.processManager, usage: globals.flutterUsage, botDetector: globals.botDetector, platform: globals.platform, stdio: mockStdio, ), }); }); group('packages test/pub', () { late FakeProcessManager processManager; late FakeStdio mockStdio; setUp(() { processManager = FakeProcessManager.empty(); mockStdio = FakeStdio()..stdout.terminalColumns = 80; }); testUsingContext('test without bot', () async { Cache.flutterRoot = ''; globals.fs.directory('/packages/flutter_tools').createSync(recursive: true); globals.fs.file('pubspec.yaml').createSync(); processManager.addCommand( const FakeCommand(command: <String>['/bin/cache/dart-sdk/bin/dart', 'pub', '--suppress-analytics', 'run', 'test']), ); await createTestCommandRunner(PackagesCommand()).run(<String>['packages', 'test']); expect(processManager, hasNoRemainingExpectations); }, overrides: <Type, Generator>{ FileSystem: () => MemoryFileSystem.test(), Platform: () => FakePlatform(environment: <String, String>{}), ProcessManager: () => processManager, Stdio: () => mockStdio, BotDetector: () => const FakeBotDetector(false), Pub: () => Pub.test( fileSystem: globals.fs, logger: globals.logger, processManager: globals.processManager, usage: globals.flutterUsage, botDetector: globals.botDetector, platform: globals.platform, stdio: mockStdio, ), }); testUsingContext('test with bot', () async { Cache.flutterRoot = ''; globals.fs.file('pubspec.yaml').createSync(); processManager.addCommand( const FakeCommand(command: <String>['/bin/cache/dart-sdk/bin/dart', 'pub', '--suppress-analytics', '--trace', 'run', 'test']), ); await createTestCommandRunner(PackagesCommand()).run(<String>['packages', 'test']); expect(processManager, hasNoRemainingExpectations); }, overrides: <Type, Generator>{ FileSystem: () => MemoryFileSystem.test(), Platform: () => FakePlatform(environment: <String, String>{}), ProcessManager: () => processManager, Stdio: () => mockStdio, BotDetector: () => const FakeBotDetector(true), Pub: () => Pub.test( fileSystem: globals.fs, logger: globals.logger, processManager: globals.processManager, usage: globals.flutterUsage, botDetector: globals.botDetector, platform: globals.platform, stdio: mockStdio, ), }); testUsingContext('run pass arguments through to pub', () async { Cache.flutterRoot = ''; globals.fs.file('pubspec.yaml').createSync(); final IOSink stdin = IOSink(StreamController<List<int>>().sink); processManager.addCommand( FakeCommand( command: const <String>[ '/bin/cache/dart-sdk/bin/dart', 'pub', '--suppress-analytics', 'run', '--foo', 'bar', ], stdin: stdin, ), ); await createTestCommandRunner(PackagesCommand()).run(<String>['packages', '--verbose', 'pub', 'run', '--foo', 'bar']); expect(processManager, hasNoRemainingExpectations); }, overrides: <Type, Generator>{ FileSystem: () => MemoryFileSystem.test(), Platform: () => FakePlatform(environment: <String, String>{}), ProcessManager: () => processManager, Stdio: () => mockStdio, Pub: () => Pub.test( fileSystem: globals.fs, logger: globals.logger, processManager: globals.processManager, usage: globals.flutterUsage, botDetector: globals.botDetector, platform: globals.platform, stdio: mockStdio, ), }); testUsingContext('token pass arguments through to pub', () async { Cache.flutterRoot = ''; globals.fs.file('pubspec.yaml').createSync(); final IOSink stdin = IOSink(StreamController<List<int>>().sink); processManager.addCommand( FakeCommand( command: const <String>[ '/bin/cache/dart-sdk/bin/dart', 'pub', '--suppress-analytics', 'token', 'list', ], stdin: stdin, ), ); await createTestCommandRunner(PackagesCommand()).run(<String>['packages', '--verbose', 'pub', 'token', 'list']); expect(processManager, hasNoRemainingExpectations); }, overrides: <Type, Generator>{ FileSystem: () => MemoryFileSystem.test(), Platform: () => FakePlatform(environment: <String, String>{}), ProcessManager: () => processManager, Stdio: () => mockStdio, Pub: () => Pub.test( fileSystem: globals.fs, logger: globals.logger, processManager: globals.processManager, usage: globals.flutterUsage, botDetector: globals.botDetector, platform: globals.platform, stdio: mockStdio, ), }); testUsingContext('upgrade does not check for pubspec.yaml if -h/--help is passed', () async { Cache.flutterRoot = ''; processManager.addCommand( FakeCommand( command: const <String>[ '/bin/cache/dart-sdk/bin/dart', 'pub', '--suppress-analytics', 'upgrade', '-h', ], stdin: IOSink(StreamController<List<int>>().sink), ), ); await createTestCommandRunner(PackagesCommand()).run(<String>['pub', 'upgrade', '-h']); expect(processManager, hasNoRemainingExpectations); }, overrides: <Type, Generator>{ FileSystem: () => MemoryFileSystem.test(), Platform: () => FakePlatform(environment: <String, String>{}), ProcessManager: () => processManager, Stdio: () => mockStdio, Pub: () => Pub.test( fileSystem: globals.fs, logger: globals.logger, processManager: globals.processManager, usage: globals.flutterUsage, botDetector: globals.botDetector, platform: globals.platform, stdio: mockStdio, ), }); }); }
flutter/packages/flutter_tools/test/commands.shard/permeable/packages_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/commands.shard/permeable/packages_test.dart", "repo_id": "flutter", "token_count": 10468 }
840
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/file.dart'; import 'package:file/memory.dart'; import 'package:flutter_tools/src/android/android_studio.dart'; import 'package:flutter_tools/src/android/gradle_utils.dart'; import 'package:flutter_tools/src/android/migrations/android_studio_java_gradle_conflict_migration.dart'; import 'package:flutter_tools/src/android/migrations/min_sdk_version_migration.dart'; import 'package:flutter_tools/src/android/migrations/top_level_gradle_build_file_migration.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/base/version.dart'; import 'package:flutter_tools/src/project.dart'; import 'package:test/fake.dart'; import '../../src/common.dart'; import '../../src/context.dart'; import '../../src/fakes.dart'; const String otherGradleVersionWrapper = r''' distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-6.6-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists '''; const String gradleWrapperToMigrate = r''' distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists '''; const String gradleWrapperToMigrateTo = r''' distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists '''; String sampleModuleGradleBuildFile(String minSdkVersionString) { return r''' plugins { id "com.android.application" id "kotlin-android" id "dev.flutter.flutter-gradle-plugin" } def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { localPropertiesFile.withReader('UTF-8') { reader -> localProperties.load(reader) } } def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '1' } def flutterVersionName = localProperties.getProperty('flutter.versionName') if (flutterVersionName == null) { flutterVersionName = '1.0' } android { namespace "com.example.asset_sample" compileSdk flutter.compileSdkVersion ndkVersion flutter.ndkVersion compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } sourceSets { main.java.srcDirs += 'src/main/kotlin' } defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.example.asset_sample" // You can update the following values to match your application needs. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. ''' + minSdkVersionString + r''' targetSdkVersion flutter.targetSdkVersion versionCode flutterVersionCode.toInteger() versionName flutterVersionName } buildTypes { release { // TODO: Add your own signing config for the release build. // Signing with the debug keys for now, so `flutter run --release` works. signingConfig signingConfigs.debug } } } flutter { source '../..' } dependencies {} '''; } final Version androidStudioDolphin = Version(2021, 3, 1); const Version _javaVersion17 = Version.withText(17, 0, 2, 'openjdk 17.0.2'); const Version _javaVersion16 = Version.withText(16, 0, 2, 'openjdk 16.0.2'); void main() { group('Android migration', () { group('migrate the Gradle "clean" task to lazy declaration', () { late MemoryFileSystem memoryFileSystem; late BufferLogger bufferLogger; late FakeAndroidProject project; late File topLevelGradleBuildFile; setUp(() { memoryFileSystem = MemoryFileSystem.test(); bufferLogger = BufferLogger.test(); project = FakeAndroidProject( root: memoryFileSystem.currentDirectory.childDirectory('android')..createSync(), ); topLevelGradleBuildFile = project.hostAppGradleRoot.childFile('build.gradle'); }); testUsingContext('skipped if files are missing', () { final TopLevelGradleBuildFileMigration androidProjectMigration = TopLevelGradleBuildFileMigration( project, bufferLogger, ); androidProjectMigration.migrate(); expect(topLevelGradleBuildFile.existsSync(), isFalse); expect(bufferLogger.traceText, contains('Top-level Gradle build file not found, skipping migration of task "clean".')); }); testUsingContext('skipped if nothing to upgrade', () { topLevelGradleBuildFile.writeAsStringSync(''' tasks.register("clean", Delete) { delete rootProject.buildDir } '''); final TopLevelGradleBuildFileMigration androidProjectMigration = TopLevelGradleBuildFileMigration( project, bufferLogger, ); final DateTime previousLastModified = topLevelGradleBuildFile.lastModifiedSync(); androidProjectMigration.migrate(); expect(topLevelGradleBuildFile.lastModifiedSync(), previousLastModified); }); testUsingContext('top-level build.gradle is migrated', () { topLevelGradleBuildFile.writeAsStringSync(''' task clean(type: Delete) { delete rootProject.buildDir } '''); final TopLevelGradleBuildFileMigration androidProjectMigration = TopLevelGradleBuildFileMigration( project, bufferLogger, ); androidProjectMigration.migrate(); expect(bufferLogger.traceText, contains('Migrating "clean" Gradle task to lazy declaration style.')); expect(topLevelGradleBuildFile.readAsStringSync(), equals(''' tasks.register("clean", Delete) { delete rootProject.buildDir } ''')); }); }); group('migrate the gradle version to one that does not conflict with the ' 'Android Studio-provided java version', () { late MemoryFileSystem memoryFileSystem; late BufferLogger bufferLogger; late FakeAndroidProject project; late File gradleWrapperPropertiesFile; setUp(() { memoryFileSystem = MemoryFileSystem.test(); bufferLogger = BufferLogger.test(); project = FakeAndroidProject( root: memoryFileSystem.currentDirectory.childDirectory('android')..createSync(), ); project.hostAppGradleRoot.childDirectory(gradleDirectoryName) .childDirectory(gradleWrapperDirectoryName) .createSync(recursive: true); gradleWrapperPropertiesFile = project.hostAppGradleRoot .childDirectory(gradleDirectoryName) .childDirectory(gradleWrapperDirectoryName) .childFile(gradleWrapperPropertiesFilename); }); testWithoutContext('skipped if files are missing', () { final AndroidStudioJavaGradleConflictMigration migration = AndroidStudioJavaGradleConflictMigration( java: FakeJava(version: _javaVersion17), bufferLogger, project: project, androidStudio: FakeAndroidStudio(version: androidStudioDolphin), ); migration.migrate(); expect(gradleWrapperPropertiesFile.existsSync(), isFalse); expect(bufferLogger.traceText, contains(gradleWrapperNotFound)); }); testWithoutContext('skipped if android studio is null', () { final AndroidStudioJavaGradleConflictMigration migration = AndroidStudioJavaGradleConflictMigration( java: FakeJava(version: _javaVersion17), bufferLogger, project: project, ); gradleWrapperPropertiesFile.writeAsStringSync(gradleWrapperToMigrate); migration.migrate(); expect(bufferLogger.traceText, contains(androidStudioNotFound)); expect(gradleWrapperPropertiesFile.readAsStringSync(), gradleWrapperToMigrate); }); testWithoutContext('skipped if android studio version is null', () { final AndroidStudioJavaGradleConflictMigration migration = AndroidStudioJavaGradleConflictMigration( java: FakeJava(version: _javaVersion17), bufferLogger, project: project, androidStudio: FakeAndroidStudio(version: null), ); gradleWrapperPropertiesFile.writeAsStringSync(gradleWrapperToMigrate); migration.migrate(); expect(bufferLogger.traceText, contains(androidStudioNotFound)); expect(gradleWrapperPropertiesFile.readAsStringSync(), gradleWrapperToMigrate); }); testWithoutContext('skipped if error is encountered in migrate()', () { final AndroidStudioJavaGradleConflictMigration migration = AndroidStudioJavaGradleConflictMigration( java: FakeErroringJava(), bufferLogger, project: project, androidStudio: FakeAndroidStudio(version: androidStudioFlamingo), ); gradleWrapperPropertiesFile.writeAsStringSync(gradleWrapperToMigrate); migration.migrate(); expect(bufferLogger.traceText, contains(errorWhileMigrating)); expect(gradleWrapperPropertiesFile.readAsStringSync(), gradleWrapperToMigrate); }); testWithoutContext('skipped if android studio version is less than flamingo', () { final AndroidStudioJavaGradleConflictMigration migration = AndroidStudioJavaGradleConflictMigration( java: FakeJava(), bufferLogger, project: project, androidStudio: FakeAndroidStudio(version: androidStudioDolphin), ); gradleWrapperPropertiesFile.writeAsStringSync(gradleWrapperToMigrate); migration.migrate(); expect(gradleWrapperPropertiesFile.readAsStringSync(), gradleWrapperToMigrate); expect(bufferLogger.traceText, contains(androidStudioVersionBelowFlamingo)); }); testWithoutContext('skipped if bundled java version is less than 17', () { final AndroidStudioJavaGradleConflictMigration migration = AndroidStudioJavaGradleConflictMigration( java: FakeJava(version: _javaVersion16), bufferLogger, project: project, androidStudio: FakeAndroidStudio(version: androidStudioFlamingo), ); gradleWrapperPropertiesFile.writeAsStringSync(gradleWrapperToMigrate); migration.migrate(); expect(gradleWrapperPropertiesFile.readAsStringSync(), gradleWrapperToMigrate); expect(bufferLogger.traceText, contains(javaVersionNot17)); }); testWithoutContext('nothing is changed if gradle version not one that was ' 'used by flutter create', () { final AndroidStudioJavaGradleConflictMigration migration = AndroidStudioJavaGradleConflictMigration( java: FakeJava(version: _javaVersion17), bufferLogger, project: project, androidStudio: FakeAndroidStudio(version: androidStudioFlamingo), ); gradleWrapperPropertiesFile.writeAsStringSync(otherGradleVersionWrapper); migration.migrate(); expect(gradleWrapperPropertiesFile.readAsStringSync(), otherGradleVersionWrapper); expect(bufferLogger.traceText, isEmpty); }); testWithoutContext('change is made with one of the specific gradle versions' ' we migrate for', () { final AndroidStudioJavaGradleConflictMigration migration = AndroidStudioJavaGradleConflictMigration( java: FakeJava(version: _javaVersion17), bufferLogger, project: project, androidStudio: FakeAndroidStudio(version: androidStudioFlamingo), ); gradleWrapperPropertiesFile.writeAsStringSync(gradleWrapperToMigrate); migration.migrate(); expect(gradleWrapperPropertiesFile.readAsStringSync(), gradleWrapperToMigrateTo); expect(bufferLogger.statusText, contains('Conflict detected between ' 'Android Studio Java version and Gradle version, upgrading Gradle ' 'version from 6.7 to $gradleVersion7_6_1.')); }); testWithoutContext('change is not made when opt out flag is set', () { final AndroidStudioJavaGradleConflictMigration migration = AndroidStudioJavaGradleConflictMigration( java: FakeJava(version: _javaVersion17), bufferLogger, project: project, androidStudio: FakeAndroidStudio(version: androidStudioFlamingo), ); gradleWrapperPropertiesFile.writeAsStringSync(gradleWrapperToMigrate + optOutFlag); migration.migrate(); expect(gradleWrapperPropertiesFile.readAsStringSync(), gradleWrapperToMigrate + optOutFlag); expect(bufferLogger.traceText, contains(optOutFlagEnabled)); }); }); group('migrate min sdk versions less than 21 to flutter.minSdkVersion ' 'when in a FlutterProject that is an app', () { late MemoryFileSystem memoryFileSystem; late BufferLogger bufferLogger; late FakeAndroidProject project; late MinSdkVersionMigration migration; setUp(() { memoryFileSystem = MemoryFileSystem.test(); memoryFileSystem.currentDirectory.childDirectory('android').createSync(); bufferLogger = BufferLogger.test(); project = FakeAndroidProject( root: memoryFileSystem.currentDirectory.childDirectory('android'), ); project.appGradleFile.parent.createSync(recursive: true); migration = MinSdkVersionMigration( project, bufferLogger ); }); testWithoutContext('do nothing when files missing', () { migration.migrate(); expect(bufferLogger.traceText, contains(appGradleNotFoundWarning)); }); testWithoutContext('replace when api 19', () { const String minSdkVersion19 = 'minSdkVersion 19'; project.appGradleFile.writeAsStringSync(sampleModuleGradleBuildFile(minSdkVersion19)); migration.migrate(); expect(project.appGradleFile.readAsStringSync(), sampleModuleGradleBuildFile(replacementMinSdkText)); }); testWithoutContext('replace when api 20', () { const String minSdkVersion20 = 'minSdkVersion 20'; project.appGradleFile.writeAsStringSync(sampleModuleGradleBuildFile(minSdkVersion20)); migration.migrate(); expect(project.appGradleFile.readAsStringSync(), sampleModuleGradleBuildFile(replacementMinSdkText)); }); testWithoutContext('do nothing when >=api 21', () { const String minSdkVersion21 = 'minSdkVersion 21'; project.appGradleFile.writeAsStringSync(sampleModuleGradleBuildFile(minSdkVersion21)); migration.migrate(); expect(project.appGradleFile.readAsStringSync(), sampleModuleGradleBuildFile(minSdkVersion21)); }); testWithoutContext('do nothing when already using ' 'flutter.minSdkVersion', () { project.appGradleFile.writeAsStringSync(sampleModuleGradleBuildFile(replacementMinSdkText)); migration.migrate(); expect(project.appGradleFile.readAsStringSync(), sampleModuleGradleBuildFile(replacementMinSdkText)); }); testWithoutContext('avoid rewriting comments', () { const String code = '// minSdkVersion 19 // old default\n' ' minSdkVersion 23 // new version'; project.appGradleFile.writeAsStringSync(sampleModuleGradleBuildFile(code)); migration.migrate(); expect(project.appGradleFile.readAsStringSync(), sampleModuleGradleBuildFile(code)); }); testWithoutContext('do nothing when project is a module', () { project = FakeAndroidProject( root: memoryFileSystem.currentDirectory.childDirectory('android'), module: true, ); migration = MinSdkVersionMigration( project, bufferLogger ); const String minSdkVersion19 = 'minSdkVersion 19'; project.appGradleFile.writeAsStringSync(sampleModuleGradleBuildFile(minSdkVersion19)); migration.migrate(); expect(project.appGradleFile.readAsStringSync(), sampleModuleGradleBuildFile(minSdkVersion19)); }); testWithoutContext('do nothing when minSdkVersion is set ' 'to a constant', () { const String minSdkVersionConstant = 'minSdkVersion kMinSdkversion'; project.appGradleFile.writeAsStringSync(sampleModuleGradleBuildFile(minSdkVersionConstant)); migration.migrate(); expect(project.appGradleFile.readAsStringSync(), sampleModuleGradleBuildFile(minSdkVersionConstant)); }); testWithoutContext('do nothing when minSdkVersion is set ' 'using = syntax', () { const String equalsSyntaxMinSdkVersion19 = 'minSdkVersion = 19'; project.appGradleFile.writeAsStringSync(sampleModuleGradleBuildFile(equalsSyntaxMinSdkVersion19)); migration.migrate(); expect(project.appGradleFile.readAsStringSync(), sampleModuleGradleBuildFile(equalsSyntaxMinSdkVersion19)); }); }); }); } class FakeAndroidProject extends Fake implements AndroidProject { FakeAndroidProject({required Directory root, this.module, this.plugin}) : hostAppGradleRoot = root; @override Directory hostAppGradleRoot; final bool? module; final bool? plugin; @override bool get isPlugin => plugin ?? false; @override bool get isModule => module ?? false; @override File get appGradleFile => hostAppGradleRoot.childDirectory('app').childFile('build.gradle'); } class FakeAndroidStudio extends Fake implements AndroidStudio { FakeAndroidStudio({required Version? version}) { _version = version; } late Version? _version; @override Version? get version => _version; } class FakeErroringJava extends FakeJava { @override Version get version { throw Exception('How did this happen?'); } }
flutter/packages/flutter_tools/test/general.shard/android/android_project_migration_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/android/android_project_migration_test.dart", "repo_id": "flutter", "token_count": 6712 }
841
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:args/args.dart'; import 'package:args/command_runner.dart'; import 'package:flutter_tools/executable.dart' as executable; import 'package:flutter_tools/src/cache.dart'; import 'package:flutter_tools/src/commands/analyze.dart'; import 'package:flutter_tools/src/runner/flutter_command.dart'; import 'package:flutter_tools/src/runner/flutter_command_runner.dart'; import '../src/common.dart'; import '../src/context.dart'; import '../src/testbed.dart'; import 'runner/utils.dart'; void main() { setUpAll(() { Cache.disableLocking(); }); tearDownAll(() { Cache.enableLocking(); }); test('Help for command line arguments is consistently styled and complete', () => Testbed().run(() { final FlutterCommandRunner runner = FlutterCommandRunner(verboseHelp: true); executable.generateCommands( verboseHelp: true, verbose: true, ).forEach(runner.addCommand); verifyCommandRunner(runner); for (final Command<void> command in runner.commands.values) { if (command.name == 'analyze') { final AnalyzeCommand analyze = command as AnalyzeCommand; expect(analyze.allProjectValidators().length, 2); } } })); testUsingContext('Global arg results are available in FlutterCommands', () async { final DummyFlutterCommand command = DummyFlutterCommand( commandFunction: () async { return const FlutterCommandResult(ExitStatus.success); }, ); final FlutterCommandRunner runner = FlutterCommandRunner(verboseHelp: true); runner.addCommand(command); await runner.run(<String>['dummy', '--${FlutterGlobalOptions.kContinuousIntegrationFlag}']); expect(command.globalResults, isNotNull); expect(command.boolArg(FlutterGlobalOptions.kContinuousIntegrationFlag, global: true), true); }); testUsingContext('Global arg results are available in FlutterCommands sub commands', () async { final DummyFlutterCommand command = DummyFlutterCommand( commandFunction: () async { return const FlutterCommandResult(ExitStatus.success); }, ); final DummyFlutterCommand subcommand = DummyFlutterCommand( name: 'sub', commandFunction: () async { return const FlutterCommandResult(ExitStatus.success); }, ); command.addSubcommand(subcommand); final FlutterCommandRunner runner = FlutterCommandRunner(verboseHelp: true); runner.addCommand(command); runner.addCommand(subcommand); await runner.run(<String>['dummy', 'sub', '--${FlutterGlobalOptions.kContinuousIntegrationFlag}']); expect(subcommand.globalResults, isNotNull); expect(subcommand.boolArg(FlutterGlobalOptions.kContinuousIntegrationFlag, global: true), true); }); testUsingContext('bool? safe argResults', () async { final DummyFlutterCommand command = DummyFlutterCommand( commandFunction: () async { return const FlutterCommandResult(ExitStatus.success); }, ); final FlutterCommandRunner runner = FlutterCommandRunner(verboseHelp: true); command.argParser.addFlag('key'); command.argParser.addFlag('key-false'); // argResults will be null at this point, if attempt to read them is made, // exception `Null check operator used on a null value` would be thrown. expect(() => command.boolArg('key'), throwsA(const TypeMatcher<TypeError>())); runner.addCommand(command); await runner.run(<String>['dummy', '--key']); expect(command.boolArg('key'), true); expect(() => command.boolArg('non-existent'), throwsArgumentError); expect(command.boolArg('key'), true); expect(() => command.boolArg('non-existent'), throwsA(const TypeMatcher<ArgumentError>())); expect(command.boolArg('key-false'), false); expect(command.boolArg('key-false'), false); }); testUsingContext('String? safe argResults', () async { final DummyFlutterCommand command = DummyFlutterCommand( commandFunction: () async { return const FlutterCommandResult(ExitStatus.success); }, ); final FlutterCommandRunner runner = FlutterCommandRunner(verboseHelp: true); command.argParser.addOption('key'); // argResults will be null at this point, if attempt to read them is made, // exception `Null check operator used on a null value` would be thrown expect(() => command.stringArg('key'), throwsA(const TypeMatcher<TypeError>())); runner.addCommand(command); await runner.run(<String>['dummy', '--key=value']); expect(command.stringArg('key'), 'value'); expect(() => command.stringArg('non-existent'), throwsArgumentError); expect(command.stringArg('key'), 'value'); expect(() => command.stringArg('non-existent'), throwsA(const TypeMatcher<ArgumentError>())); }); testUsingContext('List<String> safe argResults', () async { final DummyFlutterCommand command = DummyFlutterCommand( commandFunction: () async { return const FlutterCommandResult(ExitStatus.success); }, ); final FlutterCommandRunner runner = FlutterCommandRunner(verboseHelp: true); command.argParser.addMultiOption( 'key', allowed: <String>['a', 'b', 'c'], ); // argResults will be null at this point, if attempt to read them is made, // exception `Null check operator used on a null value` would be thrown. expect(() => command.stringsArg('key'), throwsA(const TypeMatcher<TypeError>())); runner.addCommand(command); await runner.run(<String>['dummy', '--key', 'a']); // throws error when trying to parse non-existent key. expect(() => command.stringsArg('non-existent'), throwsA(const TypeMatcher<ArgumentError>())); expect(command.stringsArg('key'), <String>['a']); await runner.run(<String>['dummy', '--key', 'a', '--key', 'b']); expect(command.stringsArg('key'), <String>['a', 'b']); await runner.run(<String>['dummy']); expect(command.stringsArg('key'), <String>[]); }); } void verifyCommandRunner(CommandRunner<Object?> runner) { expect(runner.argParser, isNotNull, reason: '${runner.runtimeType} has no argParser'); expect(runner.argParser.allowsAnything, isFalse, reason: '${runner.runtimeType} allows anything'); expect(runner.argParser.allowTrailingOptions, isFalse, reason: '${runner.runtimeType} allows trailing options'); verifyOptions(null, runner.argParser.options.values); runner.commands.values.forEach(verifyCommand); } void verifyCommand(Command<Object?> runner) { expect(runner.argParser, isNotNull, reason: 'command ${runner.name} has no argParser'); verifyOptions(runner.name, runner.argParser.options.values); final String firstDescriptionLine = runner.description.split('\n').first; expect(firstDescriptionLine, matches(_allowedTrailingPatterns), reason: "command ${runner.name}'s description does not end with the expected single period that a full sentence should end with"); if (!runner.hidden && runner.parent == null) { expect( runner.category, anyOf( FlutterCommandCategory.sdk, FlutterCommandCategory.project, FlutterCommandCategory.tools, ), reason: "top-level command ${runner.name} doesn't have a valid category", ); } runner.subcommands.values.forEach(verifyCommand); } // Patterns for arguments names. final RegExp _allowedArgumentNamePattern = RegExp(r'^([-a-z0-9]+)$'); final RegExp _allowedArgumentNamePatternForPrecache = RegExp(r'^([-a-z0-9_]+)$'); final RegExp _bannedArgumentNamePattern = RegExp(r'-uri$'); // Patterns for help messages. final RegExp _bannedLeadingPatterns = RegExp(r'^[-a-z]', multiLine: true); final RegExp _allowedTrailingPatterns = RegExp(r'([^ ]([^.^!^:][.!:])\)?|: https?://[^ ]+[^.]|^)$'); final RegExp _bannedQuotePatterns = RegExp(r" '|' |'\.|\('|'\)|`"); final RegExp _bannedArgumentReferencePatterns = RegExp(r'[^"=]--[^ ]'); final RegExp _questionablePatterns = RegExp(r'[a-z]\.[A-Z]'); final RegExp _bannedUri = RegExp(r'\b[Uu][Rr][Ii]\b'); final RegExp _nonSecureFlutterDartUrl = RegExp(r'http://([a-z0-9-]+\.)*(flutter|dart)\.dev', caseSensitive: false); const String _needHelp = "Every option must have help explaining what it does, even if it's " 'for testing purposes, because this is the bare minimum of ' 'documentation we can add just for ourselves. If it is not intended ' 'for developers, then use "hide: !verboseHelp" to only show the ' 'help when people run with "--help --verbose".'; const String _header = ' Comment: '; void verifyOptions(String? command, Iterable<Option> options) { String target; if (command == null) { target = 'the global argument "'; } else { target = '"flutter $command '; } assert(target.contains('"')); for (final Option option in options) { // If you think you need to add an exception here, please ask Hixie (but he'll say no). if (command == 'precache') { expect(option.name, matches(_allowedArgumentNamePatternForPrecache), reason: '$_header$target--${option.name}" is not a valid name for a command line argument. (Is it all lowercase?)'); } else { expect(option.name, matches(_allowedArgumentNamePattern), reason: '$_header$target--${option.name}" is not a valid name for a command line argument. (Is it all lowercase? Does it use hyphens rather than underscores?)'); } expect(option.name, isNot(matches(_bannedArgumentNamePattern)), reason: '$_header$target--${option.name}" is not a valid name for a command line argument. (We use "--foo-url", not "--foo-uri", for example.)'); // The flag --sound-null-safety is deprecated if (option.name != FlutterOptions.kNullSafety && option.name != FlutterOptions.kNullAssertions) { expect(option.hide, isFalse, reason: '${_header}Help for $target--${option.name}" is always hidden. $_needHelp'); } expect(option.help, isNotNull, reason: '${_header}Help for $target--${option.name}" has null help. $_needHelp'); expect(option.help, isNotEmpty, reason: '${_header}Help for $target--${option.name}" has empty help. $_needHelp'); expect(option.help, isNot(matches(_bannedLeadingPatterns)), reason: '${_header}A line in the help for $target--${option.name}" starts with a lowercase letter. For stylistic consistency, all help messages must start with a capital letter.'); expect(option.help, isNot(startsWith('(Deprecated')), reason: '${_header}Help for $target--${option.name}" should start with lowercase "(deprecated)" for consistency with other deprecated commands.'); expect(option.help, isNot(startsWith('(Required')), reason: '${_header}Help for $target--${option.name}" should start with lowercase "(required)" for consistency with other deprecated commands.'); expect(option.help, isNot(contains('?')), reason: '${_header}Help for $target--${option.name}" has a question mark. Generally we prefer the passive voice for help messages.'); expect(option.help, isNot(contains('Note:')), reason: '${_header}Help for $target--${option.name}" uses "Note:". See our style guide entry about "empty prose".'); expect(option.help, isNot(contains('Note that')), reason: '${_header}Help for $target--${option.name}" uses "Note that". See our style guide entry about "empty prose".'); expect(option.help, isNot(matches(_bannedQuotePatterns)), reason: '${_header}Help for $target--${option.name}" uses single quotes or backticks instead of double quotes in the help message. For consistency we use double quotes throughout.'); expect(option.help, isNot(matches(_questionablePatterns)), reason: '${_header}Help for $target--${option.name}" may have a typo. (If it does not you may have to update args_test.dart, sorry. Search for "_questionablePatterns")'); if (option.defaultsTo != null) { expect(option.help, isNot(contains('Default')), reason: '${_header}Help for $target--${option.name}" mentions the default value but that is redundant with the defaultsTo option which is also specified (and preferred).'); final Map<String, String>? allowedHelp = option.allowedHelp; if (allowedHelp != null) { for (final String allowedValue in allowedHelp.keys) { expect( allowedHelp[allowedValue], isNot(anyOf(contains('default'), contains('Default'))), reason: '${_header}Help for $target--${option.name} $allowedValue" mentions the default value but that is redundant with the defaultsTo option which is also specified (and preferred).', ); } } } expect(option.help, isNot(matches(_bannedArgumentReferencePatterns)), reason: '${_header}Help for $target--${option.name}" contains the string "--" in an unexpected way. If it\'s trying to mention another argument, it should be quoted, as in "--foo".'); for (final String line in option.help!.split('\n')) { if (!line.startsWith(' ')) { expect(line, isNot(contains(' ')), reason: '${_header}Help for $target--${option.name}" has excessive whitespace (check e.g. for double spaces after periods or round line breaks in the source).'); expect(line, matches(_allowedTrailingPatterns), reason: '${_header}A line in the help for $target--${option.name}" does not end with the expected period that a full sentence should end with. (If the help ends with a URL, place it after a colon, don\'t leave a trailing period; if it\'s sample code, prefix the line with four spaces.)'); } } expect(option.help, isNot(endsWith(':')), reason: '${_header}Help for $target--${option.name}" ends with a colon, which seems unlikely to be correct.'); expect(option.help, isNot(contains(_bannedUri)), reason: '${_header}Help for $target--${option.name}" uses the term "URI" rather than "URL".'); expect(option.help, isNot(contains(_nonSecureFlutterDartUrl)), reason: '${_header}Help for $target--${option.name}" links to a non-secure ("http") version of a Flutter or Dart site.'); // TODO(ianh): add some checking for embedded URLs to make sure we're consistent on how we format those. // TODO(ianh): arguably we should ban help text that starts with "Whether to..." since by definition a flag is to enable a feature, so the "whether to" is redundant. } }
flutter/packages/flutter_tools/test/general.shard/args_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/args_test.dart", "repo_id": "flutter", "token_count": 4732 }
842
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/memory.dart'; import 'package:flutter_tools/src/base/deferred_component.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/flutter_manifest.dart'; import '../../src/common.dart'; void main() { group('DeferredComponent basics', () { testWithoutContext('constructor sets values', () { final DeferredComponent component = DeferredComponent( name: 'bestcomponent', libraries: <String>['lib1', 'lib2'], assets: <AssetsEntry>[ AssetsEntry(uri: Uri.file('asset1')), AssetsEntry(uri: Uri.file('asset2')), ], ); expect(component.name, 'bestcomponent'); expect(component.libraries, <String>['lib1', 'lib2']); expect(component.assets, <AssetsEntry>[ AssetsEntry(uri: Uri.file('asset1')), AssetsEntry(uri: Uri.file('asset2')), ]); }); testWithoutContext('assignLoadingUnits selects the needed loading units and sets assigned', () { final DeferredComponent component = DeferredComponent( name: 'bestcomponent', libraries: <String>['lib1', 'lib2'], assets: <AssetsEntry>[ AssetsEntry(uri: Uri.file('asset1')), AssetsEntry(uri: Uri.file('asset2')), ], ); expect(component.libraries, <String>['lib1', 'lib2']); expect(component.assigned, false); expect(component.loadingUnits, null); final List<LoadingUnit> loadingUnits1 = <LoadingUnit>[ LoadingUnit( id: 2, path: 'path/to/so.so', libraries: <String>['lib1', 'lib4'], ), LoadingUnit( id: 3, path: 'path/to/so.so', libraries: <String>['lib2', 'lib5'], ), LoadingUnit( id: 4, path: 'path/to/so.so', libraries: <String>['lib6', 'lib7'], ), ]; component.assignLoadingUnits(loadingUnits1); expect(component.assigned, true); expect(component.loadingUnits, hasLength(2)); expect(component.loadingUnits, contains(loadingUnits1[0])); expect(component.loadingUnits, contains(loadingUnits1[1])); expect(component.loadingUnits, isNot(contains(loadingUnits1[2]))); final List<LoadingUnit> loadingUnits2 = <LoadingUnit>[ LoadingUnit( id: 2, path: 'path/to/so.so', libraries: <String>['lib1', 'lib2'], ), LoadingUnit( id: 3, path: 'path/to/so.so', libraries: <String>['lib5', 'lib6'], ), LoadingUnit( id: 4, path: 'path/to/so.so', libraries: <String>['lib7', 'lib8'], ), ]; // Can reassign loading units. component.assignLoadingUnits(loadingUnits2); expect(component.assigned, true); expect(component.loadingUnits, hasLength(1)); expect(component.loadingUnits, contains(loadingUnits2[0])); expect(component.loadingUnits, isNot(contains(loadingUnits2[1]))); expect(component.loadingUnits, isNot(contains(loadingUnits2[2]))); component.assignLoadingUnits(<LoadingUnit>[]); expect(component.assigned, true); expect(component.loadingUnits, hasLength(0)); }); testWithoutContext('toString produces correct string for unassigned component', () { final DeferredComponent component = DeferredComponent( name: 'bestcomponent', libraries: <String>['lib1', 'lib2'], assets: <AssetsEntry>[ AssetsEntry(uri: Uri.file('asset1')), AssetsEntry(uri: Uri.file('asset2')), ], ); expect(component.toString(), '\nDeferredComponent: bestcomponent\n Libraries:\n - lib1\n - lib2\n Assets:\n - asset1\n - asset2'); }); testWithoutContext('toString produces correct string for assigned component', () { final DeferredComponent component = DeferredComponent( name: 'bestcomponent', libraries: <String>['lib1', 'lib2'], assets: <AssetsEntry>[ AssetsEntry(uri: Uri.file('asset1')), AssetsEntry(uri: Uri.file('asset2')), ], ); component.assignLoadingUnits(<LoadingUnit>[LoadingUnit(id: 2, libraries: <String>['lib1'])]); expect(component.toString(), '\nDeferredComponent: bestcomponent\n Libraries:\n - lib1\n - lib2\n LoadingUnits:\n - 2\n Assets:\n - asset1\n - asset2'); }); }); group('LoadingUnit basics', () { testWithoutContext('constructor sets values', () { final LoadingUnit unit = LoadingUnit( id: 2, path: 'path/to/so.so', libraries: <String>['lib1', 'lib4'], ); expect(unit.id, 2); expect(unit.path, 'path/to/so.so'); expect(unit.libraries, <String>['lib1', 'lib4']); }); testWithoutContext('toString produces correct string', () { final LoadingUnit unit = LoadingUnit( id: 2, path: 'path/to/so.so', libraries: <String>['lib1', 'lib4'], ); expect(unit.toString(),'\nLoadingUnit 2\n Libraries:\n - lib1\n - lib4'); }); testWithoutContext('equalsIgnoringPath works for various input', () { final LoadingUnit unit1 = LoadingUnit( id: 2, path: 'path/to/so.so', libraries: <String>['lib1', 'lib4'], ); final LoadingUnit unit2 = LoadingUnit( id: 2, path: 'path/to/other/so.so', libraries: <String>['lib1', 'lib4'], ); final LoadingUnit unit3 = LoadingUnit( id: 1, path: 'path/to/other/so.so', libraries: <String>['lib1', 'lib4'], ); final LoadingUnit unit4 = LoadingUnit( id: 1, path: 'path/to/other/so.so', libraries: <String>['lib1'], ); final LoadingUnit unit5 = LoadingUnit( id: 1, path: 'path/to/other/so.so', libraries: <String>['lib2'], ); final LoadingUnit unit6 = LoadingUnit( id: 1, path: 'path/to/other/so.so', libraries: <String>['lib1', 'lib5'], ); expect(unit1.equalsIgnoringPath(unit2), true); expect(unit2.equalsIgnoringPath(unit3), false); expect(unit3.equalsIgnoringPath(unit4), false); expect(unit4.equalsIgnoringPath(unit5), false); expect(unit5.equalsIgnoringPath(unit6), false); }); testWithoutContext('parseLoadingUnitManifest parses single manifest file', () { final FileSystem fileSystem = MemoryFileSystem.test(); final File manifest = fileSystem.file('/manifest.json'); manifest.createSync(recursive: true); manifest.writeAsStringSync(r''' { "loadingUnits": [ { "id": 1, "path": "\/arm64-v8a\/app.so", "libraries": [ "dart:core"]} , { "id": 2, "path": "\/arm64-v8a\/app.so-2.part.so", "libraries": [ "lib2"]} , { "id": 3, "path": "\/arm64-v8a\/app.so-3.part.so", "libraries": [ "lib3", "lib4"]} ] } ''', flush: true); final List<LoadingUnit> loadingUnits = LoadingUnit.parseLoadingUnitManifest(manifest, BufferLogger.test()); expect(loadingUnits.length, 2); // base module (id 1) is not parsed. expect(loadingUnits[0].id, 2); expect(loadingUnits[0].path, '/arm64-v8a/app.so-2.part.so'); expect(loadingUnits[0].libraries.length, 1); expect(loadingUnits[0].libraries[0], 'lib2'); expect(loadingUnits[1].id, 3); expect(loadingUnits[1].path, '/arm64-v8a/app.so-3.part.so'); expect(loadingUnits[1].libraries.length, 2); expect(loadingUnits[1].libraries[0], 'lib3'); expect(loadingUnits[1].libraries[1], 'lib4'); }); testWithoutContext('parseLoadingUnitManifest returns empty when manifest is invalid JSON', () { final FileSystem fileSystem = MemoryFileSystem.test(); final File manifest = fileSystem.file('/manifest.json'); manifest.createSync(recursive: true); // invalid due to missing closing brace `}` manifest.writeAsStringSync(r''' { "loadingUnits": [ { "id": 1, "path": "\/arm64-v8a\/app.so", "libraries": [ "dart:core"]} , { "id": 2, "path": "\/arm64-v8a\/app.so-2.part.so", "libraries": [ "lib2"]} , { "id": 3, "path": "\/arm64-v8a\/app.so-3.part.so", "libraries": [ "lib3", "lib4"]} ] ''', flush: true); final List<LoadingUnit> loadingUnits = LoadingUnit.parseLoadingUnitManifest(manifest, BufferLogger.test()); expect(loadingUnits.length, 0); expect(loadingUnits.isEmpty, true); }); testWithoutContext('parseLoadingUnitManifest does not exist', () { final FileSystem fileSystem = MemoryFileSystem.test(); final File manifest = fileSystem.file('/manifest.json'); if (manifest.existsSync()) { manifest.deleteSync(recursive: true); } final List<LoadingUnit> loadingUnits = LoadingUnit.parseLoadingUnitManifest(manifest, BufferLogger.test()); expect(loadingUnits.length, 0); expect(loadingUnits.isEmpty, true); }); testWithoutContext('parseGeneratedLoadingUnits parses all abis if no abis provided', () { final FileSystem fileSystem = MemoryFileSystem.test(); final File manifest1 = fileSystem.file('/test-abi1/manifest.json'); manifest1.createSync(recursive: true); manifest1.writeAsStringSync(r''' { "loadingUnits": [ { "id": 1, "path": "\/test-abi1\/app.so", "libraries": [ "dart:core"]} , { "id": 2, "path": "\/test-abi1\/app.so-2.part.so", "libraries": [ "lib2"]} , { "id": 3, "path": "\/test-abi1\/app.so-3.part.so", "libraries": [ "lib3", "lib4"]} ] } ''', flush: true); final File manifest2 = fileSystem.file('/test-abi2/manifest.json'); manifest2.createSync(recursive: true); manifest2.writeAsStringSync(r''' { "loadingUnits": [ { "id": 1, "path": "\/test-abi2\/app.so", "libraries": [ "dart:core"]} , { "id": 2, "path": "\/test-abi2\/app.so-2.part.so", "libraries": [ "lib2"]} , { "id": 3, "path": "\/test-abi2\/app.so-3.part.so", "libraries": [ "lib3", "lib4"]} ] } ''', flush: true); final List<LoadingUnit> loadingUnits = LoadingUnit.parseGeneratedLoadingUnits(fileSystem.directory('/'), BufferLogger.test()); expect(loadingUnits.length, 4); // base module (id 1) is not parsed. expect(loadingUnits[0].id, 2); expect(loadingUnits[0].path, '/test-abi2/app.so-2.part.so'); expect(loadingUnits[0].libraries.length, 1); expect(loadingUnits[0].libraries[0], 'lib2'); expect(loadingUnits[1].id, 3); expect(loadingUnits[1].path, '/test-abi2/app.so-3.part.so'); expect(loadingUnits[1].libraries.length, 2); expect(loadingUnits[1].libraries[0], 'lib3'); expect(loadingUnits[1].libraries[1], 'lib4'); expect(loadingUnits[2].id, 2); expect(loadingUnits[2].path, '/test-abi1/app.so-2.part.so'); expect(loadingUnits[2].libraries.length, 1); expect(loadingUnits[2].libraries[0], 'lib2'); expect(loadingUnits[3].id, 3); expect(loadingUnits[3].path, '/test-abi1/app.so-3.part.so'); expect(loadingUnits[3].libraries.length, 2); expect(loadingUnits[3].libraries[0], 'lib3'); expect(loadingUnits[3].libraries[1], 'lib4'); }); testWithoutContext('parseGeneratedLoadingUnits only parses provided abis', () { final FileSystem fileSystem = MemoryFileSystem.test(); final File manifest1 = fileSystem.file('/test-abi1/manifest.json'); manifest1.createSync(recursive: true); manifest1.writeAsStringSync(r''' { "loadingUnits": [ { "id": 1, "path": "\/test-abi1\/app.so", "libraries": [ "dart:core"]} , { "id": 2, "path": "\/test-abi1\/app.so-2.part.so", "libraries": [ "lib2"]} , { "id": 3, "path": "\/test-abi1\/app.so-3.part.so", "libraries": [ "lib3", "lib4"]} ] } ''', flush: true); final File manifest2 = fileSystem.file('/test-abi2/manifest.json'); manifest2.createSync(recursive: true); manifest2.writeAsStringSync(r''' { "loadingUnits": [ { "id": 1, "path": "\/test-abi2\/app.so", "libraries": [ "dart:core"]} , { "id": 2, "path": "\/test-abi2\/app.so-2.part.so", "libraries": [ "lib2"]} , { "id": 3, "path": "\/test-abi2\/app.so-3.part.so", "libraries": [ "lib3", "lib4"]} ] } ''', flush: true); final List<LoadingUnit> loadingUnits = LoadingUnit.parseGeneratedLoadingUnits(fileSystem.directory('/'), BufferLogger.test(), abis: <String>['test-abi2']); expect(loadingUnits.length, 2); // base module (id 1) is not parsed. expect(loadingUnits[0].id, 2); expect(loadingUnits[0].path, '/test-abi2/app.so-2.part.so'); expect(loadingUnits[0].libraries.length, 1); expect(loadingUnits[0].libraries[0], 'lib2'); expect(loadingUnits[1].id, 3); expect(loadingUnits[1].path, '/test-abi2/app.so-3.part.so'); expect(loadingUnits[1].libraries.length, 2); expect(loadingUnits[1].libraries[0], 'lib3'); expect(loadingUnits[1].libraries[1], 'lib4'); }); testWithoutContext('parseGeneratedLoadingUnits returns empty when no manifest files exist', () { final FileSystem fileSystem = MemoryFileSystem.test(); final List<LoadingUnit> loadingUnits = LoadingUnit.parseGeneratedLoadingUnits(fileSystem.directory('/'), BufferLogger.test()); expect(loadingUnits.isEmpty, true); expect(loadingUnits.length, 0); }); }); }
flutter/packages/flutter_tools/test/general.shard/base/deferred_component_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/base/deferred_component_test.dart", "repo_id": "flutter", "token_count": 5714 }
843
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter_tools/src/base/utils.dart'; import '../src/common.dart'; void main() { group('ItemListNotifier', () { test('sends notifications', () async { final ItemListNotifier<String> list = ItemListNotifier<String>(); expect(list.items, isEmpty); final Future<List<String>> addedStreamItems = list.onAdded.toList(); final Future<List<String>> removedStreamItems = list.onRemoved.toList(); list.updateWithNewList(<String>['aaa']); list.removeItem('bogus'); list.updateWithNewList(<String>['aaa', 'bbb', 'ccc']); list.updateWithNewList(<String>['bbb', 'ccc']); list.removeItem('bbb'); expect(list.items, <String>['ccc']); list.dispose(); final List<String> addedItems = await addedStreamItems; final List<String> removedItems = await removedStreamItems; expect(addedItems.length, 3); expect(addedItems.first, 'aaa'); expect(addedItems[1], 'bbb'); expect(addedItems[2], 'ccc'); expect(removedItems.length, 2); expect(removedItems.first, 'aaa'); expect(removedItems[1], 'bbb'); }); }); }
flutter/packages/flutter_tools/test/general.shard/base_utils_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/base_utils_test.dart", "repo_id": "flutter", "token_count": 489 }
844
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/memory.dart'; import 'package:flutter_tools/src/artifacts.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/build_info.dart'; import 'package:flutter_tools/src/build_system/build_system.dart'; import 'package:flutter_tools/src/build_system/targets/icon_tree_shaker.dart'; import 'package:flutter_tools/src/devfs.dart'; import '../../../src/common.dart'; import '../../../src/fake_process_manager.dart'; import '../../../src/fakes.dart'; const List<int> _kTtfHeaderBytes = <int>[0, 1, 0, 0, 0, 15, 0, 128, 0, 3, 0, 112]; const String inputPath = '/input/fonts/MaterialIcons-Regular.otf'; const String outputPath = '/output/fonts/MaterialIcons-Regular.otf'; const String relativePath = 'fonts/MaterialIcons-Regular.otf'; final RegExp whitespace = RegExp(r'\s+'); void main() { late BufferLogger logger; late MemoryFileSystem fileSystem; late FakeProcessManager processManager; late Artifacts artifacts; late DevFSStringContent fontManifestContent; late String dartPath; late String constFinderPath; late String fontSubsetPath; late List<String> fontSubsetArgs; List<String> getConstFinderArgs(String appDillPath) => <String>[ dartPath, '--disable-dart-dev', constFinderPath, '--kernel-file', appDillPath, '--class-library-uri', 'package:flutter/src/widgets/icon_data.dart', '--class-name', 'IconData', '--annotation-class-name', '_StaticIconProvider', '--annotation-class-library-uri', 'package:flutter/src/widgets/icon_data.dart', ]; void addConstFinderInvocation( String appDillPath, { int exitCode = 0, String stdout = '', String stderr = '', }) { processManager.addCommand(FakeCommand( command: getConstFinderArgs(appDillPath), exitCode: exitCode, stdout: stdout, stderr: stderr, )); } void resetFontSubsetInvocation({ int exitCode = 0, String stdout = '', String stderr = '', required CompleterIOSink stdinSink, }) { stdinSink.clear(); processManager.addCommand(FakeCommand( command: fontSubsetArgs, exitCode: exitCode, stdout: stdout, stderr: stderr, stdin: stdinSink, )); } setUp(() { processManager = FakeProcessManager.empty(); fontManifestContent = DevFSStringContent(validFontManifestJson); artifacts = Artifacts.test(); fileSystem = MemoryFileSystem.test(); logger = BufferLogger.test(); dartPath = artifacts.getArtifactPath(Artifact.engineDartBinary); constFinderPath = artifacts.getArtifactPath(Artifact.constFinder); fontSubsetPath = artifacts.getArtifactPath(Artifact.fontSubset); fontSubsetArgs = <String>[ fontSubsetPath, outputPath, inputPath, ]; fileSystem.file(constFinderPath).createSync(recursive: true); fileSystem.file(dartPath).createSync(recursive: true); fileSystem.file(fontSubsetPath).createSync(recursive: true); fileSystem.file(inputPath) ..createSync(recursive: true) ..writeAsBytesSync(_kTtfHeaderBytes); }); Environment createEnvironment(Map<String, String> defines) { return Environment.test( fileSystem.directory('/icon_test')..createSync(recursive: true), defines: defines, artifacts: artifacts, processManager: FakeProcessManager.any(), fileSystem: fileSystem, logger: BufferLogger.test(), ); } testWithoutContext('Prints error in debug mode environment', () async { final Environment environment = createEnvironment(<String, String>{ kIconTreeShakerFlag: 'true', kBuildMode: 'debug', }); final IconTreeShaker iconTreeShaker = IconTreeShaker( environment, fontManifestContent, logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: artifacts, targetPlatform: TargetPlatform.android, ); expect( logger.errorText, 'Font subsetting is not supported in debug mode. The --tree-shake-icons' ' flag will be ignored.\n', ); expect(iconTreeShaker.enabled, false); final bool subsets = await iconTreeShaker.subsetFont( input: fileSystem.file(inputPath), outputPath: outputPath, relativePath: relativePath, ); expect(subsets, false); expect(processManager, hasNoRemainingExpectations); }); testWithoutContext('Does not get enabled without font manifest', () { final Environment environment = createEnvironment(<String, String>{ kIconTreeShakerFlag: 'true', kBuildMode: 'release', }); final IconTreeShaker iconTreeShaker = IconTreeShaker( environment, null, logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: artifacts, targetPlatform: TargetPlatform.android, ); expect( logger.errorText, isEmpty, ); expect(iconTreeShaker.enabled, false); expect(processManager, hasNoRemainingExpectations); }); testWithoutContext('Gets enabled', () { final Environment environment = createEnvironment(<String, String>{ kIconTreeShakerFlag: 'true', kBuildMode: 'release', }); final IconTreeShaker iconTreeShaker = IconTreeShaker( environment, fontManifestContent, logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: artifacts, targetPlatform: TargetPlatform.android, ); expect( logger.errorText, isEmpty, ); expect(iconTreeShaker.enabled, true); expect(processManager, hasNoRemainingExpectations); }); test('No app.dill throws exception', () async { final Environment environment = createEnvironment(<String, String>{ kIconTreeShakerFlag: 'true', kBuildMode: 'release', }); final IconTreeShaker iconTreeShaker = IconTreeShaker( environment, fontManifestContent, logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: artifacts, targetPlatform: TargetPlatform.android, ); expect( () async => iconTreeShaker.subsetFont( input: fileSystem.file(inputPath), outputPath: outputPath, relativePath: relativePath, ), throwsA(isA<IconTreeShakerException>()), ); expect(processManager, hasNoRemainingExpectations); }); testWithoutContext('Can subset a font', () async { final Environment environment = createEnvironment(<String, String>{ kIconTreeShakerFlag: 'true', kBuildMode: 'release', }); final File appDill = environment.buildDir.childFile('app.dill') ..createSync(recursive: true); final IconTreeShaker iconTreeShaker = IconTreeShaker( environment, fontManifestContent, logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: artifacts, targetPlatform: TargetPlatform.android, ); final CompleterIOSink stdinSink = CompleterIOSink(); addConstFinderInvocation(appDill.path, stdout: validConstFinderResult); resetFontSubsetInvocation(stdinSink: stdinSink); // Font starts out 2500 bytes long final File inputFont = fileSystem.file(inputPath) ..writeAsBytesSync(List<int>.filled(2500, 0)); // after subsetting, font is 1200 bytes long fileSystem.file(outputPath) ..createSync(recursive: true) ..writeAsBytesSync(List<int>.filled(1200, 0)); bool subsetted = await iconTreeShaker.subsetFont( input: inputFont, outputPath: outputPath, relativePath: relativePath, ); expect(stdinSink.getAndClear(), '59470\n'); resetFontSubsetInvocation(stdinSink: stdinSink); expect(subsetted, true); subsetted = await iconTreeShaker.subsetFont( input: fileSystem.file(inputPath), outputPath: outputPath, relativePath: relativePath, ); expect(subsetted, true); expect(stdinSink.getAndClear(), '59470\n'); expect(processManager, hasNoRemainingExpectations); expect( logger.statusText, contains('Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 2500 to 1200 bytes (52.0% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.'), ); }); testWithoutContext('Does not subset a non-supported font', () async { final Environment environment = createEnvironment(<String, String>{ kIconTreeShakerFlag: 'true', kBuildMode: 'release', }); final File appDill = environment.buildDir.childFile('app.dill') ..createSync(recursive: true); final IconTreeShaker iconTreeShaker = IconTreeShaker( environment, fontManifestContent, logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: artifacts, targetPlatform: TargetPlatform.android, ); final CompleterIOSink stdinSink = CompleterIOSink(); addConstFinderInvocation(appDill.path, stdout: validConstFinderResult); resetFontSubsetInvocation(stdinSink: stdinSink); final File notAFont = fileSystem.file('input/foo/bar.txt') ..createSync(recursive: true) ..writeAsStringSync('I could not think of a better string'); final bool subsetted = await iconTreeShaker.subsetFont( input: notAFont, outputPath: outputPath, relativePath: relativePath, ); expect(subsetted, false); }); testWithoutContext('Does not subset an invalid ttf font', () async { final Environment environment = createEnvironment(<String, String>{ kIconTreeShakerFlag: 'true', kBuildMode: 'release', }); final File appDill = environment.buildDir.childFile('app.dill') ..createSync(recursive: true); final IconTreeShaker iconTreeShaker = IconTreeShaker( environment, fontManifestContent, logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: artifacts, targetPlatform: TargetPlatform.android, ); final CompleterIOSink stdinSink = CompleterIOSink(); addConstFinderInvocation(appDill.path, stdout: validConstFinderResult); resetFontSubsetInvocation(stdinSink: stdinSink); final File notAFont = fileSystem.file(inputPath) ..writeAsBytesSync(<int>[0, 1, 2]); final bool subsetted = await iconTreeShaker.subsetFont( input: notAFont, outputPath: outputPath, relativePath: relativePath, ); expect(subsetted, false); }); for (final TargetPlatform platform in <TargetPlatform>[TargetPlatform.android_arm, TargetPlatform.web_javascript]) { testWithoutContext('Non-constant instances $platform', () async { final Environment environment = createEnvironment(<String, String>{ kIconTreeShakerFlag: 'true', kBuildMode: 'release', }); final File appDill = environment.buildDir.childFile('app.dill') ..createSync(recursive: true); final IconTreeShaker iconTreeShaker = IconTreeShaker( environment, fontManifestContent, logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: artifacts, targetPlatform: platform, ); addConstFinderInvocation(appDill.path, stdout: constFinderResultWithInvalid); await expectLater( () => iconTreeShaker.subsetFont( input: fileSystem.file(inputPath), outputPath: outputPath, relativePath: relativePath, ), throwsToolExit( message: 'Avoid non-constant invocations of IconData or try to build' ' again with --no-tree-shake-icons.', ), ); expect(processManager, hasNoRemainingExpectations); }); } testWithoutContext('Does not add 0x32 for non-web builds', () async { final Environment environment = createEnvironment(<String, String>{ kIconTreeShakerFlag: 'true', kBuildMode: 'release', }); final File appDill = environment.buildDir.childFile('app.dill') ..createSync(recursive: true); final IconTreeShaker iconTreeShaker = IconTreeShaker( environment, fontManifestContent, logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: artifacts, targetPlatform: TargetPlatform.android_arm64, ); addConstFinderInvocation( appDill.path, // Does not contain space char stdout: validConstFinderResult, ); final CompleterIOSink stdinSink = CompleterIOSink(); resetFontSubsetInvocation(stdinSink: stdinSink); expect(processManager.hasRemainingExpectations, isTrue); final File inputFont = fileSystem.file(inputPath) ..writeAsBytesSync(List<int>.filled(2500, 0)); fileSystem.file(outputPath) ..createSync(recursive: true) ..writeAsBytesSync(List<int>.filled(1200, 0)); final bool result = await iconTreeShaker.subsetFont( input: inputFont, outputPath: outputPath, relativePath: relativePath, ); expect(result, isTrue); final List<String> codePoints = stdinSink.getAndClear().trim().split(whitespace); expect(codePoints, isNot(contains('optional:32'))); expect(processManager, hasNoRemainingExpectations); }); testWithoutContext('Ensures 0x32 is included for web builds', () async { final Environment environment = createEnvironment(<String, String>{ kIconTreeShakerFlag: 'true', kBuildMode: 'release', }); final File appDill = environment.buildDir.childFile('app.dill') ..createSync(recursive: true); final IconTreeShaker iconTreeShaker = IconTreeShaker( environment, fontManifestContent, logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: artifacts, targetPlatform: TargetPlatform.web_javascript, ); addConstFinderInvocation( appDill.path, // Does not contain space char stdout: validConstFinderResult, ); final CompleterIOSink stdinSink = CompleterIOSink(); resetFontSubsetInvocation(stdinSink: stdinSink); expect(processManager.hasRemainingExpectations, isTrue); final File inputFont = fileSystem.file(inputPath) ..writeAsBytesSync(List<int>.filled(2500, 0)); fileSystem.file(outputPath) ..createSync(recursive: true) ..writeAsBytesSync(List<int>.filled(1200, 0)); final bool result = await iconTreeShaker.subsetFont( input: inputFont, outputPath: outputPath, relativePath: relativePath, ); expect(result, isTrue); final List<String> codePoints = stdinSink.getAndClear().trim().split(whitespace); expect(codePoints, containsAllInOrder(const <String>['59470', 'optional:32'])); expect(processManager, hasNoRemainingExpectations); }); testWithoutContext('Non-zero font-subset exit code', () async { final Environment environment = createEnvironment(<String, String>{ kIconTreeShakerFlag: 'true', kBuildMode: 'release', }); final File appDill = environment.buildDir.childFile('app.dill') ..createSync(recursive: true); fileSystem.file(inputPath).createSync(recursive: true); final IconTreeShaker iconTreeShaker = IconTreeShaker( environment, fontManifestContent, logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: artifacts, targetPlatform: TargetPlatform.android, ); final CompleterIOSink stdinSink = CompleterIOSink(); addConstFinderInvocation(appDill.path, stdout: validConstFinderResult); resetFontSubsetInvocation(exitCode: -1, stdinSink: stdinSink); await expectLater( () => iconTreeShaker.subsetFont( input: fileSystem.file(inputPath), outputPath: outputPath, relativePath: relativePath, ), throwsA(isA<IconTreeShakerException>()), ); expect(processManager, hasNoRemainingExpectations); }); testWithoutContext('font-subset throws on write to sdtin', () async { final Environment environment = createEnvironment(<String, String>{ kIconTreeShakerFlag: 'true', kBuildMode: 'release', }); final File appDill = environment.buildDir.childFile('app.dill') ..createSync(recursive: true); final IconTreeShaker iconTreeShaker = IconTreeShaker( environment, fontManifestContent, logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: artifacts, targetPlatform: TargetPlatform.android, ); final CompleterIOSink stdinSink = CompleterIOSink(throwOnAdd: true); addConstFinderInvocation(appDill.path, stdout: validConstFinderResult); resetFontSubsetInvocation(exitCode: -1, stdinSink: stdinSink); await expectLater( () => iconTreeShaker.subsetFont( input: fileSystem.file(inputPath), outputPath: outputPath, relativePath: relativePath, ), throwsA(isA<IconTreeShakerException>()), ); expect(processManager, hasNoRemainingExpectations); }); testWithoutContext('Invalid font manifest', () async { final Environment environment = createEnvironment(<String, String>{ kIconTreeShakerFlag: 'true', kBuildMode: 'release', }); final File appDill = environment.buildDir.childFile('app.dill') ..createSync(recursive: true); fontManifestContent = DevFSStringContent(invalidFontManifestJson); final IconTreeShaker iconTreeShaker = IconTreeShaker( environment, fontManifestContent, logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: artifacts, targetPlatform: TargetPlatform.android, ); addConstFinderInvocation(appDill.path, stdout: validConstFinderResult); await expectLater( () => iconTreeShaker.subsetFont( input: fileSystem.file(inputPath), outputPath: outputPath, relativePath: relativePath, ), throwsA(isA<IconTreeShakerException>()), ); expect(processManager, hasNoRemainingExpectations); }); testWithoutContext('ConstFinder non-zero exit', () async { final Environment environment = createEnvironment(<String, String>{ kIconTreeShakerFlag: 'true', kBuildMode: 'release', }); final File appDill = environment.buildDir.childFile('app.dill') ..createSync(recursive: true); fontManifestContent = DevFSStringContent(invalidFontManifestJson); final IconTreeShaker iconTreeShaker = IconTreeShaker( environment, fontManifestContent, logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: artifacts, targetPlatform: TargetPlatform.android, ); addConstFinderInvocation(appDill.path, exitCode: -1); await expectLater( () async => iconTreeShaker.subsetFont( input: fileSystem.file(inputPath), outputPath: outputPath, relativePath: relativePath, ), throwsA(isA<IconTreeShakerException>()), ); expect(processManager, hasNoRemainingExpectations); }); } const String validConstFinderResult = ''' { "constantInstances": [ { "codePoint": 59470, "fontFamily": "MaterialIcons", "fontPackage": null, "matchTextDirection": false } ], "nonConstantLocations": [] } '''; const String constFinderResultWithInvalid = ''' { "constantInstances": [ { "codePoint": 59470, "fontFamily": "MaterialIcons", "fontPackage": null, "matchTextDirection": false } ], "nonConstantLocations": [ { "file": "file:///Path/to/hello_world/lib/file.dart", "line": 19, "column": 11 } ] } '''; const String validFontManifestJson = ''' [ { "family": "MaterialIcons", "fonts": [ { "asset": "fonts/MaterialIcons-Regular.otf" } ] }, { "family": "GalleryIcons", "fonts": [ { "asset": "packages/flutter_gallery_assets/fonts/private/gallery_icons/GalleryIcons.ttf" } ] }, { "family": "packages/cupertino_icons/CupertinoIcons", "fonts": [ { "asset": "packages/cupertino_icons/assets/CupertinoIcons.ttf" } ] } ] '''; const String invalidFontManifestJson = ''' { "famly": "MaterialIcons", "fonts": [ { "asset": "fonts/MaterialIcons-Regular.otf" } ] } ''';
flutter/packages/flutter_tools/test/general.shard/build_system/targets/icon_tree_shaker_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/build_system/targets/icon_tree_shaker_test.dart", "repo_id": "flutter", "token_count": 7785 }
845
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'package:flutter_tools/src/base/io.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/commands/daemon.dart'; import 'package:test/fake.dart'; import '../../src/common.dart'; void main() { testWithoutContext('binds on ipv4 normally', () async { final FakeServerSocket socket = FakeServerSocket(); final BufferLogger logger = BufferLogger.test(); int bindCalledTimes = 0; final List<Object?> bindAddresses = <Object?>[]; final List<int> bindPorts = <int>[]; final DaemonServer server = DaemonServer( port: 123, logger: logger, bind: (Object? address, int port) async { bindCalledTimes++; bindAddresses.add(address); bindPorts.add(port); return socket; }, ); await server.run(); expect(bindCalledTimes, 1); expect(bindAddresses, <Object?>[InternetAddress.loopbackIPv4]); expect(bindPorts, <int>[123]); }); testWithoutContext('binds on ipv6 if ipv4 failed normally', () async { final FakeServerSocket socket = FakeServerSocket(); final BufferLogger logger = BufferLogger.test(); int bindCalledTimes = 0; final List<Object?> bindAddresses = <Object?>[]; final List<int> bindPorts = <int>[]; final DaemonServer server = DaemonServer( port: 123, logger: logger, bind: (Object? address, int port) async { bindCalledTimes++; bindAddresses.add(address); bindPorts.add(port); if (address == InternetAddress.loopbackIPv4) { throw const SocketException('fail'); } return socket; }, ); await server.run(); expect(bindCalledTimes, 2); expect(bindAddresses, <Object?>[InternetAddress.loopbackIPv4, InternetAddress.loopbackIPv6]); expect(bindPorts, <int>[123, 123]); }); } class FakeServerSocket extends Fake implements ServerSocket { FakeServerSocket(); @override int get port => 1; bool closeCalled = false; final StreamController<Socket> controller = StreamController<Socket>(); @override StreamSubscription<Socket> listen( void Function(Socket event)? onData, { Function? onError, void Function()? onDone, bool? cancelOnError, }) { // Close the controller immediately for testing purpose. scheduleMicrotask(() { controller.close(); }); return controller.stream.listen(onData, onError: onError, onDone: onDone, cancelOnError: cancelOnError); } @override Future<ServerSocket> close() async { closeCalled = true; return this; } }
flutter/packages/flutter_tools/test/general.shard/commands/daemon_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/commands/daemon_test.dart", "repo_id": "flutter", "token_count": 1006 }
846
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'package:dds/dap.dart'; import 'package:file/memory.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/cache.dart'; import 'package:flutter_tools/src/debug_adapters/flutter_adapter.dart'; import 'package:flutter_tools/src/debug_adapters/flutter_adapter_args.dart'; import 'package:flutter_tools/src/globals.dart' as globals show fs, platform; import 'package:test/fake.dart'; import 'package:test/test.dart'; import 'package:vm_service/vm_service.dart'; import 'mocks.dart'; void main() { // Use the real platform as a base so that Windows bots test paths. final FakePlatform platform = FakePlatform.fromPlatform(globals.platform); final FileSystemStyle fsStyle = platform.isWindows ? FileSystemStyle.windows : FileSystemStyle.posix; final String flutterRoot = platform.isWindows ? r'C:\fake\flutter' : '/fake/flutter'; group('flutter adapter', () { final String expectedFlutterExecutable = platform.isWindows ? r'C:\fake\flutter\bin\flutter.bat' : '/fake/flutter/bin/flutter'; setUpAll(() { Cache.flutterRoot = flutterRoot; }); group('launchRequest', () { test('runs "flutter run" with --machine', () async { final MockFlutterDebugAdapter adapter = MockFlutterDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, ); final Completer<void> responseCompleter = Completer<void>(); final FlutterLaunchRequestArguments args = FlutterLaunchRequestArguments( cwd: '.', program: 'foo.dart', ); await adapter.configurationDoneRequest(MockRequest(), null, () {}); await adapter.launchRequest(MockRequest(), args, responseCompleter.complete); await responseCompleter.future; expect(adapter.processArgs, containsAllInOrder(<String>['run', '--machine'])); }); test('includes env variables', () async { final MockFlutterDebugAdapter adapter = MockFlutterDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, ); final Completer<void> responseCompleter = Completer<void>(); final FlutterLaunchRequestArguments args = FlutterLaunchRequestArguments( cwd: '.', program: 'foo.dart', env: <String, String>{ 'MY_TEST_ENV': 'MY_TEST_VALUE', }, ); await adapter.configurationDoneRequest(MockRequest(), null, () {}); await adapter.launchRequest(MockRequest(), args, responseCompleter.complete); await responseCompleter.future; expect(adapter.env!['MY_TEST_ENV'], 'MY_TEST_VALUE'); }); test('does not record the VMs PID for terminating', () async { final MockFlutterDebugAdapter adapter = MockFlutterDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, ); final Completer<void> responseCompleter = Completer<void>(); final FlutterLaunchRequestArguments args = FlutterLaunchRequestArguments( cwd: '.', program: 'foo.dart', ); await adapter.configurationDoneRequest(MockRequest(), null, () {}); await adapter.launchRequest(MockRequest(), args, responseCompleter.complete); await responseCompleter.future; // Trigger a fake debuggerConnected with a pid that we expect the // adapter _not_ to record, because it may be on another device. await adapter.debuggerConnected(_FakeVm(pid: 123)); // Ensure the VM's pid was not recorded. expect(adapter.pidsToTerminate, isNot(contains(123))); }); group('supportsRestartRequest', () { void testRestartSupport(bool supportsRestart) { test('notifies client for supportsRestart: $supportsRestart', () async { final MockFlutterDebugAdapter adapter = MockFlutterDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, supportsRestart: supportsRestart, ); final FlutterLaunchRequestArguments args = FlutterLaunchRequestArguments( cwd: '.', program: 'foo.dart', ); // Listen for a Capabilities event that modifies 'supportsRestartRequest'. final Future<CapabilitiesEventBody> capabilitiesUpdate = adapter .dapToClientMessages .where((Map<String, Object?> message) => message['event'] == 'capabilities') .map((Map<String, Object?> message) => message['body'] as Map<String, Object?>?) .where((Map<String, Object?>? body) => body != null).cast<Map<String, Object?>>() .map(CapabilitiesEventBody.fromJson) .firstWhere((CapabilitiesEventBody body) => body.capabilities.supportsRestartRequest != null); await adapter.configurationDoneRequest(MockRequest(), null, () {}); final Completer<void> launchCompleter = Completer<void>(); await adapter.launchRequest(MockRequest(), args, launchCompleter.complete); await launchCompleter.future; // Ensure the Capabilities update has the expected value. expect((await capabilitiesUpdate).capabilities.supportsRestartRequest, supportsRestart); }); } testRestartSupport(true); testRestartSupport(false); }); test('calls "app.stop" on terminateRequest', () async { final MockFlutterDebugAdapter adapter = MockFlutterDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, ); final FlutterLaunchRequestArguments args = FlutterLaunchRequestArguments( cwd: '.', program: 'foo.dart', ); await adapter.configurationDoneRequest(MockRequest(), null, () {}); final Completer<void> launchCompleter = Completer<void>(); await adapter.launchRequest(MockRequest(), args, launchCompleter.complete); await launchCompleter.future; final Completer<void> terminateCompleter = Completer<void>(); await adapter.terminateRequest(MockRequest(), TerminateArguments(restart: false), terminateCompleter.complete); await terminateCompleter.future; expect(adapter.dapToFlutterRequests, contains('app.stop')); }); test('does not call "app.stop" on terminateRequest if app was not started', () async { final MockFlutterDebugAdapter adapter = MockFlutterDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, simulateAppStarted: false, ); final FlutterLaunchRequestArguments args = FlutterLaunchRequestArguments( cwd: '.', program: 'foo.dart', ); await adapter.configurationDoneRequest(MockRequest(), null, () {}); final Completer<void> launchCompleter = Completer<void>(); await adapter.launchRequest(MockRequest(), args, launchCompleter.complete); await launchCompleter.future; final Completer<void> terminateCompleter = Completer<void>(); await adapter.terminateRequest(MockRequest(), TerminateArguments(restart: false), terminateCompleter.complete); await terminateCompleter.future; expect(adapter.dapToFlutterRequests, isNot(contains('app.stop'))); }); test('does not call "app.restart" before app has been started', () async { final MockFlutterDebugAdapter adapter = MockFlutterDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, simulateAppStarted: false, ); final Completer<void> launchCompleter = Completer<void>(); final FlutterLaunchRequestArguments launchArgs = FlutterLaunchRequestArguments( cwd: '.', program: 'foo.dart', ); final Completer<void> restartCompleter = Completer<void>(); final RestartArguments restartArgs = RestartArguments(); await adapter.configurationDoneRequest(MockRequest(), null, () {}); await adapter.launchRequest(MockRequest(), launchArgs, launchCompleter.complete); await launchCompleter.future; await adapter.restartRequest(MockRequest(), restartArgs, restartCompleter.complete); await restartCompleter.future; expect(adapter.dapToFlutterRequests, isNot(contains('app.restart'))); }); test('includes build progress updates', () async { final MockFlutterDebugAdapter adapter = MockFlutterDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, ); final Completer<void> responseCompleter = Completer<void>(); final FlutterLaunchRequestArguments args = FlutterLaunchRequestArguments( cwd: '.', program: 'foo.dart', ); // Begin listening for progress events up until `progressEnd` (but don't await yet). final Future<List<List<Object?>>> progressEventsFuture = adapter.dapToClientProgressEvents .takeWhile((Map<String, Object?> message) => message['event'] != 'progressEnd') .map((Map<String, Object?> message) => <Object?>[message['event'], (message['body']! as Map<String, Object?>)['message']]) .toList(); // Initialize with progress support. await adapter.initializeRequest( MockRequest(), DartInitializeRequestArguments(adapterID: 'test', supportsProgressReporting: true, ), (_) {}, ); await adapter.configurationDoneRequest(MockRequest(), null, () {}); await adapter.launchRequest(MockRequest(), args, responseCompleter.complete); await responseCompleter.future; // Ensure we got the expected events prior to the progressEnd. final List<List<Object?>> progressEvents = await progressEventsFuture; expect(progressEvents, containsAllInOrder(<List<String?>>[ <String?>['progressStart', 'Launching…'], <String?>['progressUpdate', 'Step 1…'], <String?>['progressUpdate', 'Step 2…'], // progressEnd isn't included because we used takeWhile to stop when it arrived above. ])); }); test('includes Dart Debug extension progress update', () async { final MockFlutterDebugAdapter adapter = MockFlutterDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, preAppStart: (MockFlutterDebugAdapter adapter) { adapter.simulateRawStdout('Waiting for connection from Dart debug extension…'); } ); final Completer<void> responseCompleter = Completer<void>(); final FlutterLaunchRequestArguments args = FlutterLaunchRequestArguments( cwd: '.', program: 'foo.dart', ); // Begin listening for progress events up until `progressEnd` (but don't await yet). final Future<List<List<Object?>>> progressEventsFuture = adapter.dapToClientProgressEvents .takeWhile((Map<String, Object?> message) => message['event'] != 'progressEnd') .map((Map<String, Object?> message) => <Object?>[message['event'], (message['body']! as Map<String, Object?>)['message']]) .toList(); // Initialize with progress support. await adapter.initializeRequest( MockRequest(), DartInitializeRequestArguments(adapterID: 'test', supportsProgressReporting: true, ), (_) {}, ); await adapter.configurationDoneRequest(MockRequest(), null, () {}); await adapter.launchRequest(MockRequest(), args, responseCompleter.complete); await responseCompleter.future; // Ensure we got the expected events prior to the progressEnd. final List<List<Object?>> progressEvents = await progressEventsFuture; expect(progressEvents, containsAllInOrder(<List<String>>[ <String>['progressStart', 'Launching…'], <String>['progressUpdate', 'Please click the Dart Debug extension button in the spawned browser window'], // progressEnd isn't included because we used takeWhile to stop when it arrived above. ])); }); }); group('attachRequest', () { test('runs "flutter attach" with --machine', () async { final MockFlutterDebugAdapter adapter = MockFlutterDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, ); final Completer<void> responseCompleter = Completer<void>(); final FlutterAttachRequestArguments args = FlutterAttachRequestArguments( cwd: '.', ); await adapter.configurationDoneRequest(MockRequest(), null, () {}); await adapter.attachRequest(MockRequest(), args, responseCompleter.complete); await responseCompleter.future; expect(adapter.processArgs, containsAllInOrder(<String>['attach', '--machine'])); }); test('runs "flutter attach" with program if passed in', () async { final MockFlutterDebugAdapter adapter = MockFlutterDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, ); final Completer<void> responseCompleter = Completer<void>(); final FlutterAttachRequestArguments args = FlutterAttachRequestArguments( cwd: '.', program: 'program/main.dart', ); await adapter.configurationDoneRequest(MockRequest(), null, () {}); await adapter.attachRequest( MockRequest(), args, responseCompleter.complete); await responseCompleter.future; expect( adapter.processArgs, containsAllInOrder(<String>[ 'attach', '--machine', '--target', 'program/main.dart' ])); }); test('runs "flutter attach" with --debug-uri if vmServiceUri is passed', () async { final MockFlutterDebugAdapter adapter = MockFlutterDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, ); final Completer<void> responseCompleter = Completer<void>(); final FlutterAttachRequestArguments args = FlutterAttachRequestArguments( cwd: '.', program: 'program/main.dart', vmServiceUri: 'ws://1.2.3.4/ws' ); await adapter.configurationDoneRequest(MockRequest(), null, () {}); await adapter.attachRequest( MockRequest(), args, responseCompleter.complete); await responseCompleter.future; expect( adapter.processArgs, containsAllInOrder(<String>[ 'attach', '--machine', '--debug-uri', 'ws://1.2.3.4/ws', '--target', 'program/main.dart', ])); }); test('runs "flutter attach" with --debug-uri if vmServiceInfoFile exists', () async { final MockFlutterDebugAdapter adapter = MockFlutterDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, ); final Completer<void> responseCompleter = Completer<void>(); final File serviceInfoFile = globals.fs.systemTempDirectory.createTempSync('dap_flutter_attach_vmServiceInfoFile').childFile('vmServiceInfo.json'); final FlutterAttachRequestArguments args = FlutterAttachRequestArguments( cwd: '.', program: 'program/main.dart', vmServiceInfoFile: serviceInfoFile.path, ); // Write the service info file before trying to attach: serviceInfoFile.writeAsStringSync('{ "uri": "ws://1.2.3.4/ws" }'); await adapter.configurationDoneRequest(MockRequest(), null, () {}); await adapter.attachRequest(MockRequest(), args, responseCompleter.complete); await responseCompleter.future; expect( adapter.processArgs, containsAllInOrder(<String>[ 'attach', '--machine', '--debug-uri', 'ws://1.2.3.4/ws', '--target', 'program/main.dart', ])); }); test('runs "flutter attach" with --debug-uri if vmServiceInfoFile is created later', () async { final MockFlutterDebugAdapter adapter = MockFlutterDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, ); final Completer<void> responseCompleter = Completer<void>(); final File serviceInfoFile = globals.fs.systemTempDirectory.createTempSync('dap_flutter_attach_vmServiceInfoFile').childFile('vmServiceInfo.json'); final FlutterAttachRequestArguments args = FlutterAttachRequestArguments( cwd: '.', program: 'program/main.dart', vmServiceInfoFile: serviceInfoFile.path, ); await adapter.configurationDoneRequest(MockRequest(), null, () {}); final Future<void> attachResponseFuture = adapter.attachRequest(MockRequest(), args, responseCompleter.complete); // Write the service info file a little later to ensure we detect it: await pumpEventQueue(times:5000); serviceInfoFile.writeAsStringSync('{ "uri": "ws://1.2.3.4/ws" }'); await attachResponseFuture; await responseCompleter.future; expect( adapter.processArgs, containsAllInOrder(<String>[ 'attach', '--machine', '--debug-uri', 'ws://1.2.3.4/ws', '--target', 'program/main.dart', ])); }); test('does not record the VMs PID for terminating', () async { final MockFlutterDebugAdapter adapter = MockFlutterDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, ); final Completer<void> responseCompleter = Completer<void>(); final FlutterAttachRequestArguments args = FlutterAttachRequestArguments( cwd: '.', ); await adapter.configurationDoneRequest(MockRequest(), null, () {}); await adapter.attachRequest(MockRequest(), args, responseCompleter.complete); await responseCompleter.future; // Trigger a fake debuggerConnected with a pid that we expect the // adapter _not_ to record, because it may be on another device. await adapter.debuggerConnected(_FakeVm(pid: 123)); // Ensure the VM's pid was not recorded. expect(adapter.pidsToTerminate, isNot(contains(123))); }); test('calls "app.detach" on terminateRequest', () async { final MockFlutterDebugAdapter adapter = MockFlutterDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, ); final FlutterAttachRequestArguments args = FlutterAttachRequestArguments( cwd: '.', ); await adapter.configurationDoneRequest(MockRequest(), null, () {}); final Completer<void> attachCompleter = Completer<void>(); await adapter.attachRequest(MockRequest(), args, attachCompleter.complete); await attachCompleter.future; final Completer<void> terminateCompleter = Completer<void>(); await adapter.terminateRequest(MockRequest(), TerminateArguments(restart: false), terminateCompleter.complete); await terminateCompleter.future; expect(adapter.dapToFlutterRequests, contains('app.detach')); }); }); group('forwards events', () { test('app.webLaunchUrl', () async { final MockFlutterDebugAdapter adapter = MockFlutterDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, ); // Start listening for the forwarded event (don't await it yet, it won't // be triggered until the call below). final Future<Map<String, Object?>> forwardedEvent = adapter.dapToClientMessages .firstWhere((Map<String, Object?> data) => data['event'] == 'flutter.forwardedEvent'); // Simulate Flutter asking for a URL to be launched. adapter.simulateStdoutMessage(<String, Object?>{ 'event': 'app.webLaunchUrl', 'params': <String, Object?>{ 'url': 'http://localhost:123/', 'launched': false, } }); // Wait for the forwarded event. final Map<String, Object?> message = await forwardedEvent; // Ensure the body of the event matches the original event sent by Flutter. expect(message['body'], <String, Object?>{ 'event': 'app.webLaunchUrl', 'params': <String, Object?>{ 'url': 'http://localhost:123/', 'launched': false, } }); }); }); group('handles reverse requests', () { test('app.exposeUrl', () async { final MockFlutterDebugAdapter adapter = MockFlutterDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, ); // Pretend to be the client, handling any reverse-requests for exposeUrl // and mapping the host to 'mapped-host'. adapter.exposeUrlHandler = (String url) => Uri.parse(url).replace(host: 'mapped-host').toString(); // Simulate Flutter asking for a URL to be exposed. const int requestId = 12345; adapter.simulateStdoutMessage(<String, Object?>{ 'id': requestId, 'method': 'app.exposeUrl', 'params': <String, Object?>{ 'url': 'http://localhost:123/', } }); // Allow the handler to be processed. await pumpEventQueue(times: 5000); final Map<String, Object?> message = adapter.dapToFlutterMessages.singleWhere((Map<String, Object?> data) => data['id'] == requestId); expect(message['result'], 'http://mapped-host:123/'); }); }); group('--start-paused', () { test('is passed for debug mode', () async { final MockFlutterDebugAdapter adapter = MockFlutterDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, ); final Completer<void> responseCompleter = Completer<void>(); final FlutterLaunchRequestArguments args = FlutterLaunchRequestArguments( cwd: '.', program: 'foo.dart', ); await adapter.configurationDoneRequest(MockRequest(), null, () {}); await adapter.launchRequest(MockRequest(), args, responseCompleter.complete); await responseCompleter.future; expect(adapter.processArgs, contains('--start-paused')); }); test('is not passed for noDebug mode', () async { final MockFlutterDebugAdapter adapter = MockFlutterDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, ); final Completer<void> responseCompleter = Completer<void>(); final FlutterLaunchRequestArguments args = FlutterLaunchRequestArguments( cwd: '.', program: 'foo.dart', noDebug: true, ); await adapter.configurationDoneRequest(MockRequest(), null, () {}); await adapter.launchRequest(MockRequest(), args, responseCompleter.complete); await responseCompleter.future; expect(adapter.processArgs, isNot(contains('--start-paused'))); }); test('is not passed if toolArgs contains --profile', () async { final MockFlutterDebugAdapter adapter = MockFlutterDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, ); final Completer<void> responseCompleter = Completer<void>(); final FlutterLaunchRequestArguments args = FlutterLaunchRequestArguments( cwd: '.', program: 'foo.dart', toolArgs: <String>['--profile'], ); await adapter.configurationDoneRequest(MockRequest(), null, () {}); await adapter.launchRequest(MockRequest(), args, responseCompleter.complete); await responseCompleter.future; expect(adapter.processArgs, isNot(contains('--start-paused'))); }); test('is not passed if toolArgs contains --release', () async { final MockFlutterDebugAdapter adapter = MockFlutterDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, ); final Completer<void> responseCompleter = Completer<void>(); final FlutterLaunchRequestArguments args = FlutterLaunchRequestArguments( cwd: '.', program: 'foo.dart', toolArgs: <String>['--release'], ); await adapter.configurationDoneRequest(MockRequest(), null, () {}); await adapter.launchRequest(MockRequest(), args, responseCompleter.complete); await responseCompleter.future; expect(adapter.processArgs, isNot(contains('--start-paused'))); }); }); test('includes toolArgs', () async { final MockFlutterDebugAdapter adapter = MockFlutterDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, ); final Completer<void> responseCompleter = Completer<void>(); final FlutterLaunchRequestArguments args = FlutterLaunchRequestArguments( cwd: '.', program: 'foo.dart', toolArgs: <String>['tool_arg'], noDebug: true, ); await adapter.configurationDoneRequest(MockRequest(), null, () {}); await adapter.launchRequest(MockRequest(), args, responseCompleter.complete); await responseCompleter.future; expect(adapter.executable, equals(expectedFlutterExecutable)); expect(adapter.processArgs, contains('tool_arg')); }); group('maps org-dartlang-sdk paths', () { late FileSystem fs; late FlutterDebugAdapter adapter; setUp(() { fs = MemoryFileSystem.test(style: fsStyle); adapter = MockFlutterDebugAdapter( fileSystem: fs, platform: platform, ); }); test('dart:ui URI to file path', () async { expect( adapter.convertOrgDartlangSdkToPath(Uri.parse('org-dartlang-sdk:///flutter/lib/ui/ui.dart')), Uri.file(fs.path.join(flutterRoot, 'bin', 'cache', 'pkg', 'sky_engine', 'lib', 'ui', 'ui.dart')), ); }); test('dart:ui file path to URI', () async { expect( adapter.convertUriToOrgDartlangSdk(Uri.file(fs.path.join(flutterRoot, 'bin', 'cache', 'pkg', 'sky_engine', 'lib', 'ui', 'ui.dart'))), Uri.parse('org-dartlang-sdk:///flutter/lib/ui/ui.dart'), ); }); test('dart:core URI to file path', () async { expect( adapter.convertOrgDartlangSdkToPath(Uri.parse('org-dartlang-sdk:///third_party/dart/sdk/lib/core/core.dart')), Uri.file(fs.path.join(flutterRoot, 'bin', 'cache', 'pkg', 'sky_engine', 'lib', 'core', 'core.dart')), ); }); test('dart:core file path to URI', () async { expect( adapter.convertUriToOrgDartlangSdk(Uri.file(fs.path.join(flutterRoot, 'bin', 'cache', 'pkg', 'sky_engine', 'lib', 'core', 'core.dart'))), Uri.parse('org-dartlang-sdk:///third_party/dart/sdk/lib/core/core.dart'), ); }); }); group('includes customTool', () { test('with no args replaced', () async { final MockFlutterDebugAdapter adapter = MockFlutterDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, ); final FlutterLaunchRequestArguments args = FlutterLaunchRequestArguments( cwd: '.', program: 'foo.dart', customTool: '/custom/flutter', noDebug: true, ); await adapter.configurationDoneRequest(MockRequest(), null, () {}); final Completer<void> responseCompleter = Completer<void>(); await adapter.launchRequest(MockRequest(), args, responseCompleter.complete); await responseCompleter.future; expect(adapter.executable, equals('/custom/flutter')); // args should be in-tact expect(adapter.processArgs, contains('--machine')); }); test('with all args replaced', () async { final MockFlutterDebugAdapter adapter = MockFlutterDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, ); final FlutterLaunchRequestArguments args = FlutterLaunchRequestArguments( cwd: '.', program: 'foo.dart', customTool: '/custom/flutter', customToolReplacesArgs: 9999, // replaces all built-in args noDebug: true, toolArgs: <String>['tool_args'], // should still be in args ); await adapter.configurationDoneRequest(MockRequest(), null, () {}); final Completer<void> responseCompleter = Completer<void>(); await adapter.launchRequest(MockRequest(), args, responseCompleter.complete); await responseCompleter.future; expect(adapter.executable, equals('/custom/flutter')); // normal built-in args are replaced by customToolReplacesArgs, but // user-provided toolArgs are not. expect(adapter.processArgs, isNot(contains('--machine'))); expect(adapter.processArgs, contains('tool_args')); }); }); }); } class _FakeVm extends Fake implements VM { _FakeVm({this.pid = 1}); @override final int pid; }
flutter/packages/flutter_tools/test/general.shard/dap/flutter_adapter_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/dap/flutter_adapter_test.dart", "repo_id": "flutter", "token_count": 12245 }
847
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter_tools/src/base/config.dart'; import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/features.dart'; import 'package:flutter_tools/src/flutter_features.dart'; import '../src/common.dart'; import '../src/fakes.dart'; void main() { group('Features', () { late Config testConfig; late FakePlatform platform; late FlutterFeatureFlags featureFlags; setUp(() { testConfig = Config.test(); platform = FakePlatform(environment: <String, String>{}); for (final Feature feature in allConfigurableFeatures) { testConfig.setValue(feature.configSetting!, false); } featureFlags = FlutterFeatureFlags( flutterVersion: FakeFlutterVersion(), config: testConfig, platform: platform, ); }); FeatureFlags createFlags(String channel) { return FlutterFeatureFlags( flutterVersion: FakeFlutterVersion(branch: channel), config: testConfig, platform: platform, ); } testWithoutContext('setting has safe defaults', () { const FeatureChannelSetting featureSetting = FeatureChannelSetting(); expect(featureSetting.available, false); expect(featureSetting.enabledByDefault, false); }); testWithoutContext('has safe defaults', () { const Feature feature = Feature(name: 'example'); expect(feature.name, 'example'); expect(feature.environmentOverride, null); expect(feature.configSetting, null); }); testWithoutContext('retrieves the correct setting for each branch', () { const FeatureChannelSetting masterSetting = FeatureChannelSetting(available: true); const FeatureChannelSetting betaSetting = FeatureChannelSetting(available: true); const FeatureChannelSetting stableSetting = FeatureChannelSetting(available: true); const Feature feature = Feature( name: 'example', master: masterSetting, beta: betaSetting, stable: stableSetting, ); expect(feature.getSettingForChannel('master'), masterSetting); expect(feature.getSettingForChannel('beta'), betaSetting); expect(feature.getSettingForChannel('stable'), stableSetting); expect(feature.getSettingForChannel('unknown'), masterSetting); }); testWithoutContext('env variables are only enabled with "true" string', () { platform.environment = <String, String>{'FLUTTER_WEB': 'hello'}; expect(featureFlags.isWebEnabled, false); platform.environment = <String, String>{'FLUTTER_WEB': 'true'}; expect(featureFlags.isWebEnabled, true); }); testWithoutContext('Flutter web wasm only enable on master', () { expect(flutterWebWasm.getSettingForChannel('master').enabledByDefault, isTrue); expect(flutterWebWasm.getSettingForChannel('beta').enabledByDefault, isTrue); expect(flutterWebWasm.getSettingForChannel('stable').enabledByDefault, isFalse); }); testWithoutContext('Flutter web help string', () { expect(flutterWebFeature.generateHelpMessage(), 'Enable or disable Flutter for web.'); }); testWithoutContext('Flutter macOS desktop help string', () { expect(flutterMacOSDesktopFeature.generateHelpMessage(), 'Enable or disable support for desktop on macOS.'); }); testWithoutContext('Flutter Linux desktop help string', () { expect(flutterLinuxDesktopFeature.generateHelpMessage(), 'Enable or disable support for desktop on Linux.'); }); testWithoutContext('Flutter Windows desktop help string', () { expect(flutterWindowsDesktopFeature.generateHelpMessage(), 'Enable or disable support for desktop on Windows.'); }); testWithoutContext('help string on multiple channels', () { const Feature testWithoutContextFeature = Feature( name: 'example', master: FeatureChannelSetting(available: true), beta: FeatureChannelSetting(available: true), stable: FeatureChannelSetting(available: true), configSetting: 'foo', ); expect(testWithoutContextFeature.generateHelpMessage(), 'Enable or disable example.'); }); /// Flutter Web testWithoutContext('Flutter web off by default on master', () { final FeatureFlags featureFlags = createFlags('master'); expect(featureFlags.isWebEnabled, false); }); testWithoutContext('Flutter web enabled with config on master', () { final FeatureFlags featureFlags = createFlags('master'); testConfig.setValue('enable-web', true); expect(featureFlags.isWebEnabled, true); }); testWithoutContext('Flutter web enabled with environment variable on master', () { final FeatureFlags featureFlags = createFlags('master'); platform.environment = <String, String>{'FLUTTER_WEB': 'true'}; expect(featureFlags.isWebEnabled, true); }); testWithoutContext('Flutter web off by default on beta', () { final FeatureFlags featureFlags = createFlags('beta'); expect(featureFlags.isWebEnabled, false); }); testWithoutContext('Flutter web enabled with config on beta', () { final FeatureFlags featureFlags = createFlags('beta'); testConfig.setValue('enable-web', true); expect(featureFlags.isWebEnabled, true); }); testWithoutContext('Flutter web not enabled with environment variable on beta', () { final FeatureFlags featureFlags = createFlags('beta'); platform.environment = <String, String>{'FLUTTER_WEB': 'true'}; expect(featureFlags.isWebEnabled, true); }); testWithoutContext('Flutter web on by default on stable', () { final FeatureFlags featureFlags = createFlags('stable'); testConfig.removeValue('enable-web'); expect(featureFlags.isWebEnabled, true); }); testWithoutContext('Flutter web enabled with config on stable', () { final FeatureFlags featureFlags = createFlags('stable'); testConfig.setValue('enable-web', true); expect(featureFlags.isWebEnabled, true); }); testWithoutContext('Flutter web not enabled with environment variable on stable', () { final FeatureFlags featureFlags = createFlags('stable'); platform.environment = <String, String>{'FLUTTER_WEB': 'enabled'}; expect(featureFlags.isWebEnabled, false); }); /// Flutter macOS desktop. testWithoutContext('Flutter macos desktop off by default on master', () { final FeatureFlags featureFlags = createFlags('master'); expect(featureFlags.isMacOSEnabled, false); }); testWithoutContext('Flutter macos desktop enabled with config on master', () { final FeatureFlags featureFlags = createFlags('master'); testConfig.setValue('enable-macos-desktop', true); expect(featureFlags.isMacOSEnabled, true); }); testWithoutContext('Flutter macos desktop enabled with environment variable on master', () { final FeatureFlags featureFlags = createFlags('master'); platform.environment = <String, String>{'FLUTTER_MACOS': 'true'}; expect(featureFlags.isMacOSEnabled, true); }); testWithoutContext('Flutter macos desktop off by default on beta', () { final FeatureFlags featureFlags = createFlags('beta'); expect(featureFlags.isMacOSEnabled, false); }); testWithoutContext('Flutter macos desktop enabled with config on beta', () { final FeatureFlags featureFlags = createFlags('beta'); testConfig.setValue('enable-macos-desktop', true); expect(featureFlags.isMacOSEnabled, true); }); testWithoutContext('Flutter macos desktop enabled with environment variable on beta', () { final FeatureFlags featureFlags = createFlags('beta'); platform.environment = <String, String>{'FLUTTER_MACOS': 'true'}; expect(featureFlags.isMacOSEnabled, true); }); testWithoutContext('Flutter macos desktop off by default on stable', () { final FeatureFlags featureFlags = createFlags('stable'); expect(featureFlags.isMacOSEnabled, false); }); testWithoutContext('Flutter macos desktop enabled with config on stable', () { final FeatureFlags featureFlags = createFlags('stable'); testConfig.setValue('enable-macos-desktop', true); expect(featureFlags.isMacOSEnabled, true); }); testWithoutContext('Flutter macos desktop enabled with environment variable on stable', () { final FeatureFlags featureFlags = createFlags('stable'); platform.environment = <String, String>{'FLUTTER_MACOS': 'true'}; expect(featureFlags.isMacOSEnabled, true); }); /// Flutter Linux Desktop testWithoutContext('Flutter linux desktop off by default on master', () { final FeatureFlags featureFlags = createFlags('stable'); expect(featureFlags.isLinuxEnabled, false); }); testWithoutContext('Flutter linux desktop enabled with config on master', () { final FeatureFlags featureFlags = createFlags('master'); testConfig.setValue('enable-linux-desktop', true); expect(featureFlags.isLinuxEnabled, true); }); testWithoutContext('Flutter linux desktop enabled with environment variable on master', () { final FeatureFlags featureFlags = createFlags('master'); platform.environment = <String, String>{'FLUTTER_LINUX': 'true'}; expect(featureFlags.isLinuxEnabled, true); }); testWithoutContext('Flutter linux desktop off by default on beta', () { final FeatureFlags featureFlags = createFlags('beta'); expect(featureFlags.isLinuxEnabled, false); }); testWithoutContext('Flutter linux desktop enabled with config on beta', () { final FeatureFlags featureFlags = createFlags('beta'); testConfig.setValue('enable-linux-desktop', true); expect(featureFlags.isLinuxEnabled, true); }); testWithoutContext('Flutter linux desktop enabled with environment variable on beta', () { final FeatureFlags featureFlags = createFlags('beta'); platform.environment = <String, String>{'FLUTTER_LINUX': 'true'}; expect(featureFlags.isLinuxEnabled, true); }); testWithoutContext('Flutter linux desktop off by default on stable', () { final FeatureFlags featureFlags = createFlags('stable'); expect(featureFlags.isLinuxEnabled, false); }); testWithoutContext('Flutter linux desktop enabled with config on stable', () { final FeatureFlags featureFlags = createFlags('stable'); testConfig.setValue('enable-linux-desktop', true); expect(featureFlags.isLinuxEnabled, true); }); testWithoutContext('Flutter linux desktop enabled with environment variable on stable', () { final FeatureFlags featureFlags = createFlags('stable'); platform.environment = <String, String>{'FLUTTER_LINUX': 'true'}; expect(featureFlags.isLinuxEnabled, true); }); /// Flutter Windows desktop. testWithoutContext('Flutter Windows desktop off by default on master', () { final FeatureFlags featureFlags = createFlags('master'); expect(featureFlags.isWindowsEnabled, false); }); testWithoutContext('Flutter Windows desktop enabled with config on master', () { final FeatureFlags featureFlags = createFlags('master'); testConfig.setValue('enable-windows-desktop', true); expect(featureFlags.isWindowsEnabled, true); }); testWithoutContext('Flutter Windows desktop enabled with environment variable on master', () { final FeatureFlags featureFlags = createFlags('master'); platform.environment = <String, String>{'FLUTTER_WINDOWS': 'true'}; expect(featureFlags.isWindowsEnabled, true); }); testWithoutContext('Flutter Windows desktop off by default on beta', () { final FeatureFlags featureFlags = createFlags('beta'); expect(featureFlags.isWindowsEnabled, false); }); testWithoutContext('Flutter Windows desktop enabled with config on beta', () { final FeatureFlags featureFlags = createFlags('beta'); testConfig.setValue('enable-windows-desktop', true); expect(featureFlags.isWindowsEnabled, true); }); testWithoutContext('Flutter Windows desktop enabled with environment variable on beta', () { final FeatureFlags featureFlags = createFlags('beta'); platform.environment = <String, String>{'FLUTTER_WINDOWS': 'true'}; expect(featureFlags.isWindowsEnabled, true); }); testWithoutContext('Flutter Windows desktop off by default on stable', () { final FeatureFlags featureFlags = createFlags('stable'); expect(featureFlags.isWindowsEnabled, false); }); testWithoutContext('Flutter Windows desktop enabled with config on stable', () { final FeatureFlags featureFlags = createFlags('stable'); testConfig.setValue('enable-windows-desktop', true); expect(featureFlags.isWindowsEnabled, true); }); testWithoutContext('Flutter Windows desktop enabled with environment variable on stable', () { final FeatureFlags featureFlags = createFlags('stable'); platform.environment = <String, String>{'FLUTTER_WINDOWS': 'true'}; expect(featureFlags.isWindowsEnabled, true); }); for (final Feature feature in <Feature>[ flutterWindowsDesktopFeature, flutterMacOSDesktopFeature, flutterLinuxDesktopFeature, ]) { test('${feature.name} available and enabled by default on master', () { expect(feature.master.enabledByDefault, true); expect(feature.master.available, true); }); test('${feature.name} available and enabled by default on beta', () { expect(feature.beta.enabledByDefault, true); expect(feature.beta.available, true); }); test('${feature.name} available and enabled by default on stable', () { expect(feature.stable.enabledByDefault, true); expect(feature.stable.available, true); }); } // Custom devices on all channels for (final String channel in <String>['master', 'beta', 'stable']) { testWithoutContext('Custom devices are enabled with flag on $channel', () { final FeatureFlags featureFlags = createFlags(channel); testConfig.setValue('enable-custom-devices', true); expect(featureFlags.areCustomDevicesEnabled, true); }); testWithoutContext('Custom devices are enabled with environment variable on $channel', () { final FeatureFlags featureFlags = createFlags(channel); platform.environment = <String, String>{'FLUTTER_CUSTOM_DEVICES': 'true'}; expect(featureFlags.areCustomDevicesEnabled, true); }); } test('${nativeAssets.name} availability and default enabled', () { expect(nativeAssets.master.enabledByDefault, false); expect(nativeAssets.master.available, true); expect(nativeAssets.beta.enabledByDefault, false); expect(nativeAssets.beta.available, false); expect(nativeAssets.stable.enabledByDefault, false); expect(nativeAssets.stable.available, false); }); }); }
flutter/packages/flutter_tools/test/general.shard/features_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/features_test.dart", "repo_id": "flutter", "token_count": 4830 }
848
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter_tools/src/application_package.dart'; import 'package:flutter_tools/src/asset.dart'; import 'package:flutter_tools/src/build_info.dart'; import 'package:flutter_tools/src/build_system/tools/shader_compiler.dart'; import 'package:flutter_tools/src/compile.dart'; import 'package:flutter_tools/src/devfs.dart'; import 'package:flutter_tools/src/device.dart'; import 'package:flutter_tools/src/project.dart'; import 'package:flutter_tools/src/resident_runner.dart'; import 'package:flutter_tools/src/run_hot.dart'; import 'package:flutter_tools/src/vmservice.dart'; import 'package:package_config/package_config.dart'; import 'package:test/fake.dart'; import 'package:vm_service/vm_service.dart' as vm_service; class FakeDevFs extends Fake implements DevFS { @override Future<void> destroy() async { } @override List<Uri> sources = <Uri>[]; @override DateTime? lastCompiled; @override PackageConfig? lastPackageConfig; @override Set<String> assetPathsToEvict = <String>{}; @override Set<String> shaderPathsToEvict= <String>{}; @override Set<String> scenePathsToEvict= <String>{}; @override Uri? baseUri; } class FakeDevice extends Fake implements Device { FakeDevice({ TargetPlatform targetPlatform = TargetPlatform.tester, }) : _targetPlatform = targetPlatform; final TargetPlatform _targetPlatform; bool disposed = false; @override bool isSupported() => true; @override bool supportsHotReload = true; @override bool supportsHotRestart = true; @override bool supportsFlutterExit = true; @override Future<TargetPlatform> get targetPlatform async => _targetPlatform; @override Future<String> get sdkNameAndVersion async => 'Tester'; @override Future<bool> get isLocalEmulator async => false; @override String get name => 'Fake Device'; @override Future<bool> stopApp( ApplicationPackage? app, { String? userIdentifier, }) async { return true; } @override Future<void> dispose() async { disposed = true; } } class FakeFlutterDevice extends Fake implements FlutterDevice { FakeFlutterDevice(this.device); bool stoppedEchoingDeviceLog = false; late Future<UpdateFSReport> Function() updateDevFSReportCallback; @override final FakeDevice device; @override Future<void> stopEchoingDeviceLog() async { stoppedEchoingDeviceLog = true; } @override DevFS? devFS = FakeDevFs(); @override FlutterVmService get vmService => FakeFlutterVmService(); @override ResidentCompiler? generator; @override Future<UpdateFSReport> updateDevFS({ Uri? mainUri, String? target, AssetBundle? bundle, bool bundleFirstUpload = false, bool bundleDirty = false, bool fullRestart = false, String? projectRootPath, String? pathToReload, required String dillOutputPath, required List<Uri> invalidatedFiles, required PackageConfig packageConfig, }) => updateDevFSReportCallback(); @override TargetPlatform? get targetPlatform => device._targetPlatform; } class TestFlutterDevice extends FlutterDevice { TestFlutterDevice({ required Device device, required this.exception, required ResidentCompiler generator, }) : super(device, buildInfo: BuildInfo.debug, generator: generator, developmentShaderCompiler: const FakeShaderCompiler()); /// The exception to throw when the connect method is called. final Exception exception; @override Future<void> connect({ ReloadSources? reloadSources, Restart? restart, CompileExpression? compileExpression, GetSkSLMethod? getSkSLMethod, FlutterProject? flutterProject, PrintStructuredErrorLogMethod? printStructuredErrorLogMethod, bool disableServiceAuthCodes = false, bool enableDds = true, bool cacheStartupProfile = false, bool? ipv6 = false, int? hostVmServicePort, int? ddsPort, bool allowExistingDdsInstance = false, }) async { throw exception; } } class TestHotRunnerConfig extends HotRunnerConfig { TestHotRunnerConfig({this.successfulHotRestartSetup, this.successfulHotReloadSetup}); bool? successfulHotRestartSetup; bool? successfulHotReloadSetup; bool shutdownHookCalled = false; bool updateDevFSCompleteCalled = false; @override Future<bool?> setupHotRestart() async { assert(successfulHotRestartSetup != null, 'setupHotRestart is not expected to be called in this test.'); return successfulHotRestartSetup; } @override Future<bool?> setupHotReload() async { assert(successfulHotReloadSetup != null, 'setupHotReload is not expected to be called in this test.'); return successfulHotReloadSetup; } @override void updateDevFSComplete() { updateDevFSCompleteCalled = true; } @override Future<void> runPreShutdownOperations() async { shutdownHookCalled = true; } } class FakeResidentCompiler extends Fake implements ResidentCompiler { @override void accept() {} } class FakeFlutterVmService extends Fake implements FlutterVmService { @override vm_service.VmService get service => FakeVmService(); @override Future<List<FlutterView>> getFlutterViews({bool returnEarly = false, Duration delay = const Duration(milliseconds: 50)}) async { return <FlutterView>[]; } } class FakeVmService extends Fake implements vm_service.VmService { @override Future<vm_service.VM> getVM() async => FakeVm(); } class FakeVm extends Fake implements vm_service.VM { @override List<vm_service.IsolateRef> get isolates => <vm_service.IsolateRef>[]; } class FakeShaderCompiler implements DevelopmentShaderCompiler { const FakeShaderCompiler(); @override void configureCompiler(TargetPlatform? platform) { } @override Future<DevFSContent> recompileShader(DevFSContent inputShader) { throw UnimplementedError(); } }
flutter/packages/flutter_tools/test/general.shard/hot_shared.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/hot_shared.dart", "repo_id": "flutter", "token_count": 1918 }
849
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/base/version.dart'; import 'package:flutter_tools/src/ios/ios_workflow.dart'; import 'package:flutter_tools/src/ios/xcodeproj.dart'; import 'package:flutter_tools/src/macos/xcode.dart'; import '../../src/common.dart'; import '../../src/fake_process_manager.dart'; import '../../src/fakes.dart'; void main() { testWithoutContext('iOS workflow is disabled if feature is disabled', () { final IOSWorkflow iosWorkflow = IOSWorkflow( platform: FakePlatform(operatingSystem: 'macOS'), xcode: Xcode.test(processManager: FakeProcessManager.any()), featureFlags: TestFeatureFlags(isIOSEnabled: false), ); expect(iosWorkflow.appliesToHostPlatform, false); expect(iosWorkflow.canLaunchDevices, false); expect(iosWorkflow.canListDevices, false); }); testWithoutContext('iOS workflow is disabled on Linux', () { final IOSWorkflow iosWorkflow = IOSWorkflow( platform: FakePlatform(), xcode: Xcode.test(processManager: FakeProcessManager.any()), featureFlags: TestFeatureFlags(), ); expect(iosWorkflow.appliesToHostPlatform, false); expect(iosWorkflow.canLaunchDevices, false); expect(iosWorkflow.canListDevices, false); }); testWithoutContext('iOS workflow is disabled on windows', () { final IOSWorkflow iosWorkflow = IOSWorkflow( platform: FakePlatform(operatingSystem: 'windows'), xcode: Xcode.test(processManager: FakeProcessManager.any()), featureFlags: TestFeatureFlags(), ); expect(iosWorkflow.appliesToHostPlatform, false); expect(iosWorkflow.canLaunchDevices, false); expect(iosWorkflow.canListDevices, false); }); testWithoutContext('iOS workflow applies on macOS, no Xcode or simctl', () { final FakeProcessManager xcodeProcessManager = FakeProcessManager.list(<FakeCommand>[ const FakeCommand( command: <String>[ 'xcrun', 'simctl', 'list', 'devices', 'booted', ], exitCode: 1, ), ]); final IOSWorkflow iosWorkflow = IOSWorkflow( platform: FakePlatform(operatingSystem: 'macos'), xcode: Xcode.test(processManager: xcodeProcessManager, xcodeProjectInterpreter: XcodeProjectInterpreter.test( processManager: FakeProcessManager.any(), version: null, ), ), featureFlags: TestFeatureFlags(), ); expect(iosWorkflow.appliesToHostPlatform, true); expect(iosWorkflow.canLaunchDevices, false); expect(iosWorkflow.canListDevices, false); expect(iosWorkflow.canListEmulators, false); expect(xcodeProcessManager, hasNoRemainingExpectations); }); testWithoutContext('iOS workflow can list devices even when Xcode version is too low', () { final Xcode xcode = Xcode.test( processManager: FakeProcessManager.any(), xcodeProjectInterpreter: XcodeProjectInterpreter.test( processManager: FakeProcessManager.any(), version: Version(1, 0, 0) ), ); final IOSWorkflow iosWorkflow = IOSWorkflow( platform: FakePlatform(operatingSystem: 'macos'), xcode: xcode, featureFlags: TestFeatureFlags(), ); // Make sure we're testing the right Xcode state. // expect(xcode.isInstalledAndMeetsVersionCheck, true); expect(xcode.isSimctlInstalled, true); expect(iosWorkflow.canLaunchDevices, false); expect(iosWorkflow.canListDevices, true); expect(iosWorkflow.canListEmulators, false); }); testWithoutContext('iOS workflow can launch devices when Xcode is set up', () { final Xcode xcode = Xcode.test( processManager: FakeProcessManager.any(), xcodeProjectInterpreter: XcodeProjectInterpreter.test( processManager: FakeProcessManager.any(), version: Version(1000, 0, 0) ), ); final IOSWorkflow iosWorkflow = IOSWorkflow( platform: FakePlatform(operatingSystem: 'macos'), xcode: xcode, featureFlags: TestFeatureFlags(), ); // Make sure we're testing the right Xcode state. expect(xcode.isInstalledAndMeetsVersionCheck, true); expect(xcode.isSimctlInstalled, true); expect(iosWorkflow.canLaunchDevices, true); expect(iosWorkflow.canListDevices, true); expect(iosWorkflow.canListEmulators, false); }); }
flutter/packages/flutter_tools/test/general.shard/ios/ios_workflow_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/ios/ios_workflow_test.dart", "repo_id": "flutter", "token_count": 1613 }
850
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/file.dart'; import 'package:file/memory.dart'; import 'package:file_testing/file_testing.dart'; import 'package:flutter_tools/src/artifacts.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/build_info.dart'; import 'package:flutter_tools/src/build_system/build_system.dart'; import 'package:flutter_tools/src/dart/package_map.dart'; import 'package:flutter_tools/src/features.dart'; import 'package:flutter_tools/src/globals.dart' as globals; import 'package:flutter_tools/src/isolated/native_assets/native_assets.dart'; import 'package:flutter_tools/src/isolated/native_assets/windows/native_assets.dart'; import 'package:native_assets_cli/native_assets_cli_internal.dart' hide BuildMode, Target; import 'package:native_assets_cli/native_assets_cli_internal.dart' as native_assets_cli; import 'package:package_config/package_config_types.dart'; import '../../../src/common.dart'; import '../../../src/context.dart'; import '../../../src/fakes.dart'; import '../fake_native_assets_build_runner.dart'; void main() { late FakeProcessManager processManager; late Environment environment; late Artifacts artifacts; late FileSystem fileSystem; late BufferLogger logger; late Uri projectUri; setUp(() { processManager = FakeProcessManager.empty(); logger = BufferLogger.test(); artifacts = Artifacts.test(); fileSystem = MemoryFileSystem.test(style: FileSystemStyle.windows); environment = Environment.test( fileSystem.currentDirectory, inputs: <String, String>{}, artifacts: artifacts, processManager: processManager, fileSystem: fileSystem, logger: logger, ); environment.buildDir.createSync(recursive: true); projectUri = environment.projectDir.uri; }); testUsingContext('dry run with no package config', overrides: <Type, Generator>{ ProcessManager: () => FakeProcessManager.empty(), }, () async { expect( await dryRunNativeAssetsWindows( projectUri: projectUri, fileSystem: fileSystem, buildRunner: FakeNativeAssetsBuildRunner( hasPackageConfigResult: false, ), ), null, ); expect( (globals.logger as BufferLogger).traceText, contains('No package config found. Skipping native assets compilation.'), ); }); testUsingContext('build with no package config', overrides: <Type, Generator>{ ProcessManager: () => FakeProcessManager.empty(), }, () async { await buildNativeAssetsWindows( projectUri: projectUri, buildMode: BuildMode.debug, fileSystem: fileSystem, buildRunner: FakeNativeAssetsBuildRunner( hasPackageConfigResult: false, ), ); expect( (globals.logger as BufferLogger).traceText, contains('No package config found. Skipping native assets compilation.'), ); }); testUsingContext('dry run for multiple OSes with no package config', overrides: <Type, Generator>{ ProcessManager: () => FakeProcessManager.empty(), }, () async { await dryRunNativeAssetsMultipleOSes( projectUri: projectUri, fileSystem: fileSystem, targetPlatforms: <TargetPlatform>[ TargetPlatform.windows_x64, ], buildRunner: FakeNativeAssetsBuildRunner( hasPackageConfigResult: false, ), ); expect( (globals.logger as BufferLogger).traceText, contains('No package config found. Skipping native assets compilation.'), ); }); testUsingContext('dry run with assets but not enabled', overrides: <Type, Generator>{ ProcessManager: () => FakeProcessManager.empty(), }, () async { final File packageConfig = environment.projectDir.childFile('.dart_tool/package_config.json'); await packageConfig.parent.create(); await packageConfig.create(); expect( () => dryRunNativeAssetsWindows( projectUri: projectUri, fileSystem: fileSystem, buildRunner: FakeNativeAssetsBuildRunner( packagesWithNativeAssetsResult: <Package>[ Package('bar', projectUri), ], ), ), throwsToolExit( message: 'Package(s) bar require the native assets feature to be enabled. ' 'Enable using `flutter config --enable-native-assets`.', ), ); }); testUsingContext('dry run with assets', overrides: <Type, Generator>{ FeatureFlags: () => TestFeatureFlags(isNativeAssetsEnabled: true), ProcessManager: () => FakeProcessManager.empty(), }, () async { final File packageConfig = environment.projectDir.childFile('.dart_tool/package_config.json'); await packageConfig.parent.create(); await packageConfig.create(); final Uri? nativeAssetsYaml = await dryRunNativeAssetsWindows( projectUri: projectUri, fileSystem: fileSystem, buildRunner: FakeNativeAssetsBuildRunner( packagesWithNativeAssetsResult: <Package>[ Package('bar', projectUri), ], dryRunResult: FakeNativeAssetsBuilderResult( assets: <Asset>[ Asset( id: 'package:bar/bar.dart', linkMode: LinkMode.dynamic, target: native_assets_cli.Target.windowsX64, path: AssetAbsolutePath(Uri.file('bar.dll')), ), ], ), ), ); expect( (globals.logger as BufferLogger).traceText, stringContainsInOrder(<String>[ 'Dry running native assets for windows.', 'Dry running native assets for windows done.', ]), ); expect( nativeAssetsYaml, projectUri.resolve('build/native_assets/windows/native_assets.yaml'), ); expect( await fileSystem.file(nativeAssetsYaml).readAsString(), contains('package:bar/bar.dart'), ); }); testUsingContext('build with assets but not enabled', overrides: <Type, Generator>{ ProcessManager: () => FakeProcessManager.empty(), }, () async { final File packageConfig = environment.projectDir.childFile('.dart_tool/package_config.json'); await packageConfig.parent.create(); await packageConfig.create(); expect( () => buildNativeAssetsWindows( projectUri: projectUri, buildMode: BuildMode.debug, fileSystem: fileSystem, buildRunner: FakeNativeAssetsBuildRunner( packagesWithNativeAssetsResult: <Package>[ Package('bar', projectUri), ], ), ), throwsToolExit( message: 'Package(s) bar require the native assets feature to be enabled. ' 'Enable using `flutter config --enable-native-assets`.', ), ); }); testUsingContext('build no assets', overrides: <Type, Generator>{ FeatureFlags: () => TestFeatureFlags(isNativeAssetsEnabled: true), ProcessManager: () => FakeProcessManager.empty(), }, () async { final File packageConfig = environment.projectDir.childFile('.dart_tool/package_config.json'); await packageConfig.parent.create(); await packageConfig.create(); final (Uri? nativeAssetsYaml, _) = await buildNativeAssetsWindows( targetPlatform: TargetPlatform.windows_x64, projectUri: projectUri, buildMode: BuildMode.debug, fileSystem: fileSystem, buildRunner: FakeNativeAssetsBuildRunner( packagesWithNativeAssetsResult: <Package>[ Package('bar', projectUri), ], ), ); expect( nativeAssetsYaml, projectUri.resolve('build/native_assets/windows/native_assets.yaml'), ); expect( await fileSystem.file(nativeAssetsYaml).readAsString(), isNot(contains('package:bar/bar.dart')), ); expect( environment.projectDir.childDirectory('build').childDirectory('native_assets').childDirectory('windows'), exists, ); }); for (final bool flutterTester in <bool>[false, true]) { String testName = ''; if (flutterTester) { testName += ' flutter tester'; } testUsingContext('build with assets$testName', overrides: <Type, Generator>{ FeatureFlags: () => TestFeatureFlags(isNativeAssetsEnabled: true), ProcessManager: () => FakeProcessManager.empty(), }, () async { final File packageConfig = environment.projectDir.childDirectory('.dart_tool').childFile('package_config.json'); await packageConfig.parent.create(); await packageConfig.create(); final File dylibAfterCompiling = fileSystem.file('bar.dll'); // The mock doesn't create the file, so create it here. await dylibAfterCompiling.create(); final (Uri? nativeAssetsYaml, _) = await buildNativeAssetsWindows( targetPlatform: TargetPlatform.windows_x64, projectUri: projectUri, buildMode: BuildMode.debug, fileSystem: fileSystem, flutterTester: flutterTester, buildRunner: FakeNativeAssetsBuildRunner( packagesWithNativeAssetsResult: <Package>[ Package('bar', projectUri), ], buildResult: FakeNativeAssetsBuilderResult( assets: <Asset>[ Asset( id: 'package:bar/bar.dart', linkMode: LinkMode.dynamic, target: native_assets_cli.Target.windowsX64, path: AssetAbsolutePath(dylibAfterCompiling.uri), ), ], ), ), ); expect( (globals.logger as BufferLogger).traceText, stringContainsInOrder(<String>[ 'Building native assets for windows_x64 debug.', 'Building native assets for windows_x64 done.', ]), ); expect( nativeAssetsYaml, projectUri.resolve('build/native_assets/windows/native_assets.yaml'), ); expect( await fileSystem.file(nativeAssetsYaml).readAsString(), stringContainsInOrder(<String>[ 'package:bar/bar.dart', if (flutterTester) // Tests run on host system, so the have the full path on the system. '- ${projectUri.resolve('build/native_assets/windows/bar.dll').toFilePath()}' else // Apps are a bundle with the dylibs on their dlopen path. '- bar.dll', ]), ); }); } testUsingContext('static libs not supported', overrides: <Type, Generator>{ FeatureFlags: () => TestFeatureFlags(isNativeAssetsEnabled: true), ProcessManager: () => FakeProcessManager.empty(), }, () async { final File packageConfig = environment.projectDir.childFile('.dart_tool/package_config.json'); await packageConfig.parent.create(); await packageConfig.create(); expect( () => dryRunNativeAssetsWindows( projectUri: projectUri, fileSystem: fileSystem, buildRunner: FakeNativeAssetsBuildRunner( packagesWithNativeAssetsResult: <Package>[ Package('bar', projectUri), ], dryRunResult: FakeNativeAssetsBuilderResult( assets: <Asset>[ Asset( id: 'package:bar/bar.dart', linkMode: LinkMode.static, target: native_assets_cli.Target.windowsX64, path: AssetAbsolutePath(Uri.file(OS.windows.staticlibFileName('bar'))), ), ], ), ), ), throwsToolExit( message: 'Native asset(s) package:bar/bar.dart have their link mode set to ' 'static, but this is not yet supported. ' 'For more info see https://github.com/dart-lang/sdk/issues/49418.', ), ); }); testUsingContext('Native assets dry run error', overrides: <Type, Generator>{ FeatureFlags: () => TestFeatureFlags(isNativeAssetsEnabled: true), ProcessManager: () => FakeProcessManager.empty(), }, () async { final File packageConfig = environment.projectDir.childFile('.dart_tool/package_config.json'); await packageConfig.parent.create(); await packageConfig.create(); expect( () => dryRunNativeAssetsWindows( projectUri: projectUri, fileSystem: fileSystem, buildRunner: FakeNativeAssetsBuildRunner( packagesWithNativeAssetsResult: <Package>[ Package('bar', projectUri), ], dryRunResult: const FakeNativeAssetsBuilderResult( success: false, ), ), ), throwsToolExit( message: 'Building native assets failed. See the logs for more details.', ), ); }); testUsingContext('Native assets build error', overrides: <Type, Generator>{ FeatureFlags: () => TestFeatureFlags(isNativeAssetsEnabled: true), ProcessManager: () => FakeProcessManager.empty(), }, () async { final File packageConfig = environment.projectDir.childFile('.dart_tool/package_config.json'); await packageConfig.parent.create(); await packageConfig.create(); expect( () => buildNativeAssetsWindows( targetPlatform: TargetPlatform.windows_x64, projectUri: projectUri, buildMode: BuildMode.debug, fileSystem: fileSystem, yamlParentDirectory: environment.buildDir.uri, buildRunner: FakeNativeAssetsBuildRunner( packagesWithNativeAssetsResult: <Package>[ Package('bar', projectUri), ], buildResult: const FakeNativeAssetsBuilderResult( success: false, ), ), ), throwsToolExit( message: 'Building native assets failed. See the logs for more details.', ), ); }); // This logic is mocked in the other tests to avoid having test order // randomization causing issues with what processes are invoked. // Exercise the parsing of the process output in this separate test. testUsingContext('NativeAssetsBuildRunnerImpl.cCompilerConfig', overrides: <Type, Generator>{ FeatureFlags: () => TestFeatureFlags(isNativeAssetsEnabled: true), ProcessManager: () => FakeProcessManager.list( <FakeCommand>[ FakeCommand( command: <Pattern>[ RegExp(r'(.*)vswhere.exe'), '-format', 'json', '-products', '*', '-utf8', '-latest', '-version', '16', '-requires', 'Microsoft.VisualStudio.Workload.NativeDesktop', 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64', 'Microsoft.VisualStudio.Component.VC.CMake.Project', ], stdout: r''' [ { "instanceId": "491ec752", "installDate": "2023-04-21T08:17:11Z", "installationName": "VisualStudio/17.5.4+33530.505", "installationPath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community", "installationVersion": "17.5.33530.505", "productId": "Microsoft.VisualStudio.Product.Community", "productPath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\devenv.exe", "state": 4294967295, "isComplete": true, "isLaunchable": true, "isPrerelease": false, "isRebootRequired": false, "displayName": "Visual Studio Community 2022", "description": "Powerful IDE, free for students, open-source contributors, and individuals", "channelId": "VisualStudio.17.Release", "channelUri": "https://aka.ms/vs/17/release/channel", "enginePath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\resources\\app\\ServiceHub\\Services\\Microsoft.VisualStudio.Setup.Service", "installedChannelId": "VisualStudio.17.Release", "installedChannelUri": "https://aka.ms/vs/17/release/channel", "releaseNotes": "https://docs.microsoft.com/en-us/visualstudio/releases/2022/release-notes-v17.5#17.5.4", "thirdPartyNotices": "https://go.microsoft.com/fwlink/?LinkId=661288", "updateDate": "2023-04-21T08:17:11.2249473Z", "catalog": { "buildBranch": "d17.5", "buildVersion": "17.5.33530.505", "id": "VisualStudio/17.5.4+33530.505", "localBuild": "build-lab", "manifestName": "VisualStudio", "manifestType": "installer", "productDisplayVersion": "17.5.4", "productLine": "Dev17", "productLineVersion": "2022", "productMilestone": "RTW", "productMilestoneIsPreRelease": "False", "productName": "Visual Studio", "productPatchVersion": "4", "productPreReleaseMilestoneSuffix": "1.0", "productSemanticVersion": "17.5.4+33530.505", "requiredEngineVersion": "3.5.2150.18781" }, "properties": { "campaignId": "2060:abb99c5d1ecc4013acf2e1814b10b690", "channelManifestId": "VisualStudio.17.Release/17.5.4+33530.505", "nickname": "", "setupEngineFilePath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\setup.exe" } } ] ''', // Newline at the end of the string. ) ], ), FileSystem: () => fileSystem, }, () async { if (!const LocalPlatform().isWindows) { return; } final Directory msvcBinDir = fileSystem.directory(r'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\bin\Hostx64\x64'); await msvcBinDir.create(recursive: true); final File packagesFile = fileSystem .directory(projectUri) .childDirectory('.dart_tool') .childFile('package_config.json'); await packagesFile.parent.create(); await packagesFile.create(); final PackageConfig packageConfig = await loadPackageConfigWithLogging( packagesFile, logger: environment.logger, ); final NativeAssetsBuildRunner runner = NativeAssetsBuildRunnerImpl( projectUri, packageConfig, fileSystem, logger, ); final CCompilerConfig result = await runner.cCompilerConfig; expect(result.cc?.toFilePath(), msvcBinDir.childFile('cl.exe').uri.toFilePath()); expect(result.ar?.toFilePath(), msvcBinDir.childFile('lib.exe').uri.toFilePath()); expect(result.ld?.toFilePath(), msvcBinDir.childFile('link.exe').uri.toFilePath()); expect(result.envScript, isNotNull); expect(result.envScriptArgs, isNotNull); }); }
flutter/packages/flutter_tools/test/general.shard/isolated/windows/native_assets_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/isolated/windows/native_assets_test.dart", "repo_id": "flutter", "token_count": 7344 }
851
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/file.dart'; import 'package:file/memory.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/base/terminal.dart'; import 'package:flutter_tools/src/cmake_project.dart'; import 'package:flutter_tools/src/migrations/cmake_custom_command_migration.dart'; import 'package:flutter_tools/src/migrations/cmake_native_assets_migration.dart'; import 'package:test/fake.dart'; import '../../src/common.dart'; void main () { group('CMake project migration', () { group('migrate add_custom_command() to use VERBATIM', () { late MemoryFileSystem memoryFileSystem; late BufferLogger testLogger; late FakeCmakeProject mockCmakeProject; late File managedCmakeFile; setUp(() { memoryFileSystem = MemoryFileSystem.test(); managedCmakeFile = memoryFileSystem.file('CMakeLists.txtx'); testLogger = BufferLogger( terminal: Terminal.test(), outputPreferences: OutputPreferences.test(), ); mockCmakeProject = FakeCmakeProject(managedCmakeFile); }); testWithoutContext('skipped if files are missing', () { final CmakeCustomCommandMigration cmakeProjectMigration = CmakeCustomCommandMigration( mockCmakeProject, testLogger, ); cmakeProjectMigration.migrate(); expect(managedCmakeFile.existsSync(), isFalse); expect(testLogger.traceText, contains('CMake project not found, skipping add_custom_command() VERBATIM migration')); expect(testLogger.statusText, isEmpty); }); testWithoutContext('skipped if nothing to migrate', () { const String contents = 'Nothing to migrate'; managedCmakeFile.writeAsStringSync(contents); final DateTime projectLastModified = managedCmakeFile.lastModifiedSync(); final CmakeCustomCommandMigration cmakeProjectMigration = CmakeCustomCommandMigration( mockCmakeProject, testLogger, ); cmakeProjectMigration.migrate(); expect(managedCmakeFile.lastModifiedSync(), projectLastModified); expect(managedCmakeFile.readAsStringSync(), contents); expect(testLogger.statusText, isEmpty); }); testWithoutContext('skipped if already migrated', () { const String contents = r''' add_custom_command( OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} ${CMAKE_CURRENT_BINARY_DIR}/_phony_ COMMAND ${CMAKE_COMMAND} -E env ${FLUTTER_TOOL_ENVIRONMENT} "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh" ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE} VERBATIM ) '''; managedCmakeFile.writeAsStringSync(contents); final DateTime projectLastModified = managedCmakeFile.lastModifiedSync(); final CmakeCustomCommandMigration cmakeProjectMigration = CmakeCustomCommandMigration( mockCmakeProject, testLogger, ); cmakeProjectMigration.migrate(); expect(managedCmakeFile.lastModifiedSync(), projectLastModified); expect(managedCmakeFile.readAsStringSync(), contents); expect(testLogger.statusText, isEmpty); }); testWithoutContext('is migrated to use VERBATIM', () { managedCmakeFile.writeAsStringSync(r''' add_custom_command( OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} ${CMAKE_CURRENT_BINARY_DIR}/_phony_ COMMAND ${CMAKE_COMMAND} -E env ${FLUTTER_TOOL_ENVIRONMENT} "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh" ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE} ) '''); final CmakeCustomCommandMigration cmakeProjectMigration = CmakeCustomCommandMigration( mockCmakeProject, testLogger, ); cmakeProjectMigration.migrate(); expect(managedCmakeFile.readAsStringSync(), r''' add_custom_command( OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} ${CMAKE_CURRENT_BINARY_DIR}/_phony_ COMMAND ${CMAKE_COMMAND} -E env ${FLUTTER_TOOL_ENVIRONMENT} "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh" ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE} VERBATIM ) '''); expect(testLogger.statusText, contains('add_custom_command() missing VERBATIM or FLUTTER_TARGET_PLATFORM, updating.')); }); testWithoutContext('is migrated to use FLUTTER_TARGET_PLATFORM', () { managedCmakeFile.writeAsStringSync(r''' add_custom_command( OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} ${CMAKE_CURRENT_BINARY_DIR}/_phony_ COMMAND ${CMAKE_COMMAND} -E env ${FLUTTER_TOOL_ENVIRONMENT} "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh" linux-x64 ${CMAKE_BUILD_TYPE} VERBATIM ) '''); final CmakeCustomCommandMigration cmakeProjectMigration = CmakeCustomCommandMigration( mockCmakeProject, testLogger, ); cmakeProjectMigration.migrate(); expect(managedCmakeFile.readAsStringSync(), r''' add_custom_command( OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} ${CMAKE_CURRENT_BINARY_DIR}/_phony_ COMMAND ${CMAKE_COMMAND} -E env ${FLUTTER_TOOL_ENVIRONMENT} "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh" ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE} VERBATIM ) '''); expect(testLogger.statusText, contains('add_custom_command() missing VERBATIM or FLUTTER_TARGET_PLATFORM, updating.')); }); }); group('migrate add install() NATIVE_ASSETS_DIR command', () { late MemoryFileSystem memoryFileSystem; late BufferLogger testLogger; late FakeCmakeProject mockCmakeProject; late File managedCmakeFile; setUp(() { memoryFileSystem = MemoryFileSystem.test(); managedCmakeFile = memoryFileSystem.file('CMakeLists.txtx'); testLogger = BufferLogger( terminal: Terminal.test(), outputPreferences: OutputPreferences.test(), ); mockCmakeProject = FakeCmakeProject(managedCmakeFile); }); testWithoutContext('skipped if files are missing', () { final CmakeNativeAssetsMigration cmakeProjectMigration = CmakeNativeAssetsMigration( mockCmakeProject, 'linux', testLogger, ); cmakeProjectMigration.migrate(); expect(managedCmakeFile.existsSync(), isFalse); expect(testLogger.traceText, contains('CMake project not found, skipping install() NATIVE_ASSETS_DIR migration.')); expect(testLogger.statusText, isEmpty); }); testWithoutContext('skipped if nothing to migrate', () { const String contents = 'Nothing to migrate'; managedCmakeFile.writeAsStringSync(contents); final DateTime projectLastModified = managedCmakeFile.lastModifiedSync(); final CmakeNativeAssetsMigration cmakeProjectMigration = CmakeNativeAssetsMigration( mockCmakeProject, 'linux', testLogger, ); cmakeProjectMigration.migrate(); expect(managedCmakeFile.lastModifiedSync(), projectLastModified); expect(managedCmakeFile.readAsStringSync(), contents); expect(testLogger.statusText, isEmpty); }); testWithoutContext('skipped if already migrated', () { const String contents = r''' # Copy the native assets provided by the build.dart from all packages. set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/linux/") install(DIRECTORY "${NATIVE_ASSETS_DIR}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" COMPONENT Runtime) '''; managedCmakeFile.writeAsStringSync(contents); final DateTime projectLastModified = managedCmakeFile.lastModifiedSync(); final CmakeNativeAssetsMigration cmakeProjectMigration = CmakeNativeAssetsMigration( mockCmakeProject, 'linux', testLogger, ); cmakeProjectMigration.migrate(); expect(managedCmakeFile.lastModifiedSync(), projectLastModified); expect(managedCmakeFile.readAsStringSync(), contents); expect(testLogger.statusText, isEmpty); }); for (final String os in <String>['linux', 'windows']) { testWithoutContext('is migrated to copy native assets', () { managedCmakeFile.writeAsStringSync(r''' foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES}) install(FILES "${bundled_library}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" COMPONENT Runtime) endforeach(bundled_library) # Fully re-copy the assets directory on each build to avoid having stale files # from a previous install. set(FLUTTER_ASSET_DIR_NAME "flutter_assets") install(CODE " file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") " COMPONENT Runtime) install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) '''); final CmakeNativeAssetsMigration cmakeProjectMigration = CmakeNativeAssetsMigration( mockCmakeProject, os, testLogger, ); cmakeProjectMigration.migrate(); expect(managedCmakeFile.readAsStringSync(), ''' foreach(bundled_library \${PLUGIN_BUNDLED_LIBRARIES}) install(FILES "\${bundled_library}" DESTINATION "\${INSTALL_BUNDLE_LIB_DIR}" COMPONENT Runtime) endforeach(bundled_library) # Copy the native assets provided by the build.dart from all packages. set(NATIVE_ASSETS_DIR "\${PROJECT_BUILD_DIR}native_assets/$os/") install(DIRECTORY "\${NATIVE_ASSETS_DIR}" DESTINATION "\${INSTALL_BUNDLE_LIB_DIR}" COMPONENT Runtime) # Fully re-copy the assets directory on each build to avoid having stale files # from a previous install. set(FLUTTER_ASSET_DIR_NAME "flutter_assets") install(CODE " file(REMOVE_RECURSE \\"\${INSTALL_BUNDLE_DATA_DIR}/\${FLUTTER_ASSET_DIR_NAME}\\") " COMPONENT Runtime) install(DIRECTORY "\${PROJECT_BUILD_DIR}/\${FLUTTER_ASSET_DIR_NAME}" DESTINATION "\${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) '''); expect(testLogger.statusText, contains('CMake missing install() NATIVE_ASSETS_DIR command, updating.')); }); } }); }); } class FakeCmakeProject extends Fake implements CmakeBasedProject { FakeCmakeProject(this.managedCmakeFile); @override final File managedCmakeFile; }
flutter/packages/flutter_tools/test/general.shard/migrations/cmake_project_migration_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/migrations/cmake_project_migration_test.dart", "repo_id": "flutter", "token_count": 4202 }
852
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'package:dds/dds.dart' as dds; import 'package:flutter_tools/src/application_package.dart'; import 'package:flutter_tools/src/asset.dart'; import 'package:flutter_tools/src/base/dds.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/build_info.dart'; import 'package:flutter_tools/src/build_system/tools/scene_importer.dart'; import 'package:flutter_tools/src/build_system/tools/shader_compiler.dart'; import 'package:flutter_tools/src/compile.dart'; import 'package:flutter_tools/src/devfs.dart'; import 'package:flutter_tools/src/device.dart'; import 'package:flutter_tools/src/device_port_forwarder.dart'; import 'package:flutter_tools/src/project.dart'; import 'package:flutter_tools/src/resident_runner.dart'; import 'package:flutter_tools/src/run_cold.dart'; import 'package:flutter_tools/src/run_hot.dart'; import 'package:flutter_tools/src/vmservice.dart'; import 'package:package_config/package_config.dart'; import 'package:test/fake.dart'; import 'package:vm_service/vm_service.dart' as vm_service; import '../src/fake_vm_services.dart'; final vm_service.Event fakeUnpausedEvent = vm_service.Event( kind: vm_service.EventKind.kResume, timestamp: 0 ); final vm_service.Event fakePausedEvent = vm_service.Event( kind: vm_service.EventKind.kPauseException, timestamp: 0 ); final vm_service.Isolate fakeUnpausedIsolate = vm_service.Isolate( id: '1', pauseEvent: fakeUnpausedEvent, breakpoints: <vm_service.Breakpoint>[], extensionRPCs: <String>[], libraries: <vm_service.LibraryRef>[ vm_service.LibraryRef( id: '1', uri: 'file:///hello_world/main.dart', name: '', ), ], livePorts: 0, name: 'test', number: '1', pauseOnExit: false, runnable: true, startTime: 0, isSystemIsolate: false, isolateFlags: <vm_service.IsolateFlag>[], ); final vm_service.Isolate fakePausedIsolate = vm_service.Isolate( id: '1', pauseEvent: fakePausedEvent, breakpoints: <vm_service.Breakpoint>[ vm_service.Breakpoint( breakpointNumber: 123, id: 'test-breakpoint', location: vm_service.SourceLocation( tokenPos: 0, script: vm_service.ScriptRef(id: 'test-script', uri: 'foo.dart'), ), enabled: true, resolved: true, ), ], libraries: <vm_service.LibraryRef>[], livePorts: 0, name: 'test', number: '1', pauseOnExit: false, runnable: true, startTime: 0, isSystemIsolate: false, isolateFlags: <vm_service.IsolateFlag>[], ); final vm_service.VM fakeVM = vm_service.VM( isolates: <vm_service.IsolateRef>[fakeUnpausedIsolate], pid: 1, hostCPU: '', isolateGroups: <vm_service.IsolateGroupRef>[], targetCPU: '', startTime: 0, name: 'dart', architectureBits: 64, operatingSystem: '', version: '', systemIsolateGroups: <vm_service.IsolateGroupRef>[], systemIsolates: <vm_service.IsolateRef>[], ); final FlutterView fakeFlutterView = FlutterView( id: 'a', uiIsolate: fakeUnpausedIsolate, ); final FakeVmServiceRequest listViews = FakeVmServiceRequest( method: kListViewsMethod, jsonResponse: <String, Object>{ 'views': <Object>[ fakeFlutterView.toJson(), ], }, ); const FakeVmServiceRequest renderFrameRasterStats = FakeVmServiceRequest( method: kRenderFrameWithRasterStatsMethod, args: <String, Object>{ 'viewId': 'a', 'isolateId': '1', }, error: FakeRPCError( code: RPCErrorCodes.kServerError, error: 'Raster status not supported on Impeller backend', ), ); const FakeVmServiceRequest setAssetBundlePath = FakeVmServiceRequest( method: '_flutter.setAssetBundlePath', args: <String, Object>{ 'viewId': 'a', 'assetDirectory': 'build/flutter_assets', 'isolateId': '1', } ); const FakeVmServiceRequest evict = FakeVmServiceRequest( method: 'ext.flutter.evict', args: <String, Object>{ 'value': 'asset', 'isolateId': '1', } ); const FakeVmServiceRequest evictShader = FakeVmServiceRequest( method: 'ext.ui.window.reinitializeShader', args: <String, Object>{ 'assetKey': 'foo.frag', 'isolateId': '1', } ); final Uri testUri = Uri.parse('foo://bar'); // This implements [dds.DartDevelopmentService], not the [DartDevelopmentService] // interface from package:flutter_tools. class FakeDartDevelopmentService extends Fake implements dds.DartDevelopmentService { @override Future<void> get done => Future<void>.value(); @override Uri? get uri => null; } class FakeDartDevelopmentServiceException implements dds.DartDevelopmentServiceException { FakeDartDevelopmentServiceException({this.message = defaultMessage}); @override final int errorCode = dds.DartDevelopmentServiceException.existingDdsInstanceError; @override final String message; static const String defaultMessage = 'A DDS instance is already connected at http://localhost:8181'; } class TestFlutterDevice extends FlutterDevice { TestFlutterDevice(super.device, { Stream<Uri>? vmServiceUris }) : _vmServiceUris = vmServiceUris, super(buildInfo: BuildInfo.debug, developmentShaderCompiler: const FakeShaderCompiler()); final Stream<Uri>? _vmServiceUris; @override Stream<Uri> get vmServiceUris => _vmServiceUris!; } class ThrowingForwardingFileSystem extends ForwardingFileSystem { ThrowingForwardingFileSystem(super.delegate); @override File file(dynamic path) { if (path == 'foo') { throw const FileSystemException(); } return delegate.file(path); } } class FakeFlutterDevice extends Fake implements FlutterDevice { FakeVmServiceHost? Function()? vmServiceHost; Uri? testUri; UpdateFSReport report = UpdateFSReport( success: true, invalidatedSourcesCount: 1, ); Exception? reportError; Exception? runColdError; int runHotCode = 0; int runColdCode = 0; @override ResidentCompiler? generator; @override DevelopmentShaderCompiler get developmentShaderCompiler => const FakeShaderCompiler(); @override TargetPlatform targetPlatform = TargetPlatform.android; @override Stream<Uri?> get vmServiceUris => Stream<Uri?>.value(testUri); @override FlutterVmService? get vmService => vmServiceHost?.call()?.vmService; DevFS? fakeDevFS; @override DevFS? get devFS => fakeDevFS; @override set devFS(DevFS? value) { } @override Device? device; @override Future<void> stopEchoingDeviceLog() async { } @override Future<void> initLogReader() async { } @override Future<Uri> setupDevFS(String fsName, Directory rootDirectory) async { return testUri!; } @override Future<int> runHot({required HotRunner hotRunner, String? route}) async { return runHotCode; } @override Future<int> runCold({required ColdRunner coldRunner, String? route}) async { if (runColdError != null) { throw runColdError!; } return runColdCode; } @override Future<void> connect({ ReloadSources? reloadSources, Restart? restart, CompileExpression? compileExpression, GetSkSLMethod? getSkSLMethod, FlutterProject? flutterProject, PrintStructuredErrorLogMethod? printStructuredErrorLogMethod, int? hostVmServicePort, int? ddsPort, bool disableServiceAuthCodes = false, bool enableDds = true, bool cacheStartupProfile = false, required bool allowExistingDdsInstance, bool ipv6 = false, }) async { } @override Future<UpdateFSReport> updateDevFS({ required Uri mainUri, String? target, AssetBundle? bundle, bool bundleFirstUpload = false, bool bundleDirty = false, bool fullRestart = false, String? projectRootPath, required String pathToReload, required String dillOutputPath, required List<Uri> invalidatedFiles, required PackageConfig packageConfig, }) async { if (reportError != null) { throw reportError!; } return report; } @override Future<void> updateReloadStatus(bool wasReloadSuccessful) async { } } class FakeDelegateFlutterDevice extends FlutterDevice { FakeDelegateFlutterDevice( super.device, BuildInfo buildInfo, ResidentCompiler residentCompiler, this.fakeDevFS, ) : super(buildInfo: buildInfo, generator: residentCompiler, developmentShaderCompiler: const FakeShaderCompiler()); @override Future<void> connect({ ReloadSources? reloadSources, Restart? restart, bool enableDds = true, bool cacheStartupProfile = false, bool disableServiceAuthCodes = false, bool ipv6 = false, CompileExpression? compileExpression, GetSkSLMethod? getSkSLMethod, FlutterProject? flutterProject, int? hostVmServicePort, int? ddsPort, PrintStructuredErrorLogMethod? printStructuredErrorLogMethod, bool allowExistingDdsInstance = false, }) async { } final DevFS fakeDevFS; @override DevFS? get devFS => fakeDevFS; @override set devFS(DevFS? value) {} } class FakeResidentCompiler extends Fake implements ResidentCompiler { CompilerOutput? nextOutput; bool didSuppressErrors = false; Uri? receivedNativeAssetsYaml; bool recompileCalled = false; @override Future<CompilerOutput?> recompile( Uri mainUri, List<Uri>? invalidatedFiles, { required String outputPath, required PackageConfig packageConfig, String? projectRootPath, required FileSystem fs, bool suppressErrors = false, bool checkDartPluginRegistry = false, File? dartPluginRegistrant, Uri? nativeAssetsYaml, }) async { recompileCalled = true; receivedNativeAssetsYaml = nativeAssetsYaml; didSuppressErrors = suppressErrors; return nextOutput ?? const CompilerOutput('foo.dill', 0, <Uri>[]); } @override void accept() { } @override void reset() { } } class FakeProjectFileInvalidator extends Fake implements ProjectFileInvalidator { @override Future<InvalidationResult> findInvalidated({ required DateTime? lastCompiled, required List<Uri> urisToMonitor, required String packagesPath, required PackageConfig packageConfig, bool asyncScanning = false, }) async { return InvalidationResult( packageConfig: packageConfig, uris: <Uri>[Uri.parse('file:///hello_world/main.dart'), ]); } } class FakeDevice extends Fake implements Device { FakeDevice({ String sdkNameAndVersion = 'Android', TargetPlatform targetPlatform = TargetPlatform.android_arm, bool isLocalEmulator = false, this.supportsHotRestart = true, this.supportsScreenshot = true, this.supportsFlutterExit = true, }) : _isLocalEmulator = isLocalEmulator, _targetPlatform = targetPlatform, _sdkNameAndVersion = sdkNameAndVersion; final bool _isLocalEmulator; final TargetPlatform _targetPlatform; final String _sdkNameAndVersion; bool disposed = false; bool appStopped = false; bool failScreenshot = false; @override bool supportsHotRestart; @override bool supportsScreenshot; @override bool supportsFlutterExit; @override PlatformType get platformType => _targetPlatform == TargetPlatform.web_javascript ? PlatformType.web : PlatformType.android; @override Future<String> get sdkNameAndVersion async => _sdkNameAndVersion; @override Future<TargetPlatform> get targetPlatform async => _targetPlatform; @override Future<bool> get isLocalEmulator async => _isLocalEmulator; @override String get name => 'FakeDevice'; @override late DartDevelopmentService dds; @override Future<void> dispose() async { disposed = true; } @override Future<bool> stopApp(ApplicationPackage? app, {String? userIdentifier}) async { appStopped = true; return true; } @override Future<void> takeScreenshot(File outputFile) async { if (failScreenshot) { throw Exception(); } outputFile.writeAsBytesSync(List<int>.generate(1024, (int i) => i)); } @override FutureOr<DeviceLogReader> getLogReader({ ApplicationPackage? app, bool includePastLogs = false, }) => NoOpDeviceLogReader(name); @override DevicePortForwarder portForwarder = const NoOpDevicePortForwarder(); } class FakeDevFS extends Fake implements DevFS { @override DateTime? lastCompiled = DateTime(2000); @override PackageConfig? lastPackageConfig = PackageConfig.empty; @override List<Uri> sources = <Uri>[]; @override Uri baseUri = Uri(); @override Future<void> destroy() async { } @override Set<String> assetPathsToEvict = <String>{}; @override Set<String> shaderPathsToEvict = <String>{}; @override Set<String> scenePathsToEvict = <String>{}; @override bool didUpdateFontManifest = false; UpdateFSReport nextUpdateReport = UpdateFSReport(success: true); @override bool hasSetAssetDirectory = false; @override Future<Uri> create() async { return Uri(); } @override void resetLastCompiled() { lastCompiled = null; } @override Future<UpdateFSReport> update({ required Uri mainUri, required ResidentCompiler generator, required bool trackWidgetCreation, required String pathToReload, required List<Uri> invalidatedFiles, required PackageConfig packageConfig, required String dillOutputPath, required DevelopmentShaderCompiler shaderCompiler, DevelopmentSceneImporter? sceneImporter, DevFSWriter? devFSWriter, String? target, AssetBundle? bundle, bool bundleFirstUpload = false, bool fullRestart = false, String? projectRootPath, File? dartPluginRegistrant, }) async { return nextUpdateReport; } } class FakeShaderCompiler implements DevelopmentShaderCompiler { const FakeShaderCompiler(); @override void configureCompiler(TargetPlatform? platform) { } @override Future<DevFSContent> recompileShader(DevFSContent inputShader) { throw UnimplementedError(); } }
flutter/packages/flutter_tools/test/general.shard/resident_runner_helpers.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/resident_runner_helpers.dart", "repo_id": "flutter", "token_count": 4806 }
853
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/memory.dart'; import 'package:flutter_tools/src/artifacts.dart'; import 'package:flutter_tools/src/base/config.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/build_info.dart'; import 'package:flutter_tools/src/test/web_test_compiler.dart'; import 'package:flutter_tools/src/web/compile.dart'; import 'package:test/expect.dart'; import '../../src/context.dart'; void main() { testUsingContext('web test compiler issues valid compile command', () async { final BufferLogger logger = BufferLogger.test(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(); fileSystem.file('project/test/fake_test.dart').createSync(recursive: true); fileSystem.file('build/out').createSync(recursive: true); fileSystem.file('build/build/out.sources').createSync(recursive: true); fileSystem.file('build/build/out.json') ..createSync() ..writeAsStringSync('{}'); fileSystem.file('build/build/out.map').createSync(); fileSystem.file('build/build/out.metadata').createSync(); final FakePlatform platform = FakePlatform( environment: <String, String>{}, ); final Config config = Config( Config.kFlutterSettings, fileSystem: fileSystem, logger: logger, platform: platform, ); final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[ FakeCommand(command: <Pattern>[ 'Artifact.engineDartAotRuntime.TargetPlatform.web_javascript', '--disable-dart-dev', 'Artifact.frontendServerSnapshotForEngineDartSdk.TargetPlatform.web_javascript', '--sdk-root', 'HostArtifact.flutterWebSdk/', '--incremental', '--target=dartdevc', '--experimental-emit-debug-metadata', '-DFLUTTER_WEB_AUTO_DETECT=false', '-DFLUTTER_WEB_USE_SKIA=true', '--output-dill', 'build/out', '--packages', '.dart_tool/package_config.json', '-Ddart.vm.profile=false', '-Ddart.vm.product=false', '--enable-asserts', '--filesystem-root', 'project/test', '--filesystem-root', 'build', '--filesystem-scheme', 'org-dartlang-app', '--initialize-from-dill', RegExp(r'^build\/(?:[a-z0-9]{32})\.cache\.dill$'), '--platform', 'file:///HostArtifact.webPlatformKernelFolder/ddc_outline_sound.dill', '--verbosity=error', '--sound-null-safety' ], stdout: 'result abc\nline0\nline1\nabc\nabc build/out 0') ]); final WebTestCompiler compiler = WebTestCompiler( logger: logger, fileSystem: fileSystem, platform: FakePlatform( environment: <String, String>{}, ), artifacts: Artifacts.test(), processManager: processManager, config: config, ); const BuildInfo buildInfo = BuildInfo( BuildMode.debug, '', treeShakeIcons: false, ); await compiler.initialize( projectDirectory: fileSystem.directory('project'), testOutputDir: 'build', testFiles: <String>['project/test/fake_test.dart'], buildInfo: buildInfo, webRenderer: WebRendererMode.canvaskit, ); expect(processManager.hasRemainingExpectations, isFalse); }); }
flutter/packages/flutter_tools/test/general.shard/test/web_test_compiler_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/test/web_test_compiler_test.dart", "repo_id": "flutter", "token_count": 1441 }
854
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'package:file/memory.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/build_info.dart'; import 'package:flutter_tools/src/device.dart'; import 'package:flutter_tools/src/web/chrome.dart'; import 'package:flutter_tools/src/web/web_device.dart'; import '../../src/common.dart'; import '../../src/fake_process_manager.dart'; import '../../src/fakes.dart'; void main() { testWithoutContext('No web devices listed if feature is disabled', () async { final WebDevices webDevices = WebDevices( featureFlags: TestFeatureFlags(), fileSystem: MemoryFileSystem.test(), logger: BufferLogger.test(), platform: FakePlatform( environment: <String, String>{} ), processManager: FakeProcessManager.any(), ); expect(await webDevices.pollingGetDevices(), isEmpty); }); testWithoutContext('GoogleChromeDevice defaults', () async { final TestChromiumLauncher launcher = TestChromiumLauncher(); final GoogleChromeDevice chromeDevice = GoogleChromeDevice( chromiumLauncher: launcher, fileSystem: MemoryFileSystem.test(), logger: BufferLogger.test(), platform: FakePlatform(), processManager: FakeProcessManager.any(), ); expect(chromeDevice.name, 'Chrome'); expect(chromeDevice.id, 'chrome'); expect(chromeDevice.supportsHotReload, true); expect(chromeDevice.supportsHotRestart, true); expect(chromeDevice.supportsStartPaused, true); expect(chromeDevice.supportsFlutterExit, false); expect(chromeDevice.supportsScreenshot, false); expect(await chromeDevice.isLocalEmulator, false); expect(chromeDevice.getLogReader(), isA<NoOpDeviceLogReader>()); expect(chromeDevice.getLogReader(), isA<NoOpDeviceLogReader>()); expect(await chromeDevice.portForwarder!.forward(1), 1); expect(chromeDevice.supportsRuntimeMode(BuildMode.debug), true); expect(chromeDevice.supportsRuntimeMode(BuildMode.profile), true); expect(chromeDevice.supportsRuntimeMode(BuildMode.release), true); expect(chromeDevice.supportsRuntimeMode(BuildMode.jitRelease), false); }); testWithoutContext('MicrosoftEdge defaults', () async { final TestChromiumLauncher launcher = TestChromiumLauncher(); final MicrosoftEdgeDevice chromeDevice = MicrosoftEdgeDevice( chromiumLauncher: launcher, fileSystem: MemoryFileSystem.test(), logger: BufferLogger.test(), processManager: FakeProcessManager.any(), ); expect(chromeDevice.name, 'Edge'); expect(chromeDevice.id, 'edge'); expect(chromeDevice.supportsHotReload, true); expect(chromeDevice.supportsHotRestart, true); expect(chromeDevice.supportsStartPaused, true); expect(chromeDevice.supportsFlutterExit, false); expect(chromeDevice.supportsScreenshot, false); expect(await chromeDevice.isLocalEmulator, false); expect(chromeDevice.getLogReader(), isA<NoOpDeviceLogReader>()); expect(chromeDevice.getLogReader(), isA<NoOpDeviceLogReader>()); expect(await chromeDevice.portForwarder!.forward(1), 1); expect(chromeDevice.supportsRuntimeMode(BuildMode.debug), true); expect(chromeDevice.supportsRuntimeMode(BuildMode.profile), true); expect(chromeDevice.supportsRuntimeMode(BuildMode.release), true); expect(chromeDevice.supportsRuntimeMode(BuildMode.jitRelease), false); }); testWithoutContext('Server defaults', () async { final WebServerDevice device = WebServerDevice( logger: BufferLogger.test(), ); expect(device.name, 'Web Server'); expect(device.id, 'web-server'); expect(device.supportsHotReload, true); expect(device.supportsHotRestart, true); expect(device.supportsStartPaused, true); expect(device.supportsFlutterExit, false); expect(device.supportsScreenshot, false); expect(await device.isLocalEmulator, false); expect(device.getLogReader(), isA<NoOpDeviceLogReader>()); expect(device.getLogReader(), isA<NoOpDeviceLogReader>()); expect(await device.portForwarder!.forward(1), 1); expect(device.supportsRuntimeMode(BuildMode.debug), true); expect(device.supportsRuntimeMode(BuildMode.profile), true); expect(device.supportsRuntimeMode(BuildMode.release), true); expect(device.supportsRuntimeMode(BuildMode.jitRelease), false); }); testWithoutContext('ChromiumDevice accepts null package', () async { final MemoryFileSystem fs = MemoryFileSystem.test(); final FakePlatform platform = FakePlatform(); final FakeProcessManager pm = FakeProcessManager.any(); final BufferLogger logger = BufferLogger.test(); final GoogleChromeDevice device = GoogleChromeDevice( fileSystem: fs, processManager: pm, platform: platform, chromiumLauncher: ChromiumLauncher( fileSystem: fs, platform: platform, processManager: pm, operatingSystemUtils: FakeOperatingSystemUtils(), browserFinder: findChromeExecutable, logger: logger, ), logger: logger, ); await expectLater( () => device.startApp( null, debuggingOptions: DebuggingOptions.disabled(BuildInfo.debug), platformArgs: <String, Object?>{'uri': 'localhost:1234'}, ), // The tool exit here is irrelevant, this test simply ensures ChromiumDevice.startApp // will accept a null value for a package. throwsToolExit(message: 'Failed to launch browser'), ); }); testWithoutContext('Chrome device is listed when Chrome can be run', () async { final WebDevices webDevices = WebDevices( featureFlags: TestFeatureFlags(isWebEnabled: true), fileSystem: MemoryFileSystem.test(), logger: BufferLogger.test(), platform: FakePlatform( environment: <String, String>{} ), processManager: FakeProcessManager.any(), ); expect(await webDevices.pollingGetDevices(), contains(isA<GoogleChromeDevice>())); }); testWithoutContext('Has well known device ids chrome, edge, and web-server', () async { final WebDevices webDevices = WebDevices( featureFlags: TestFeatureFlags(isWebEnabled: true), fileSystem: MemoryFileSystem.test(), logger: BufferLogger.test(), platform: FakePlatform( environment: <String, String>{} ), processManager: FakeProcessManager.any(), ); expect(webDevices.wellKnownIds, <String>['chrome', 'web-server', 'edge']); }); testWithoutContext('Chrome device is not listed when Chrome cannot be run', () async { final FakeProcessManager processManager = FakeProcessManager.empty(); processManager.excludedExecutables = <String>{kLinuxExecutable}; final WebDevices webDevices = WebDevices( featureFlags: TestFeatureFlags(isWebEnabled: true), fileSystem: MemoryFileSystem.test(), logger: BufferLogger.test(), platform: FakePlatform( environment: <String, String>{} ), processManager: processManager, ); expect(await webDevices.pollingGetDevices(), isNot(contains(isA<GoogleChromeDevice>()))); }); testWithoutContext('Web Server device is listed if enabled via showWebServerDevice', () async { WebServerDevice.showWebServerDevice = true; final WebDevices webDevices = WebDevices( featureFlags: TestFeatureFlags(isWebEnabled: true), fileSystem: MemoryFileSystem.test(), logger: BufferLogger.test(), platform: FakePlatform( environment: <String, String>{} ), processManager: FakeProcessManager.any(), ); expect(await webDevices.pollingGetDevices(), contains(isA<WebServerDevice>())); }); testWithoutContext('Web Server device is not listed if disabled via showWebServerDevice', () async { WebServerDevice.showWebServerDevice = false; final WebDevices webDevices = WebDevices( featureFlags: TestFeatureFlags(isWebEnabled: true), fileSystem: MemoryFileSystem.test(), logger: BufferLogger.test(), platform: FakePlatform( environment: <String, String>{} ), processManager: FakeProcessManager.any(), ); expect(await webDevices.pollingGetDevices(), isNot(contains(isA<WebServerDevice>()))); }); testWithoutContext('Chrome invokes version command on non-Windows platforms', () async { final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[ const FakeCommand( command: <String>[ kLinuxExecutable, '--version', ], stdout: 'ABC', ), ]); final WebDevices webDevices = WebDevices( featureFlags: TestFeatureFlags(isWebEnabled: true), fileSystem: MemoryFileSystem.test(), logger: BufferLogger.test(), platform: FakePlatform( environment: <String, String>{} ), processManager: processManager, ); final GoogleChromeDevice chromeDevice = (await webDevices.pollingGetDevices()) .whereType<GoogleChromeDevice>().first; expect(chromeDevice.isSupported(), true); expect(await chromeDevice.sdkNameAndVersion, 'ABC'); // Verify caching works correctly. expect(await chromeDevice.sdkNameAndVersion, 'ABC'); expect(processManager, hasNoRemainingExpectations); }); testWithoutContext('Chrome and Edge version check invokes registry query on windows.', () async { final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[ const FakeCommand( command: <String>[ 'reg', 'query', r'HKEY_CURRENT_USER\Software\Microsoft\Edge\BLBeacon', '/v', 'version', ], stdout: r'HKEY_CURRENT_USER\Software\Microsoft\Edge\BLBeacon\ version REG_SZ 83.0.478.44 ', ), const FakeCommand( command: <String>[ 'reg', 'query', r'HKEY_CURRENT_USER\Software\Google\Chrome\BLBeacon', '/v', 'version', ], stdout: r'HKEY_CURRENT_USER\Software\Google\Chrome\BLBeacon\ version REG_SZ 74.0.0 A', ), ]); final WebDevices webDevices = WebDevices( featureFlags: TestFeatureFlags(isWebEnabled: true), fileSystem: MemoryFileSystem.test(), logger: BufferLogger.test(), platform: FakePlatform( operatingSystem: 'windows', environment: <String, String>{} ), processManager: processManager, ); final GoogleChromeDevice chromeDevice = (await webDevices.pollingGetDevices()) .whereType<GoogleChromeDevice>().first; expect(chromeDevice.isSupported(), true); expect(await chromeDevice.sdkNameAndVersion, 'Google Chrome 74.0.0'); // Verify caching works correctly. expect(await chromeDevice.sdkNameAndVersion, 'Google Chrome 74.0.0'); expect(processManager, hasNoRemainingExpectations); }); testWithoutContext('Chrome and Edge version check handles missing registry on Windows', () async { final FakeProcessManager processManager = FakeProcessManager.empty(); processManager.excludedExecutables.add('reg'); final Platform platform = FakePlatform( operatingSystem: 'windows', environment: <String, String>{}); final ChromiumLauncher chromeLauncher = ChromiumLauncher( fileSystem: MemoryFileSystem.test(), platform: platform, processManager: processManager, operatingSystemUtils: FakeOperatingSystemUtils(), browserFinder: findChromeExecutable, logger: BufferLogger.test(), ); final MicrosoftEdgeDevice edgeDevice = MicrosoftEdgeDevice( chromiumLauncher: chromeLauncher, fileSystem: MemoryFileSystem.test(), logger: BufferLogger.test(), processManager: processManager, ); expect(edgeDevice.isSupported(), true); expect(await edgeDevice.sdkNameAndVersion, ''); final GoogleChromeDevice chromeDevice = GoogleChromeDevice( chromiumLauncher: chromeLauncher, fileSystem: MemoryFileSystem.test(), logger: BufferLogger.test(), processManager: processManager, platform: platform, ); expect(chromeDevice.isSupported(), true); expect(await chromeDevice.sdkNameAndVersion, 'unknown'); }); testWithoutContext('Edge is not supported on versions less than 73', () async { final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[ const FakeCommand( command: <String>[ 'reg', 'query', r'HKEY_CURRENT_USER\Software\Microsoft\Edge\BLBeacon', '/v', 'version', ], stdout: r'HKEY_CURRENT_USER\Software\Microsoft\Edge\BLBeacon\ version REG_SZ 72.0.478.44 ', ), ]); final WebDevices webDevices = WebDevices( featureFlags: TestFeatureFlags(isWebEnabled: true), fileSystem: MemoryFileSystem.test(), logger: BufferLogger.test(), platform: FakePlatform( operatingSystem: 'windows', environment: <String, String>{} ), processManager: processManager, ); expect((await webDevices.pollingGetDevices()).whereType<MicrosoftEdgeDevice>(), isEmpty); }); testWithoutContext('Edge is not support on non-windows platform', () async { final WebDevices webDevices = WebDevices( featureFlags: TestFeatureFlags(isWebEnabled: true), fileSystem: MemoryFileSystem.test(), logger: BufferLogger.test(), platform: FakePlatform( environment: <String, String>{} ), processManager: FakeProcessManager.empty(), ); expect((await webDevices.pollingGetDevices()).whereType<MicrosoftEdgeDevice>(), isEmpty); final WebDevices macosWebDevices = WebDevices( featureFlags: TestFeatureFlags(isWebEnabled: true), fileSystem: MemoryFileSystem.test(), logger: BufferLogger.test(), platform: FakePlatform( operatingSystem: 'macos', environment: <String, String>{} ), processManager: FakeProcessManager.empty(), ); expect((await macosWebDevices.pollingGetDevices()).whereType<MicrosoftEdgeDevice>(), isEmpty); }); } /// A test implementation of the [ChromiumLauncher] that launches a fixed instance. class TestChromiumLauncher implements ChromiumLauncher { TestChromiumLauncher(); @override Completer<Chromium> currentCompleter = Completer<Chromium>(); @override bool canFindExecutable() { return true; } @override Future<Chromium> get connectedInstance => currentCompleter.future; @override String findExecutable() { return 'chrome'; } @override bool get hasChromeInstance => false; @override Future<Chromium> launch( String url, { bool headless = false, int? debugPort, bool skipCheck = false, Directory? cacheDir, List<String> webBrowserFlags = const <String>[], }) async { return currentCompleter.future; } @override Future<Chromium> connect(Chromium chrome, bool skipCheck) { return currentCompleter.future; } }
flutter/packages/flutter_tools/test/general.shard/web/devices_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/web/devices_test.dart", "repo_id": "flutter", "token_count": 5372 }
855
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter_tools/src/base/user_messages.dart'; import 'package:flutter_tools/src/doctor_validator.dart'; import 'package:flutter_tools/src/windows/visual_studio.dart'; import 'package:flutter_tools/src/windows/visual_studio_validator.dart'; import 'package:test/fake.dart'; import '../../src/common.dart'; void main() { group('Visual Studio validation', () { late FakeVisualStudio fakeVisualStudio; final UserMessages userMessages = UserMessages(); setUp(() { fakeVisualStudio = FakeVisualStudio(); }); // Assigns default values for a complete VS installation with necessary components. void configureMockVisualStudioAsInstalled() { fakeVisualStudio.isPrerelease = false; fakeVisualStudio.isRebootRequired = false; fakeVisualStudio.fullVersion = '16.2'; fakeVisualStudio.displayName = 'Visual Studio Community 2019'; fakeVisualStudio.windows10SDKVersion = '10.0.18362.0'; } // Assigns default values for a complete VS installation that is too old. void configureMockVisualStudioAsTooOld() { fakeVisualStudio.isAtLeastMinimumVersion = false; fakeVisualStudio.isPrerelease = false; fakeVisualStudio.isRebootRequired = false; fakeVisualStudio.fullVersion = '15.1'; fakeVisualStudio.displayName = 'Visual Studio Community 2017'; fakeVisualStudio.windows10SDKVersion = '10.0.17763.0'; } // Assigns default values for a missing VS installation. void configureMockVisualStudioAsNotInstalled() { fakeVisualStudio.isInstalled = false; fakeVisualStudio.isAtLeastMinimumVersion = false; fakeVisualStudio.isPrerelease = false; fakeVisualStudio.isComplete = false; fakeVisualStudio.isLaunchable = false; fakeVisualStudio.isRebootRequired = false; fakeVisualStudio.hasNecessaryComponents = false; fakeVisualStudio.windows10SDKVersion = null; } testWithoutContext('Emits a message when Visual Studio is a pre-release version', () async { final VisualStudioValidator validator = VisualStudioValidator( userMessages: userMessages, visualStudio: fakeVisualStudio, ); configureMockVisualStudioAsInstalled(); fakeVisualStudio.isPrerelease = true; final ValidationResult result = await validator.validate(); const ValidationMessage expectedMessage = ValidationMessage( 'The current Visual Studio installation is a pre-release version. ' 'It may not be supported by Flutter yet.', ); expect(result.messages, contains(expectedMessage)); }); testWithoutContext('Emits a partial status when Visual Studio installation is incomplete', () async { final VisualStudioValidator validator = VisualStudioValidator( userMessages: userMessages, visualStudio: fakeVisualStudio, ); configureMockVisualStudioAsInstalled(); fakeVisualStudio.isComplete = false; final ValidationResult result = await validator.validate(); const ValidationMessage expectedMessage = ValidationMessage.error( 'The current Visual Studio installation is incomplete.\n' 'Please use Visual Studio Installer to complete the installation or reinstall Visual Studio.', ); expect(result.messages, contains(expectedMessage)); expect(result.type, ValidationType.partial); }); testWithoutContext('Emits a partial status when Visual Studio installation needs rebooting', () async { final VisualStudioValidator validator = VisualStudioValidator( userMessages: userMessages, visualStudio: fakeVisualStudio, ); configureMockVisualStudioAsInstalled(); fakeVisualStudio.isRebootRequired = true; final ValidationResult result = await validator.validate(); const ValidationMessage expectedMessage = ValidationMessage.error( 'Visual Studio requires a reboot of your system to complete installation.', ); expect(result.messages, contains(expectedMessage)); expect(result.type, ValidationType.partial); }); testWithoutContext('Emits a partial status when Visual Studio installation is not launchable', () async { final VisualStudioValidator validator = VisualStudioValidator( userMessages: userMessages, visualStudio: fakeVisualStudio, ); configureMockVisualStudioAsInstalled(); fakeVisualStudio.isLaunchable = false; final ValidationResult result = await validator.validate(); const ValidationMessage expectedMessage = ValidationMessage.error( 'The current Visual Studio installation is not launchable. Please reinstall Visual Studio.', ); expect(result.messages, contains(expectedMessage)); expect(result.type, ValidationType.partial); }); testWithoutContext('Emits partial status when Visual Studio is installed but too old', () async { final VisualStudioValidator validator = VisualStudioValidator( userMessages: userMessages, visualStudio: fakeVisualStudio, ); configureMockVisualStudioAsTooOld(); final ValidationResult result = await validator.validate(); const ValidationMessage expectedMessage = ValidationMessage.error( 'Visual Studio 2019 or later is required.\n' 'Download at https://visualstudio.microsoft.com/downloads/.\n' 'Please install the "Desktop development" workload, including all of its default components', ); expect(result.messages, contains(expectedMessage)); expect(result.type, ValidationType.partial); }); testWithoutContext('Emits partial status when Visual Studio is installed without necessary components', () async { final VisualStudioValidator validator = VisualStudioValidator( userMessages: userMessages, visualStudio: fakeVisualStudio, ); configureMockVisualStudioAsInstalled(); fakeVisualStudio.hasNecessaryComponents = false; final ValidationResult result = await validator.validate(); expect(result.type, ValidationType.partial); }); testWithoutContext('Emits partial status when Visual Studio is installed but the SDK cannot be found', () async { final VisualStudioValidator validator = VisualStudioValidator( userMessages: userMessages, visualStudio: fakeVisualStudio, ); configureMockVisualStudioAsInstalled(); fakeVisualStudio.windows10SDKVersion = null; final ValidationResult result = await validator.validate(); expect(result.type, ValidationType.partial); }); testWithoutContext('Emits installed status when Visual Studio is installed with necessary components', () async { final VisualStudioValidator validator = VisualStudioValidator( userMessages: userMessages, visualStudio: fakeVisualStudio, ); configureMockVisualStudioAsInstalled(); final ValidationResult result = await validator.validate(); const ValidationMessage expectedDisplayNameMessage = ValidationMessage( 'Visual Studio Community 2019 version 16.2', ); expect(result.messages, contains(expectedDisplayNameMessage)); expect(result.type, ValidationType.success); }); testWithoutContext('Emits missing status when Visual Studio is not installed', () async { final VisualStudioValidator validator = VisualStudioValidator( userMessages: userMessages, visualStudio: fakeVisualStudio, ); configureMockVisualStudioAsNotInstalled(); final ValidationResult result = await validator.validate(); const ValidationMessage expectedMessage = ValidationMessage.error( 'Visual Studio not installed; this is necessary to develop Windows apps.\n' 'Download at https://visualstudio.microsoft.com/downloads/.\n' 'Please install the "Desktop development" workload, including all of its default components' ); expect(result.messages, contains(expectedMessage)); expect(result.type, ValidationType.missing); }); }); } class FakeVisualStudio extends Fake implements VisualStudio { @override final String installLocation = 'bogus'; @override final String displayVersion = 'version'; @override final String minimumVersionDescription = '2019'; @override List<String> necessaryComponentDescriptions() => <String>['A', 'B']; @override bool isInstalled = true; @override bool isAtLeastMinimumVersion = true; @override bool isPrerelease = true; @override bool isComplete = true; @override bool isLaunchable = true; @override bool isRebootRequired = true; @override bool hasNecessaryComponents = true; @override String? fullVersion; @override String? displayName; String? windows10SDKVersion; @override String? getWindows10SDKVersion() => windows10SDKVersion; @override String get workloadDescription => 'Desktop development'; }
flutter/packages/flutter_tools/test/general.shard/windows/visual_studio_validator_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/windows/visual_studio_validator_test.dart", "repo_id": "flutter", "token_count": 2905 }
856
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/io.dart'; import 'package:flutter_tools/src/cache.dart'; import '../src/common.dart'; import 'test_data/deferred_components_project.dart'; import 'test_data/project.dart'; import 'test_utils.dart'; void main() { late Directory tempDir; setUp(() { Cache.flutterRoot = getFlutterRoot(); tempDir = createResolvedTempDirectorySync('flutter_gradle_source_path_test.'); }); tearDown(() async { tryToDelete(tempDir); }); test('gradle task builds without setting a source path in app/build.gradle', () async { final Project project = DeferredComponentsProject( MissingFlutterSourcePathDeferredComponentsConfig(), ); final String flutterBin = fileSystem.path.join( getFlutterRoot(), 'bin', 'flutter', ); final Directory exampleAppDir = tempDir.childDirectory('example'); await project.setUpIn(exampleAppDir); // Run flutter build apk to build example project. final ProcessResult buildApkResult = processManager.runSync(<String>[ flutterBin, ...getLocalEngineArguments(), 'build', 'apk', '--debug', ], workingDirectory: exampleAppDir.path); expect(buildApkResult, const ProcessResultMatcher()); }); } class MissingFlutterSourcePathDeferredComponentsConfig extends BasicDeferredComponentsConfig { final String _flutterSourcePath = ''' flutter { source '../..' } '''; @override String get appBuild { if (!super.appBuild.contains(_flutterSourcePath)) { throw Exception( 'Flutter source path not found in original configuration!'); } return super.appBuild.replaceAll(_flutterSourcePath, ''); } }
flutter/packages/flutter_tools/test/integration.shard/android_gradle_flutter_source_path_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/integration.shard/android_gradle_flutter_source_path_test.dart", "repo_id": "flutter", "token_count": 676 }
857
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:io' as io show ProcessSignal; import 'package:file/file.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/io.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/base/os.dart'; import 'package:flutter_tools/src/base/terminal.dart'; import 'package:flutter_tools/src/cache.dart'; import 'package:process/process.dart'; import 'package:test/fake.dart'; import '../src/common.dart'; import '../src/fake_process_manager.dart'; import '../src/fakes.dart'; import 'test_utils.dart'; final String dart = fileSystem.path .join(getFlutterRoot(), 'bin', platform.isWindows ? 'dart.bat' : 'dart'); void main() { group('Cache.lock', () { // Windows locking is too flaky for this to work reliably. if (platform.isWindows) { return; } testWithoutContext( 'should log a message to stderr when lock is not acquired', () async { final String? oldRoot = Cache.flutterRoot; final Directory tempDir = fileSystem.systemTempDirectory.createTempSync('cache_test.'); final BufferLogger logger = BufferLogger( terminal: Terminal.test(), outputPreferences: OutputPreferences(), ); logger.fatalWarnings = true; Process? process; try { Cache.flutterRoot = tempDir.absolute.path; final Cache cache = Cache.test( fileSystem: fileSystem, processManager: FakeProcessManager.any(), logger: logger, ); final File cacheFile = fileSystem.file(fileSystem.path .join(Cache.flutterRoot!, 'bin', 'cache', 'lockfile')) ..createSync(recursive: true); final File script = fileSystem.file(fileSystem.path .join(Cache.flutterRoot!, 'bin', 'cache', 'test_lock.dart')); script.writeAsStringSync(r''' import 'dart:async'; import 'dart:io'; Future<void> main(List<String> args) async { File file = File(args[0]); final RandomAccessFile lock = file.openSync(mode: FileMode.write); while (true) { try { lock.lockSync(); break; } on FileSystemException {} } await Future<void>.delayed(const Duration(seconds: 1)); exit(0); } '''); // Locks are per-process, so we have to launch a separate process to // test out cache locking. process = await const LocalProcessManager().start( <String>[dart, script.absolute.path, cacheFile.absolute.path], ); // Wait for the script to lock the test cache file before checking to // see that the cache is unable to. bool locked = false; while (!locked) { // Give the script a chance to try for the lock much more often. await Future<void>.delayed(const Duration(milliseconds: 100)); final RandomAccessFile lock = cacheFile.openSync(mode: FileMode.write); try { // If we can lock it, unlock immediately to give the script a // chance. lock.lockSync(); lock.unlockSync(); } on FileSystemException { // If we can't lock it, then the child script succeeded in locking // it, and we can now test. locked = true; break; } } // Finally, test that the cache cannot lock a locked file. This should // print a message if it can't lock the file. await cache.lock(); } finally { // Just to keep from leaving the process hanging around. process?.kill(io.ProcessSignal.sighup); tryToDelete(tempDir); Cache.flutterRoot = oldRoot; } expect(logger.statusText, isEmpty); expect(logger.errorText, isEmpty); expect(logger.warningText, equals('Waiting for another flutter command to release the startup lock...\n')); expect(logger.hadErrorOutput, isFalse); // Should still be false, since the particular "Waiting..." message above // aims to avoid triggering failure as a fatal warning. expect(logger.hadWarningOutput, isFalse); }); testWithoutContext( 'should log a warning message for unknown version ', () async { final String? oldRoot = Cache.flutterRoot; final Directory tempDir = fileSystem.systemTempDirectory.createTempSync('cache_test.'); final BufferLogger logger = BufferLogger( terminal: Terminal.test(), outputPreferences: OutputPreferences(), ); logger.fatalWarnings = true; try { Cache.flutterRoot = tempDir.absolute.path; final Cache cache = Cache.test( fileSystem: fileSystem, processManager: FakeProcessManager.any(), logger: logger, ); final FakeVersionlessArtifact artifact = FakeVersionlessArtifact(cache); cache.registerArtifact(artifact); await artifact.update(FakeArtifactUpdater(), logger, fileSystem, FakeOperatingSystemUtils()); } finally { tryToDelete(tempDir); Cache.flutterRoot = oldRoot; } expect(logger.statusText, isEmpty); expect(logger.warningText, equals('No known version for the artifact name "fake". ' 'Flutter can continue, but the artifact may be re-downloaded on ' 'subsequent invocations until the problem is resolved.\n')); expect(logger.hadErrorOutput, isFalse); expect(logger.hadWarningOutput, isTrue); }); }); testWithoutContext('Dart SDK target arch matches host arch', () async { if (platform.isWindows) { return; } final ProcessResult dartResult = await const LocalProcessManager().run( <String>[dart, '--version'], ); // Parse 'arch' out of a string like '... "os_arch"\n'. final String dartTargetArch = (dartResult.stdout as String) .trim().split(' ').last.replaceAll('"', '').split('_')[1]; final ProcessResult unameResult = await const LocalProcessManager().run( <String>['uname', '-m'], ); final String unameArch = (unameResult.stdout as String) .trim().replaceAll('aarch64', 'arm64') .replaceAll('x86_64', 'x64'); expect(dartTargetArch, equals(unameArch)); }); } class FakeArtifactUpdater extends Fake implements ArtifactUpdater { void Function(String, Uri, Directory)? onDownloadZipArchive; void Function(String, Uri, Directory)? onDownloadZipTarball; @override Future<void> downloadZippedTarball(String message, Uri url, Directory location) async { onDownloadZipTarball?.call(message, url, location); } @override Future<void> downloadZipArchive(String message, Uri url, Directory location) async { onDownloadZipArchive?.call(message, url, location); } @override void removeDownloadedFiles() { } } class FakeVersionlessArtifact extends CachedArtifact { FakeVersionlessArtifact(Cache cache) : super( 'fake', cache, DevelopmentArtifact.universal, ); @override String? get version => null; @override Future<void> updateInner(ArtifactUpdater artifactUpdater, FileSystem fileSystem, OperatingSystemUtils operatingSystemUtils) async { } }
flutter/packages/flutter_tools/test/integration.shard/cache_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/integration.shard/cache_test.dart", "repo_id": "flutter", "token_count": 2720 }
858
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:convert'; import 'package:file/file.dart'; import 'package:flutter_tools/src/base/io.dart'; import 'package:vm_service/vm_service.dart'; import '../src/common.dart'; import 'test_data/basic_project.dart'; import 'test_driver.dart'; import 'test_utils.dart'; Future<int> getFreePort() async { int port = 0; final ServerSocket serverSocket = await ServerSocket.bind(InternetAddress.loopbackIPv4, 0); port = serverSocket.port; await serverSocket.close(); return port; } void main() { final BasicProject project = BasicProject(); late Directory tempDir; setUp(() async { tempDir = createResolvedTempDirectorySync('attach_test.'); await project.setUpIn(tempDir); }); tearDown(() { tryToDelete(tempDir); }); group('DDS in flutter run', () { late FlutterRunTestDriver flutterRun, flutterAttach; setUp(() { flutterRun = FlutterRunTestDriver(tempDir, logPrefix: ' RUN '); flutterAttach = FlutterRunTestDriver( tempDir, logPrefix: 'ATTACH ', // Only one DDS instance can be connected to the VM service at a time. // DDS can also only initialize if the VM service doesn't have any existing // clients, so we'll just let _flutterRun be responsible for spawning DDS. spawnDdsInstance: false, ); }); tearDown(() async { await flutterAttach.detach(); await flutterRun.stop(); }); testWithoutContext('can hot reload', () async { await flutterRun.run(withDebugger: true); await flutterAttach.attach(flutterRun.vmServicePort!); await flutterAttach.hotReload(); }); testWithoutContext('can detach, reattach, hot reload', () async { await flutterRun.run(withDebugger: true); await flutterAttach.attach(flutterRun.vmServicePort!); await flutterAttach.detach(); await flutterAttach.attach(flutterRun.vmServicePort!); await flutterAttach.hotReload(); }); testWithoutContext('killing process behaves the same as detach ', () async { await flutterRun.run(withDebugger: true); await flutterAttach.attach(flutterRun.vmServicePort!); await flutterAttach.quit(); flutterAttach = FlutterRunTestDriver( tempDir, logPrefix: 'ATTACH-2', spawnDdsInstance: false, ); await flutterAttach.attach(flutterRun.vmServicePort!); await flutterAttach.hotReload(); }); testWithoutContext('sets activeDevToolsServerAddress extension', () async { await flutterRun.run( startPaused: true, withDebugger: true, additionalCommandArgs: <String>['--devtools-server-address', 'http://127.0.0.1:9105'], ); await flutterRun.resume(); await pollForServiceExtensionValue<String>( testDriver: flutterRun, extension: 'ext.flutter.activeDevToolsServerAddress', continuePollingValue: '', matches: equals('http://127.0.0.1:9105'), ); await pollForServiceExtensionValue<String>( testDriver: flutterRun, extension: 'ext.flutter.connectedVmServiceUri', continuePollingValue: '', matches: isNotEmpty, ); final Response response = await flutterRun.callServiceExtension('ext.flutter.connectedVmServiceUri'); final String vmServiceUri = response.json!['value'] as String; // Attach with a different DevTools server address. await flutterAttach.attach( flutterRun.vmServicePort!, additionalCommandArgs: <String>['--devtools-server-address', 'http://127.0.0.1:9110'], ); await pollForServiceExtensionValue<String>( testDriver: flutterAttach, extension: 'ext.flutter.activeDevToolsServerAddress', continuePollingValue: '', matches: equals('http://127.0.0.1:9110'), ); await pollForServiceExtensionValue<String>( testDriver: flutterRun, extension: 'ext.flutter.connectedVmServiceUri', continuePollingValue: '', matches: equals(vmServiceUri), ); }); }); group('DDS in flutter attach', () { late FlutterRunTestDriver flutterRun, flutterAttach; setUp(() { flutterRun = FlutterRunTestDriver( tempDir, logPrefix: ' RUN ', spawnDdsInstance: false, ); flutterAttach = FlutterRunTestDriver( tempDir, logPrefix: 'ATTACH ', ); }); tearDown(() async { await flutterAttach.detach(); await flutterRun.stop(); }); testWithoutContext('uses the designated dds port', () async { final int ddsPort = await getFreePort(); await flutterRun.run(withDebugger: true); await flutterAttach.attach( flutterRun.vmServicePort!, additionalCommandArgs: <String>[ '--dds-port=$ddsPort', ], ); final Response response = await flutterAttach.callServiceExtension('ext.flutter.connectedVmServiceUri'); final String vmServiceUriString = response.json!['value'] as String; final Uri vmServiceUri = Uri.parse(vmServiceUriString); expect(vmServiceUri.port, equals(ddsPort)); }); }); group('--serve-observatory', () { late FlutterRunTestDriver flutterRun, flutterAttach; setUp(() async { flutterRun = FlutterRunTestDriver(tempDir, logPrefix: ' RUN '); flutterAttach = FlutterRunTestDriver( tempDir, logPrefix: 'ATTACH ', // Only one DDS instance can be connected to the VM service at a time. // DDS can also only initialize if the VM service doesn't have any existing // clients, so we'll just let _flutterRun be responsible for spawning DDS. spawnDdsInstance: false, ); }); tearDown(() async { await flutterAttach.detach(); await flutterRun.stop(); }); Future<bool> isObservatoryAvailable() async { final HttpClient client = HttpClient(); final Uri vmServiceUri = Uri( scheme: 'http', host: flutterRun.vmServiceWsUri!.host, port: flutterRun.vmServicePort, ); final HttpClientRequest request = await client.getUrl(vmServiceUri); final HttpClientResponse response = await request.close(); final String content = await response.transform(utf8.decoder).join(); return content.contains('Dart VM Observatory'); } testWithoutContext('enables Observatory on run', () async { await flutterRun.run( withDebugger: true, serveObservatory: true, ); expect(await isObservatoryAvailable(), true); }); testWithoutContext('enables Observatory on attach', () async { await flutterRun.run(withDebugger: true); // Bail out if Observatory is still served by default in the VM. // TODO(bkonyi): replace this with the following once Observatory is disabled in the VM: // expect(await isObservatoryAvailable(), isFalse); if (await isObservatoryAvailable()) { return; } await flutterAttach.attach( flutterRun.vmServicePort!, serveObservatory: true, ); expect(await isObservatoryAvailable(), true); }); }); }
flutter/packages/flutter_tools/test/integration.shard/flutter_attach_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/integration.shard/flutter_attach_test.dart", "repo_id": "flutter", "token_count": 2816 }
859
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This test exercises the embedding of the native assets mapping in dill files. // An initial dill file is created by `flutter assemble` and used for running // the application. This dill must contain the mapping. // When doing hot reload, this mapping must stay in place. // When doing a hot restart, a new dill file is pushed. This dill file must also // contain the native assets mapping. // When doing a hot reload, this mapping must stay in place. @Timeout(Duration(minutes: 10)) library; import 'dart:io'; import 'package:file/file.dart'; import 'package:file_testing/file_testing.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/base/os.dart'; import 'package:native_assets_cli/native_assets_cli_internal.dart'; import '../../src/common.dart'; import '../test_utils.dart' show ProcessResultMatcher, fileSystem, platform; import '../transition_test_utils.dart'; final String hostOs = platform.operatingSystem; final List<String> devices = <String>[ 'flutter-tester', hostOs, ]; final List<String> buildSubcommands = <String>[ hostOs, if (hostOs == 'macos') 'ios', 'apk', ]; final List<String> add2appBuildSubcommands = <String>[ if (hostOs == 'macos') ...<String>[ 'macos-framework', 'ios-framework', ], ]; /// The build modes to target for each flutter command that supports passing /// a build mode. /// /// The flow of compiling kernel as well as bundling dylibs can differ based on /// build mode, so we should cover this. const List<String> buildModes = <String>[ 'debug', 'profile', 'release', ]; const String packageName = 'package_with_native_assets'; const String exampleAppName = '${packageName}_example'; void main() { if (!platform.isMacOS && !platform.isLinux && !platform.isWindows) { // TODO(dacoharkes): Implement Fuchsia. https://github.com/flutter/flutter/issues/129757 return; } setUpAll(() { processManager.runSync(<String>[ flutterBin, 'config', '--enable-native-assets', ]); }); for (final String device in devices) { for (final String buildMode in buildModes) { if (device == 'flutter-tester' && buildMode != 'debug') { continue; } final String hotReload = buildMode == 'debug' ? ' hot reload and hot restart' : ''; testWithoutContext('flutter run$hotReload with native assets $device $buildMode', () async { await inTempDir((Directory tempDirectory) async { final Directory packageDirectory = await createTestProject(packageName, tempDirectory); final Directory exampleDirectory = packageDirectory.childDirectory('example'); final ProcessTestResult result = await runFlutter( <String>[ 'run', '-d$device', '--$buildMode', ], exampleDirectory.path, <Transition>[ Multiple(<Pattern>[ 'Flutter run key commands.', ], handler: (String line) { if (buildMode == 'debug') { // Do a hot reload diff on the initial dill file. return 'r'; } else { // No hot reload and hot restart in release mode. return 'q'; } }), if (buildMode == 'debug') ...<Transition>[ Barrier( 'Performing hot reload...'.padRight(progressMessageWidth), logging: true, ), Multiple(<Pattern>[ RegExp('Reloaded .*'), ], handler: (String line) { // Do a hot restart, pushing a new complete dill file. return 'R'; }), Barrier('Performing hot restart...'.padRight(progressMessageWidth)), Multiple(<Pattern>[ RegExp('Restarted application .*'), ], handler: (String line) { // Do another hot reload, pushing a diff to the second dill file. return 'r'; }), Barrier( 'Performing hot reload...'.padRight(progressMessageWidth), logging: true, ), Multiple(<Pattern>[ RegExp('Reloaded .*'), ], handler: (String line) { return 'q'; }), ], const Barrier('Application finished.'), ], logging: false, ); if (result.exitCode != 0) { throw Exception('flutter run failed: ${result.exitCode}\n${result.stderr}\n${result.stdout}'); } final String stdout = result.stdout.join('\n'); // Check that we did not fail to resolve the native function in the // dynamic library. expect(stdout, isNot(contains("Invalid argument(s): Couldn't resolve native function 'sum'"))); // And also check that we did not have any other exceptions that might // shadow the exception we would have gotten. expect(stdout, isNot(contains('EXCEPTION CAUGHT BY WIDGETS LIBRARY'))); switch (device) { case 'macos': expectDylibIsBundledMacOS(exampleDirectory, buildMode); case 'linux': expectDylibIsBundledLinux(exampleDirectory, buildMode); case 'windows': expectDylibIsBundledWindows(exampleDirectory, buildMode); } if (device == hostOs) { expectCCompilerIsConfigured(exampleDirectory); } }); }); } } testWithoutContext('flutter test with native assets', () async { await inTempDir((Directory tempDirectory) async { final Directory packageDirectory = await createTestProject(packageName, tempDirectory); final ProcessTestResult result = await runFlutter( <String>[ 'test', ], packageDirectory.path, <Transition>[ Barrier(RegExp('.* All tests passed!')), ], logging: false, ); if (result.exitCode != 0) { throw Exception('flutter test failed: ${result.exitCode}\n${result.stderr}\n${result.stdout}'); } }); }); for (final String buildSubcommand in buildSubcommands) { for (final String buildMode in buildModes) { testWithoutContext('flutter build $buildSubcommand with native assets $buildMode', () async { await inTempDir((Directory tempDirectory) async { final Directory packageDirectory = await createTestProject(packageName, tempDirectory); final Directory exampleDirectory = packageDirectory.childDirectory('example'); final ProcessResult result = processManager.runSync( <String>[ flutterBin, 'build', buildSubcommand, '--$buildMode', if (buildSubcommand == 'ios') '--no-codesign', ], workingDirectory: exampleDirectory.path, ); if (result.exitCode != 0) { throw Exception('flutter build failed: ${result.exitCode}\n${result.stderr}\n${result.stdout}'); } switch (buildSubcommand) { case 'macos': expectDylibIsBundledMacOS(exampleDirectory, buildMode); case 'ios': expectDylibIsBundledIos(exampleDirectory, buildMode); case 'linux': expectDylibIsBundledLinux(exampleDirectory, buildMode); case 'windows': expectDylibIsBundledWindows(exampleDirectory, buildMode); case 'apk': expectDylibIsBundledAndroid(exampleDirectory, buildMode); } expectCCompilerIsConfigured(exampleDirectory); }); }); } // This could be an hermetic unit test if the native_assets_builder // could mock process runs and file system. // https://github.com/dart-lang/native/issues/90. testWithoutContext('flutter build $buildSubcommand error on static libraries', () async { await inTempDir((Directory tempDirectory) async { final Directory packageDirectory = await createTestProject(packageName, tempDirectory); final File buildDotDart = packageDirectory.childFile('build.dart'); final String buildDotDartContents = await buildDotDart.readAsString(); // Overrides the build to output static libraries. final String buildDotDartContentsNew = buildDotDartContents.replaceFirst( 'final buildConfig = await BuildConfig.fromArgs(args);', ''' final buildConfig = await BuildConfig.fromArgs([ '-D${LinkModePreference.configKey}=${LinkModePreference.static}', ...args, ]); ''', ); expect(buildDotDartContentsNew, isNot(buildDotDartContents)); await buildDotDart.writeAsString(buildDotDartContentsNew); final Directory exampleDirectory = packageDirectory.childDirectory('example'); final ProcessResult result = processManager.runSync( <String>[ flutterBin, 'build', buildSubcommand, if (buildSubcommand == 'ios') '--no-codesign', if (buildSubcommand == 'windows') '-v' // Requires verbose mode for error. ], workingDirectory: exampleDirectory.path, ); expect( (result.stdout as String) + (result.stderr as String), contains('link mode set to static, but this is not yet supported'), ); expect(result.exitCode, isNot(0)); }); }); } for (final String add2appBuildSubcommand in add2appBuildSubcommands) { testWithoutContext('flutter build $add2appBuildSubcommand with native assets', () async { await inTempDir((Directory tempDirectory) async { final Directory packageDirectory = await createTestProject(packageName, tempDirectory); final Directory exampleDirectory = packageDirectory.childDirectory('example'); final ProcessResult result = processManager.runSync( <String>[ flutterBin, 'build', add2appBuildSubcommand, ], workingDirectory: exampleDirectory.path, ); if (result.exitCode != 0) { throw Exception('flutter build failed: ${result.exitCode}\n${result.stderr}\n${result.stdout}'); } for (final String buildMode in buildModes) { expectDylibIsBundledWithFrameworks(exampleDirectory, buildMode, add2appBuildSubcommand.replaceAll('-framework', '')); } expectCCompilerIsConfigured(exampleDirectory); }); }); } } /// For `flutter build` we can't easily test whether running the app works. /// Check that we have the dylibs in the app. void expectDylibIsBundledMacOS(Directory appDirectory, String buildMode) { final Directory appBundle = appDirectory.childDirectory('build/$hostOs/Build/Products/${buildMode.upperCaseFirst()}/$exampleAppName.app'); expect(appBundle, exists); final Directory frameworksFolder = appBundle.childDirectory('Contents/Frameworks'); expect(frameworksFolder, exists); // MyFramework.framework/ // MyFramework -> Versions/Current/MyFramework // Resources -> Versions/Current/Resources // Versions/ // A/ // MyFramework // Resources/ // Info.plist // Current -> A const String frameworkName = packageName; final Directory frameworkDir = frameworksFolder.childDirectory('$frameworkName.framework'); final Directory versionsDir = frameworkDir.childDirectory('Versions'); final Directory versionADir = versionsDir.childDirectory('A'); final Directory resourcesDir = versionADir.childDirectory('Resources'); expect(resourcesDir, exists); final File dylibFile = versionADir.childFile(frameworkName); expect(dylibFile, exists); final Link currentLink = versionsDir.childLink('Current'); expect(currentLink, exists); expect(currentLink.resolveSymbolicLinksSync(), versionADir.path); final Link resourcesLink = frameworkDir.childLink('Resources'); expect(resourcesLink, exists); expect(resourcesLink.resolveSymbolicLinksSync(), resourcesDir.path); final Link dylibLink = frameworkDir.childLink(frameworkName); expect(dylibLink, exists); expect(dylibLink.resolveSymbolicLinksSync(), dylibFile.path); } void expectDylibIsBundledIos(Directory appDirectory, String buildMode) { final Directory appBundle = appDirectory.childDirectory('build/ios/${buildMode.upperCaseFirst()}-iphoneos/Runner.app'); expect(appBundle, exists); final Directory frameworksFolder = appBundle.childDirectory('Frameworks'); expect(frameworksFolder, exists); const String frameworkName = packageName; final File dylib = frameworksFolder .childDirectory('$frameworkName.framework') .childFile(frameworkName); expect(dylib, exists); } /// Checks that dylibs are bundled. /// /// Sample path: build/linux/x64/release/bundle/lib/libmy_package.so void expectDylibIsBundledLinux(Directory appDirectory, String buildMode) { // Linux does not support cross compilation, so always only check current architecture. final String architecture = Architecture.current.dartPlatform; final Directory appBundle = appDirectory .childDirectory('build') .childDirectory(hostOs) .childDirectory(architecture) .childDirectory(buildMode) .childDirectory('bundle'); expect(appBundle, exists); final Directory dylibsFolder = appBundle.childDirectory('lib'); expect(dylibsFolder, exists); final File dylib = dylibsFolder.childFile(OS.linux.dylibFileName(packageName)); expect(dylib, exists); } /// Checks that dylibs are bundled. /// /// Sample path: build\windows\x64\runner\Debug\my_package_example.exe void expectDylibIsBundledWindows(Directory appDirectory, String buildMode) { // Linux does not support cross compilation, so always only check current architecture. final String architecture = Architecture.current.dartPlatform; final Directory appBundle = appDirectory .childDirectory('build') .childDirectory(hostOs) .childDirectory(architecture) .childDirectory('runner') .childDirectory(buildMode.upperCaseFirst()); expect(appBundle, exists); final File dylib = appBundle.childFile(OS.windows.dylibFileName(packageName)); expect(dylib, exists); } void expectDylibIsBundledAndroid(Directory appDirectory, String buildMode) { final File apk = appDirectory .childDirectory('build') .childDirectory('app') .childDirectory('outputs') .childDirectory('flutter-apk') .childFile('app-$buildMode.apk'); expect(apk, exists); final OperatingSystemUtils osUtils = OperatingSystemUtils( fileSystem: fileSystem, logger: BufferLogger.test(), platform: platform, processManager: processManager, ); final Directory apkUnzipped = appDirectory.childDirectory('apk-unzipped'); apkUnzipped.createSync(); osUtils.unzip(apk, apkUnzipped); final Directory lib = apkUnzipped.childDirectory('lib'); for (final String arch in <String>['arm64-v8a', 'armeabi-v7a', 'x86_64']) { final Directory archDir = lib.childDirectory(arch); expect(archDir, exists); // The dylibs should be next to the flutter and app so. expect(archDir.childFile('libflutter.so'), exists); if (buildMode != 'debug') { expect(archDir.childFile('libapp.so'), exists); } final File dylib = archDir.childFile(OS.android.dylibFileName(packageName)); expect(dylib, exists); } } /// For `flutter build` we can't easily test whether running the app works. /// Check that we have the dylibs in the app. void expectDylibIsBundledWithFrameworks(Directory appDirectory, String buildMode, String os) { final Directory frameworksFolder = appDirectory.childDirectory('build/$os/framework/${buildMode.upperCaseFirst()}'); expect(frameworksFolder, exists); const String frameworkName = packageName; final File dylib = frameworksFolder .childDirectory('$frameworkName.framework') .childFile(frameworkName); expect(dylib, exists); } /// Check that the native assets are built with the C Compiler that Flutter uses. /// /// This inspects the build configuration to see if the C compiler was configured. void expectCCompilerIsConfigured(Directory appDirectory) { final Directory nativeAssetsBuilderDir = appDirectory.childDirectory('.dart_tool/native_assets_builder/'); for (final Directory subDir in nativeAssetsBuilderDir.listSync().whereType<Directory>()) { final File config = subDir.childFile('config.yaml'); expect(config, exists); final String contents = config.readAsStringSync(); // Dry run does not pass compiler info. if (contents.contains('dry_run: true')) { continue; } expect(contents, contains('cc: ')); } } extension on String { String upperCaseFirst() { return replaceFirst(this[0], this[0].toUpperCase()); } } Future<Directory> createTestProject(String packageName, Directory tempDirectory) async { final ProcessResult result = processManager.runSync( <String>[ flutterBin, 'create', '--no-pub', '--template=package_ffi', packageName, ], workingDirectory: tempDirectory.path, ); if (result.exitCode != 0) { throw Exception( 'flutter create failed: ${result.exitCode}\n${result.stderr}\n${result.stdout}', ); } final Directory packageDirectory = tempDirectory.childDirectory(packageName); // No platform-specific boilerplate files. expect(packageDirectory.childDirectory('android/'), isNot(exists)); expect(packageDirectory.childDirectory('ios/'), isNot(exists)); expect(packageDirectory.childDirectory('linux/'), isNot(exists)); expect(packageDirectory.childDirectory('macos/'), isNot(exists)); expect(packageDirectory.childDirectory('windows/'), isNot(exists)); await pinDependencies(packageDirectory.childFile('pubspec.yaml')); await pinDependencies( packageDirectory.childDirectory('example').childFile('pubspec.yaml')); final ProcessResult result2 = await processManager.run( <String>[ flutterBin, 'pub', 'get', ], workingDirectory: packageDirectory.path, ); expect(result2, const ProcessResultMatcher()); return packageDirectory; } Future<void> pinDependencies(File pubspecFile) async { expect(pubspecFile, exists); final String oldPubspec = await pubspecFile.readAsString(); final String newPubspec = oldPubspec.replaceAll(RegExp(r':\s*\^'), ': '); expect(newPubspec, isNot(oldPubspec)); await pubspecFile.writeAsString(newPubspec); } Future<void> inTempDir(Future<void> Function(Directory tempDirectory) fun) async { final Directory tempDirectory = fileSystem.directory(fileSystem.systemTempDirectory.createTempSync().resolveSymbolicLinksSync()); try { await fun(tempDirectory); } finally { tryToDelete(tempDirectory); } }
flutter/packages/flutter_tools/test/integration.shard/isolated/native_assets_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/integration.shard/isolated/native_assets_test.dart", "repo_id": "flutter", "token_count": 7116 }
860
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import '../test_utils.dart'; import 'project.dart'; class HotReloadProject extends Project { HotReloadProject({super.indexHtml, this.constApp = false}); final bool constApp; @override final String pubspec = ''' name: test environment: sdk: '>=3.2.0-0 <4.0.0' dependencies: flutter: sdk: flutter '''; @override String get main => ''' import 'package:flutter/material.dart'; import 'package:flutter/scheduler.dart'; import 'package:flutter/services.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter/foundation.dart'; void main() async { WidgetsFlutterBinding.ensureInitialized(); final ByteData message = const StringCodec().encodeMessage('AppLifecycleState.resumed')!; await ServicesBinding.instance!.defaultBinaryMessenger.handlePlatformMessage('flutter/lifecycle', message, (_) { }); runApp(${constApp ? 'const ': ''}MyApp()); } int count = 1; class MyApp extends StatelessWidget { ${constApp ? 'const MyApp({super.key});': ''} @override Widget build(BuildContext context) { // This method gets called each time we hot reload, during reassemble. // Do not remove the next line, it's uncommented by a test to verify that // hot reloading worked: // printHotReloadWorked(); print('((((TICK \$count))))'); // tick 1 = startup warmup frame // tick 2 = hot reload warmup reassemble frame // after that there's a post-hot-reload frame scheduled by the tool that // doesn't trigger this to rebuild, but does trigger the first callback // below, then that callback schedules another frame on which we do the // breakpoint. // tick 3 = second hot reload warmup reassemble frame (pre breakpoint) if (count == 2) { SchedulerBinding.instance!.scheduleFrameCallback((Duration timestamp) { SchedulerBinding.instance!.scheduleFrameCallback((Duration timestamp) { print('breakpoint line'); // SCHEDULED BREAKPOINT }); }); } count += 1; return MaterialApp( // BUILD BREAKPOINT title: 'Flutter Demo', home: Container(), ); } } Future<void> printHotReloadWorked() async { // The call to this function is uncommented by a test to verify that hot // reloading worked. print('(((((RELOAD WORKED)))))'); // We need to insist here for `const` Apps, so print statements don't // get lost between the browser and the test driver. // See: https://github.com/flutter/flutter/issues/86202 if (kIsWeb) { while (true) { await Future.delayed(const Duration(seconds: 1)); print('(((((RELOAD WORKED)))))'); } } } '''; Uri get scheduledBreakpointUri => mainDart; int get scheduledBreakpointLine => lineContaining(main, '// SCHEDULED BREAKPOINT'); Uri get buildBreakpointUri => mainDart; int get buildBreakpointLine => lineContaining(main, '// BUILD BREAKPOINT'); void uncommentHotReloadPrint() { final String newMainContents = main.replaceAll( '// printHotReloadWorked();', 'printHotReloadWorked();', ); writeFile( fileSystem.path.join(dir.path, 'lib', 'main.dart'), newMainContents, writeFutureModifiedDate: true, ); } }
flutter/packages/flutter_tools/test/integration.shard/test_data/hot_reload_project.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/integration.shard/test_data/hot_reload_project.dart", "repo_id": "flutter", "token_count": 1234 }
861
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'package:file/file.dart'; import 'package:vm_service/vm_service.dart'; import 'package:vm_service/vm_service_io.dart'; import '../src/common.dart'; import 'test_data/basic_project.dart'; import 'test_driver.dart'; import 'test_utils.dart'; void main() { late Directory tempDir; late FlutterRunTestDriver flutter; late VmService vmService; setUp(() async { tempDir = createResolvedTempDirectorySync('vmservice_integration_test.'); final BasicProjectWithTimelineTraces project = BasicProjectWithTimelineTraces(); await project.setUpIn(tempDir); flutter = FlutterRunTestDriver(tempDir); await flutter.run(withDebugger: true); final int? port = flutter.vmServicePort; vmService = await vmServiceConnectUri('ws://localhost:$port/ws'); }); tearDown(() async { await flutter.stop(); tryToDelete(tempDir); }); // Regression test for https://github.com/flutter/flutter/issues/79498 testWithoutContext('Can connect to the timeline without getting ANR from the application', () async { final Timer timer = Timer(const Duration(minutes: 5), () { // This message is intended to show up in CI logs. // ignore: avoid_print print( 'Warning: test isolate is still active after 5 minutes. This is likely an ' 'app-not-responding error and not a flake. See https://github.com/flutter/flutter/issues/79498 ' 'for the bug this test is attempting to exercise.' ); }); // Subscribe to all available streams. await Future.wait(<Future<void>>[ vmService.streamListen(EventStreams.kVM), vmService.streamListen(EventStreams.kIsolate), vmService.streamListen(EventStreams.kDebug), vmService.streamListen(EventStreams.kGC), vmService.streamListen(EventStreams.kExtension), vmService.streamListen(EventStreams.kTimeline), vmService.streamListen(EventStreams.kLogging), vmService.streamListen(EventStreams.kService), vmService.streamListen(EventStreams.kHeapSnapshot), vmService.streamListen(EventStreams.kStdout), vmService.streamListen(EventStreams.kStderr), ]); // Verify that the app can be interacted with by querying the brightness // for 30 seconds. Once this time has elapsed, wait for any pending requests and // exit. If the app stops responding, the requests made will hang. bool interactionCompleted = false; Timer(const Duration(seconds: 30), () { interactionCompleted = true; }); final Isolate isolate = await waitForExtension(vmService, 'ext.flutter.brightnessOverride'); while (!interactionCompleted) { final Response response = await vmService.callServiceExtension( 'ext.flutter.brightnessOverride', isolateId: isolate.id, ); expect(response.json!['value'], 'Brightness.light'); } timer.cancel(); // Verify that all duration events on the timeline are properly nested. final Response response = await vmService.callServiceExtension('getVMTimeline'); final List<TimelineEvent>? events = (response as Timeline).traceEvents; final Map<int, List<String>> threadDurationEventStack = <int, List<String>>{}; for (final TimelineEvent e in events!) { final Map<String, dynamic> event = e.json!; final String phase = event['ph'] as String; final int tid = event['tid'] as int; final String name = event['name'] as String; final List<String> stack = threadDurationEventStack.putIfAbsent(tid, () => <String>[]); if (phase == 'B') { stack.add(name); } else if (phase == 'E') { // The downloaded part of the timeline may contain an end event whose // corresponding begin event happened before the start of the timeline. if (stack.isNotEmpty) { bool pass = false; while (stack.isNotEmpty) { final String value = stack.removeLast(); if (value == name) { pass = true; break; } } expect(pass, true); } } } }); }
flutter/packages/flutter_tools/test/integration.shard/timeline_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/integration.shard/timeline_test.dart", "repo_id": "flutter", "token_count": 1524 }
862
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'package:flutter_tools/src/convert.dart'; import 'package:flutter_tools/src/vmservice.dart'; import 'package:test/test.dart' hide test; import 'package:vm_service/vm_service.dart' as vm_service; export 'package:test/test.dart' hide isInstanceOf, test; /// A fake implementation of a vm_service that mocks the JSON-RPC request /// and response structure. class FakeVmServiceHost { FakeVmServiceHost({ required List<VmServiceExpectation> requests, Uri? httpAddress, Uri? wsAddress, }) : _requests = requests { _vmService = FlutterVmService(vm_service.VmService( _input.stream, _output.add, ), httpAddress: httpAddress, wsAddress: wsAddress); _applyStreamListen(); _output.stream.listen((String data) { final Map<String, Object?> request = json.decode(data) as Map<String, Object?>; if (_requests.isEmpty) { throw Exception('Unexpected request: $request'); } final FakeVmServiceRequest fakeRequest = _requests.removeAt(0) as FakeVmServiceRequest; expect(request, isA<Map<String, Object?>>() .having((Map<String, Object?> request) => request['method'], 'method', fakeRequest.method) .having((Map<String, Object?> request) => request['params'], 'args', fakeRequest.args) ); if (fakeRequest.close) { unawaited(_vmService.dispose()); expect(_requests, isEmpty); return; } if (fakeRequest.error == null) { _input.add(json.encode(<String, Object?>{ 'jsonrpc': '2.0', 'id': request['id'], 'result': fakeRequest.jsonResponse ?? <String, Object>{'type': 'Success'}, })); } else { _input.add(json.encode(<String, Object?>{ 'jsonrpc': '2.0', 'id': request['id'], 'error': <String, Object?>{ 'code': fakeRequest.error!.code, 'message': fakeRequest.error!.error, }, })); } _applyStreamListen(); }); } final List<VmServiceExpectation> _requests; final StreamController<String> _input = StreamController<String>(); final StreamController<String> _output = StreamController<String>(); FlutterVmService get vmService => _vmService; late final FlutterVmService _vmService; bool get hasRemainingExpectations => _requests.isNotEmpty; // remove FakeStreamResponse objects from _requests until it is empty // or until we hit a FakeRequest void _applyStreamListen() { while (_requests.isNotEmpty && !_requests.first.isRequest) { final FakeVmServiceStreamResponse response = _requests.removeAt(0) as FakeVmServiceStreamResponse; _input.add(json.encode(<String, Object>{ 'jsonrpc': '2.0', 'method': 'streamNotify', 'params': <String, Object>{ 'streamId': response.streamId, 'event': response.event.toJson(), }, })); } } } abstract class VmServiceExpectation { bool get isRequest; } class FakeRPCError { const FakeRPCError({ required this.code, this.error = 'error', }); final int code; final String error; } class FakeVmServiceRequest implements VmServiceExpectation { const FakeVmServiceRequest({ required this.method, this.args = const <String, Object?>{}, this.jsonResponse, this.error, this.close = false, }); final String method; /// When true, the vm service is automatically closed. final bool close; /// If non-null, the error code for a [vm_service.RPCError] in place of a /// standard response. final FakeRPCError? error; final Map<String, Object?>? args; final Map<String, Object?>? jsonResponse; @override bool get isRequest => true; } class FakeVmServiceStreamResponse implements VmServiceExpectation { const FakeVmServiceStreamResponse({ required this.event, required this.streamId, }); final vm_service.Event event; final String streamId; @override bool get isRequest => false; }
flutter/packages/flutter_tools/test/src/fake_vm_services.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/src/fake_vm_services.dart", "repo_id": "flutter", "token_count": 1568 }
863
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This file contains a bunch of different index.html "styles" that can be written // by Flutter Web users. // This should be somewhat kept in sync with the different index.html files present // in `flutter/dev/integration_tests/web/web`. // @see https://github.com/flutter/flutter/tree/master/dev/integration_tests/web/web /// index_with_flutterjs_entrypoint_loaded.html String indexHtmlFlutterJsCallback = _generateFlutterJsIndexHtml(''' window.addEventListener('load', function(ev) { // Download main.dart.js _flutter.loader.loadEntrypoint({ onEntrypointLoaded: onEntrypointLoaded, serviceWorker: { serviceWorkerVersion: serviceWorkerVersion, } }); // Once the entrypoint is ready, do things! async function onEntrypointLoaded(engineInitializer) { const appRunner = await engineInitializer.initializeEngine(); appRunner.runApp(); } }); '''); /// index_with_flutterjs_short.html String indexHtmlFlutterJsPromisesShort = _generateFlutterJsIndexHtml(''' window.addEventListener('load', function(ev) { // Download main.dart.js _flutter.loader.loadEntrypoint({ serviceWorker: { serviceWorkerVersion: serviceWorkerVersion, } }).then(function(engineInitializer) { return engineInitializer.autoStart(); }); }); '''); /// index_with_flutterjs.html String indexHtmlFlutterJsPromisesFull = _generateFlutterJsIndexHtml(''' window.addEventListener('load', function(ev) { // Download main.dart.js _flutter.loader.loadEntrypoint({ serviceWorker: { serviceWorkerVersion: serviceWorkerVersion, } }).then(function(engineInitializer) { return engineInitializer.initializeEngine(); }).then(function(appRunner) { return appRunner.runApp(); }); }); '''); /// index_with_flutterjs.html String indexHtmlFlutterJsLoad = _generateFlutterJsIndexHtml(''' window.addEventListener('load', function(ev) { _flutter.buildConfig = { builds: [ { "compileTarget": "dartdevc", "renderer": "html", "mainJsPath": "main.dart.js", } ] }; // Download main.dart.js _flutter.loader.load({ serviceWorkerSettings: { serviceWorkerVersion: serviceWorkerVersion, }, }); }); '''); /// index_without_flutterjs.html String indexHtmlNoFlutterJs = ''' <!DOCTYPE HTML> <!-- Copyright 2014 The Flutter Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> <html> <head> <meta charset="UTF-8"> <meta content="IE=Edge" http-equiv="X-UA-Compatible"> <title>Web Test</title> <!-- iOS meta tags & icons --> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-title" content="Web Test"> <link rel="manifest" href="manifest.json"> </head> <body> <!-- This script installs service_worker.js to provide PWA functionality to application. For more information, see: https://developers.google.com/web/fundamentals/primers/service-workers --> <script> const serviceWorkerVersion = null; var scriptLoaded = false; function loadMainDartJs() { if (scriptLoaded) { return; } scriptLoaded = true; var scriptTag = document.createElement('script'); scriptTag.src = 'main.dart.js'; scriptTag.type = 'application/javascript'; document.body.append(scriptTag); } if ('serviceWorker' in navigator) { // Service workers are supported. Use them. window.addEventListener('load', function () { // Wait for registration to finish before dropping the <script> tag. // Otherwise, the browser will load the script multiple times, // potentially different versions. var serviceWorkerUrl = 'flutter_service_worker.js?v=' + serviceWorkerVersion; navigator.serviceWorker.register(serviceWorkerUrl) .then((reg) => { function waitForActivation(serviceWorker) { serviceWorker.addEventListener('statechange', () => { if (serviceWorker.state == 'activated') { console.log('Installed new service worker.'); loadMainDartJs(); } }); } if (!reg.active && (reg.installing || reg.waiting)) { // No active web worker and we have installed or are installing // one for the first time. Simply wait for it to activate. waitForActivation(reg.installing ?? reg.waiting); } else if (!reg.active.scriptURL.endsWith(serviceWorkerVersion)) { // When the app updates the serviceWorkerVersion changes, so we // need to ask the service worker to update. console.log('New service worker available.'); reg.update(); waitForActivation(reg.installing); } else { // Existing service worker is still good. console.log('Loading app from service worker.'); loadMainDartJs(); } }); // If service worker doesn't succeed in a reasonable amount of time, // fallback to plaint <script> tag. setTimeout(() => { if (!scriptLoaded) { console.warn( 'Failed to load app from service worker. Falling back to plain <script> tag.', ); loadMainDartJs(); } }, 4000); }); } else { // Service workers not supported. Just drop the <script> tag. loadMainDartJs(); } </script> </body> </html> '''; // Generates the scaffolding of an index.html file, with a configurable `initScript`. String _generateFlutterJsIndexHtml(String initScript) => ''' <!DOCTYPE HTML> <!-- Copyright 2014 The Flutter Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> <html> <head> <meta charset="UTF-8"> <meta content="IE=Edge" http-equiv="X-UA-Compatible"> <title>Integration test. App load with flutter.js and onEntrypointLoaded API</title> <!-- iOS meta tags & icons --> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-title" content="Web Test"> <link rel="manifest" href="manifest.json"> <script> // The value below is injected by flutter build, do not touch. const serviceWorkerVersion = null; </script> <!-- This script adds the flutter initialization JS code --> <script src="flutter.js" defer></script> </head> <body> <script> $initScript </script> </body> </html> '''; /// index.html using flutter bootstrap script const String indexHtmlWithFlutterBootstrapScriptTag = ''' <!DOCTYPE HTML> <!-- Copyright 2014 The Flutter Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> <html> <head> <meta charset="UTF-8"> <meta content="IE=Edge" http-equiv="X-UA-Compatible"> <title>Web Test</title> <!-- iOS meta tags & icons --> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-title" content="Web Test"> <link rel="manifest" href="manifest.json"> </head> <body> <script src="flutter_bootstrap.js" async></script> </body> </html> '''; /// index.html using flutter bootstrap script const String indexHtmlWithInlinedFlutterBootstrapScript = ''' <!DOCTYPE HTML> <!-- Copyright 2014 The Flutter Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> <html> <head> <meta charset="UTF-8"> <meta content="IE=Edge" http-equiv="X-UA-Compatible"> <title>Web Test</title> <!-- iOS meta tags & icons --> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-title" content="Web Test"> <link rel="manifest" href="manifest.json"> </head> <body> <script> {{flutter_bootstrap_js}} </script> </body> </html> ''';
flutter/packages/flutter_tools/test/web.shard/test_data/hot_reload_index_html_samples.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/web.shard/test_data/hot_reload_index_html_samples.dart", "repo_id": "flutter", "token_count": 3284 }
864
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:fuchsia_remote_debug_protocol/src/common/network.dart'; import 'package:test/test.dart'; void main() { final List<String> ipv4Addresses = <String>['127.0.0.1', '8.8.8.8']; final List<String> ipv6Addresses = <String>[ '::1', 'fe80::8eae:4cff:fef4:9247', 'fe80::8eae:4cff:fef4:9247%e0', ]; group('test validation', () { test('isIpV4Address', () { expect(ipv4Addresses.map(isIpV4Address), everyElement(isTrue)); expect(ipv6Addresses.map(isIpV4Address), everyElement(isFalse)); }); test('isIpV6Address', () { expect(ipv4Addresses.map(isIpV6Address), everyElement(isFalse)); expect(ipv6Addresses.map(isIpV6Address), everyElement(isTrue)); }); }); }
flutter/packages/fuchsia_remote_debug_protocol/test/src/common/network_test.dart/0
{ "file_path": "flutter/packages/fuchsia_remote_debug_protocol/test/src/common/network_test.dart", "repo_id": "flutter", "token_count": 367 }
865
# # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html # Pod::Spec.new do |s| s.name = 'integration_test' s.version = '0.0.1' s.summary = 'Adapter for integration tests.' s.description = <<-DESC Runs tests that use the flutter_test API as integration tests. DESC s.homepage = 'https://github.com/flutter/flutter/tree/master/packages/integration_test' s.license = { :type => 'BSD', :text => <<-LICENSE Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. LICENSE } s.author = { 'Flutter Team' => '[email protected]' } s.source = { :http => 'https://github.com/flutter/flutter/tree/master/packages/integration_test' } s.source_files = 'Classes/**/*' s.public_header_files = 'Classes/**/*.h' s.dependency 'Flutter' s.ios.framework = 'UIKit' s.platform = :ios, '12.0' s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } end
flutter/packages/integration_test/ios/integration_test.podspec/0
{ "file_path": "flutter/packages/integration_test/ios/integration_test.podspec", "repo_id": "flutter", "token_count": 470 }
866
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:convert'; import 'dart:io'; import 'package:flutter_test/flutter_test.dart'; import 'package:path/path.dart' as path; final String bat = Platform.isWindows ? '.bat' : ''; final String _flutterBin = path.join(Directory.current.parent.parent.path, 'bin', 'flutter$bat'); const String _integrationResultsPrefix = 'IntegrationTestWidgetsFlutterBinding test results:'; const String _failureExcerpt = r'Expected: <false>\n Actual: <true>'; Future<void> main() async { group('Integration binding result', () { test('when multiple tests pass', () async { final Map<String, dynamic>? results = await _runTest(path.join('test', 'data', 'pass_test_script.dart')); expect( results, equals(<String, dynamic>{ 'passing test 1': 'success', 'passing test 2': 'success', })); }); test('when multiple tests fail', () async { final Map<String, dynamic>? results = await _runTest(path.join('test', 'data', 'fail_test_script.dart')); expect(results, hasLength(2)); expect(results, containsPair('failing test 1', contains(_failureExcerpt))); expect(results, containsPair('failing test 2', contains(_failureExcerpt))); }); test('when one test passes, then another fails', () async { final Map<String, dynamic>? results = await _runTest(path.join('test', 'data', 'pass_then_fail_test_script.dart')); expect(results, hasLength(2)); expect(results, containsPair('passing test', equals('success'))); expect(results, containsPair('failing test', contains(_failureExcerpt))); }); test('when one test fails, then another passes', () async { final Map<String, dynamic>? results = await _runTest(path.join('test', 'data', 'fail_then_pass_test_script.dart')); expect(results, hasLength(2)); expect(results, containsPair('failing test', contains(_failureExcerpt))); expect(results, containsPair('passing test', equals('success'))); }); }); } /// Runs a test script and returns the [IntegrationTestWidgetsFlutterBinding.result]. /// /// [scriptPath] is relative to the package root. Future<Map<String, dynamic>?> _runTest(String scriptPath) async { final Process process = await Process.start(_flutterBin, <String>['test', '--machine', scriptPath]); /// In the test [tearDownAll] block, the test results are encoded into JSON and /// are printed with the [_integrationResultsPrefix] prefix. /// /// See the following for the test event spec which we parse the printed lines /// out of: https://github.com/dart-lang/test/blob/master/pkgs/test/doc/json_reporter.md final String testResults = (await process.stdout .transform(utf8.decoder) .expand((String text) => text.split('\n')) .map<dynamic>((String line) { try { return jsonDecode(line); } on FormatException { // Only interested in test events which are JSON. } }) .expand<Map<String, dynamic>>((dynamic json) { if (json is List<dynamic>) { return json.cast(); } return <Map<String, dynamic>>[ if (json != null) json as Map<String, dynamic>, ]; }) .where((Map<String, dynamic> testEvent) => testEvent['type'] == 'print') .map((Map<String, dynamic> printEvent) => printEvent['message'] as String) .firstWhere((String message) => message.startsWith(_integrationResultsPrefix))) .replaceAll(_integrationResultsPrefix, ''); return jsonDecode(testResults) as Map<String, dynamic>?; }
flutter/packages/integration_test/test/binding_fail_test.dart/0
{ "file_path": "flutter/packages/integration_test/test/binding_fail_test.dart", "repo_id": "flutter", "token_count": 1438 }
867
include ':app' def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() def plugins = new Properties() def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') if (pluginsFile.exists()) { pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } } plugins.each { name, path -> def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() include ":$name" project(":$name").projectDir = pluginDirectory }
flutter_clock/digital_clock/android/settings.gradle/0
{ "file_path": "flutter_clock/digital_clock/android/settings.gradle", "repo_id": "flutter_clock", "token_count": 155 }
868
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/material.dart'; import 'model.dart'; /// Returns a clock [Widget] with [ClockModel]. /// /// Example: /// final myClockBuilder = (ClockModel model) => AnalogClock(model); /// /// Contestants: Do not edit this. typedef Widget ClockBuilder(ClockModel model); /// Wrapper for clock widget to allow for customizations. /// /// Puts the clock in landscape orientation with an aspect ratio of 5:3. /// Provides a drawer where users can customize the data that is sent to the /// clock. To show/hide the drawer, double-tap the clock. /// /// To use the [ClockCustomizer], pass your clock into it, using a ClockBuilder. /// /// ``` /// final myClockBuilder = (ClockModel model) => AnalogClock(model); /// return ClockCustomizer(myClockBuilder); /// ``` /// Contestants: Do not edit this. class ClockCustomizer extends StatefulWidget { const ClockCustomizer(this._clock); /// The clock widget with [ClockModel], to update and display. final ClockBuilder _clock; @override _ClockCustomizerState createState() => _ClockCustomizerState(); } class _ClockCustomizerState extends State<ClockCustomizer> { final _model = ClockModel(); ThemeMode _themeMode = ThemeMode.light; bool _configButtonShown = false; @override void initState() { super.initState(); _model.addListener(_handleModelChange); } @override void dispose() { _model.removeListener(_handleModelChange); _model.dispose(); super.dispose(); } void _handleModelChange() => setState(() {}); Widget _enumMenu<T>( String label, T value, List<T> items, ValueChanged<T> onChanged) { return InputDecorator( decoration: InputDecoration( labelText: label, ), child: DropdownButtonHideUnderline( child: DropdownButton<T>( value: value, isDense: true, onChanged: onChanged, items: items.map((T item) { return DropdownMenuItem<T>( value: item, child: Text(enumToString(item)), ); }).toList(), ), ), ); } Widget _switch(String label, bool value, ValueChanged<bool> onChanged) { return Row( children: <Widget>[ Expanded(child: Text(label)), Switch( value: value, onChanged: onChanged, ), ], ); } Widget _textField( String currentValue, String label, ValueChanged<Null> onChanged) { return TextField( decoration: InputDecoration( hintText: currentValue, helperText: label, ), onChanged: onChanged, ); } Widget _configDrawer(BuildContext context) { return SafeArea( child: Drawer( child: Padding( padding: const EdgeInsets.all(16.0), child: SingleChildScrollView( child: Column( children: <Widget>[ _textField(_model.location, 'Location', (String location) { setState(() { _model.location = location; }); }), _textField(_model.temperature.toString(), 'Temperature', (String temperature) { setState(() { _model.temperature = double.parse(temperature); }); }), _enumMenu('Theme', _themeMode, ThemeMode.values.toList()..remove(ThemeMode.system), (ThemeMode mode) { setState(() { _themeMode = mode; }); }), _switch('24-hour format', _model.is24HourFormat, (bool value) { setState(() { _model.is24HourFormat = value; }); }), _enumMenu( 'Weather', _model.weatherCondition, WeatherCondition.values, (WeatherCondition condition) { setState(() { _model.weatherCondition = condition; }); }), _enumMenu('Units', _model.unit, TemperatureUnit.values, (TemperatureUnit unit) { setState(() { _model.unit = unit; }); }), ], ), ), ), ), ); } Widget _configButton() { return Builder( builder: (BuildContext context) { return IconButton( icon: Icon(Icons.settings), tooltip: 'Configure clock', onPressed: () { Scaffold.of(context).openEndDrawer(); setState(() { _configButtonShown = false; }); }, ); }, ); } @override Widget build(BuildContext context) { final clock = Center( child: AspectRatio( aspectRatio: 5 / 3, child: Container( decoration: BoxDecoration( border: Border.all( width: 2, color: Theme.of(context).unselectedWidgetColor, ), ), child: widget._clock(_model), ), ), ); return MaterialApp( theme: ThemeData.light(), darkTheme: ThemeData.dark(), themeMode: _themeMode, debugShowCheckedModeBanner: false, home: Scaffold( resizeToAvoidBottomPadding: false, endDrawer: _configDrawer(context), body: SafeArea( child: GestureDetector( behavior: HitTestBehavior.opaque, onTap: () { setState(() { _configButtonShown = !_configButtonShown; }); }, child: Stack( children: [ clock, if (_configButtonShown) Positioned( top: 0, right: 0, child: Opacity( opacity: 0.7, child: _configButton(), ), ), ], ), ), ), ), ); } }
flutter_clock/flutter_clock_helper/lib/customizer.dart/0
{ "file_path": "flutter_clock/flutter_clock_helper/lib/customizer.dart", "repo_id": "flutter_clock", "token_count": 3072 }
869
include: package:flutter_lints/flutter.yaml linter: # In addition to the flutter_lints rules: - always_declare_return_types - avoid_types_on_closure_parameters - avoid_void_async - cancel_subscriptions - close_sinks - directives_ordering - flutter_style_todos - package_api_docs - prefer_single_quotes - test_types_in_equals - throw_in_finally - unawaited_futures - unnecessary_statements - unsafe_html - use_super_parameters
gallery/analysis_options.yaml/0
{ "file_path": "gallery/analysis_options.yaml", "repo_id": "gallery", "token_count": 200 }
870
#import "GeneratedPluginRegistrant.h"
gallery/ios/Runner/Runner-Bridging-Header.h/0
{ "file_path": "gallery/ios/Runner/Runner-Bridging-Header.h", "repo_id": "gallery", "token_count": 13 }
871
export 'package:gallery/demos/cupertino/cupertino_activity_indicator_demo.dart'; export 'package:gallery/demos/cupertino/cupertino_alert_demo.dart'; export 'package:gallery/demos/cupertino/cupertino_button_demo.dart'; export 'package:gallery/demos/cupertino/cupertino_context_menu_demo.dart'; export 'package:gallery/demos/cupertino/cupertino_navigation_bar_demo.dart'; export 'package:gallery/demos/cupertino/cupertino_picker_demo.dart'; export 'package:gallery/demos/cupertino/cupertino_scrollbar_demo.dart'; export 'package:gallery/demos/cupertino/cupertino_search_text_field_demo.dart'; export 'package:gallery/demos/cupertino/cupertino_segmented_control_demo.dart'; export 'package:gallery/demos/cupertino/cupertino_slider_demo.dart'; export 'package:gallery/demos/cupertino/cupertino_switch_demo.dart'; export 'package:gallery/demos/cupertino/cupertino_tab_bar_demo.dart'; export 'package:gallery/demos/cupertino/cupertino_text_field_demo.dart';
gallery/lib/demos/cupertino/cupertino_demos.dart/0
{ "file_path": "gallery/lib/demos/cupertino/cupertino_demos.dart", "repo_id": "gallery", "token_count": 361 }
872
// Copyright 2019 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/gallery_localizations.dart'; import 'package:gallery/demos/material/material_demo_types.dart'; class ButtonDemo extends StatelessWidget { const ButtonDemo({super.key, required this.type}); final ButtonDemoType type; String _title(BuildContext context) { final localizations = GalleryLocalizations.of(context)!; switch (type) { case ButtonDemoType.text: return localizations.demoTextButtonTitle; case ButtonDemoType.elevated: return localizations.demoElevatedButtonTitle; case ButtonDemoType.outlined: return localizations.demoOutlinedButtonTitle; case ButtonDemoType.toggle: return localizations.demoToggleButtonTitle; case ButtonDemoType.floating: return localizations.demoFloatingButtonTitle; } } @override Widget build(BuildContext context) { Widget? buttons; switch (type) { case ButtonDemoType.text: buttons = _TextButtonDemo(); break; case ButtonDemoType.elevated: buttons = _ElevatedButtonDemo(); break; case ButtonDemoType.outlined: buttons = _OutlinedButtonDemo(); break; case ButtonDemoType.toggle: buttons = _ToggleButtonsDemo(); break; case ButtonDemoType.floating: buttons = _FloatingActionButtonDemo(); break; } return Scaffold( appBar: AppBar( automaticallyImplyLeading: false, title: Text(_title(context)), ), body: buttons, ); } } // BEGIN buttonDemoText class _TextButtonDemo extends StatelessWidget { @override Widget build(BuildContext context) { final localizations = GalleryLocalizations.of(context)!; return Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Row( mainAxisAlignment: MainAxisAlignment.center, children: [ TextButton( onPressed: () {}, child: Text(localizations.buttonText), ), const SizedBox(width: 12), TextButton.icon( icon: const Icon(Icons.add, size: 18), label: Text(localizations.buttonText), onPressed: () {}, ), ], ), const SizedBox(height: 12), // Disabled buttons Row( mainAxisAlignment: MainAxisAlignment.center, children: [ TextButton( onPressed: null, child: Text(localizations.buttonText), ), const SizedBox(width: 12), TextButton.icon( icon: const Icon(Icons.add, size: 18), label: Text(localizations.buttonText), onPressed: null, ), ], ), ], ); } } // END // BEGIN buttonDemoElevated class _ElevatedButtonDemo extends StatelessWidget { @override Widget build(BuildContext context) { final localizations = GalleryLocalizations.of(context)!; return Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Row( mainAxisAlignment: MainAxisAlignment.center, children: [ ElevatedButton( onPressed: () {}, child: Text(localizations.buttonText), ), const SizedBox(width: 12), ElevatedButton.icon( icon: const Icon(Icons.add, size: 18), label: Text(localizations.buttonText), onPressed: () {}, ), ], ), const SizedBox(height: 12), // Disabled buttons Row( mainAxisAlignment: MainAxisAlignment.center, children: [ ElevatedButton( onPressed: null, child: Text(localizations.buttonText), ), const SizedBox(width: 12), ElevatedButton.icon( icon: const Icon(Icons.add, size: 18), label: Text(localizations.buttonText), onPressed: null, ), ], ), ], ); } } // END // BEGIN buttonDemoOutlined class _OutlinedButtonDemo extends StatelessWidget { @override Widget build(BuildContext context) { final localizations = GalleryLocalizations.of(context)!; return Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Row( mainAxisAlignment: MainAxisAlignment.center, children: [ OutlinedButton( onPressed: () {}, child: Text(localizations.buttonText), ), const SizedBox(width: 12), OutlinedButton.icon( icon: const Icon(Icons.add, size: 18), label: Text(localizations.buttonText), onPressed: () {}, ), ], ), const SizedBox(height: 12), // Disabled buttons Row( mainAxisAlignment: MainAxisAlignment.center, children: [ OutlinedButton( onPressed: null, child: Text(localizations.buttonText), ), const SizedBox(width: 12), OutlinedButton.icon( icon: const Icon(Icons.add, size: 18), label: Text(localizations.buttonText), onPressed: null, ), ], ), ], ); } } // END // BEGIN buttonDemoToggle class _ToggleButtonsDemo extends StatefulWidget { @override _ToggleButtonsDemoState createState() => _ToggleButtonsDemoState(); } class _ToggleButtonsDemoState extends State<_ToggleButtonsDemo> with RestorationMixin { final isSelected = [ RestorableBool(false), RestorableBool(true), RestorableBool(false), ]; @override String get restorationId => 'toggle_button_demo'; @override void restoreState(RestorationBucket? oldBucket, bool initialRestore) { registerForRestoration(isSelected[0], 'first_item'); registerForRestoration(isSelected[1], 'second_item'); registerForRestoration(isSelected[2], 'third_item'); } @override void dispose() { for (final restorableBool in isSelected) { restorableBool.dispose(); } super.dispose(); } @override Widget build(BuildContext context) { return Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ ToggleButtons( onPressed: (index) { setState(() { isSelected[index].value = !isSelected[index].value; }); }, isSelected: isSelected.map((element) => element.value).toList(), children: const [ Icon(Icons.format_bold), Icon(Icons.format_italic), Icon(Icons.format_underline), ], ), const SizedBox(height: 12), // Disabled toggle buttons ToggleButtons( onPressed: null, isSelected: isSelected.map((element) => element.value).toList(), children: const [ Icon(Icons.format_bold), Icon(Icons.format_italic), Icon(Icons.format_underline), ], ), ], ), ); } } // END // BEGIN buttonDemoFloating class _FloatingActionButtonDemo extends StatelessWidget { @override Widget build(BuildContext context) { final localizations = GalleryLocalizations.of(context)!; return Center( child: Row( mainAxisAlignment: MainAxisAlignment.center, children: [ FloatingActionButton( onPressed: () {}, tooltip: localizations.buttonTextCreate, child: const Icon(Icons.add), ), const SizedBox(width: 12), FloatingActionButton.extended( icon: const Icon(Icons.add), label: Text(localizations.buttonTextCreate), onPressed: () {}, ), ], ), ); } } // END
gallery/lib/demos/material/button_demo.dart/0
{ "file_path": "gallery/lib/demos/material/button_demo.dart", "repo_id": "gallery", "token_count": 3888 }
873
// Copyright 2019 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:math' as math; import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/gallery_localizations.dart'; import 'package:gallery/demos/material/material_demo_types.dart'; class SlidersDemo extends StatelessWidget { const SlidersDemo({super.key, required this.type}); final SlidersDemoType type; String _title(BuildContext context) { final localizations = GalleryLocalizations.of(context)!; switch (type) { case SlidersDemoType.sliders: return localizations.demoSlidersTitle; case SlidersDemoType.rangeSliders: return localizations.demoRangeSlidersTitle; case SlidersDemoType.customSliders: return localizations.demoCustomSlidersTitle; } } @override Widget build(BuildContext context) { Widget sliders; switch (type) { case SlidersDemoType.sliders: sliders = _Sliders(); break; case SlidersDemoType.rangeSliders: sliders = _RangeSliders(); break; case SlidersDemoType.customSliders: sliders = _CustomSliders(); } return Scaffold( appBar: AppBar( automaticallyImplyLeading: false, title: Text(_title(context)), ), body: sliders, ); } } // BEGIN slidersDemo class _Sliders extends StatefulWidget { @override _SlidersState createState() => _SlidersState(); } class _SlidersState extends State<_Sliders> with RestorationMixin { final RestorableDouble _continuousValue = RestorableDouble(25); final RestorableDouble _discreteValue = RestorableDouble(20); @override String get restorationId => 'slider_demo'; @override void restoreState(RestorationBucket? oldBucket, bool initialRestore) { registerForRestoration(_continuousValue, 'continuous_value'); registerForRestoration(_discreteValue, 'discrete_value'); } @override void dispose() { _continuousValue.dispose(); _discreteValue.dispose(); super.dispose(); } @override Widget build(BuildContext context) { final localizations = GalleryLocalizations.of(context)!; return Padding( padding: const EdgeInsets.symmetric(horizontal: 40), child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Column( mainAxisSize: MainAxisSize.min, children: [ Semantics( label: localizations.demoSlidersEditableNumericalValue, child: SizedBox( width: 64, height: 48, child: TextField( textAlign: TextAlign.center, onSubmitted: (value) { final newValue = double.tryParse(value); if (newValue != null && newValue != _continuousValue.value) { setState(() { _continuousValue.value = newValue.clamp(0, 100) as double; }); } }, keyboardType: TextInputType.number, controller: TextEditingController( text: _continuousValue.value.toStringAsFixed(0), ), ), ), ), Slider( value: _continuousValue.value, min: 0, max: 100, onChanged: (value) { setState(() { _continuousValue.value = value; }); }, ), // Disabled slider Slider( value: _continuousValue.value, min: 0, max: 100, onChanged: null, ), Text(localizations .demoSlidersContinuousWithEditableNumericalValue), ], ), const SizedBox(height: 80), Column( mainAxisSize: MainAxisSize.min, children: [ Slider( value: _discreteValue.value, min: 0, max: 200, divisions: 5, label: _discreteValue.value.round().toString(), onChanged: (value) { setState(() { _discreteValue.value = value; }); }, ), // Disabled slider Slider( value: _discreteValue.value, min: 0, max: 200, divisions: 5, label: _discreteValue.value.round().toString(), onChanged: null, ), Text(localizations.demoSlidersDiscrete), ], ), ], ), ); } } // END // BEGIN rangeSlidersDemo class _RangeSliders extends StatefulWidget { @override _RangeSlidersState createState() => _RangeSlidersState(); } class _RangeSlidersState extends State<_RangeSliders> with RestorationMixin { final RestorableDouble _continuousStartValue = RestorableDouble(25); final RestorableDouble _continuousEndValue = RestorableDouble(75); final RestorableDouble _discreteStartValue = RestorableDouble(40); final RestorableDouble _discreteEndValue = RestorableDouble(120); @override String get restorationId => 'range_sliders_demo'; @override void restoreState(RestorationBucket? oldBucket, bool initialRestore) { registerForRestoration(_continuousStartValue, 'continuous_start_value'); registerForRestoration(_continuousEndValue, 'continuous_end_value'); registerForRestoration(_discreteStartValue, 'discrete_start_value'); registerForRestoration(_discreteEndValue, 'discrete_end_value'); } @override void dispose() { _continuousStartValue.dispose(); _continuousEndValue.dispose(); _discreteStartValue.dispose(); _discreteEndValue.dispose(); super.dispose(); } @override Widget build(BuildContext context) { final continuousValues = RangeValues( _continuousStartValue.value, _continuousEndValue.value, ); final discreteValues = RangeValues( _discreteStartValue.value, _discreteEndValue.value, ); return Padding( padding: const EdgeInsets.symmetric(horizontal: 40), child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Column( mainAxisSize: MainAxisSize.min, children: [ RangeSlider( values: continuousValues, min: 0, max: 100, onChanged: (values) { setState(() { _continuousStartValue.value = values.start; _continuousEndValue.value = values.end; }); }, ), // Disabled range slider RangeSlider( values: continuousValues, min: 0, max: 100, onChanged: null, ), Text(GalleryLocalizations.of(context)!.demoSlidersContinuous), ], ), const SizedBox(height: 80), Column( mainAxisSize: MainAxisSize.min, children: [ RangeSlider( values: discreteValues, min: 0, max: 200, divisions: 5, labels: RangeLabels( discreteValues.start.round().toString(), discreteValues.end.round().toString(), ), onChanged: (values) { setState(() { _discreteStartValue.value = values.start; _discreteEndValue.value = values.end; }); }, ), // Disabled range slider RangeSlider( values: discreteValues, min: 0, max: 200, divisions: 5, labels: RangeLabels( discreteValues.start.round().toString(), discreteValues.end.round().toString(), ), onChanged: null, ), Text(GalleryLocalizations.of(context)!.demoSlidersDiscrete), ], ), ], ), ); } } // END // BEGIN customSlidersDemo Path _downTriangle(double size, Offset thumbCenter, {bool invert = false}) { final thumbPath = Path(); final height = math.sqrt(3) / 2; final centerHeight = size * height / 3; final halfSize = size / 2; final sign = invert ? -1 : 1; thumbPath.moveTo( thumbCenter.dx - halfSize, thumbCenter.dy + sign * centerHeight); thumbPath.lineTo(thumbCenter.dx, thumbCenter.dy - 2 * sign * centerHeight); thumbPath.lineTo( thumbCenter.dx + halfSize, thumbCenter.dy + sign * centerHeight); thumbPath.close(); return thumbPath; } Path _rightTriangle(double size, Offset thumbCenter, {bool invert = false}) { final thumbPath = Path(); final halfSize = size / 2; final sign = invert ? -1 : 1; thumbPath.moveTo(thumbCenter.dx + halfSize * sign, thumbCenter.dy); thumbPath.lineTo(thumbCenter.dx - halfSize * sign, thumbCenter.dy - size); thumbPath.lineTo(thumbCenter.dx - halfSize * sign, thumbCenter.dy + size); thumbPath.close(); return thumbPath; } Path _upTriangle(double size, Offset thumbCenter) => _downTriangle(size, thumbCenter, invert: true); Path _leftTriangle(double size, Offset thumbCenter) => _rightTriangle(size, thumbCenter, invert: true); class _CustomRangeThumbShape extends RangeSliderThumbShape { const _CustomRangeThumbShape(); static const double _thumbSize = 4; static const double _disabledThumbSize = 3; @override Size getPreferredSize(bool isEnabled, bool isDiscrete) { return isEnabled ? const Size.fromRadius(_thumbSize) : const Size.fromRadius(_disabledThumbSize); } static final Animatable<double> sizeTween = Tween<double>( begin: _disabledThumbSize, end: _thumbSize, ); @override void paint( PaintingContext context, Offset center, { required Animation<double> activationAnimation, required Animation<double> enableAnimation, bool isDiscrete = false, bool isEnabled = false, bool? isOnTop, TextDirection? textDirection, required SliderThemeData sliderTheme, Thumb? thumb, bool? isPressed, }) { final canvas = context.canvas; final colorTween = ColorTween( begin: sliderTheme.disabledThumbColor, end: sliderTheme.thumbColor, ); final size = _thumbSize * sizeTween.evaluate(enableAnimation); Path thumbPath; switch (textDirection!) { case TextDirection.rtl: switch (thumb!) { case Thumb.start: thumbPath = _rightTriangle(size, center); break; case Thumb.end: thumbPath = _leftTriangle(size, center); break; } break; case TextDirection.ltr: switch (thumb!) { case Thumb.start: thumbPath = _leftTriangle(size, center); break; case Thumb.end: thumbPath = _rightTriangle(size, center); break; } break; } canvas.drawPath( thumbPath, Paint()..color = colorTween.evaluate(enableAnimation)!, ); } } class _CustomThumbShape extends SliderComponentShape { const _CustomThumbShape(); static const double _thumbSize = 4; static const double _disabledThumbSize = 3; @override Size getPreferredSize(bool isEnabled, bool isDiscrete) { return isEnabled ? const Size.fromRadius(_thumbSize) : const Size.fromRadius(_disabledThumbSize); } static final Animatable<double> sizeTween = Tween<double>( begin: _disabledThumbSize, end: _thumbSize, ); @override void paint( PaintingContext context, Offset thumbCenter, { Animation<double>? activationAnimation, required Animation<double> enableAnimation, bool? isDiscrete, TextPainter? labelPainter, RenderBox? parentBox, required SliderThemeData sliderTheme, TextDirection? textDirection, double? value, double? textScaleFactor, Size? sizeWithOverflow, }) { final canvas = context.canvas; final colorTween = ColorTween( begin: sliderTheme.disabledThumbColor, end: sliderTheme.thumbColor, ); final size = _thumbSize * sizeTween.evaluate(enableAnimation); final thumbPath = _downTriangle(size, thumbCenter); canvas.drawPath( thumbPath, Paint()..color = colorTween.evaluate(enableAnimation)!, ); } } class _CustomValueIndicatorShape extends SliderComponentShape { const _CustomValueIndicatorShape(); static const double _indicatorSize = 4; static const double _disabledIndicatorSize = 3; static const double _slideUpHeight = 40; @override Size getPreferredSize(bool isEnabled, bool isDiscrete) { return Size.fromRadius(isEnabled ? _indicatorSize : _disabledIndicatorSize); } static final Animatable<double> sizeTween = Tween<double>( begin: _disabledIndicatorSize, end: _indicatorSize, ); @override void paint( PaintingContext context, Offset thumbCenter, { required Animation<double> activationAnimation, required Animation<double> enableAnimation, bool? isDiscrete, required TextPainter labelPainter, RenderBox? parentBox, required SliderThemeData sliderTheme, TextDirection? textDirection, double? value, double? textScaleFactor, Size? sizeWithOverflow, }) { final canvas = context.canvas; final enableColor = ColorTween( begin: sliderTheme.disabledThumbColor, end: sliderTheme.valueIndicatorColor, ); final slideUpTween = Tween<double>( begin: 0, end: _slideUpHeight, ); final size = _indicatorSize * sizeTween.evaluate(enableAnimation); final slideUpOffset = Offset(0, -slideUpTween.evaluate(activationAnimation)); final thumbPath = _upTriangle(size, thumbCenter + slideUpOffset); final paintColor = enableColor .evaluate(enableAnimation)! .withAlpha((255 * activationAnimation.value).round()); canvas.drawPath( thumbPath, Paint()..color = paintColor, ); canvas.drawLine( thumbCenter, thumbCenter + slideUpOffset, Paint() ..color = paintColor ..style = PaintingStyle.stroke ..strokeWidth = 2); labelPainter.paint( canvas, thumbCenter + slideUpOffset + Offset(-labelPainter.width / 2, -labelPainter.height - 4), ); } } class _CustomSliders extends StatefulWidget { @override _CustomSlidersState createState() => _CustomSlidersState(); } class _CustomSlidersState extends State<_CustomSliders> with RestorationMixin { final RestorableDouble _continuousStartCustomValue = RestorableDouble(40); final RestorableDouble _continuousEndCustomValue = RestorableDouble(160); final RestorableDouble _discreteCustomValue = RestorableDouble(25); @override String get restorationId => 'custom_sliders_demo'; @override void restoreState(RestorationBucket? oldBucket, bool initialRestore) { registerForRestoration( _continuousStartCustomValue, 'continuous_start_custom_value'); registerForRestoration( _continuousEndCustomValue, 'continuous_end_custom_value'); registerForRestoration(_discreteCustomValue, 'discrete_custom_value'); } @override void dispose() { _continuousStartCustomValue.dispose(); _continuousEndCustomValue.dispose(); _discreteCustomValue.dispose(); super.dispose(); } @override Widget build(BuildContext context) { final customRangeValue = RangeValues( _continuousStartCustomValue.value, _continuousEndCustomValue.value, ); final theme = Theme.of(context); final localizations = GalleryLocalizations.of(context)!; return Padding( padding: const EdgeInsets.symmetric(horizontal: 40), child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Column( mainAxisSize: MainAxisSize.min, children: [ SliderTheme( data: theme.sliderTheme.copyWith( trackHeight: 2, activeTrackColor: Colors.deepPurple, inactiveTrackColor: theme.colorScheme.onSurface.withOpacity(0.5), activeTickMarkColor: theme.colorScheme.onSurface.withOpacity(0.7), inactiveTickMarkColor: theme.colorScheme.surface.withOpacity(0.7), overlayColor: theme.colorScheme.onSurface.withOpacity(0.12), thumbColor: Colors.deepPurple, valueIndicatorColor: Colors.deepPurpleAccent, thumbShape: const _CustomThumbShape(), valueIndicatorShape: const _CustomValueIndicatorShape(), valueIndicatorTextStyle: theme.textTheme.bodyLarge! .copyWith(color: theme.colorScheme.onSurface), ), child: Slider( value: _discreteCustomValue.value, min: 0, max: 200, divisions: 5, semanticFormatterCallback: (value) => value.round().toString(), label: '${_discreteCustomValue.value.round()}', onChanged: (value) { setState(() { _discreteCustomValue.value = value; }); }, ), ), Text(localizations.demoSlidersDiscreteSliderWithCustomTheme), ], ), const SizedBox(height: 80), Column( mainAxisSize: MainAxisSize.min, children: [ SliderTheme( data: const SliderThemeData( trackHeight: 2, activeTrackColor: Colors.deepPurple, inactiveTrackColor: Colors.black26, activeTickMarkColor: Colors.white70, inactiveTickMarkColor: Colors.black, overlayColor: Colors.black12, thumbColor: Colors.deepPurple, rangeThumbShape: _CustomRangeThumbShape(), showValueIndicator: ShowValueIndicator.never, ), child: RangeSlider( values: customRangeValue, min: 0, max: 200, onChanged: (values) { setState(() { _continuousStartCustomValue.value = values.start; _continuousEndCustomValue.value = values.end; }); }, ), ), Text(localizations .demoSlidersContinuousRangeSliderWithCustomTheme), ], ), ], ), ); } } // END
gallery/lib/demos/material/sliders_demo.dart/0
{ "file_path": "gallery/lib/demos/material/sliders_demo.dart", "repo_id": "gallery", "token_count": 8944 }
874
// Copyright 2019 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:ui'; import 'package:dual_screen/dual_screen.dart'; import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/gallery_localizations.dart'; // BEGIN twoPaneDemo enum TwoPaneDemoType { foldable, tablet, smallScreen, } class TwoPaneDemo extends StatefulWidget { const TwoPaneDemo({ super.key, required this.restorationId, required this.type, }); final String restorationId; final TwoPaneDemoType type; @override TwoPaneDemoState createState() => TwoPaneDemoState(); } class TwoPaneDemoState extends State<TwoPaneDemo> with RestorationMixin { final RestorableInt _currentIndex = RestorableInt(-1); @override String get restorationId => widget.restorationId; @override void restoreState(RestorationBucket? oldBucket, bool initialRestore) { registerForRestoration(_currentIndex, 'two_pane_selected_item'); } @override void dispose() { _currentIndex.dispose(); super.dispose(); } @override Widget build(BuildContext context) { var panePriority = TwoPanePriority.both; if (widget.type == TwoPaneDemoType.smallScreen) { panePriority = _currentIndex.value == -1 ? TwoPanePriority.start : TwoPanePriority.end; } return SimulateScreen( type: widget.type, child: TwoPane( paneProportion: 0.3, panePriority: panePriority, startPane: ListPane( selectedIndex: _currentIndex.value, onSelect: (index) { setState(() { _currentIndex.value = index; }); }, ), endPane: DetailsPane( selectedIndex: _currentIndex.value, onClose: widget.type == TwoPaneDemoType.smallScreen ? () { setState(() { _currentIndex.value = -1; }); } : null, ), ), ); } } class ListPane extends StatelessWidget { final ValueChanged<int> onSelect; final int selectedIndex; const ListPane({ super.key, required this.onSelect, required this.selectedIndex, }); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( automaticallyImplyLeading: false, title: Text(GalleryLocalizations.of(context)!.demoTwoPaneList), ), body: Scrollbar( child: ListView( restorationId: 'list_demo_list_view', padding: const EdgeInsets.symmetric(vertical: 8), children: [ for (int index = 1; index < 21; index++) ListTile( onTap: () { onSelect(index); }, selected: selectedIndex == index, leading: ExcludeSemantics( child: CircleAvatar(child: Text('$index')), ), title: Text( GalleryLocalizations.of(context)!.demoTwoPaneItem(index), ), ), ], ), ), ); } } class DetailsPane extends StatelessWidget { final VoidCallback? onClose; final int selectedIndex; const DetailsPane({ super.key, required this.selectedIndex, this.onClose, }); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( automaticallyImplyLeading: false, leading: onClose == null ? null : IconButton(icon: const Icon(Icons.close), onPressed: onClose), title: Text( GalleryLocalizations.of(context)!.demoTwoPaneDetails, ), ), body: Container( color: const Color(0xfffafafa), child: Center( child: Text( selectedIndex == -1 ? GalleryLocalizations.of(context)!.demoTwoPaneSelectItem : GalleryLocalizations.of(context)! .demoTwoPaneItemDetails(selectedIndex), ), ), ), ); } } class SimulateScreen extends StatelessWidget { const SimulateScreen({ super.key, required this.type, required this.child, }); final TwoPaneDemoType type; final TwoPane child; // An approximation of a real foldable static const double foldableAspectRatio = 20 / 18; // 16x9 candy bar phone static const double singleScreenAspectRatio = 9 / 16; // Taller desktop / tablet static const double tabletAspectRatio = 4 / 3; // How wide should the hinge be, as a proportion of total width static const double hingeProportion = 1 / 35; @override Widget build(BuildContext context) { return Center( child: Container( decoration: BoxDecoration( color: Colors.black, borderRadius: BorderRadius.circular(16), ), padding: const EdgeInsets.all(14), child: AspectRatio( aspectRatio: type == TwoPaneDemoType.foldable ? foldableAspectRatio : type == TwoPaneDemoType.tablet ? tabletAspectRatio : singleScreenAspectRatio, child: LayoutBuilder(builder: (context, constraints) { final size = Size(constraints.maxWidth, constraints.maxHeight); final hingeSize = Size(size.width * hingeProportion, size.height); // Position the hinge in the middle of the display final hingeBounds = Rect.fromLTWH( (size.width - hingeSize.width) / 2, 0, hingeSize.width, hingeSize.height, ); return MediaQuery( data: MediaQueryData( size: size, displayFeatures: [ if (type == TwoPaneDemoType.foldable) DisplayFeature( bounds: hingeBounds, type: DisplayFeatureType.hinge, state: DisplayFeatureState.postureFlat, ), ], ), child: child, ); }), ), ), ); } } // END
gallery/lib/demos/reference/two_pane_demo.dart/0
{ "file_path": "gallery/lib/demos/reference/two_pane_demo.dart", "repo_id": "gallery", "token_count": 2877 }
875
{ "loading": "Зарежда се", "deselect": "Премахване на избора", "select": "Избиране", "selectable": "Може да се избере (при продължително натискане)", "selected": "Избрано", "demo": "Демонстрация", "bottomAppBar": "Лента в долната част на приложението", "notSelected": "Не е избрано", "demoCupertinoSearchTextFieldTitle": "Текстово поле за търсене", "demoCupertinoPicker": "Инструмент за избор", "demoCupertinoSearchTextFieldSubtitle": "Текстово поле за търсене в стил iOS", "demoCupertinoSearchTextFieldDescription": "Текстово поле за търсене, което дава възможност на потребителя да търси, като въвежда текст, и може да предлага и филтрира предложения.", "demoCupertinoSearchTextFieldPlaceholder": "Въведете текст", "demoCupertinoScrollbarTitle": "Лента за превъртане", "demoCupertinoScrollbarSubtitle": "Лента за превъртане в стил iOS", "demoCupertinoScrollbarDescription": "Лента за превъртане, която обхваща дадения дъщерен елемент", "demoTwoPaneItem": "Елемент {value}", "demoTwoPaneList": "Списък", "demoTwoPaneFoldableLabel": "Сгъваемо", "demoTwoPaneSmallScreenLabel": "Малък екран", "demoTwoPaneSmallScreenDescription": "Това е поведението на TwoPane на устройство с малък екран.", "demoTwoPaneTabletLabel": "Таблет/настолен компютър", "demoTwoPaneTabletDescription": "Това е поведението на TwoPane на по-голям екран, като например таблет или настолен компютър.", "demoTwoPaneTitle": "TwoPane", "demoTwoPaneSubtitle": "Адаптивни оформления на сгъваеми устройства, големи и малки екрани", "splashSelectDemo": "Избиране на демонстрация", "demoTwoPaneFoldableDescription": "Това е поведението на TwoPane на сгъваемо устройство.", "demoTwoPaneDetails": "Подробности", "demoTwoPaneSelectItem": "Избиране на елемент", "demoTwoPaneItemDetails": "Подробности за елемента {value}", "demoCupertinoContextMenuActionText": "Докоснете и задръжте логото на Flutter, за да видите контекстното меню.", "demoCupertinoContextMenuDescription": "Контекстно меню на цял екран в стил iOS, което се показва при продължително натискане на елемент.", "demoAppBarTitle": "Лента на приложението", "demoAppBarDescription": "Лентата на приложението предоставя съдържание и действия, свързани с текущия екран. Тя се използва за налагане на търговската марка, имена на екрани, навигиране и действия", "demoDividerTitle": "Разделител", "demoDividerSubtitle": "Разделителят е тънка линия, която групира съдържанието в списъци и оформления.", "demoDividerDescription": "Разделителите могат да се използват в списъци, слоеве и на други места за разделяне на съдържанието.", "demoVerticalDividerTitle": "Вертикален разделител", "demoCupertinoContextMenuTitle": "Контекстно меню", "demoCupertinoContextMenuSubtitle": "Контекстно меню в стил iOS", "demoAppBarSubtitle": "Показва информация и действия, свързани с текущия екран", "demoCupertinoContextMenuActionOne": "Действие едно", "demoCupertinoContextMenuActionTwo": "Действие две", "demoDateRangePickerDescription": "Показва диалогов прозорец с инструмент за избор на период от време с material design.", "demoDateRangePickerTitle": "Инструмент за избор на период от време", "demoNavigationDrawerUserName": "Потребителско име", "demoNavigationDrawerUserEmail": "[email protected]", "demoNavigationDrawerText": "Прекарайте пръст от ъгъла или докоснете иконата горе вляво, за да видите слоя", "demoNavigationRailTitle": "Лента за навигация", "demoNavigationRailSubtitle": "Показване на лента за навигация в дадено приложение", "demoNavigationRailDescription": "Приспособление с материален дизайн, което трябва да се показва в лявата или дясната част на дадено приложение с цел навигиране между малък брой изгледи, обикновено между три и пет.", "demoNavigationRailFirst": "1.", "demoNavigationDrawerTitle": "Слой за навигация", "demoNavigationRailThird": "3.", "replyStarredLabel": "Със звезда", "demoTextButtonDescription": "При натискане текстовите бутони показват разливане на мастило, но не се повдигат. Използвайте този тип бутони в ленти с инструменти, диалогови прозорци и при вграждане с вътрешни полета", "demoElevatedButtonTitle": "Повдигнат бутон", "demoElevatedButtonDescription": "Повдигнатите бутони добавят измерение към оформленията, които са предимно плоски. Така функциите изпъкват в претрупани или големи области.", "demoOutlinedButtonTitle": "Бутон с контури", "demoOutlinedButtonDescription": "При натискане бутоните с контури стават плътни и се повдигат. Често са в двойка с повдигащ се бутон, за да посочат алтернативно вторично действие.", "demoContainerTransformDemoInstructions": "Карти, списъци и ПБД", "demoNavigationDrawerSubtitle": "Показване на слой в лентата с приложения", "replyDescription": "Ефективно и целенасочено приложение за електронна поща", "demoNavigationDrawerDescription": "Панел с материален дизайн, който се плъзга хоризонтално от ъгъла на екрана, за да покаже връзките за навигация в дадено приложение.", "replyDraftsLabel": "Чернови", "demoNavigationDrawerToPageOne": "Елемент едно", "replyInboxLabel": "Вх. поща", "demoSharedXAxisDemoInstructions": "Бутони за напред и назад", "replySpamLabel": "Спам", "replyTrashLabel": "Кошче", "replySentLabel": "Изпратени", "demoNavigationRailSecond": "2.", "demoNavigationDrawerToPageTwo": "Елемент две", "demoFadeScaleDemoInstructions": "Модални и ПБД", "demoFadeThroughDemoInstructions": "Долна навигация", "demoSharedZAxisDemoInstructions": "Бутон за иконата за настройки", "demoSharedYAxisDemoInstructions": "Сортиране по „Пускани скоро“", "demoTextButtonTitle": "Текстови бутон", "demoSharedZAxisBeefSandwichRecipeTitle": "Сандвич с телешко", "demoSharedZAxisDessertRecipeDescription": "Рецепта за десерт", "demoSharedYAxisAlbumTileSubtitle": "Изпълнител", "demoSharedYAxisAlbumTileTitle": "Албум", "demoSharedYAxisRecentSortTitle": "Пускани скоро", "demoSharedYAxisAlphabeticalSortTitle": "A – Я", "demoSharedYAxisAlbumCount": "268 албума", "demoSharedYAxisTitle": "Споделена ос y", "demoSharedXAxisCreateAccountButtonText": "СЪЗДАВАНЕ НА ПРОФИЛ", "demoFadeScaleAlertDialogDiscardButton": "ОТХВЪРЛЯНЕ", "demoSharedXAxisSignInTextFieldLabel": "Имейл адрес или телефонен номер", "demoSharedXAxisSignInSubtitleText": "Влезте с профила си", "demoSharedXAxisSignInWelcomeText": "Здравейте, Дейвид Парк", "demoSharedXAxisIndividualCourseSubtitle": "Показван отделно", "demoSharedXAxisBundledCourseSubtitle": "Групиран", "demoFadeThroughAlbumsDestination": "Албуми", "demoSharedXAxisDesignCourseTitle": "Дизайн", "demoSharedXAxisIllustrationCourseTitle": "Илюстрация", "demoSharedXAxisBusinessCourseTitle": "Бизнес", "demoSharedXAxisArtsAndCraftsCourseTitle": "Изкуства и занаяти", "demoMotionPlaceholderSubtitle": "Вторичен текст", "demoFadeScaleAlertDialogCancelButton": "ОТКАЗ", "demoFadeScaleAlertDialogHeader": "Диалогов прозорец със сигнал", "demoFadeScaleHideFabButton": "СКРИВАНЕ НА ПБД", "demoFadeScaleShowFabButton": "ПОКАЗВАНЕ НА ПБД", "demoFadeScaleShowAlertDialogButton": "ПОКАЗВАНЕ НА МОДАЛЕН ДИАЛОГОВ ПРОЗОРЕЦ", "demoFadeScaleDescription": "Моделът с плавен преход се използва за елементи на ПИ, които влизат в рамките на екрана или излизат от тях, като например диалогов прозорец, който се появява в центъра на екрана.", "demoFadeScaleTitle": "Плавен преход", "demoFadeThroughTextPlaceholder": "123 снимки", "demoFadeThroughSearchDestination": "Търсене", "demoFadeThroughPhotosDestination": "Снимки", "demoSharedXAxisCoursePageSubtitle": "Групираните категории се показват като групи в емисията ви. Винаги можете да промените това по-късно.", "demoFadeThroughDescription": "Моделът с избледняване и появяване се използва за преходи между елементи на ПИ, които нямат силна връзка помежду си.", "demoFadeThroughTitle": "Избледняване и появяване", "demoSharedZAxisHelpSettingLabel": "Помощ", "demoMotionSubtitle": "Всички предварително дефинирани модели за преход", "demoSharedZAxisNotificationSettingLabel": "Известия", "demoSharedZAxisProfileSettingLabel": "Потребителски профил", "demoSharedZAxisSavedRecipesListTitle": "Запазени рецепти", "demoSharedZAxisBeefSandwichRecipeDescription": "Рецепта за сандвич с телешко", "demoSharedZAxisCrabPlateRecipeDescription": "Рецепта за ястие с раци", "demoSharedXAxisCoursePageTitle": "Рационализирайте курсовете си", "demoSharedZAxisCrabPlateRecipeTitle": "Раци", "demoSharedZAxisShrimpPlateRecipeDescription": "Рецепта за ястие със скариди", "demoSharedZAxisShrimpPlateRecipeTitle": "Скариди", "demoContainerTransformTypeFadeThrough": "ИЗБЛЕДНЯВАНЕ И ПОЯВЯВАНЕ", "demoSharedZAxisDessertRecipeTitle": "Десерт", "demoSharedZAxisSandwichRecipeDescription": "Рецепта за сандвич", "demoSharedZAxisSandwichRecipeTitle": "Сандвич", "demoSharedZAxisBurgerRecipeDescription": "Рецепта за хамбургер", "demoSharedZAxisBurgerRecipeTitle": "Хамбургер", "demoSharedZAxisSettingsPageTitle": "Настройки", "demoSharedZAxisTitle": "Споделена ос z", "demoSharedZAxisPrivacySettingLabel": "Поверителност", "demoMotionTitle": "Движение", "demoContainerTransformTitle": "Трансформиране на контейнер", "demoContainerTransformDescription": "Моделът с трансформиране на контейнер е създаден за преходи между елементи на ПИ, които съдържат контейнер. Моделът създава видима връзка между два елемента на ПИ.", "demoContainerTransformModalBottomSheetTitle": "Режим на плавен преход", "demoContainerTransformTypeFade": "ПЛАВЕН ПРЕХОД", "demoSharedYAxisAlbumTileDurationUnit": "мин", "demoMotionPlaceholderTitle": "Име", "demoSharedXAxisForgotEmailButtonText": "ЗАБРАВИЛИ СТЕ ИМЕЙЛ АДРЕСА СИ?", "demoMotionSmallPlaceholderSubtitle": "Вторично", "demoMotionDetailsPageTitle": "Страница с подробности", "demoMotionListTileTitle": "Списъчен елемент", "demoSharedAxisDescription": "Моделът със споделена ос се използва за преходи между елементи на ПИ, които имат пространствена или навигационна връзка. Този модел използва споделена трансформация по оста x, y или z, за да подсили връзката между елементите.", "demoSharedXAxisTitle": "Споделена ос x", "demoSharedXAxisBackButtonText": "НАЗАД", "demoSharedXAxisNextButtonText": "НАПРЕД", "demoSharedXAxisCulinaryCourseTitle": "Кулинария", "githubRepo": "Хранилище в GitHub ({repoName})", "fortnightlyMenuUS": "САЩ", "fortnightlyMenuBusiness": "Бизнес", "fortnightlyMenuScience": "Наука", "fortnightlyMenuSports": "Спорт", "fortnightlyMenuTravel": "Туризъм", "fortnightlyMenuCulture": "Култура", "fortnightlyTrendingTechDesign": "TechDesign", "rallyBudgetDetailAmountLeft": "Неизползвана сума", "fortnightlyHeadlineArmy": "Вътрешната реформа в зелената армия", "fortnightlyDescription": "Приложение за новини с фокус върху съдържанието", "rallyBillDetailAmountDue": "Дължима сума", "rallyBudgetDetailTotalCap": "Ограничение за общата сума", "rallyBudgetDetailAmountUsed": "Използвана сума", "fortnightlyTrendingHealthcareRevolution": "HealthcareRevolution", "fortnightlyMenuFrontPage": "Първа страница", "fortnightlyMenuWorld": "Свят", "rallyBillDetailAmountPaid": "Платена сума", "fortnightlyMenuPolitics": "Политика", "fortnightlyHeadlineBees": "Недостиг на пчели", "fortnightlyHeadlineGasoline": "Бъдещето на бензина", "fortnightlyTrendingGreenArmy": "GreenArmy", "fortnightlyHeadlineFeminists": "Феминисти се борят с фанатизма", "fortnightlyHeadlineFabrics": "Дизайнери използват технологии за създаването на футуристични тъкани", "fortnightlyHeadlineStocks": "Когато акциите са в застой, много хора купуват валута", "fortnightlyTrendingReform": "Reform", "fortnightlyMenuTech": "Технологии", "fortnightlyHeadlineWar": "Разделените американски съдби по време на войната", "fortnightlyHeadlineHealthcare": "Тихата, но мощна революция в здравеопазването", "fortnightlyLatestUpdates": "Най-актуална информация", "fortnightlyTrendingStocks": "Stocks", "rallyBillDetailTotalAmount": "Обща сума", "demoCupertinoPickerDateTime": "Дата и час", "signIn": "ВХОД", "dataTableRowWithSugar": "{value} със захар", "dataTableRowApplePie": "Ябълков сладкиш", "dataTableRowDonut": "Поничка", "dataTableRowHoneycomb": "Пчелна пита", "dataTableRowLollipop": "Близалка", "dataTableRowJellyBean": "Желиран бонбон", "dataTableRowGingerbread": "Джинджифилови сладки", "dataTableRowCupcake": "Кексче", "dataTableRowEclair": "Еклер", "dataTableRowIceCreamSandwich": "Сладоледен сандвич", "dataTableRowFrozenYogurt": "Замразено кисело мляко", "dataTableColumnIron": "Желязо (%)", "dataTableColumnCalcium": "Калций (%)", "dataTableColumnSodium": "Натрий (мг)", "demoTimePickerTitle": "Инструмент за избор на час", "demo2dTransformationsResetTooltip": "Нулиране на трансформациите", "dataTableColumnFat": "Мазнини (г)", "dataTableColumnCalories": "Калории", "dataTableColumnDessert": "Десерт (1 порция)", "cardsDemoTravelDestinationLocation1": "Танджавур, Тамил Наду", "demoTimePickerDescription": "Показва диалогов прозорец с инструмент за избор на час с material design.", "demoPickersShowPicker": "ПОКАЗВАНЕ НА ИНСТРУМЕНТА ЗА ИЗБОР", "demoTabsScrollingTitle": "С опция за превъртане", "demoTabsNonScrollingTitle": "Без опция за превъртане", "craneHours": "{hours,plural,=1{1 ч}other{{hours} ч}}", "craneMinutes": "{minutes,plural,=1{1 мин}other{{minutes} мин}}", "craneFlightDuration": "{hoursShortForm} и {minutesShortForm}", "dataTableHeader": "Хранене", "demoDatePickerTitle": "Инструмент за избор на дата", "demoPickersSubtitle": "Избор на дата и час", "demoPickersTitle": "Инструменти за избор", "demo2dTransformationsEditTooltip": "Редактиране на фрагмент", "demoDataTableDescription": "Таблиците с данни представят информацията, форматирана като решетка с редове и колони. Тази организация на данни спомага за лесно преглеждане, така че потребителите могат да търсят закономерности и полезна информация.", "demo2dTransformationsDescription": "Докоснете, за да редактирате фрагменти, и използвайте жестове, за да се придвижвате в сцената. Плъзнете за панорамно придвижване, съберете пръсти за промяна на мащаба, завъртете с два пръста. Натиснете бутона за нулиране, за да се върнете към първоначалната ориентация.", "demo2dTransformationsSubtitle": "Панорамно придвижване, промяна на мащаба, завъртане", "demo2dTransformationsTitle": "Двуизмерни трансформации", "demoCupertinoTextFieldPIN": "ПИН", "demoCupertinoTextFieldDescription": "Текстовите полета позволяват на потребителите да въвеждат текст посредством външна или екранна клавиатура.", "demoCupertinoTextFieldSubtitle": "Текстови полета в стил iOS", "demoCupertinoTextFieldTitle": "Текстови полета", "demoDatePickerDescription": "Показва диалогов прозорец с инструмент за избор на дата с material design.", "demoCupertinoPickerTime": "Час", "demoCupertinoPickerDate": "Дата", "demoCupertinoPickerTimer": "Таймер", "demoCupertinoPickerDescription": "Приспособление за избор на низове, дати, часове или дати и часове в стил iOS.", "demoCupertinoPickerSubtitle": "Инструменти за избор в стил iOS", "demoCupertinoPickerTitle": "Инструменти за избор", "dataTableRowWithHoney": "{value} с мед", "cardsDemoTravelDestinationCity2": "Четинад", "bannerDemoResetText": "Възстановяване на банера", "bannerDemoMultipleText": "Няколко действия", "bannerDemoLeadingText": "Икона в началото", "dismiss": "ОТХВЪРЛЯНЕ", "cardsDemoTappable": "Може да бъде докосван", "cardsDemoSelectable": "Може да бъде избрана (при продължително натискане)", "cardsDemoExplore": "Разглеждане", "cardsDemoExploreSemantics": "Разглеждане на {destinationName}", "cardsDemoShareSemantics": "Споделяне на {destinationName}", "cardsDemoTravelDestinationTitle1": "Водещите 10 града в Тамил Наду, които да посетите", "cardsDemoTravelDestinationDescription1": "Номер 10", "cardsDemoTravelDestinationCity1": "Танджавур", "dataTableColumnProtein": "Белтъчини (г)", "cardsDemoTravelDestinationTitle2": "Занаятчии от южна Индия", "cardsDemoTravelDestinationDescription2": "Предачи на коприна", "bannerDemoText": "Паролата ви бе актуализирана на другото ви устройство. Моля, влезте отново.", "cardsDemoTravelDestinationLocation2": "Шиваганга, Тамил Наду", "cardsDemoTravelDestinationTitle3": "Храм Брихадесварар", "cardsDemoTravelDestinationDescription3": "Храмове", "demoBannerTitle": "Банер", "demoBannerSubtitle": "Показване на банер в списък", "demoBannerDescription": "Банерите показват кратки важни съобщения и предлагат действия, които потребителите могат да предприемат (или да отхвърлят банера). За отхвърляне на банера е необходимо действие от страна на потребителя.", "demoCardTitle": "Карти", "demoCardSubtitle": "Базови карти със заоблени ъгли", "demoCardDescription": "Картите представляват елементи от Material, които дават информация за нещо, като например албум, географско местоположение, ястие, контакти за връзка и др.", "demoDataTableTitle": "Таблици с данни", "demoDataTableSubtitle": "Редове и колони, съдържащи информация", "dataTableColumnCarbs": "Въглехидрати (г)", "placeTanjore": "Танджавур", "demoGridListsTitle": "Таблични списъци", "placeFlowerMarket": "Пазар за цветя", "placeBronzeWorks": "Бронзолеярна", "placeMarket": "Пазар", "placeThanjavurTemple": "Танджавурски храм", "placeSaltFarm": "Солница (съоръжение)", "placeScooters": "Скутери", "placeSilkMaker": "Производител на коприна", "placeLunchPrep": "Приготвяне на обяд", "placeBeach": "Плаж", "placeFisherman": "Рибар", "demoMenuSelected": "Избрахте: {value}", "demoMenuRemove": "Премахване", "demoMenuGetLink": "Получаване на връзка", "demoMenuShare": "Споделяне", "demoBottomAppBarSubtitle": "Показва навигацията и действията в долната част", "demoMenuAnItemWithASectionedMenu": "Елемент с меню със секции", "demoMenuADisabledMenuItem": "Деактивиран елемент от менюто", "demoLinearProgressIndicatorTitle": "Линеен индикатор за напредъка", "demoMenuContextMenuItemOne": "Елемент от контекстното меню 1", "demoMenuAnItemWithASimpleMenu": "Елемент с опростено меню", "demoCustomSlidersTitle": "Персонализирани плъзгачи", "demoMenuAnItemWithAChecklistMenu": "Елемент с меню с контролен списък", "demoCupertinoActivityIndicatorTitle": "Индикатор за активността", "demoCupertinoActivityIndicatorSubtitle": "Индикатори за активността в стил iOS", "demoCupertinoActivityIndicatorDescription": "Индикатор за активността в стил iOS, който се върти по часовниковата стрелка.", "demoCupertinoNavigationBarTitle": "Лента за навигация", "demoCupertinoNavigationBarSubtitle": "Лента за навигация в стил iOS", "demoCupertinoNavigationBarDescription": "Лента за навигация в стил iOS. Това е лента с инструменти, в средата на която има поне заглавие на страница.", "demoCupertinoPullToRefreshTitle": "Дръпнете за опресняване", "demoCupertinoPullToRefreshSubtitle": "Контрола „Дръпнете за опресняване“ в стил iOS", "demoCupertinoPullToRefreshDescription": "Приспособление, което внедрява контролата за съдържание „Дръпнете за опресняване“ в стил iOS.", "demoProgressIndicatorTitle": "Индикатори за напредъка", "demoProgressIndicatorSubtitle": "Линейни, кръгови, неопределени", "demoCircularProgressIndicatorTitle": "Кръгъл индикатор за напредъка", "demoCircularProgressIndicatorDescription": "Кръгъл индикатор за напредъка в material design, който се върти, за да укаже, че приложението е заето.", "demoMenuFour": "Четири", "demoLinearProgressIndicatorDescription": "Линеен индикатор за напредъка в material design, познат и като лента за напредъка.", "demoTooltipTitle": "Подсказки", "demoTooltipSubtitle": "Кратко съобщение, което се показва при продължително натискане или задържане на курсора на мишката", "demoTooltipDescription": "Подсказките предоставят текстови етикети, които помагат да се обясни функцията на даден бутон или друго действие в потребителския интерфейс. Подсказките показват информативен текст, когато потребителят задържи курсора на мишката над даден елемент, постави фокуса върху него или го натисне продължително.", "demoTooltipInstructions": "За да се покаже подсказката, натиснете продължително или задръжте курсора на мишката.", "placeChennai": "Ченай", "demoMenuChecked": "Поставихте отметка: {value}", "placeChettinad": "Четинад", "demoMenuPreview": "Преглед", "demoBottomAppBarTitle": "Лента в долната част на приложението", "demoBottomAppBarDescription": "Лентите в долната част на приложенията предоставят достъп до слой за навигация в долния край и максимум четири действия, включително плаващия бутон за действие.", "bottomAppBarNotch": "Прорез", "bottomAppBarPosition": "Позиция на плаващия бутон за действие", "bottomAppBarPositionDockedEnd": "Прикрепен в края", "bottomAppBarPositionDockedCenter": "Прикрепен в центъра", "bottomAppBarPositionFloatingEnd": "Плаващ, в края", "bottomAppBarPositionFloatingCenter": "Плаващ, в центъра", "demoSlidersEditableNumericalValue": "Цифрова стойност, която може да се редактира", "demoGridListsSubtitle": "Оформление с редове и колони", "demoGridListsDescription": "Табличните списъци са най-подходящи за представяне на хомогенни данни, обикновено изображения. Всеки елемент в такъв списък се нарича фрагмент.", "demoGridListsImageOnlyTitle": "Само изображения", "demoGridListsHeaderTitle": "Със заглавка", "demoGridListsFooterTitle": "С долен колонтитул", "demoSlidersTitle": "Плъзгачи", "demoSlidersSubtitle": "Приспособления за избиране на стойност чрез прекарване на пръст", "demoSlidersDescription": "Плъзгачите отразяват диапазон от стойности по протежението на дадена лента, от които потребителите могат да изберат една стойност. Те са идеални за коригиране на различни настройки, като например сила на звука, яркост или прилагане на филтри към изображенията.", "demoRangeSlidersTitle": "Плъзгачи с диапазон", "demoRangeSlidersDescription": "Плъзгачите отразяват диапазон от стойности по протежението на дадена лента. В двата края на лентата може да има икони, които отразяват диапазон от стойности. Те са идеални за коригиране на различни настройки, като например сила на звука, яркост или прилагане на филтри към изображенията.", "demoMenuAnItemWithAContextMenuButton": "Елемент с контекстно меню", "demoCustomSlidersDescription": "Плъзгачите отразяват диапазон от стойности по протежението на дадена лента, от които потребителите могат да изберат една стойност или цял диапазон. Плъзгачите могат да бъдат персонализирани или с определена тема.", "demoSlidersContinuousWithEditableNumericalValue": "Неразграфен – с цифрова стойност, която може да се редактира", "demoSlidersDiscrete": "Разграфен", "demoSlidersDiscreteSliderWithCustomTheme": "Разграфен плъзгач с персонализирана тема", "demoSlidersContinuousRangeSliderWithCustomTheme": "Неразграфен плъзгач с диапазон с персонализирана тема", "demoSlidersContinuous": "Неразграфен", "placePondicherry": "Пондичери", "demoMenuTitle": "Меню", "demoContextMenuTitle": "Контекстно меню", "demoSectionedMenuTitle": "Меню със секции", "demoSimpleMenuTitle": "Обикновено меню", "demoChecklistMenuTitle": "Меню с контролен списък", "demoMenuSubtitle": "Бутони за меню и опростени менюта", "demoMenuDescription": "Менюто представлява временен панел със списък с възможности за избор, които се показват, когато потребителите взаимодействат с бутон, действие или друга контрола.", "demoMenuItemValueOne": "Елемент от менюто 1", "demoMenuItemValueTwo": "Елемент от менюто 2", "demoMenuItemValueThree": "Елемент от менюто 3", "demoMenuOne": "Едно", "demoMenuTwo": "Две", "demoMenuThree": "Три", "demoMenuContextMenuItemThree": "Елемент от контекстното меню 3", "demoCupertinoSwitchSubtitle": "Превключвател в стил iOS", "demoSnackbarsText": "Това е лента за кратки известия.", "demoCupertinoSliderSubtitle": "Плъзгач в стил iOS", "demoCupertinoSliderDescription": "Плъзгачът може да използва за избиране на непрекъснат или разграфен набор от стойности.", "demoCupertinoSliderContinuous": "Непрекъснат: {value}", "demoCupertinoSliderDiscrete": "Разграфен: {value}", "demoSnackbarsAction": "Натиснахте бутона за действие на лентата за кратки известия.", "backToGallery": "Назад към галерията", "demoCupertinoTabBarTitle": "Лента с раздели", "demoCupertinoSwitchDescription": "Превключвателят се използва за превключване на състоянието – включено/изключено – на една настройка.", "demoSnackbarsActionButtonLabel": "ДЕЙСТВИЕ", "cupertinoTabBarProfileTab": "Потребителски профил", "demoSnackbarsButtonLabel": "ПОКАЗВАНЕ НА ЛЕНТА ЗА КРАТКИ ИЗВЕСТИЯ", "demoSnackbarsDescription": "Лентите за кратки известия уведомяват потребители за процеса, който дадено приложения изпълнява или е напът да изпълни. Те се показват временно в долната част на екрана, не би трябвало да прекъсват практическата работа на потребителите и за тях не се изисква въведеното от потребителите да изчезне.", "demoSnackbarsSubtitle": "Лентите за кратки известия показват съобщения в долната част на екрана", "demoSnackbarsTitle": "Ленти за кратки известия", "demoCupertinoSliderTitle": "Плъзгач", "cupertinoTabBarChatTab": "Чат", "cupertinoTabBarHomeTab": "Начален раздел", "demoCupertinoTabBarDescription": "Лента с раздели за навигация в долната част в стил iOS. Показва множество раздели като само един е активен – по подразбиране това е първият.", "demoCupertinoTabBarSubtitle": "Лента с раздели в долната част в стил iOS", "demoOptionsFeatureTitle": "Преглед на опциите", "demoOptionsFeatureDescription": "Докоснете тук, за да видите наличните опции за тази демонстрация.", "demoCodeViewerCopyAll": "КОПИРАНЕ НА ВСИЧКО", "shrineScreenReaderRemoveProductButton": "Премахване на {product}", "shrineScreenReaderProductAddToCart": "Добавяне към кошницата", "shrineScreenReaderCart": "{quantity,plural,=0{Пазарска кошница – няма елементи}=1{Пазарска кошница – 1 елемент}other{Пазарска кошница – {quantity} елемента}}", "demoCodeViewerFailedToCopyToClipboardMessage": "Копирането в буферната памет не бе успешно: {error}", "demoCodeViewerCopiedToClipboardMessage": "Копирано в буферната памет.", "craneSleep8SemanticLabel": "Майски руини на скала над плажа", "craneSleep4SemanticLabel": "Хотел, разположен на брега на езеро, на фона на планини", "craneSleep2SemanticLabel": "Цитаделата Мачу Пикчу", "craneSleep1SemanticLabel": "Зимен пейзаж с шале и вечнозелени дървета", "craneSleep0SemanticLabel": "Бунгала над водата", "craneFly13SemanticLabel": "Крайбрежен басейн с палми", "craneFly12SemanticLabel": "Басейн с палми", "craneFly11SemanticLabel": "Тухлен фар край морето", "craneFly10SemanticLabel": "Минаретата на джамията Ал-Азхар при залез", "craneFly9SemanticLabel": "Мъж, облегнат на класическа синя кола", "craneFly8SemanticLabel": "Горичка от супердървета", "craneEat9SemanticLabel": "Щанд с печива в кафене", "craneEat2SemanticLabel": "Хамбургер", "craneFly5SemanticLabel": "Хотел, разположен на брега на езеро, на фона на планини", "demoSelectionControlsSubtitle": "Квадратчета за отметка, бутони за избор и превключватели", "craneEat10SemanticLabel": "Жена, която държи огромен сандвич с пастърма", "craneFly4SemanticLabel": "Бунгала над водата", "craneEat7SemanticLabel": "Вход към пекарна", "craneEat6SemanticLabel": "Ястие със скариди", "craneEat5SemanticLabel": "Артистична зона за сядане в ресторант", "craneEat4SemanticLabel": "Шоколадов десерт", "craneEat3SemanticLabel": "Корейско тако", "craneFly3SemanticLabel": "Цитаделата Мачу Пикчу", "craneEat1SemanticLabel": "Празен бар с високи столове", "craneEat0SemanticLabel": "Пица в пещ на дърва", "craneSleep11SemanticLabel": "Небостъргачът Тайпе 101", "craneSleep10SemanticLabel": "Минаретата на джамията Ал-Азхар при залез", "craneSleep9SemanticLabel": "Тухлен фар край морето", "craneEat8SemanticLabel": "Раци в чиния", "craneSleep7SemanticLabel": "Цветни апартаменти на площад „Рибейра“", "craneSleep6SemanticLabel": "Басейн с палми", "craneSleep5SemanticLabel": "Палатка на полето", "settingsButtonCloseLabel": "Затваряне на настройките", "demoSelectionControlsCheckboxDescription": "Квадратчетата за отметка дават възможност на потребителя да избере няколко опции от даден набор. Стойността на нормалните квадратчета за отметка е true или false, а на тези, които имат три състояния, тя може да бъде и null.", "settingsButtonLabel": "Настройки", "demoListsTitle": "Списъци", "demoListsSubtitle": "Оформления с превъртащ се списък", "demoListsDescription": "Един ред с фиксирана височина, който обикновено съдържа текст и икона, поставена в началото или края.", "demoOneLineListsTitle": "Един ред", "demoTwoLineListsTitle": "Два реда", "demoListsSecondary": "Вторичен текст", "demoSelectionControlsTitle": "Контроли за избор", "craneFly7SemanticLabel": "Планината Ръшмор", "demoSelectionControlsCheckboxTitle": "Квадратче за отметка", "craneSleep3SemanticLabel": "Мъж, облегнат на класическа синя кола", "demoSelectionControlsRadioTitle": "Бутон за избор", "demoSelectionControlsRadioDescription": "Бутоните за избор дават възможност на потребителя да избере една опция от даден набор. Използвайте ги, ако смятате, че потребителят трябва да види всички налични опции една до друга.", "demoSelectionControlsSwitchTitle": "Превключвател", "demoSelectionControlsSwitchDescription": "Превключвателите за включване/изключване променят състоянието на една опция в настройките. Състоянието на превключвателя, както и управляваната от него опция, трябва да са ясно посочени в съответния вграден етикет.", "craneFly0SemanticLabel": "Зимен пейзаж с шале и вечнозелени дървета", "craneFly1SemanticLabel": "Палатка на полето", "craneFly2SemanticLabel": "Молитвени знамена на фона на заснежени планини", "craneFly6SemanticLabel": "Дворецът на изящните изкуства от птичи поглед", "rallySeeAllAccounts": "Преглед на всички банкови сметки", "rallyBillAmount": "Сметка за {billName} на стойност {amount}, дължима на {date}.", "shrineTooltipCloseCart": "Затваряне на кошницата", "shrineTooltipCloseMenu": "Затваряне на менюто", "shrineTooltipOpenMenu": "Отваряне на менюто", "shrineTooltipSettings": "Настройки", "shrineTooltipSearch": "Търсене", "demoTabsDescription": "Разделите служат за организиране на съдържанието на различни екрани, набори от данни и други взаимодействия.", "demoTabsSubtitle": "Раздели със самостоятелно превъртащи се изгледи", "demoTabsTitle": "Раздели", "rallyBudgetAmount": "Бюджет за {budgetName}, от който са използвани {amountUsed} от общо {amountTotal} и остават {amountLeft}", "shrineTooltipRemoveItem": "Премахване на артикула", "rallyAccountAmount": "{accountName} сметка {accountNumber} с наличност {amount}.", "rallySeeAllBudgets": "Преглед на всички бюджети", "rallySeeAllBills": "Преглед на всички сметки", "craneFormDate": "Избор на дата", "craneFormOrigin": "Избор на начална точка", "craneFly2": "Долината Кхумбу, Непал", "craneFly3": "Мачу Пикчу, Перу", "craneFly4": "Мале, Малдиви", "craneFly5": "Вицнау, Швейцария", "craneFly6": "Град Мексико, Мексико", "craneFly7": "Планината Ръшмор, САЩ", "settingsTextDirectionLocaleBased": "Въз основа на локала", "craneFly9": "Хавана, Куба", "craneFly10": "Кайро, Египет", "craneFly11": "Лисабон, Португалия", "craneFly12": "Напа, САЩ", "craneFly13": "Бали, Индонезия", "craneSleep0": "Мале, Малдиви", "craneSleep1": "Аспън, САЩ", "craneSleep2": "Мачу Пикчу, Перу", "demoCupertinoSegmentedControlTitle": "Сегментиран превключвател", "craneSleep4": "Вицнау, Швейцария", "craneSleep5": "Биг Сър, САЩ", "craneSleep6": "Напа, САЩ", "craneSleep7": "Порто, Португалия", "craneSleep8": "Тулум, Мексико", "craneEat5": "Сеул, Южна Корея", "demoChipTitle": "Чипове", "demoChipSubtitle": "Компактни елементи, които представят информация за въвеждане, атрибут или действие", "demoActionChipTitle": "Чип за действие", "demoActionChipDescription": "Чиповете за действие представляват набор от опции, които задействат действие, свързано с основното съдържание. Те трябва да се показват в потребителския интерфейс динамично и спрямо контекста.", "demoChoiceChipTitle": "Чип за избор", "demoChoiceChipDescription": "Чиповете за избор представят един избор от даден набор. Те съдържат свързан описателен текст или категории.", "demoFilterChipTitle": "Чип за филтриране", "demoFilterChipDescription": "Чиповете за филтриране използват маркери или описателни думи за филтриране на съдържанието.", "demoInputChipTitle": "Чип за въвеждане", "demoInputChipDescription": "Чиповете за въвеждане представят сложна информация, като например субект (лице, място или предмет) или разговорен текст, в компактен вид.", "craneSleep9": "Лисабон, Португалия", "craneEat10": "Лисабон, Португалия", "demoCupertinoSegmentedControlDescription": "Служи за избор между няколко взаимоизключващи се опции. При избиране на някоя от опциите в сегментирания превключвател останалите се деактивират.", "chipTurnOnLights": "Включване на светлинните индикатори", "chipSmall": "Малък", "chipMedium": "Среден", "chipLarge": "Голям", "chipElevator": "Асансьор", "chipWasher": "Пералня", "chipFireplace": "Камина", "chipBiking": "Колоездене", "craneFormDiners": "Закусвални", "rallyAlertsMessageUnassignedTransactions": "{count,plural,=1{Увеличете потенциалните данъчни облекчения! Задайте категории за 1 транзакция, която няма такива.}other{Увеличете потенциалните данъчни облекчения! Задайте категории за {count} транзакции, които нямат такива.}}", "craneFormTime": "Избор на час", "craneFormLocation": "Избор на местоположение", "craneFormTravelers": "Пътуващи", "craneEat8": "Атланта, САЩ", "craneFormDestination": "Избор на дестинация", "craneFormDates": "Избор на дати", "craneFly": "ПОЛЕТИ", "craneSleep": "СПАНЕ", "craneEat": "ХРАНЕНЕ", "craneFlySubhead": "Разглеждане на полети по дестинация", "craneSleepSubhead": "Разглеждане на имоти по дестинация", "craneEatSubhead": "Разглеждане на ресторанти по дестинация", "craneFlyStops": "{numberOfStops,plural,=0{Директен}=1{1 прекачване}other{{numberOfStops} прекачвания}}", "craneSleepProperties": "{totalProperties,plural,=0{Няма свободни имоти}=1{1 свободен имот}other{{totalProperties} свободни имота}}", "craneEatRestaurants": "{totalRestaurants,plural,=0{Няма ресторанти}=1{1 ресторант}other{{totalRestaurants} ресторанта}}", "craneFly0": "Аспън, САЩ", "demoCupertinoSegmentedControlSubtitle": "Сегментиран превключвател в стил iOS", "craneSleep10": "Кайро, Египет", "craneEat9": "Мадрид, Испания", "craneFly1": "Биг Сър, САЩ", "craneEat7": "Нашвил, САЩ", "craneEat6": "Сиатъл, САЩ", "craneFly8": "Сингапур", "craneEat4": "Париж, Франция", "craneEat3": "Портланд, САЩ", "craneEat2": "Кордоба, Аржентина", "craneEat1": "Далас, САЩ", "craneEat0": "Неапол, Италия", "craneSleep11": "Тайпе, Тайван", "craneSleep3": "Хавана, Куба", "shrineLogoutButtonCaption": "ИЗХОД", "rallyTitleBills": "СМЕТКИ", "rallyTitleAccounts": "СМЕТКИ", "shrineProductVagabondSack": "Раница", "rallyAccountDetailDataInterestYtd": "Лихва от началото на годината", "shrineProductWhitneyBelt": "Кафяв колан", "shrineProductGardenStrand": "Огърлица", "shrineProductStrutEarrings": "Обици", "shrineProductVarsitySocks": "Спортни чорапи", "shrineProductWeaveKeyring": "Халка за ключове с плетена дръжка", "shrineProductGatsbyHat": "Шапка с периферия", "shrineProductShrugBag": "Чанта за рамо", "shrineProductGiltDeskTrio": "Комплект за бюро", "shrineProductCopperWireRack": "Полица от медна тел", "shrineProductSootheCeramicSet": "Керамичен сервиз", "shrineProductHurrahsTeaSet": "Сервиз за чай", "shrineProductBlueStoneMug": "Синя керамична чаша", "shrineProductRainwaterTray": "Поднос", "shrineProductChambrayNapkins": "Салфетки от шамбре", "shrineProductSucculentPlanters": "Сукулентни растения", "shrineProductQuartetTable": "Маса", "shrineProductKitchenQuattro": "Кухненски комплект", "shrineProductClaySweater": "Пастелен пуловер", "shrineProductSeaTunic": "Туника", "shrineProductPlasterTunic": "Бяла туника", "rallyBudgetCategoryRestaurants": "Ресторанти", "shrineProductChambrayShirt": "Риза от шамбре", "shrineProductSeabreezeSweater": "Светлосин пуловер", "shrineProductGentryJacket": "Мъжко яке", "shrineProductNavyTrousers": "Тъмносини панталони", "shrineProductWalterHenleyWhite": "Бяла блуза", "shrineProductSurfAndPerfShirt": "Светлосиня тениска", "shrineProductGingerScarf": "Бежов шал", "shrineProductRamonaCrossover": "Дамска риза", "shrineProductClassicWhiteCollar": "Класическа бяла якичка", "shrineProductSunshirtDress": "Плажна рокля", "rallyAccountDetailDataInterestRate": "Лихвен процент", "rallyAccountDetailDataAnnualPercentageYield": "Годишна доходност", "rallyAccountDataVacation": "Почивка", "shrineProductFineLinesTee": "Тениска на райета", "rallyAccountDataHomeSavings": "Депозит за жилище", "rallyAccountDataChecking": "Разплащателна сметка", "rallyAccountDetailDataInterestPaidLastYear": "Лихва през миналата година", "rallyAccountDetailDataNextStatement": "Следващото извлечение", "rallyAccountDetailDataAccountOwner": "Титуляр на сметката", "rallyBudgetCategoryCoffeeShops": "Кафенета", "rallyBudgetCategoryGroceries": "Хранителни стоки", "shrineProductCeriseScallopTee": "Черешова тениска", "rallyBudgetCategoryClothing": "Облекло", "rallySettingsManageAccounts": "Управление на сметките", "rallyAccountDataCarSavings": "Депозит за автомобил", "rallySettingsTaxDocuments": "Данъчни документи", "rallySettingsPasscodeAndTouchId": "Код за достъп и Touch ID", "rallySettingsNotifications": "Известия", "rallySettingsPersonalInformation": "Лична информация", "rallySettingsPaperlessSettings": "Настройки за работа без хартия", "rallySettingsFindAtms": "Намиране на банкомати", "rallySettingsHelp": "Помощ", "rallySettingsSignOut": "Изход", "rallyAccountTotal": "Общо", "rallyBillsDue": "Дължими", "rallyBudgetLeft": "Остават", "rallyAccounts": "Сметки", "rallyBills": "Сметки", "rallyBudgets": "Бюджети", "rallyAlerts": "Сигнали", "rallySeeAll": "ПРЕГЛЕД НА ВСИЧКИ", "rallyFinanceLeft": "ОСТАВАТ", "rallyTitleOverview": "ОБЩ ПРЕГЛЕД", "shrineProductShoulderRollsTee": "Тениска", "shrineNextButtonCaption": "НАПРЕД", "rallyTitleBudgets": "БЮДЖЕТИ", "rallyTitleSettings": "НАСТРОЙКИ", "rallyLoginLoginToRally": "Вход в Rally", "rallyLoginNoAccount": "Нямате профил?", "rallyLoginSignUp": "РЕГИСТРИРАНЕ", "rallyLoginUsername": "Потребителско име", "rallyLoginPassword": "Парола", "rallyLoginLabelLogin": "Вход", "rallyLoginRememberMe": "Запомнете ме", "rallyLoginButtonLogin": "ВХОД", "rallyAlertsMessageHeadsUpShopping": "Внимание! Изхарчихте {percent} от бюджета си за пазаруване за този месец.", "rallyAlertsMessageSpentOnRestaurants": "Тази седмица сте изхарчили {amount} за ресторанти.", "rallyAlertsMessageATMFees": "Този месец сте изхарчили {amount} за такси за банкомат", "rallyAlertsMessageCheckingAccount": "Браво! Разплащателната ви сметка е с(ъс) {percent} повече средства спрямо миналия месец.", "shrineMenuCaption": "МЕНЮ", "shrineCategoryNameAll": "ВСИЧКИ", "shrineCategoryNameAccessories": "АКСЕСОАРИ", "shrineCategoryNameClothing": "ОБЛЕКЛО", "shrineCategoryNameHome": "ДОМАШНИ", "shrineLoginUsernameLabel": "Потребителско име", "shrineLoginPasswordLabel": "Парола", "shrineCancelButtonCaption": "ОТКАЗ", "shrineCartTaxCaption": "Данък:", "shrineCartPageCaption": "КОШНИЦА", "shrineProductQuantity": "Количество: {quantity}", "shrineProductPrice": "x {price}", "shrineCartItemCount": "{quantity,plural,=0{НЯМА АРТИКУЛИ}=1{1 АРТИКУЛ}other{{quantity} АРТИКУЛА}}", "shrineCartClearButtonCaption": "ИЗЧИСТВАНЕ НА КОШНИЦАТА", "shrineCartTotalCaption": "ОБЩО", "shrineCartSubtotalCaption": "Междинна сума:", "shrineCartShippingCaption": "Доставка:", "shrineProductGreySlouchTank": "Сива фланелка без ръкави", "shrineProductStellaSunglasses": "Слънчеви очила Stella", "shrineProductWhitePinstripeShirt": "Бяла риза с тънки райета", "demoTextFieldWhereCanWeReachYou": "Как можем да се свържем с вас?", "settingsTextDirectionLTR": "От ляво надясно", "settingsTextScalingLarge": "Голям", "demoBottomSheetHeader": "Заглавка", "demoBottomSheetItem": "Артикул {value}", "demoBottomTextFieldsTitle": "Текстови полета", "demoTextFieldTitle": "Текстови полета", "demoTextFieldSubtitle": "Един ред от текст и числа, който може да се редактира", "demoTextFieldDescription": "Текстовите полета дават възможност на потребителите да въвеждат текст в потребителския интерфейс. Те обикновено се срещат в диалогови прозорци и формуляри.", "demoTextFieldShowPasswordLabel": "Показване на паролата", "demoTextFieldHidePasswordLabel": "Скриване на паролата", "demoTextFieldFormErrors": "Моля, коригирайте грешките в червено, преди да изпратите.", "demoTextFieldNameRequired": "Трябва да въведете име.", "demoTextFieldOnlyAlphabeticalChars": "Моля, въведете само букви.", "demoTextFieldEnterUSPhoneNumber": "(XXX) XXX-XXXX – Въведете телефонен номер от САЩ.", "demoTextFieldEnterPassword": "Моля, въведете парола.", "demoTextFieldPasswordsDoNotMatch": "Паролите не съвпадат", "demoTextFieldWhatDoPeopleCallYou": "Как ви наричат хората?", "demoTextFieldNameField": "Име*", "demoBottomSheetButtonText": "ПОКАЗВАНЕ НА ДОЛНИЯ ЛИСТ", "demoTextFieldPhoneNumber": "Телефонен номер*", "demoBottomSheetTitle": "Долен лист", "demoTextFieldEmail": "Имейл адрес", "demoTextFieldTellUsAboutYourself": "Разкажете ни за себе си (напр. напишете с какво се занимавате или какви хобита имате)", "demoTextFieldKeepItShort": "Пишете кратко, това е демонстрация.", "starterAppGenericButton": "БУТОН", "demoTextFieldLifeStory": "Биография", "demoTextFieldSalary": "Заплата", "demoTextFieldUSD": "USD", "demoTextFieldNoMoreThan": "Не повече от 8 знака.", "demoTextFieldPassword": "Парола*", "demoTextFieldRetypePassword": "Въведете отново паролата*", "demoTextFieldSubmit": "ИЗПРАЩАНЕ", "demoBottomNavigationSubtitle": "Долна навигация с преливащи се изгледи", "demoBottomSheetAddLabel": "Добавяне", "demoBottomSheetModalDescription": "Модалният долен лист е алтернатива на менюто или диалоговия прозорец, като не допуска потребителят да взаимодейства с останалата част от приложението.", "demoBottomSheetModalTitle": "Модален долен лист", "demoBottomSheetPersistentDescription": "Постоянният долен лист показва информация, допълваща основното съдържание на приложението. Той остава видим дори когато потребителят взаимодейства с други части на приложението.", "demoBottomSheetPersistentTitle": "Постоянен долен лист", "demoBottomSheetSubtitle": "Постоянен и модален долен лист", "demoTextFieldNameHasPhoneNumber": "Телефонният номер на {name} е {phoneNumber}", "buttonText": "БУТОН", "demoTypographyDescription": "Дефиниции за различните типографски стилове в Material Design.", "demoTypographySubtitle": "Всички предварително дефинирани текстови стилове", "demoTypographyTitle": "Типография", "demoFullscreenDialogDescription": "Свойството fullscreenDialog посочва дали входящата страница е модален диалогов прозорец на цял екран", "demoFlatButtonDescription": "При натискане плоските бутони показват разливане на мастило, но не се повдигат. Използвайте този тип бутони в ленти с инструменти, диалогови прозорци и при вграждане с вътрешни полета", "demoBottomNavigationDescription": "Долните ленти за навигация са в долната част на екрана и в тях се показват от три до пет дестинации. Всяка дестинация е означена с икона и незадължителен текстов етикет. Когато потребителят докосне долна икона за навигация, преминава към навигационната дестинация от първо ниво, свързана с иконата.", "demoBottomNavigationSelectedLabel": "Избран етикет", "demoBottomNavigationPersistentLabels": "Постоянни етикети", "starterAppDrawerItem": "Артикул {value}", "demoTextFieldRequiredField": "* указва задължително поле", "demoBottomNavigationTitle": "Долна навигация", "settingsLightTheme": "Светла", "settingsTheme": "Тема", "settingsPlatformIOS": "iOS", "settingsPlatformAndroid": "Android", "settingsTextDirectionRTL": "От дясно наляво", "settingsTextScalingHuge": "Огромен", "cupertinoButton": "Бутон", "settingsTextScalingNormal": "Нормален", "settingsTextScalingSmall": "Малък", "settingsSystemDefault": "Система", "settingsTitle": "Настройки", "rallyDescription": "Приложение за лични финанси", "aboutDialogDescription": "За да видите изходния код за това приложение, моля, посетете {repoLink}.", "bottomNavigationCommentsTab": "Коментари", "starterAppGenericBody": "Основен текст", "starterAppGenericHeadline": "Заглавие", "starterAppGenericSubtitle": "Подзаглавие", "starterAppGenericTitle": "Заглавие", "starterAppTooltipSearch": "Търсене", "starterAppTooltipShare": "Споделяне", "starterAppTooltipFavorite": "Означаване като любимо", "starterAppTooltipAdd": "Добавяне", "bottomNavigationCalendarTab": "Календар", "starterAppDescription": "Адаптивно оформление за стартиране", "starterAppTitle": "Приложение Starter", "aboutFlutterSamplesRepo": "Хранилище в GitHub с примери за Flutter", "bottomNavigationContentPlaceholder": "Заместващ текст за раздел {title}", "bottomNavigationCameraTab": "Камера", "bottomNavigationAlarmTab": "Будилник", "bottomNavigationAccountTab": "Сметка", "demoTextFieldYourEmailAddress": "Имейл адресът ви", "demoToggleButtonDescription": "Бутоните за превключване могат да се използват за групиране на сродни опции. За да изпъкнат групите със сродни бутони за превключване, всяка група трябва да споделя общ контейнер", "colorsGrey": "СИВО", "colorsBrown": "КАФЯВО", "colorsDeepOrange": "НАСИТЕНО ОРАНЖЕВО", "colorsOrange": "ОРАНЖЕВО", "colorsAmber": "КЕХЛИБАРЕНО", "colorsYellow": "ЖЪЛТО", "colorsLime": "ЛИМОНОВОЗЕЛЕНО", "colorsLightGreen": "СВЕТЛОЗЕЛЕНО", "colorsGreen": "ЗЕЛЕНО", "homeHeaderGallery": "Галерия", "homeHeaderCategories": "Категории", "shrineDescription": "Приложение за продажба на модни стоки", "craneDescription": "Персонализирано приложение за пътувания", "homeCategoryReference": "СТИЛОВЕ И ДР.", "demoInvalidURL": "URL адресът не се показа:", "demoOptionsTooltip": "Опции", "demoInfoTooltip": "Информация", "demoCodeTooltip": "Код за демонстрация", "demoDocumentationTooltip": "Документация на API", "demoFullscreenTooltip": "Цял екран", "settingsTextScaling": "Промяна на мащаба на текста", "settingsTextDirection": "Посока на текста", "settingsLocale": "Локал", "settingsPlatformMechanics": "Механика на платформата", "settingsDarkTheme": "Тъмна", "settingsSlowMotion": "Забавен каданс", "settingsAbout": "Всичко за галерията на Flutter", "settingsFeedback": "Изпращане на отзиви", "settingsAttribution": "Дизайн от TOASTER от Лондон", "demoButtonTitle": "Бутони", "demoButtonSubtitle": "Текстови, повдигнати, с контури и др.", "demoFlatButtonTitle": "Плосък бутон", "demoRaisedButtonDescription": "Повдигащите се бутони добавят измерение към оформленията, които са предимно плоски. Така функциите изпъкват в претрупани или големи области.", "demoRaisedButtonTitle": "Повдигащ се бутон", "demoOutlineButtonTitle": "Бутон с контури", "demoOutlineButtonDescription": "При натискане бутоните с контури стават плътни и се повдигат. Често са в двойка с повдигащ се бутон, за да посочат алтернативно вторично действие.", "demoToggleButtonTitle": "Бутони за превключване", "colorsTeal": "СИНЬО-ЗЕЛЕНО", "demoFloatingButtonTitle": "Плаващ бутон за действие (ПБД)", "demoFloatingButtonDescription": "Плаващият бутон за действие представлява бутон с кръгла икона, която се задържа над съдържанието, за да подпомогне основно действие в приложението.", "demoDialogTitle": "Диалогови прозорци", "demoDialogSubtitle": "Опростени, със сигнал и на цял екран", "demoAlertDialogTitle": "Сигнал", "demoAlertDialogDescription": "Диалоговият прозорец със сигнал информира потребителя за ситуации, в които се изисква потвърждение. Той включва незадължителни заглавие и списък с действия.", "demoAlertTitleDialogTitle": "Сигнал със заглавие", "demoSimpleDialogTitle": "Опростен", "demoSimpleDialogDescription": "Опростеният диалогов прозорец предлага на потребителя възможност за избор между няколко опции. Той включва незадължително заглавие, което се показва над възможностите за избор.", "demoFullscreenDialogTitle": "На цял екран", "demoCupertinoButtonsTitle": "Бутони", "demoCupertinoButtonsSubtitle": "Бутони в стил iOS", "demoCupertinoButtonsDescription": "Бутон в стил iOS. Включва текст и/или икона, които плавно избледняват и се появяват при докосване. По избор може да има фон.", "demoCupertinoAlertsTitle": "Сигнали", "demoCupertinoAlertsSubtitle": "Диалогови прозорци със сигнали в стил iOS", "demoCupertinoAlertTitle": "Сигнал", "demoCupertinoAlertDescription": "Диалоговият прозорец със сигнал информира потребителя за ситуации, в които се изисква потвърждение. Той включва незадължителни заглавие, съдържание и списък с действия. Заглавието се показва над съдържанието, а действията – под него.", "demoCupertinoAlertWithTitleTitle": "Сигнал със заглавие", "demoCupertinoAlertButtonsTitle": "Сигнал с бутони", "demoCupertinoAlertButtonsOnlyTitle": "Само бутоните за сигнали", "demoCupertinoActionSheetTitle": "Таблица с действия", "demoCupertinoActionSheetDescription": "Таблицата с действия представлява конкретен стил за сигнали, при който на потребителя се предоставя набор от две или повече възможности за избор, свързани с текущия контекст. Тя може да има заглавие, допълнително съобщение и списък с действия.", "demoColorsTitle": "Цветове", "demoColorsSubtitle": "Всички предварително зададени цветове", "demoColorsDescription": "Цветове и константите на цветовите образци, които представляват цветовата палитра на Material Design.", "buttonTextEnabled": "ENABLED", "buttonTextDisabled": "DISABLED", "buttonTextCreate": "Създаване", "dialogSelectedOption": "Избрахте: {value}", "dialogDiscardTitle": "Да се отхвърли ли черновата?", "dialogLocationTitle": "Да се използва ли услугата на Google за местоположението?", "dialogLocationDescription": "Позволете на Google да помага на приложенията да определят местоположението. Това означава, че ще ни изпращате анонимни данни за него дори когато не се изпълняват приложения.", "dialogCancel": "ОТКАЗ", "dialogDiscard": "ОТХВЪРЛЯНЕ", "dialogDisagree": "НЕ ПРИЕМАМ", "dialogAgree": "ПРИЕМАМ", "dialogSetBackup": "Задаване на профил за резервни копия", "colorsBlueGrey": "СИНЬО-СИВО", "dialogShow": "ПОКАЗВАНЕ НА ДИАЛОГОВИЯ ПРОЗОРЕЦ", "dialogFullscreenTitle": "Диалогов прозорец на цял екран", "dialogFullscreenSave": "ЗАПАЗВАНЕ", "dialogFullscreenDescription": "Демонстрация на диалогов прозорец на цял екран", "cupertinoButtonEnabled": "Enabled", "cupertinoButtonDisabled": "Disabled", "cupertinoButtonWithBackground": "С фон", "cupertinoAlertCancel": "Отказ", "cupertinoAlertDiscard": "Отхвърляне", "cupertinoAlertLocationTitle": "Да се разреши ли на Карти да осъществява достъп до местоположението ви, докато използвате приложението?", "cupertinoAlertLocationDescription": "Текущото ви местоположение ще се показва на картата и ще се използва за упътвания, резултати от търсенето в района и приблизително време на пътуване.", "cupertinoAlertAllow": "Разрешаване", "cupertinoAlertDontAllow": "Без разрешаване", "cupertinoAlertFavoriteDessert": "Изберете любим десерт", "cupertinoAlertDessertDescription": "Моля, посочете любимия си десерт от списъка по-долу. Изборът ви ще се използва за персонализиране на предложения списък със заведения за хранене в района ви.", "cupertinoAlertCheesecake": "Чийзкейк", "cupertinoAlertTiramisu": "Тирамису", "cupertinoAlertApplePie": "Ябълков сладкиш", "cupertinoAlertChocolateBrownie": "Шоколадово брауни", "cupertinoShowAlert": "Показване на сигнала", "colorsRed": "ЧЕРВЕНО", "colorsPink": "РОЗОВО", "colorsPurple": "ЛИЛАВО", "colorsDeepPurple": "НАСИТЕНО ЛИЛАВО", "colorsIndigo": "ИНДИГО", "colorsBlue": "СИНЬО", "colorsLightBlue": "СВЕТЛОСИНЬО", "colorsCyan": "СИНЬО-ЗЕЛЕНО", "dialogAddAccount": "Добавяне на профил", "Gallery": "Галерия", "Categories": "Категории", "SHRINE": "ОЛТАР", "Basic shopping app": "Основно приложение за пазаруване", "RALLY": "РАЛИ", "CRANE": "ЖЕРАВ", "Travel app": "Приложение за пътуване", "MATERIAL": "МАТЕРИАЛ", "CUPERTINO": "КУПЪРТИНО", "REFERENCE STYLES & MEDIA": "СТИЛОВЕ ЗА СПРАВОЧНИЦИТЕ И МУЛТИМЕДИЯ" }
gallery/lib/l10n/intl_bg.arb/0
{ "file_path": "gallery/lib/l10n/intl_bg.arb", "repo_id": "gallery", "token_count": 38654 }
876
{ "loading": "Chargement en cours…", "deselect": "Désélectionner", "select": "Sélectionner", "selectable": "Peut être sélectionné (avec un appui prolongé)", "selected": "Sélectionné", "demo": "Démo", "bottomAppBar": "Barre d'applications inférieure", "notSelected": "Non sélectionné", "demoCupertinoSearchTextFieldTitle": "Champ de recherche textuelle", "demoCupertinoPicker": "Sélecteur", "demoCupertinoSearchTextFieldSubtitle": "Champ de texte de recherche de style iOS", "demoCupertinoSearchTextFieldDescription": "Un champ de texte de recherche qui permet à l'utilisateur d'effectuer une recherche en entrant du texte, et qui peut proposer et filtrer des suggestions.", "demoCupertinoSearchTextFieldPlaceholder": "Entrez du texte", "demoCupertinoScrollbarTitle": "Barre de défilement", "demoCupertinoScrollbarSubtitle": "Barre de défilement de style iOS", "demoCupertinoScrollbarDescription": "Une barre de défilement qui enveloppe l'enfant donné", "demoTwoPaneItem": "Élément {value}", "demoTwoPaneList": "Liste", "demoTwoPaneFoldableLabel": "Pliable", "demoTwoPaneSmallScreenLabel": "Petit écran", "demoTwoPaneSmallScreenDescription": "Voici comment s'affiche TwoPane sur un appareil à petit écran.", "demoTwoPaneTabletLabel": "Tablette/Ordinateur de bureau", "demoTwoPaneTabletDescription": "Voici comment TwoPane s'affiche sur un écran plus grand, comme une tablette ou un ordinateur de bureau.", "demoTwoPaneTitle": "TwoPane", "demoTwoPaneSubtitle": "Des mises en page réactives sur des écrans pliables, grands et petits", "splashSelectDemo": "Sélectionnez une démo", "demoTwoPaneFoldableDescription": "Voici comment s'affiche TwoPane sur un appareil pliable.", "demoTwoPaneDetails": "Détails", "demoTwoPaneSelectItem": "Sélectionner un élément", "demoTwoPaneItemDetails": "Détails de l'élément {value}", "demoCupertinoContextMenuActionText": "Maintenez le doigt sur le logo de Flutter afin que le menu contextuel s'affiche.", "demoCupertinoContextMenuDescription": "Un menu contextuel plein écran de style iOS qui s'affiche lorsqu'un appui prolongé est fait sur un élément.", "demoAppBarTitle": "Barre d'applications", "demoAppBarDescription": "La barre d'applications vous présente des contenus et des actions relatifs au contenu de l'écran actuel. Elle est utilisée pour la stratégie de marque, les titres d'écran, la navigation et les actions", "demoDividerTitle": "Séparateur", "demoDividerSubtitle": "Un séparateur est une fine ligne qui regroupe les contenus dans les listes et les mises en page.", "demoDividerDescription": "Les séparateurs peuvent être utilisés dans les listes, les tiroirs de navigation et ailleurs pour séparer le contenu.", "demoVerticalDividerTitle": "Séparateur vertical", "demoCupertinoContextMenuTitle": "Menu contextuel", "demoCupertinoContextMenuSubtitle": "Menu contextuel de style iOS", "demoAppBarSubtitle": "Affiche des renseignements et des actions relatifs au contenu de l'écran actuel", "demoCupertinoContextMenuActionOne": "Première action", "demoCupertinoContextMenuActionTwo": "Deuxième action", "demoDateRangePickerDescription": "Affiche une boîte de dialogue comportant un outil Material Design de sélection de périodes.", "demoDateRangePickerTitle": "Sélecteur de périodes", "demoNavigationDrawerUserName": "Nom d'utilisateur", "demoNavigationDrawerUserEmail": "[email protected]", "demoNavigationDrawerText": "Balayez l'écran à partir du bord ou touchez l'icône située dans le coin supérieur gauche pour afficher le panneau", "demoNavigationRailTitle": "Rail de navigation", "demoNavigationRailSubtitle": "Affichage d'un rail de navigation dans une application", "demoNavigationRailDescription": "Widget Material Design qui doit être affiché à la gauche ou la droite d'une application pour naviguer entre un petit nombre de vues (généralement entre trois et cinq).", "demoNavigationRailFirst": "Premier", "demoNavigationDrawerTitle": "Panneau de navigation", "demoNavigationRailThird": "Troisième", "replyStarredLabel": "Marqués d'une étoile", "demoTextButtonDescription": "Un bouton plat affiche une éclaboussure d'encre lors de la pression, mais ne se soulève pas. Utilisez les boutons plats dans les barres d'outils, les boîtes de dialogue et sous forme de bouton aligné avec du remplissage", "demoElevatedButtonTitle": "Bouton surélevé", "demoElevatedButtonDescription": "Les boutons surélevés ajoutent une dimension aux mises en page plates. Ils font ressortir les fonctions dans les espaces occupés ou vastes.", "demoOutlinedButtonTitle": "Bouton avec contours", "demoOutlinedButtonDescription": "Les boutons avec contours deviennent opaques et s'élèvent lorsqu'on appuie sur ceux-ci. Ils sont souvent utilisés en association avec des boutons surélevés pour indiquer une autre action, secondaire.", "demoContainerTransformDemoInstructions": "Cartes, listes et bouton d'action flottant", "demoNavigationDrawerSubtitle": "Affichage d'un panneau dans la barre d'applications", "replyDescription": "Une application de courriel efficace et épurée", "demoNavigationDrawerDescription": "Panneau Material Design à faire glisser horizontalement vers l'intérieur à partir du bord de l'écran pour afficher les liens de navigation dans une application.", "replyDraftsLabel": "Brouillons", "demoNavigationDrawerToPageOne": "Élément un", "replyInboxLabel": "Boîte de réception", "demoSharedXAxisDemoInstructions": "Boutons Suivant et Retour", "replySpamLabel": "Pourriel", "replyTrashLabel": "Corbeille", "replySentLabel": "Envoyés", "demoNavigationRailSecond": "Deuxième", "demoNavigationDrawerToPageTwo": "Élément deux", "demoFadeScaleDemoInstructions": "Fenêtre modale et bouton d'action flottant", "demoFadeThroughDemoInstructions": "Barre de navigation inférieure", "demoSharedZAxisDemoInstructions": "Bouton de l'icône des paramètres", "demoSharedYAxisDemoInstructions": "Trier par « Écouté récemment »", "demoTextButtonTitle": "Bouton plat", "demoSharedZAxisBeefSandwichRecipeTitle": "Sandwich au bœuf", "demoSharedZAxisDessertRecipeDescription": "Recette de dessert", "demoSharedYAxisAlbumTileSubtitle": "Artiste", "demoSharedYAxisAlbumTileTitle": "Album", "demoSharedYAxisRecentSortTitle": "Écouté récemment", "demoSharedYAxisAlphabeticalSortTitle": "A à Z", "demoSharedYAxisAlbumCount": "268 albums", "demoSharedYAxisTitle": "Axe y partagé", "demoSharedXAxisCreateAccountButtonText": "CRÉER UN COMPTE", "demoFadeScaleAlertDialogDiscardButton": "SUPPRIMER", "demoSharedXAxisSignInTextFieldLabel": "Adresse de courriel ou numéro de téléphone", "demoSharedXAxisSignInSubtitleText": "Connectez-vous avec votre compte", "demoSharedXAxisSignInWelcomeText": "Bonjour David Park", "demoSharedXAxisIndividualCourseSubtitle": "Affichées individuellement", "demoSharedXAxisBundledCourseSubtitle": "Groupées", "demoFadeThroughAlbumsDestination": "Albums", "demoSharedXAxisDesignCourseTitle": "Conception", "demoSharedXAxisIllustrationCourseTitle": "Illustration", "demoSharedXAxisBusinessCourseTitle": "Affaires", "demoSharedXAxisArtsAndCraftsCourseTitle": "Arts et artisanat", "demoMotionPlaceholderSubtitle": "Texte secondaire", "demoFadeScaleAlertDialogCancelButton": "ANNULER", "demoFadeScaleAlertDialogHeader": "Boîte de dialogue d'alerte", "demoFadeScaleHideFabButton": "MASQUER LE BOUTON FLOTTANT D'ACTION", "demoFadeScaleShowFabButton": "AFFICHER LE BOUTON FLOTTANT D'ACTION", "demoFadeScaleShowAlertDialogButton": "AFFICHER LA BOÎTE DE DIALOGUE MODALE", "demoFadeScaleDescription": "Le motif d'atténuation est utilisé pour les éléments d'IU qui apparaissent et disparaissent dans limites de l'écran, comme une boîte de dialogue au centre de l'écran.", "demoFadeScaleTitle": "Atténuation", "demoFadeThroughTextPlaceholder": "123 photos", "demoFadeThroughSearchDestination": "Rechercher", "demoFadeThroughPhotosDestination": "Photos", "demoSharedXAxisCoursePageSubtitle": "Les catégories groupées s'affichent comme groupes dans votre flux. Vous pourrez toujours modifier ce paramètre plus tard.", "demoFadeThroughDescription": "Le motif d'atténuation graduelle est utilisé pour les transitions entre les éléments d'IU qui ne possèdent pas de relation marquée entre eux.", "demoFadeThroughTitle": "Atténuation graduelle", "demoSharedZAxisHelpSettingLabel": "Aide", "demoMotionSubtitle": "Tous les motifs de la transition prédéfinie", "demoSharedZAxisNotificationSettingLabel": "Notifications", "demoSharedZAxisProfileSettingLabel": "Profil", "demoSharedZAxisSavedRecipesListTitle": "Recettes enregistrées", "demoSharedZAxisBeefSandwichRecipeDescription": "Recette de sandwich au bœuf", "demoSharedZAxisCrabPlateRecipeDescription": "Recette d'assiette de crabe", "demoSharedXAxisCoursePageTitle": "Simplifier la gestion de vos cours", "demoSharedZAxisCrabPlateRecipeTitle": "Crabe", "demoSharedZAxisShrimpPlateRecipeDescription": "Recette d'assiette de crevettes", "demoSharedZAxisShrimpPlateRecipeTitle": "Crevettes", "demoContainerTransformTypeFadeThrough": "ATTÉNUATION GRADUELLE", "demoSharedZAxisDessertRecipeTitle": "Dessert", "demoSharedZAxisSandwichRecipeDescription": "Recette de sandwich", "demoSharedZAxisSandwichRecipeTitle": "Sandwich", "demoSharedZAxisBurgerRecipeDescription": "Recette de hamburger", "demoSharedZAxisBurgerRecipeTitle": "Hamburger", "demoSharedZAxisSettingsPageTitle": "Paramètres", "demoSharedZAxisTitle": "Axe z partagé", "demoSharedZAxisPrivacySettingLabel": "Confidentialité", "demoMotionTitle": "Mouvement", "demoContainerTransformTitle": "Transformation de conteneur", "demoContainerTransformDescription": "Le motif de transformation de conteneur est conçu pour les éléments d'IU qui comprennent un conteneur. Ce motif crée une connexion visible entre deux éléments d'IU", "demoContainerTransformModalBottomSheetTitle": "Mode Atténuation", "demoContainerTransformTypeFade": "ATTÉNUATION", "demoSharedYAxisAlbumTileDurationUnit": "min", "demoMotionPlaceholderTitle": "Titre", "demoSharedXAxisForgotEmailButtonText": "ADRESSE DE COURRIEL OUBLIÉE?", "demoMotionSmallPlaceholderSubtitle": "Secondaire", "demoMotionDetailsPageTitle": "Page de renseignements", "demoMotionListTileTitle": "Élément de liste", "demoSharedAxisDescription": "Le motif d'axe partagé est utilisé pour les transitions entre les éléments d'IU qui possèdent une relation spatiale ou de navigation. Ce motif utiliser une transformation partagée sur l'axe x, y ou z afin de renforcer la relation entre les éléments.", "demoSharedXAxisTitle": "Axe x partagé", "demoSharedXAxisBackButtonText": "RETOUR", "demoSharedXAxisNextButtonText": "SUIVANT", "demoSharedXAxisCulinaryCourseTitle": "Cuisine", "githubRepo": "référentiel GitHub {repoName}", "fortnightlyMenuUS": "États-Unis", "fortnightlyMenuBusiness": "Affaires", "fortnightlyMenuScience": "Sciences", "fortnightlyMenuSports": "Sports", "fortnightlyMenuTravel": "Voyages", "fortnightlyMenuCulture": "Culture", "fortnightlyTrendingTechDesign": "Conceptionstechniques", "rallyBudgetDetailAmountLeft": "Montant restant", "fortnightlyHeadlineArmy": "Réformer l'armée verte de l'intérieur", "fortnightlyDescription": "Une application centrée sur le contenu", "rallyBillDetailAmountDue": "Montant dû", "rallyBudgetDetailTotalCap": "Limite de budget", "rallyBudgetDetailAmountUsed": "Montant utilisé", "fortnightlyTrendingHealthcareRevolution": "Révolutiondusystèmedesanté", "fortnightlyMenuFrontPage": "Page couverture", "fortnightlyMenuWorld": "Monde", "rallyBillDetailAmountPaid": "Montant payé", "fortnightlyMenuPolitics": "Politique", "fortnightlyHeadlineBees": "Les abeilles désertent les terres agricoles", "fortnightlyHeadlineGasoline": "L'avenir de l'essence", "fortnightlyTrendingGreenArmy": "Arméeverte", "fortnightlyHeadlineFeminists": "Les féministes contre la partisanerie", "fortnightlyHeadlineFabrics": "Les développeurs de mode s'appuient sur les technologies pour créer les tissus de l'avenir", "fortnightlyHeadlineStocks": "Alors que la Bourse stagne, beaucoup d'investisseurs se tournent vers l'échange de devises", "fortnightlyTrendingReform": "Réforme", "fortnightlyMenuTech": "Technologies", "fortnightlyHeadlineWar": "Comment la guerre a séparé des vies d'Américains", "fortnightlyHeadlineHealthcare": "La révolution discrète mais efficace du système de santé", "fortnightlyLatestUpdates": "Dernières mises à jour", "fortnightlyTrendingStocks": "Cours boursiers", "rallyBillDetailTotalAmount": "Montant total", "demoCupertinoPickerDateTime": "Date et heure", "signIn": "CONNEXION", "dataTableRowWithSugar": "{value} avec du sucre", "dataTableRowApplePie": "Pie", "dataTableRowDonut": "Donut", "dataTableRowHoneycomb": "Rayon de miel", "dataTableRowLollipop": "Lollipop", "dataTableRowJellyBean": "Jelly Bean", "dataTableRowGingerbread": "Gingerbread", "dataTableRowCupcake": "Cupcake", "dataTableRowEclair": "Eclair", "dataTableRowIceCreamSandwich": "Ice Cream Sandwich", "dataTableRowFrozenYogurt": "Froyo", "dataTableColumnIron": "Fer (%)", "dataTableColumnCalcium": "Calcium (%)", "dataTableColumnSodium": "Sodium (mg)", "demoTimePickerTitle": "Sélecteur de l'heure", "demo2dTransformationsResetTooltip": "Réinitialiser les transformations", "dataTableColumnFat": "Gras (g)", "dataTableColumnCalories": "Calories", "dataTableColumnDessert": "Dessert (une portion)", "cardsDemoTravelDestinationLocation1": "Thanjavur, Tamil Nadu", "demoTimePickerDescription": "Affiche une boîte de dialogue comportant un outil Material Design de sélection de l'heure.", "demoPickersShowPicker": "AFFICHER LE SÉLECTEUR", "demoTabsScrollingTitle": "Défilement", "demoTabsNonScrollingTitle": "Pas de défilement", "craneHours": "{hours,plural,=1{1 h}other{{hours} h}}", "craneMinutes": "{minutes,plural,=1{1 min}other{{minutes} min}}", "craneFlightDuration": "{hoursShortForm} {minutesShortForm}", "dataTableHeader": "Nutrition", "demoDatePickerTitle": "Sélecteur de dates", "demoPickersSubtitle": "Sélection de la date et de l'heure", "demoPickersTitle": "Sélecteurs", "demo2dTransformationsEditTooltip": "Modifier la tuile", "demoDataTableDescription": "Les tableaux de données présentent des renseignements sous forme de grilles composées de lignes et de colonnes. Ils permettent d'organiser l'information d'une manière qui permet de la parcourir facilement, et de cerner des tendances et des statistiques.", "demo2dTransformationsDescription": "Touchez pour modifier des tuiles et utilisez des gestes pour vous déplacer dans la scène. Faites glisser un doigt pour faire un panoramique, pincez l'écran pour zoomer et faites pivoter un élément avec deux doigts. Appuyez sur le bouton de réinitialisation pour retourner à l'orientation de départ.", "demo2dTransformationsSubtitle": "Panoramique, zoom, rotation", "demo2dTransformationsTitle": "Transformations 2D", "demoCupertinoTextFieldPIN": "NIP", "demoCupertinoTextFieldDescription": "Un champ de texte permet à l'utilisateur d'y entrer du texte, à l'aide d'un clavier matériel ou d'un clavier à l'écran.", "demoCupertinoTextFieldSubtitle": "Champs de texte de style iOS", "demoCupertinoTextFieldTitle": "Champs de texte", "demoDatePickerDescription": "Affiche une boîte de dialogue comportant un outil Material Design de sélection de la date.", "demoCupertinoPickerTime": "Heure", "demoCupertinoPickerDate": "Date", "demoCupertinoPickerTimer": "Minuterie", "demoCupertinoPickerDescription": "Un widget de sélection de style iOS pouvant être utilisé pour sélectionner des chaînes, des dates, des heures ou les deux.", "demoCupertinoPickerSubtitle": "Sélecteurs de style iOS", "demoCupertinoPickerTitle": "Sélecteurs", "dataTableRowWithHoney": "{value} avec du miel", "cardsDemoTravelDestinationCity2": "Chettinad", "bannerDemoResetText": "Réinitialiser la bannière", "bannerDemoMultipleText": "Plusieurs actions", "bannerDemoLeadingText": "Icône précédant le texte", "dismiss": "IGNORER", "cardsDemoTappable": "Peut être touché", "cardsDemoSelectable": "Peut être sélectionné (avec un appui prolongé)", "cardsDemoExplore": "Explorer", "cardsDemoExploreSemantics": "Explorer {destinationName}", "cardsDemoShareSemantics": "Partager {destinationName}", "cardsDemoTravelDestinationTitle1": "Palmarès des 10 villes à visiter dans l'État du Tamil Nadu", "cardsDemoTravelDestinationDescription1": "Numéro 10", "cardsDemoTravelDestinationCity1": "Thanjavur", "dataTableColumnProtein": "Protéines (g)", "cardsDemoTravelDestinationTitle2": "Artisans du sud de l'Inde", "cardsDemoTravelDestinationDescription2": "Fileurs de soie", "bannerDemoText": "Votre mot de passe a été mis à jour sur votre autre appareil. Veuillez vous reconnecter.", "cardsDemoTravelDestinationLocation2": "Sivaganga, Tamil Nadu", "cardsDemoTravelDestinationTitle3": "Temple de Brihadisvara", "cardsDemoTravelDestinationDescription3": "Temples", "demoBannerTitle": "Bannière", "demoBannerSubtitle": "Affichage d'une bannière dans une liste", "demoBannerDescription": "Une bannière comporte un message court mais important, ainsi que des suggestions d'actions pour les utilisateurs (ou une option permettant de fermer la bannière). L'utilisateur doit agir pour que la bannière disparaisse.", "demoCardTitle": "Cartes", "demoCardSubtitle": "Cartes de base avec coins arrondis", "demoCardDescription": "Une carte est un cadre où sont présentés des renseignements liés à une recherche, comme un album, un lieu, un plat, des coordonnées, etc.", "demoDataTableTitle": "Tableaux de données", "demoDataTableSubtitle": "Lignes et colonnes d'information", "dataTableColumnCarbs": "Glucides (g)", "placeTanjore": "Tanjore", "demoGridListsTitle": "Liste sous forme de grille", "placeFlowerMarket": "Marché aux fleurs", "placeBronzeWorks": "Fonderie de bronze", "placeMarket": "Marché", "placeThanjavurTemple": "Temple de Thanjavur", "placeSaltFarm": "Marais salant", "placeScooters": "Scouteurs", "placeSilkMaker": "Tisserand de soie", "placeLunchPrep": "Préparation du dîner", "placeBeach": "Plage", "placeFisherman": "Pêcheur", "demoMenuSelected": "Élément sélectionné : {value}", "demoMenuRemove": "Retirer", "demoMenuGetLink": "Obtenir le lien", "demoMenuShare": "Partager", "demoBottomAppBarSubtitle": "Affiche la navigation et les actions dans le bas", "demoMenuAnItemWithASectionedMenu": "Un élément avec un menu à sections", "demoMenuADisabledMenuItem": "Option de menu désactivée", "demoLinearProgressIndicatorTitle": "Indicateur de progression linéaire", "demoMenuContextMenuItemOne": "Option de menu contextuel un", "demoMenuAnItemWithASimpleMenu": "Un élément avec un menu simple", "demoCustomSlidersTitle": "Curseurs personnalisés", "demoMenuAnItemWithAChecklistMenu": "Un élément avec menu de liste de contrôle", "demoCupertinoActivityIndicatorTitle": "Indicateur d'activité", "demoCupertinoActivityIndicatorSubtitle": "Indicateur d'activité de style iOS", "demoCupertinoActivityIndicatorDescription": "Un indicateur d'activité de style iOS qui tourne dans le sens des aiguilles d'une montre.", "demoCupertinoNavigationBarTitle": "Barre de navigation", "demoCupertinoNavigationBarSubtitle": "Barre de navigation de style iOS", "demoCupertinoNavigationBarDescription": "Une barre de navigation de style iOS. Il s'agit d'une barre d'outils au milieu de laquelle est indiqué au minimum le titre de la page consultée.", "demoCupertinoPullToRefreshTitle": "Balayez vers le bas pour actualiser", "demoCupertinoPullToRefreshSubtitle": "Commande de style iOS pour balayer l'écran vers le bas afin d'actualiser l'écran", "demoCupertinoPullToRefreshDescription": "Un widget permettant d'intégrer une commande de style iOS pour balayer l'écran vers le bas afin d'actualiser l'écran.", "demoProgressIndicatorTitle": "Indicateurs de progression", "demoProgressIndicatorSubtitle": "Linéaires, circulaires, indéterminés", "demoCircularProgressIndicatorTitle": "Indicateur de progression circulaire", "demoCircularProgressIndicatorDescription": "Un indicateur de progression de forme circulaire avec thème Material Design qui tourne pour indiquer que l'application est occupée.", "demoMenuFour": "Quatre", "demoLinearProgressIndicatorDescription": "Un indicateur de progression de forme linéaire avec thème Material Design, aussi connu sous le nom de barre de progression.", "demoTooltipTitle": "Infobulles", "demoTooltipSubtitle": "Court message qui s'affiche lors d'un appui prolongé ou du passage de la souris sur un élément", "demoTooltipDescription": "Les infobulles sont des libellés textuels qui expliquent la fonction d'un bouton ou d'une autre action d'une interface utilisateur. Le texte informatif s'affiche lorsque les utilisateurs passent leur souris, placent leur curseur ou appuient de manière prolongée sur un élément.", "demoTooltipInstructions": "Faites un appui prolongé ou passez le curseur de la souris sur l'élément pour afficher l'infobulle.", "placeChennai": "Chennai", "demoMenuChecked": "Élément coché : {value}", "placeChettinad": "Chettinad", "demoMenuPreview": "Aperçu", "demoBottomAppBarTitle": "Barre d'applications inférieure", "demoBottomAppBarDescription": "Les barres d'applications inférieures procurent l'accès à un panneau de navigation inférieur et jusqu'à quatre actions, y compris le bouton d'action flottant.", "bottomAppBarNotch": "Encoche", "bottomAppBarPosition": "Position du bouton d'action flottant", "bottomAppBarPositionDockedEnd": "Ancré à l'extrémité", "bottomAppBarPositionDockedCenter": "Ancré au centre", "bottomAppBarPositionFloatingEnd": "Flottant à l'extrémité", "bottomAppBarPositionFloatingCenter": "Flottant au centre", "demoSlidersEditableNumericalValue": "Valeur numérique modifiable", "demoGridListsSubtitle": "Disposition en lignes et en colonnes", "demoGridListsDescription": "Les listes sous forme de grille sont particulièrement adaptées à la présentation de données homogènes, telles que des images. Chaque élément d'une liste sous forme de grille est appelé une tuile.", "demoGridListsImageOnlyTitle": "Images seulement", "demoGridListsHeaderTitle": "Avec en-tête", "demoGridListsFooterTitle": "Avec pied de page", "demoSlidersTitle": "Curseurs", "demoSlidersSubtitle": "Widgets permettant de sélectionner une valeur en glissant le doigt", "demoSlidersDescription": "Les curseurs présentent une plage de valeurs le long d'une barre et permettent aux utilisateurs de sélectionner la valeur de leur choix. Ils sont idéaux pour ajuster divers paramètres, comme le volume ou la luminosité, ou encore pour appliquer des filtres à des images.", "demoRangeSlidersTitle": "Curseurs de valeurs", "demoRangeSlidersDescription": "Les curseurs présentent une plage de valeurs le long d'une barre. Ils peuvent être accompagnés d'icônes aux deux extrémités, indiquant une plage de valeurs. Ils sont idéaux pour ajuster divers paramètres, comme le volume ou la luminosité, ou encore pour appliquer des filtres à des images.", "demoMenuAnItemWithAContextMenuButton": "Un élément avec un menu contextuel", "demoCustomSlidersDescription": "Les curseurs présentent une plage de valeurs le long d'une barre et permettent aux utilisateurs de sélectionner une valeur ou une plage de valeurs. On peut ajouter un thème aux curseurs et les personnaliser.", "demoSlidersContinuousWithEditableNumericalValue": "Continu avec valeur numérique modifiable", "demoSlidersDiscrete": "Discret", "demoSlidersDiscreteSliderWithCustomTheme": "Curseur discret avec thème personnalisé", "demoSlidersContinuousRangeSliderWithCustomTheme": "Curseur à plage continue avec thème personnalisé", "demoSlidersContinuous": "Continu", "placePondicherry": "Pondichéry", "demoMenuTitle": "Menu", "demoContextMenuTitle": "Menu contextuel", "demoSectionedMenuTitle": "Menu à sections", "demoSimpleMenuTitle": "Menu simple", "demoChecklistMenuTitle": "Menu de liste de contrôle", "demoMenuSubtitle": "Boutons de menu menus simples", "demoMenuDescription": "Un menu présente une liste d'options de manière temporaire. Il s'affiche lorsque les utilisateurs interagissent avec un bouton, une action ou un autre type de commande.", "demoMenuItemValueOne": "Option de menu un", "demoMenuItemValueTwo": "Option de menu deux", "demoMenuItemValueThree": "Option de menu trois", "demoMenuOne": "Un", "demoMenuTwo": "Deux", "demoMenuThree": "Trois", "demoMenuContextMenuItemThree": "Option de menu contextuel trois", "demoCupertinoSwitchSubtitle": "Commutateur de style iOS", "demoSnackbarsText": "Voici un casse-croûte.", "demoCupertinoSliderSubtitle": "Curseur de style iOS", "demoCupertinoSliderDescription": "Vous pouvez utiliser un curseur pour sélectionner un ensemble de valeurs discrètes ou continues.", "demoCupertinoSliderContinuous": "Continues : {value}", "demoCupertinoSliderDiscrete": "Discrètes : {value}", "demoSnackbarsAction": "Vous avez sélectionné l'action d'un casse-croûte.", "backToGallery": "Retour à la galerie", "demoCupertinoTabBarTitle": "Barre d'onglets", "demoCupertinoSwitchDescription": "Un commutateur permet d'activer ou de désactiver un paramètre.", "demoSnackbarsActionButtonLabel": "ACTION", "cupertinoTabBarProfileTab": "Profil", "demoSnackbarsButtonLabel": "AFFICHER UN CASSE-CROÛTE", "demoSnackbarsDescription": "Les casse-croûte informent les utilisateurs d'un processus qu'une application a effectué ou effectuera. Ils s'affichent temporairement dans le bas de l'écran. Ils ne devraient pas interrompre l'expérience utilisateur et ils n'exigent pas d'entrée pour disparaître.", "demoSnackbarsSubtitle": "Les casse-croûte affichent des messages dans le bas de l'écran", "demoSnackbarsTitle": "Casse-croûte", "demoCupertinoSliderTitle": "Curseur", "cupertinoTabBarChatTab": "Clavarder", "cupertinoTabBarHomeTab": "Accueil", "demoCupertinoTabBarDescription": "Une barre d'onglets de navigation dans le bas, style iOS Affiche plusieurs onglets avec un onglet actif, le premier onglet par défaut.", "demoCupertinoTabBarSubtitle": "Barre d'onglets dans le bas, style iOS", "demoOptionsFeatureTitle": "Afficher les options", "demoOptionsFeatureDescription": "Touchez ici pour voir les options proposées pour cette démonstration.", "demoCodeViewerCopyAll": "TOUT COPIER", "shrineScreenReaderRemoveProductButton": "Supprimer {product}", "shrineScreenReaderProductAddToCart": "Ajouter au panier", "shrineScreenReaderCart": "{quantity,plural,=0{Panier, aucun élément}=1{Panier, 1 élément}other{Panier, {quantity} éléments}}", "demoCodeViewerFailedToCopyToClipboardMessage": "Échec de la copie dans le presse-papiers : {error}", "demoCodeViewerCopiedToClipboardMessage": "Copié dans le presse-papiers.", "craneSleep8SemanticLabel": "Ruines mayas sur une falaise surplombant une plage", "craneSleep4SemanticLabel": "Hôtel au bord du lac face aux montagnes", "craneSleep2SemanticLabel": "Citadelle du Machu Picchu", "craneSleep1SemanticLabel": "Chalet dans un paysage enneigé et entouré de conifères", "craneSleep0SemanticLabel": "Bungalows sur l'eau", "craneFly13SemanticLabel": "Piscine face à la mer avec palmiers", "craneFly12SemanticLabel": "Piscine avec des palmiers", "craneFly11SemanticLabel": "Phare en briques en haute mer", "craneFly10SemanticLabel": "Tours de la mosquée Al-Azhar au coucher du soleil", "craneFly9SemanticLabel": "Homme s'appuyant sur une voiture bleue ancienne", "craneFly8SemanticLabel": "Supertree Grove", "craneEat9SemanticLabel": "Comptoir d'un café garni de pâtisseries", "craneEat2SemanticLabel": "Hamburger", "craneFly5SemanticLabel": "Hôtel au bord du lac face aux montagnes", "demoSelectionControlsSubtitle": "Cases à cocher, boutons radio et commutateurs", "craneEat10SemanticLabel": "Femme tenant un gros sandwich au pastrami", "craneFly4SemanticLabel": "Bungalows sur l'eau", "craneEat7SemanticLabel": "Entrée de la boulangerie", "craneEat6SemanticLabel": "Plat de crevettes", "craneEat5SemanticLabel": "Salle du restaurant Artsy", "craneEat4SemanticLabel": "Dessert au chocolat", "craneEat3SemanticLabel": "Taco coréen", "craneFly3SemanticLabel": "Citadelle du Machu Picchu", "craneEat1SemanticLabel": "Bar vide avec tabourets de style salle à manger", "craneEat0SemanticLabel": "Pizza dans un four à bois", "craneSleep11SemanticLabel": "Gratte-ciel Taipei 101", "craneSleep10SemanticLabel": "Tours de la mosquée Al-Azhar au coucher du soleil", "craneSleep9SemanticLabel": "Phare en briques en haute mer", "craneEat8SemanticLabel": "Plateau de langoustes", "craneSleep7SemanticLabel": "Appartements colorés sur la Place Ribeira", "craneSleep6SemanticLabel": "Piscine avec des palmiers", "craneSleep5SemanticLabel": "Tente dans un champ", "settingsButtonCloseLabel": "Fermer les paramètres", "demoSelectionControlsCheckboxDescription": "Les cases à cocher permettent à l'utilisateur de sélectionner de multiples options dans un ensemble. Une valeur normale d'une case à cocher est vraie ou fausse, et la valeur d'une case à cocher à trois états peut aussi être nulle.", "settingsButtonLabel": "Paramètres", "demoListsTitle": "Listes", "demoListsSubtitle": "Dispositions de liste défilante", "demoListsDescription": "Ligne unique à hauteur fixe qui contient généralement du texte ainsi qu'une icône au début ou à la fin.", "demoOneLineListsTitle": "Une ligne", "demoTwoLineListsTitle": "Deux lignes", "demoListsSecondary": "Texte secondaire", "demoSelectionControlsTitle": "Commandes de sélection", "craneFly7SemanticLabel": "Mont Rushmore", "demoSelectionControlsCheckboxTitle": "Case à cocher", "craneSleep3SemanticLabel": "Homme s'appuyant sur une voiture bleue ancienne", "demoSelectionControlsRadioTitle": "Radio", "demoSelectionControlsRadioDescription": "Boutons radio qui permettent à l'utilisateur de sélectionner une option à partir d'un ensemble. Utilisez les boutons radio pour offrir une sélection exclusive, si vous croyez que l'utilisateur a besoin de voir toutes les options proposées côte à côte.", "demoSelectionControlsSwitchTitle": "Commutateur", "demoSelectionControlsSwitchDescription": "Les commutateurs permettent de basculer l'état d'un réglage unique. L'option que le commutateur détermine ainsi que l'état dans lequel il se trouve doivent être clairement indiqués sur l'étiquette correspondante.", "craneFly0SemanticLabel": "Chalet dans un paysage enneigé et entouré de conifères", "craneFly1SemanticLabel": "Tente dans un champ", "craneFly2SemanticLabel": "Drapeaux de prières devant une montagne enneigée", "craneFly6SemanticLabel": "Vue aérienne du Palais des beaux-arts de Mexico", "rallySeeAllAccounts": "Voir tous les comptes", "rallyBillAmount": "La facture de {billName} de {amount} est due le {date}.", "shrineTooltipCloseCart": "Fermer le panier", "shrineTooltipCloseMenu": "Fermer le menu", "shrineTooltipOpenMenu": "Ouvrir le menu", "shrineTooltipSettings": "Paramètres", "shrineTooltipSearch": "Rechercher", "demoTabsDescription": "Les onglets permettent d'organiser le contenu sur divers écrans, ensembles de données et d'autres interactions.", "demoTabsSubtitle": "Onglets avec affichage à défilement indépendant", "demoTabsTitle": "Onglets", "rallyBudgetAmount": "Dans le budget {budgetName}, {amountUsed} a été utilisé sur {amountTotal} (il reste {amountLeft})", "shrineTooltipRemoveItem": "Supprimer l'élément", "rallyAccountAmount": "Compte {accountName} {accountNumber} dont le solde est de {amount}.", "rallySeeAllBudgets": "Voir tous les budgets", "rallySeeAllBills": "Voir toutes les factures", "craneFormDate": "Sélectionner la date", "craneFormOrigin": "Choisir le lieu de départ", "craneFly2": "Vallée du Khumbu, Népal", "craneFly3": "Machu Picchu, Pérou", "craneFly4": "Malé, Maldives", "craneFly5": "Vitznau, Suisse", "craneFly6": "Mexico, Mexique", "craneFly7": "Mount Rushmore, États-Unis", "settingsTextDirectionLocaleBased": "Selon le lieu", "craneFly9": "La Havane, Cuba", "craneFly10": "Le Caire, Égypte", "craneFly11": "Lisbonne, Portugal", "craneFly12": "Napa, États-Unis", "craneFly13": "Bali, Indonésie", "craneSleep0": "Malé, Maldives", "craneSleep1": "Aspen, États-Unis", "craneSleep2": "Machu Picchu, Pérou", "demoCupertinoSegmentedControlTitle": "Contrôle segmenté", "craneSleep4": "Vitznau, Suisse", "craneSleep5": "Big Sur, États-Unis", "craneSleep6": "Napa, États-Unis", "craneSleep7": "Porto, Portugal", "craneSleep8": "Tulum, Mexique", "craneEat5": "Séoul, Corée du Sud", "demoChipTitle": "Jetons", "demoChipSubtitle": "Éléments compacts qui représentent une entrée, un attribut ou une action", "demoActionChipTitle": "Jeton d'action", "demoActionChipDescription": "Les jetons d'action sont des ensembles d'options qui déclenchent une action relative au contenu principal. Les jetons d'action devraient s'afficher de manière dynamique, en contexte, dans une IU.", "demoChoiceChipTitle": "Jeton de choix", "demoChoiceChipDescription": "Les jetons de choix représentent un choix unique dans un ensemble. Ils contiennent du texte descriptif ou des catégories.", "demoFilterChipTitle": "Jeton de filtre", "demoFilterChipDescription": "Les jetons de filtre utilisent des balises ou des mots descriptifs comme méthode de filtrage du contenu.", "demoInputChipTitle": "Jeton d'entrée", "demoInputChipDescription": "Les jetons d'entrée représentent une donnée complexe, comme une entité (personne, lieu ou objet) ou le texte d'une conversation, sous forme compacte.", "craneSleep9": "Lisbonne, Portugal", "craneEat10": "Lisbonne, Portugal", "demoCupertinoSegmentedControlDescription": "Utilisé pour faire une sélection parmi un nombre d'options mutuellement exclusives. Lorsqu'une option dans le contrôle segmenté est sélectionné, les autres options du contrôle segmenté ne le sont plus.", "chipTurnOnLights": "Allumer les lumières", "chipSmall": "Petit", "chipMedium": "Moyen", "chipLarge": "Grand", "chipElevator": "Ascenseur", "chipWasher": "Laveuse", "chipFireplace": "Foyer", "chipBiking": "Vélo", "craneFormDiners": "Personnes", "rallyAlertsMessageUnassignedTransactions": "{count,plural,=1{Augmentez vos déductions fiscales potentielles! Attribuez des catégories à 1 transaction non attribuée.}other{Augmentez vos déductions fiscales potentielles! Attribuez des catégories à {count} transactions non attribuées.}}", "craneFormTime": "Sélectionner l'heure", "craneFormLocation": "Sélectionner un lieu", "craneFormTravelers": "Voyageurs", "craneEat8": "Atlanta, États-Unis", "craneFormDestination": "Choisir une destination", "craneFormDates": "Sélectionner les dates", "craneFly": "VOLER", "craneSleep": "SOMMEIL", "craneEat": "MANGER", "craneFlySubhead": "Explorez les vols par destination", "craneSleepSubhead": "Explorez les propriétés par destination", "craneEatSubhead": "Explorez les restaurants par destination", "craneFlyStops": "{numberOfStops,plural,=0{Direct}=1{1 escale}other{{numberOfStops} escales}}", "craneSleepProperties": "{totalProperties,plural,=0{Aucune propriété n'est disponible}=1{1 propriété est disponible}other{{totalProperties} propriétés sont disponibles}}", "craneEatRestaurants": "{totalRestaurants,plural,=0{Aucun restaurant}=1{1 restaurant}other{{totalRestaurants} restaurants}}", "craneFly0": "Aspen, États-Unis", "demoCupertinoSegmentedControlSubtitle": "Contrôle segmenté de style iOS", "craneSleep10": "Le Caire, Égypte", "craneEat9": "Madrid, Espagne", "craneFly1": "Big Sur, États-Unis", "craneEat7": "Nashville, États-Unis", "craneEat6": "Seattle, États-Unis", "craneFly8": "Singapour", "craneEat4": "Paris, France", "craneEat3": "Portland, États-Unis", "craneEat2": "Córdoba, Argentine", "craneEat1": "Dallas, États-Unis", "craneEat0": "Naples, Italie", "craneSleep11": "Taipei, Taïwan", "craneSleep3": "La Havane, Cuba", "shrineLogoutButtonCaption": "DÉCONNEXION", "rallyTitleBills": "FACTURES", "rallyTitleAccounts": "COMPTES", "shrineProductVagabondSack": "Sac vagabond", "rallyAccountDetailDataInterestYtd": "Cumul annuel des intérêts", "shrineProductWhitneyBelt": "Ceinture Whitney", "shrineProductGardenStrand": "Collier", "shrineProductStrutEarrings": "Boucles d'oreilles Strut", "shrineProductVarsitySocks": "Chaussettes de sport", "shrineProductWeaveKeyring": "Porte-clés tressé", "shrineProductGatsbyHat": "Casquette Gatsby", "shrineProductShrugBag": "Sac Shrug", "shrineProductGiltDeskTrio": "Trois accessoires de bureau dorés", "shrineProductCopperWireRack": "Grille en cuivre", "shrineProductSootheCeramicSet": "Ensemble céramique apaisant", "shrineProductHurrahsTeaSet": "Service à thé Hurrahs", "shrineProductBlueStoneMug": "Tasse bleu pierre", "shrineProductRainwaterTray": "Bac à eau de pluie", "shrineProductChambrayNapkins": "Serviettes Chambray", "shrineProductSucculentPlanters": "Pots pour plantes grasses", "shrineProductQuartetTable": "Table de quatre", "shrineProductKitchenQuattro": "Quatre accessoires de cuisine", "shrineProductClaySweater": "Chandail couleur argile", "shrineProductSeaTunic": "Tunique de plage", "shrineProductPlasterTunic": "Tunique couleur plâtre", "rallyBudgetCategoryRestaurants": "Restaurants", "shrineProductChambrayShirt": "Chemise chambray", "shrineProductSeabreezeSweater": "Chandail brise marine", "shrineProductGentryJacket": "Veste aristo", "shrineProductNavyTrousers": "Pantalons bleu marine", "shrineProductWalterHenleyWhite": "Walter Henley (blanc)", "shrineProductSurfAndPerfShirt": "T-shirt d'été", "shrineProductGingerScarf": "Foulard gingembre", "shrineProductRamonaCrossover": "Mélange de différents styles Ramona", "shrineProductClassicWhiteCollar": "Col blanc classique", "shrineProductSunshirtDress": "Robe d'été", "rallyAccountDetailDataInterestRate": "Taux d'intérêt", "rallyAccountDetailDataAnnualPercentageYield": "Pourcentage annuel de rendement", "rallyAccountDataVacation": "Vacances", "shrineProductFineLinesTee": "T-shirt à rayures fines", "rallyAccountDataHomeSavings": "Compte épargne maison", "rallyAccountDataChecking": "Chèque", "rallyAccountDetailDataInterestPaidLastYear": "Intérêt payé l'année dernière", "rallyAccountDetailDataNextStatement": "Prochain relevé", "rallyAccountDetailDataAccountOwner": "Propriétaire du compte", "rallyBudgetCategoryCoffeeShops": "Cafés", "rallyBudgetCategoryGroceries": "Épicerie", "shrineProductCeriseScallopTee": "T-shirt couleur cerise", "rallyBudgetCategoryClothing": "Vêtements", "rallySettingsManageAccounts": "Gérer les comptes", "rallyAccountDataCarSavings": "Compte d'épargne pour la voiture", "rallySettingsTaxDocuments": "Documents fiscaux", "rallySettingsPasscodeAndTouchId": "Mot de passe et Touch ID", "rallySettingsNotifications": "Notifications", "rallySettingsPersonalInformation": "Renseignements personnels", "rallySettingsPaperlessSettings": "Paramètres sans papier", "rallySettingsFindAtms": "Trouver des guichets automatiques", "rallySettingsHelp": "Aide", "rallySettingsSignOut": "Se déconnecter", "rallyAccountTotal": "Total", "rallyBillsDue": "dû", "rallyBudgetLeft": "restant", "rallyAccounts": "Comptes", "rallyBills": "Factures", "rallyBudgets": "Budgets", "rallyAlerts": "Alertes", "rallySeeAll": "TOUT AFFICHER", "rallyFinanceLeft": "RESTANT", "rallyTitleOverview": "APERÇU", "shrineProductShoulderRollsTee": "T-shirt", "shrineNextButtonCaption": "SUIVANT", "rallyTitleBudgets": "BUDGETS", "rallyTitleSettings": "PARAMÈTRES", "rallyLoginLoginToRally": "Connexion à Rally", "rallyLoginNoAccount": "Vous ne possédez pas de compte?", "rallyLoginSignUp": "S'INSCRIRE", "rallyLoginUsername": "Nom d'utilisateur", "rallyLoginPassword": "Mot de passe", "rallyLoginLabelLogin": "Connexion", "rallyLoginRememberMe": "Rester connecté", "rallyLoginButtonLogin": "CONNEXION", "rallyAlertsMessageHeadsUpShopping": "Avertissement : Vous avez utilisé {percent} de votre budget de magasinage ce mois-ci.", "rallyAlertsMessageSpentOnRestaurants": "Vos dépenses en restaurants s'élèvent à {amount} cette semaine.", "rallyAlertsMessageATMFees": "Vos frais relatifs à l'utilisation de guichets automatiques s'élèvent à {amount} ce mois-ci", "rallyAlertsMessageCheckingAccount": "Bon travail! Le montant dans votre compte chèque est {percent} plus élevé que le mois dernier.", "shrineMenuCaption": "MENU", "shrineCategoryNameAll": "TOUS", "shrineCategoryNameAccessories": "ACCESSOIRES", "shrineCategoryNameClothing": "VÊTEMENTS", "shrineCategoryNameHome": "MAISON", "shrineLoginUsernameLabel": "Nom d'utilisateur", "shrineLoginPasswordLabel": "Mot de passe", "shrineCancelButtonCaption": "ANNULER", "shrineCartTaxCaption": "Taxes :", "shrineCartPageCaption": "PANIER", "shrineProductQuantity": "Quantité : {quantity}", "shrineProductPrice": "x {price}", "shrineCartItemCount": "{quantity,plural,=0{AUCUN ÉLÉMENT}=1{1 ÉLÉMENT}other{{quantity} ÉLÉMENTS}}", "shrineCartClearButtonCaption": "VIDER LE PANIER", "shrineCartTotalCaption": "TOTAL", "shrineCartSubtotalCaption": "Sous-total :", "shrineCartShippingCaption": "Livraison :", "shrineProductGreySlouchTank": "Débardeur gris", "shrineProductStellaSunglasses": "Lunettes de soleil Stella", "shrineProductWhitePinstripeShirt": "Chemise blanche à fines rayures", "demoTextFieldWhereCanWeReachYou": "À quel numéro pouvons-nous vous joindre?", "settingsTextDirectionLTR": "De gauche à droite", "settingsTextScalingLarge": "Grande", "demoBottomSheetHeader": "Titre", "demoBottomSheetItem": "Élément {value}", "demoBottomTextFieldsTitle": "Champs de texte", "demoTextFieldTitle": "Champs de texte", "demoTextFieldSubtitle": "Une seule ligne de texte et de chiffres modifiables", "demoTextFieldDescription": "Les champs de texte permettent aux utilisateurs d'entrer du texte dans une interface utilisateur. Ils figurent généralement dans des formulaires et des boîtes de dialogue.", "demoTextFieldShowPasswordLabel": "Afficher le mot de passe", "demoTextFieldHidePasswordLabel": "Masquer le mot de passe", "demoTextFieldFormErrors": "Veuillez corriger les erreurs en rouge avant de réessayer.", "demoTextFieldNameRequired": "Veuillez entrer un nom.", "demoTextFieldOnlyAlphabeticalChars": "Veuillez n'entrer que des caractères alphabétiques.", "demoTextFieldEnterUSPhoneNumber": "### ###-#### : entrez un numéro de téléphone en format nord-américain.", "demoTextFieldEnterPassword": "Veuillez entrer un mot de passe.", "demoTextFieldPasswordsDoNotMatch": "Les mots de passe ne correspondent pas", "demoTextFieldWhatDoPeopleCallYou": "Comment les gens vous appellent-ils?", "demoTextFieldNameField": "Nom*", "demoBottomSheetButtonText": "AFFICHER LA PAGE DE CONTENU DANS LE BAS DE L'ÉCRAN", "demoTextFieldPhoneNumber": "Numéro de téléphone*", "demoBottomSheetTitle": "Page de contenu en bas de l'écran", "demoTextFieldEmail": "Courriel", "demoTextFieldTellUsAboutYourself": "Parlez-nous de vous (par exemple, indiquez ce que vous faites ou quels sont vos loisirs)", "demoTextFieldKeepItShort": "Soyez bref, il s'agit juste d'une démonstration.", "starterAppGenericButton": "BOUTON", "demoTextFieldLifeStory": "Histoire de vie", "demoTextFieldSalary": "Salaire", "demoTextFieldUSD": "USD", "demoTextFieldNoMoreThan": "Maximum de huit caractères.", "demoTextFieldPassword": "Mot de passe*", "demoTextFieldRetypePassword": "Confirmez votre mot de passe*", "demoTextFieldSubmit": "SOUMETTRE", "demoBottomNavigationSubtitle": "Barre de navigation inférieure avec vues en fondu enchaîné", "demoBottomSheetAddLabel": "Ajouter", "demoBottomSheetModalDescription": "Une page de contenu flottante qui s'affiche dans le bas de l'écran offre une solution de rechange à un menu ou à une boîte de dialogue. Elle empêche l'utilisateur d'interagir avec le reste de l'application.", "demoBottomSheetModalTitle": "Page de contenu flottante dans le bas de l'écran", "demoBottomSheetPersistentDescription": "Une page de contenu fixe dans le bas de l'écran affiche de l'information qui complète le contenu principal de l'application. Elle reste visible même lorsque l'utilisateur interagit avec d'autres parties de l'application.", "demoBottomSheetPersistentTitle": "Page de contenu fixe dans le bas de l'écran", "demoBottomSheetSubtitle": "Pages de contenu flottantes et fixes dans le bas de l'écran", "demoTextFieldNameHasPhoneNumber": "Le numéro de téléphone de {name} est le {phoneNumber}", "buttonText": "BOUTON", "demoTypographyDescription": "Définition des différents styles typographiques de Material Design.", "demoTypographySubtitle": "Tous les styles de texte prédéfinis", "demoTypographyTitle": "Typographie", "demoFullscreenDialogDescription": "La propriété fullscreenDialog qui spécifie si la page entrante est une boîte de dialogue modale plein écran", "demoFlatButtonDescription": "Un bouton plat affiche une éclaboussure d'encre lors de la pression, mais ne se soulève pas. Utilisez les boutons plats dans les barres d'outils, les boîtes de dialogue et sous forme de bouton aligné avec du remplissage", "demoBottomNavigationDescription": "Les barres de navigation inférieures affichent trois à cinq destinations au bas de l'écran. Chaque destination est représentée par une icône et une étiquette facultative. Lorsque l'utilisateur touche l'une de ces icônes, il est redirigé vers la destination de premier niveau associée à cette icône.", "demoBottomNavigationSelectedLabel": "Étiquette sélectionnée", "demoBottomNavigationPersistentLabels": "Étiquettes persistantes", "starterAppDrawerItem": "Élément {value}", "demoTextFieldRequiredField": "* indique un champ obligatoire", "demoBottomNavigationTitle": "Barre de navigation inférieure", "settingsLightTheme": "Clair", "settingsTheme": "Thème", "settingsPlatformIOS": "iOS", "settingsPlatformAndroid": "Android", "settingsTextDirectionRTL": "De droite à gauche", "settingsTextScalingHuge": "Très grande", "cupertinoButton": "Bouton", "settingsTextScalingNormal": "Normale", "settingsTextScalingSmall": "Petite", "settingsSystemDefault": "Système", "settingsTitle": "Paramètres", "rallyDescription": "Une application pour les finances personnelles", "aboutDialogDescription": "Pour voir le code source de cette application, veuillez consulter le {repoLink}.", "bottomNavigationCommentsTab": "Commentaires", "starterAppGenericBody": "Corps du texte", "starterAppGenericHeadline": "Titre", "starterAppGenericSubtitle": "Sous-titre", "starterAppGenericTitle": "Titre", "starterAppTooltipSearch": "Rechercher", "starterAppTooltipShare": "Partager", "starterAppTooltipFavorite": "Favori", "starterAppTooltipAdd": "Ajouter", "bottomNavigationCalendarTab": "Agenda", "starterAppDescription": "Une mise en page de base réactive", "starterAppTitle": "Application de base", "aboutFlutterSamplesRepo": "Dépôt GitHub avec des exemples Flutter", "bottomNavigationContentPlaceholder": "Marque substitutive pour l'onglet {title}", "bottomNavigationCameraTab": "Appareil photo", "bottomNavigationAlarmTab": "Alarme", "bottomNavigationAccountTab": "Compte", "demoTextFieldYourEmailAddress": "Votre adresse de courriel", "demoToggleButtonDescription": "Les boutons Activer/désactiver peuvent servir à grouper des options connexes. Pour mettre l'accent sur les groupes de boutons Activer/désactiver connexes, un groupe devrait partager un conteneur commun.", "colorsGrey": "GRIS", "colorsBrown": "BRUN", "colorsDeepOrange": "ORANGE FONCÉ", "colorsOrange": "ORANGE", "colorsAmber": "AMBRE", "colorsYellow": "JAUNE", "colorsLime": "VERT LIME", "colorsLightGreen": "VERT CLAIR", "colorsGreen": "VERT", "homeHeaderGallery": "Galerie", "homeHeaderCategories": "Catégories", "shrineDescription": "Une application tendance de vente au détail", "craneDescription": "Une application de voyage personnalisée", "homeCategoryReference": "STYLES ET AUTRES", "demoInvalidURL": "Impossible d'afficher l'URL :", "demoOptionsTooltip": "Options", "demoInfoTooltip": "Info", "demoCodeTooltip": "Code de démonstration", "demoDocumentationTooltip": "Documentation relative aux API", "demoFullscreenTooltip": "Plein écran", "settingsTextScaling": "Mise à l'échelle du texte", "settingsTextDirection": "Orientation du texte", "settingsLocale": "Paramètres régionaux", "settingsPlatformMechanics": "Mécanique des plateformes", "settingsDarkTheme": "Sombre", "settingsSlowMotion": "Ralenti", "settingsAbout": "À propos de la galerie Flutter", "settingsFeedback": "Envoyer des commentaires", "settingsAttribution": "Créé par TOASTER à Londres", "demoButtonTitle": "Boutons", "demoButtonSubtitle": "Bouton plat, bouton surélevé, bouton avec contours, etc.", "demoFlatButtonTitle": "Bouton plat", "demoRaisedButtonDescription": "Les boutons surélevés ajoutent une dimension aux mises en page plates. Ils font ressortir les fonctions dans les espaces occupés ou vastes.", "demoRaisedButtonTitle": "Bouton surélevé", "demoOutlineButtonTitle": "Bouton contour", "demoOutlineButtonDescription": "Les boutons contour deviennent opaques et s'élèvent lorsqu'on appuie sur ceux-ci. Ils sont souvent utilisés en association avec des boutons surélevés pour indiquer une autre action, secondaire.", "demoToggleButtonTitle": "Boutons Activer/désactiver", "colorsTeal": "BLEU SARCELLE", "demoFloatingButtonTitle": "Bouton d'action flottant", "demoFloatingButtonDescription": "Un bouton d'action flottant est un bouton d'icône circulaire qui pointe sur du contenu pour promouvoir une action principale dans l'application.", "demoDialogTitle": "Boîtes de dialogue", "demoDialogSubtitle": "Simple, alerte et plein écran", "demoAlertDialogTitle": "Alerte", "demoAlertDialogDescription": "Un dialogue d'alerte informe l'utilisateur à propos de situations qui nécessitent qu'on y porte attention. Un dialogue d'alerte a un titre optionnel et une liste d'actions optionnelle.", "demoAlertTitleDialogTitle": "Alerte avec titre", "demoSimpleDialogTitle": "Simple", "demoSimpleDialogDescription": "Une boîte de dialogue simple offre à un utilisateur le choix entre plusieurs options. Une boîte de dialogue simple a un titre optionnel affiché au-dessus des choix.", "demoFullscreenDialogTitle": "Plein écran", "demoCupertinoButtonsTitle": "Boutons", "demoCupertinoButtonsSubtitle": "Boutons de style iOS", "demoCupertinoButtonsDescription": "Un bouton de style iOS. Il accepte du texte et une icône qui disparaissent et apparaissent quand on touche au bouton. Peut avoir un arrière-plan (optionnel).", "demoCupertinoAlertsTitle": "Alertes", "demoCupertinoAlertsSubtitle": "Dialogues d'alertes de style iOS", "demoCupertinoAlertTitle": "Alerte", "demoCupertinoAlertDescription": "Un dialogue d'alerte informe l'utilisateur à propos de situations qui nécessitent qu'on y porte attention. Un dialogue d'alerte a un titre optionnel, du contenu optionnel et une liste d'actions optionnelle. Le titre est affiché au-dessus du contenu et les actions sont affichées sous le contenu.", "demoCupertinoAlertWithTitleTitle": "Alerte avec titre", "demoCupertinoAlertButtonsTitle": "Alerte avec des boutons", "demoCupertinoAlertButtonsOnlyTitle": "Boutons d'alerte seulement", "demoCupertinoActionSheetTitle": "Feuille d'action", "demoCupertinoActionSheetDescription": "Une feuille d'action est un type d'alerte précis qui présente à l'utilisateur deux choix ou plus à propos de la situation actuelle. Une feuille d'action peut comprendre un titre, un message supplémentaire et une liste d'actions.", "demoColorsTitle": "Couleurs", "demoColorsSubtitle": "Toutes les couleurs prédéfinies", "demoColorsDescription": "Constantes de couleur et d'échantillons de couleur qui représentent la palette de couleurs de Material Design.", "buttonTextEnabled": "ENABLED", "buttonTextDisabled": "DISABLED", "buttonTextCreate": "Créer", "dialogSelectedOption": "Vous avez sélectionné : \"{value}\"", "dialogDiscardTitle": "Supprimer le brouillon?", "dialogLocationTitle": "Utiliser le service de localisation Google?", "dialogLocationDescription": "Permettre à Google d'aider les applications à déterminer la position. Cela signifie envoyer des données de localisation anonymes à Google, même si aucune application n'est en cours d'exécution.", "dialogCancel": "ANNULER", "dialogDiscard": "SUPPRIMER", "dialogDisagree": "REFUSER", "dialogAgree": "ACCEPTER", "dialogSetBackup": "Définir le compte de sauvegarde", "colorsBlueGrey": "GRIS BLEU", "dialogShow": "AFFICHER LE DIALOGUE", "dialogFullscreenTitle": "Boîte de dialogue plein écran", "dialogFullscreenSave": "ENREGISTRER", "dialogFullscreenDescription": "Une démonstration d'un dialogue en plein écran", "cupertinoButtonEnabled": "Enabled", "cupertinoButtonDisabled": "Disabled", "cupertinoButtonWithBackground": "Avec arrière-plan", "cupertinoAlertCancel": "Annuler", "cupertinoAlertDiscard": "Supprimer", "cupertinoAlertLocationTitle": "Permettre à « Maps » d'accéder à votre position lorsque vous utilisez l'application?", "cupertinoAlertLocationDescription": "Votre position actuelle sera affichée sur la carte et sera utilisée pour les itinéraires, les résultats de recherche à proximité et l'estimation des durées de déplacement.", "cupertinoAlertAllow": "Autoriser", "cupertinoAlertDontAllow": "Ne pas autoriser", "cupertinoAlertFavoriteDessert": "Sélectionnez votre dessert favori", "cupertinoAlertDessertDescription": "Veuillez sélectionner votre type de dessert favori dans la liste ci-dessous. Votre sélection servira à personnaliser la liste de suggestions de restaurants dans votre région.", "cupertinoAlertCheesecake": "Gâteau au fromage", "cupertinoAlertTiramisu": "Tiramisu", "cupertinoAlertApplePie": "Tarte aux pommes", "cupertinoAlertChocolateBrownie": "Brownie au chocolat", "cupertinoShowAlert": "Afficher l'alerte", "colorsRed": "ROUGE", "colorsPink": "ROSE", "colorsPurple": "MAUVE", "colorsDeepPurple": "MAUVE FONCÉ", "colorsIndigo": "INDIGO", "colorsBlue": "BLEU", "colorsLightBlue": "BLEU CLAIR", "colorsCyan": "CYAN", "dialogAddAccount": "Ajouter un compte", "Gallery": "Galerie", "Categories": "Catégories", "SHRINE": "SANCTUAIRE", "Basic shopping app": "Application de magasinage de base", "RALLY": "RALLYE", "CRANE": "GRUE", "Travel app": "Application de voyage", "MATERIAL": "MATÉRIEL", "CUPERTINO": "CUPERTINO", "REFERENCE STYLES & MEDIA": "STYLES ET ÉLÉMENTS MULTIMÉDIAS DE RÉFÉRENCE" }
gallery/lib/l10n/intl_fr_CA.arb/0
{ "file_path": "gallery/lib/l10n/intl_fr_CA.arb", "repo_id": "gallery", "token_count": 19605 }
877
{ "loading": "កំពុងផ្ទុក", "deselect": "ដក​ការជ្រើសរើស", "select": "ជ្រើសរើស", "selectable": "អាចជ្រើសរើសបាន (ចុចឱ្យយូរ)", "selected": "បានជ្រើសរើស", "demo": "គំរូបង្ហាញ", "bottomAppBar": "របារកម្មវិធី​ផ្នែកខាងក្រោម", "notSelected": "មិនបាន​ជ្រើសរើស", "demoCupertinoSearchTextFieldTitle": "កន្លែងបញ្ចូល​ពាក្យស្វែងរក", "demoCupertinoPicker": "ផ្ទាំងជ្រើសរើស", "demoCupertinoSearchTextFieldSubtitle": "កន្លែងបញ្ចូល​ពាក្យស្វែងរក​ដែលមានរចនាប័ទ្ម iOS", "demoCupertinoSearchTextFieldDescription": "កន្លែងបញ្ចូល​ពាក្យស្វែងរកដែលអនុញ្ញាតឱ្យអ្នកប្រើប្រាស់​ស្វែងរក​ដោយបញ្ចូលអក្សរ ហើយកន្លែងបញ្ចូលនោះ​អាចផ្ដល់ជូន និងត្រង​ការណែនាំ។", "demoCupertinoSearchTextFieldPlaceholder": "បញ្ចូល​អក្សរមួយចំនួន", "demoCupertinoScrollbarTitle": "របារ​រំកិល", "demoCupertinoScrollbarSubtitle": "របាររំកិល​ដែលមានរចនាប័ទ្ម iOS", "demoCupertinoScrollbarDescription": "របាររំកិលដែលមើលឃើញ", "demoTwoPaneItem": "ធាតុទី {value}", "demoTwoPaneList": "បញ្ជី", "demoTwoPaneFoldableLabel": "អាចបត់បាន", "demoTwoPaneSmallScreenLabel": "អេក្រង់តូច", "demoTwoPaneSmallScreenDescription": "នេះគឺជារបៀបដែល TwoPane ដំណើរការនៅលើឧបករណ៍ដែលមានអេក្រង់តូច។", "demoTwoPaneTabletLabel": "ថេប្លេត / កុំព្យូទ័រ", "demoTwoPaneTabletDescription": "នេះគឺជារបៀបដែល TwoPane ដំណើរការនៅលើអេក្រង់កាន់តែធំដូចជាថេប្លេត ឬកុំព្យូទ័រ។", "demoTwoPaneTitle": "TwoPane", "demoTwoPaneSubtitle": "ប្លង់​ដែលបត់បែននៅលើអេក្រង់ដែលអាចបត់បាន ធំ និងតូច", "splashSelectDemo": "ជ្រើសរើសគំរូបង្ហាញ", "demoTwoPaneFoldableDescription": "នេះគឺជារបៀបដែល TwoPane ដំណើរការនៅលើឧបករណ៍ដែលអាចបត់បាន។", "demoTwoPaneDetails": "ព័ត៌មាន​លម្អិត", "demoTwoPaneSelectItem": "ជ្រើសរើសធាតុ", "demoTwoPaneItemDetails": "ព័ត៌មានលម្អិតនៃធាតុទី {value}", "demoCupertinoContextMenuActionText": "ចុចលើនិមិត្តសញ្ញា Flutter ដើម្បីមើលម៉ឺនុយ​បរិបទ។", "demoCupertinoContextMenuDescription": "ម៉ឺនុយ​តាមបរិបទពេញអេក្រង់រចនាប័ទ្ម iOS ដែលបង្ហាញនៅពេលបានចុចធាតុមួយឱ្យយូរ។", "demoAppBarTitle": "របារកម្មវិធី", "demoAppBarDescription": "របារកម្មវិធីផ្តល់នូវខ្លឹមសារ និងសកម្មភាពដែលទាក់ទងនឹងអេក្រង់បច្ចុប្បន្ន។ របារនេះត្រូវបានប្រើសម្រាប់ការផ្សព្វផ្សាយម៉ាក ចំណងជើងអេក្រង់ ការរុករក និងសកម្មភាពផ្សេងៗ", "demoDividerTitle": "បន្ទាត់ខណ្ឌចែក", "demoDividerSubtitle": "បន្ទាត់ខណ្ឌចែក​គឺជាបន្ទាត់ស្តើងដែលដាក់ខ្លឹមសារជាក្រុមក្នុងបញ្ជី និងប្លង់។", "demoDividerDescription": "បន្ទាត់ខណ្ឌចែក​អាចប្រើនៅក្នុងបញ្ជី ថត និងកន្លែងផ្សេងទៀត ដើម្បីបែងចែកខ្លឹមសារ។", "demoVerticalDividerTitle": "បន្ទាត់ខណ្ឌចែក​បញ្ឈរ", "demoCupertinoContextMenuTitle": "ម៉ឺនុយ​បរិបទ", "demoCupertinoContextMenuSubtitle": "ម៉ឺនុយ​បរិបទរចនាប័ន្ម iOS", "demoAppBarSubtitle": "បង្ហាញព័ត៌មាន និងសកម្មភាពទាក់ទងនឹងអេក្រង់បច្ចុប្បន្ន", "demoCupertinoContextMenuActionOne": "សកម្មភាពទីមួយ", "demoCupertinoContextMenuActionTwo": "សកម្មភាពទីពីរ", "demoDateRangePickerDescription": "បង្ហាញ​ប្រអប់ ដែលមាន​ផ្ទាំងជ្រើសរើសចន្លោះ​កាលបរិច្ឆេទ​ដែលមានការរចនាគ្រប់ជ្រុងជ្រោយ។", "demoDateRangePickerTitle": "ផ្ទាំងជ្រើសរើសចន្លោះកាលបរិច្ឆេទ", "demoNavigationDrawerUserName": "ឈ្មោះ​អ្នក​ប្រើប្រាស់", "demoNavigationDrawerUserEmail": "[email protected]", "demoNavigationDrawerText": "អូសចេញពីគែម ឬចុចរូបតំណាងខាងលើផ្នែកខាងឆ្វេង ដើម្បីមើលថត​", "demoNavigationRailTitle": "ខ្សែរុករក", "demoNavigationRailSubtitle": "ការបង្ហាញខ្សែរុករកនៅក្នុងកម្មវិធី", "demoNavigationRailDescription": "ធាតុ​ក្រាហ្វិកសំយោគ​ ដែលត្រូវបង្ហាញនៅផ្នែកខាងឆ្វេង ឬខាងស្ដាំនៃកម្មវិធី ដើម្បីរុករករវាងចំនួនមើលតិច ជាទូទៅចន្លោះពីបីទៅប្រាំ។", "demoNavigationRailFirst": "ទីមួយ", "demoNavigationDrawerTitle": "ថតរុករក", "demoNavigationRailThird": "ទីបី", "replyStarredLabel": "មានផ្កាយ", "demoTextButtonDescription": "ប៊ូតុង​អត្ថបទ​បង្ហាញការសាចពណ៌​នៅពេលចុច ប៉ុន្តែ​មិនផុសឡើង​ទេ។ ប្រើប៊ូតុង​អត្ថបទនៅលើ​របារឧបករណ៍ នៅក្នុង​ប្រអប់ និង​ក្នុងជួរជាមួយចន្លោះ", "demoElevatedButtonTitle": "ប៊ូតុងផុសឡើង", "demoElevatedButtonDescription": "ប៊ូតុង​ផុសឡើង​បន្ថែមវិមាត្រ​ទៅប្លង់​រាបស្មើភាគច្រើន។ ប៊ូតុង​ទាំងនេះ​រំលេចមុខងារ​នៅកន្លែង​ដែលមមាញឹក ឬទូលាយ។", "demoOutlinedButtonTitle": "ប៊ូតុងមានបន្ទាប់ជុំវិញ", "demoOutlinedButtonDescription": "ប៊ូតុង​មានបន្ទាត់ជុំវិញ​ប្រែជា​ស្រអាប់ និង​ផុសឡើង​នៅពេលចុច។ ជាញឹកញាប់ ប៊ូតុងទាំងនេះត្រូវបានដាក់ជាគូជាមួយប៊ូតុងផុសឡើង ដើម្បីរំលេចសកម្មភាពបន្ទាប់បន្សំផ្សេង។", "demoContainerTransformDemoInstructions": "កាត បញ្ជី និង FAB", "demoNavigationDrawerSubtitle": "ការបង្ហាញថត​នៅក្នុងរបារកម្មវិធី", "replyDescription": "កម្មវិធី​អ៊ីមែលផ្ដោត ដែលមានប្រសិទ្ធភាព", "demoNavigationDrawerDescription": "ផ្ទាំងរចនាសំយោគ ដែលរំកិលចូលក្នុងទិសដៅផ្ដេកពីគែមអេក្រង់ ដើម្បីបង្ហាញតំណរុករកនៅក្នុងកម្មវិធី។", "replyDraftsLabel": "ព្រាង", "demoNavigationDrawerToPageOne": "ធាតុ​ទីមួយ", "replyInboxLabel": "ប្រអប់សារ", "demoSharedXAxisDemoInstructions": "ប៊ូតុងបន្ទាប់ និងថយក្រោយ", "replySpamLabel": "សារឥតបានការ", "replyTrashLabel": "ធុង​សំរាម", "replySentLabel": "បាន​ផ្ញើ", "demoNavigationRailSecond": "ទីពីរ", "demoNavigationDrawerToPageTwo": "ធាតុទី​ពីរ", "demoFadeScaleDemoInstructions": "ម៉ូដល និង FAB", "demoFadeThroughDemoInstructions": "ការរុករក​ខាងក្រោម", "demoSharedZAxisDemoInstructions": "ប៊ូតុងរូបការកំណត់", "demoSharedYAxisDemoInstructions": "តម្រៀបតាម \"ទើបតែ​លេង​ហើយ\"", "demoTextButtonTitle": "ប៊ូតុងអត្ថបទ", "demoSharedZAxisBeefSandwichRecipeTitle": "សាំងវិច​សាច់គោ", "demoSharedZAxisDessertRecipeDescription": "រូបមន្ត​ធ្វើបង្អែម", "demoSharedYAxisAlbumTileSubtitle": "សិល្បករ", "demoSharedYAxisAlbumTileTitle": "អាល់ប៊ុម", "demoSharedYAxisRecentSortTitle": "ទើបតែ​លេង​ហើយ", "demoSharedYAxisAlphabeticalSortTitle": "A-Z", "demoSharedYAxisAlbumCount": "268 អាល់ប៊ុម", "demoSharedYAxisTitle": "អ័ក្ស y រួម", "demoSharedXAxisCreateAccountButtonText": "បង្កើតគណនី", "demoFadeScaleAlertDialogDiscardButton": "លុបចោល", "demoSharedXAxisSignInTextFieldLabel": "អ៊ីមែល ឬ​លេខទូរសព្ទ", "demoSharedXAxisSignInSubtitleText": "សូមចូល​ដោយប្រើ​គណនី​របស់អ្នក", "demoSharedXAxisSignInWelcomeText": "សួស្ដី David Park", "demoSharedXAxisIndividualCourseSubtitle": "បង្ហាញ​ដាច់ដោយ​ឡែកពីគ្នា", "demoSharedXAxisBundledCourseSubtitle": "ជាកញ្ចប់", "demoFadeThroughAlbumsDestination": "អាល់ប៊ុម", "demoSharedXAxisDesignCourseTitle": "ការ​រចនា", "demoSharedXAxisIllustrationCourseTitle": "រូបភាព", "demoSharedXAxisBusinessCourseTitle": "អាជីវកម្ម", "demoSharedXAxisArtsAndCraftsCourseTitle": "សិល្បៈ និងសិប្បកម្ម", "demoMotionPlaceholderSubtitle": "អក្សររត់", "demoFadeScaleAlertDialogCancelButton": "បោះបង់", "demoFadeScaleAlertDialogHeader": "ប្រអប់​ជូនដំណឹង", "demoFadeScaleHideFabButton": "លាក់ FAB", "demoFadeScaleShowFabButton": "បង្ហាញ FAB", "demoFadeScaleShowAlertDialogButton": "បង្ហាញ​ម៉ូដល", "demoFadeScaleDescription": "លំនាំ​លេចឡើង​ត្រូវបានប្រើ​សម្រាប់ធាតុ UI ដែល​លេចឡើង ឬរសាត់បាត់​នៅក្នុងព្រំដែននៃ​អេក្រង់ដូចជា ប្រអប់ដែល​លេចឡើង​នៅកណ្ដាល​អេក្រង់ជាដើម។", "demoFadeScaleTitle": "លេច​ឡើង", "demoFadeThroughTextPlaceholder": "រូបថត 123 សន្លឹក", "demoFadeThroughSearchDestination": "ស្វែងរក", "demoFadeThroughPhotosDestination": "រូបថត", "demoSharedXAxisCoursePageSubtitle": "ប្រភេទជា​កញ្ចប់បង្ហាញ​ជាក្រុម​នៅក្នុង​ផ្ទាំងព័ត៌មាន​របស់អ្នក។ អ្នកអាច​ប្ដូរវា​នៅពេលក្រោយ​បានជានិច្ច។", "demoFadeThroughDescription": "លំនាំ​លេចឡើង​ពីក្នុងត្រូវបានប្រើ​សម្រាប់​ការផ្លាស់ប្ដូរ​រវាងធាតុ UI ដែលមិនមាន​ទំនាក់ទំនង​រឹងមាំ​ជាមួយគ្នា។", "demoFadeThroughTitle": "លេចឡើង​ពីក្នុង", "demoSharedZAxisHelpSettingLabel": "ជំនួយ", "demoMotionSubtitle": "លំនាំនៃការ​ផ្លាស់ប្ដូរ​ដែលបានកំណត់​ជាមុនទាំងអស់", "demoSharedZAxisNotificationSettingLabel": "ការ​ជូនដំណឹង", "demoSharedZAxisProfileSettingLabel": "កម្រងព័ត៌មាន", "demoSharedZAxisSavedRecipesListTitle": "រូបមន្ត​ដែលបានរក្សាទុក", "demoSharedZAxisBeefSandwichRecipeDescription": "រូបមន្ត​ធ្វើសាំងវិច​សាច់គោ", "demoSharedZAxisCrabPlateRecipeDescription": "រូបមន្តធ្វើ​ម្ហូបដែល​ធ្វើពីក្ដាម", "demoSharedXAxisCoursePageTitle": "រៀបចំវគ្គ​សិក្សារបស់អ្នក​ឱ្យប្រសើរឡើង", "demoSharedZAxisCrabPlateRecipeTitle": "ក្ដាម", "demoSharedZAxisShrimpPlateRecipeDescription": "រូបមន្តធ្វើ​ម្ហូបដែល​ធ្វើពី​បង្គា", "demoSharedZAxisShrimpPlateRecipeTitle": "បង្គា", "demoContainerTransformTypeFadeThrough": "លេចឡើង​ពីក្នុង", "demoSharedZAxisDessertRecipeTitle": "បង្អែម", "demoSharedZAxisSandwichRecipeDescription": "រូបមន្ត​ធ្វើសាំងវិច", "demoSharedZAxisSandwichRecipeTitle": "សាំងវិច", "demoSharedZAxisBurgerRecipeDescription": "រូបមន្ត​ធ្វើប៊ឺហ្គឺ", "demoSharedZAxisBurgerRecipeTitle": "ប៊ឺហ្គឺ", "demoSharedZAxisSettingsPageTitle": "ការកំណត់", "demoSharedZAxisTitle": "អ័ក្ស z រួម", "demoSharedZAxisPrivacySettingLabel": "ឯកជនភាព", "demoMotionTitle": "ចលនា", "demoContainerTransformTitle": "ការប្រែក្លាយ​ទម្រង់ផ្ទុក", "demoContainerTransformDescription": "លំនាំ​នៃការប្រែក្លាយ​ទម្រង់ផ្ទុក​ត្រូវបានរចនាឡើង​សម្រាប់ការផ្លាស់ប្ដូរ​រវាងធាតុ UI ដែលមានទម្រង់ផ្ទុក។ លំនាំនេះ​បង្កើត​ការតភ្ជាប់​ដែលអាច​មើលឃើញ​រវាងធាតុ UI ពីរ", "demoContainerTransformModalBottomSheetTitle": "មុខងារ​លេចឡើង", "demoContainerTransformTypeFade": "លេច​ឡើង", "demoSharedYAxisAlbumTileDurationUnit": "ន", "demoMotionPlaceholderTitle": "ចំណងជើង", "demoSharedXAxisForgotEmailButtonText": "ភ្លេច​អ៊ីមែលឬ?", "demoMotionSmallPlaceholderSubtitle": "អក្សររត់", "demoMotionDetailsPageTitle": "ទំព័រ​ព័ត៌មាន​លម្អិត", "demoMotionListTileTitle": "ធាតុក្នុងបញ្ជី", "demoSharedAxisDescription": "លំនាំ​អ័ក្សរួម​ត្រូវបានប្រើ​សម្រាប់ការផ្លាស់ប្ដូរ​រវាងធាតុ UI ដែលមាន​ទំនាក់ទំនងផ្នែក​ទំហំ ឬ​ការរុករក។ លំនាំនេះ​ប្រើការប្រែក្លាយរួម​លើអ័ក្ស x, y ឬ z ដើម្បី​ពង្រឹងទំនាក់ទំនង​រវាងធាតុនានា។", "demoSharedXAxisTitle": "អ័ក្ស x រួម", "demoSharedXAxisBackButtonText": "ថយក្រោយ", "demoSharedXAxisNextButtonText": "បន្ទាប់", "demoSharedXAxisCulinaryCourseTitle": "ការធ្វើម្ហូប", "githubRepo": "ឃ្លាំង GitHub របស់ {repoName}", "fortnightlyMenuUS": "សហរដ្ឋ​អាមេរិក", "fortnightlyMenuBusiness": "អាជីវកម្ម", "fortnightlyMenuScience": "វិទ្យាសាស្ត្រ", "fortnightlyMenuSports": "កីឡា", "fortnightlyMenuTravel": "ការធ្វើ​ដំណើរ", "fortnightlyMenuCulture": "វប្បធម៌", "fortnightlyTrendingTechDesign": "បច្ចេកវិទ្យា​នៃការរចនា", "rallyBudgetDetailAmountLeft": "ចំនួន​ទឹកប្រាក់​ដែលនៅសល់", "fortnightlyHeadlineArmy": "ការធ្វើ​កំណែទម្រង់​ផ្ទៃក្នុង Green Army", "fortnightlyDescription": "កម្មវិធី​ព័ត៌មាន​ដែលផ្ដោតលើ​ខ្លឹមសារ", "rallyBillDetailAmountDue": "ចំនួន​ទឹកប្រាក់​ដែលត្រូវបង់", "rallyBudgetDetailTotalCap": "ការប្រើ​ដើមទុន​សរុប", "rallyBudgetDetailAmountUsed": "ចំនួន​ទឹកប្រាក់​ដែលបានប្រើ", "fortnightlyTrendingHealthcareRevolution": "បដិវត្តន៍​នៃ​ការថែទាំ​សុខភាព", "fortnightlyMenuFrontPage": "ទំព័រ​មុខ", "fortnightlyMenuWorld": "ពិភពលោក", "rallyBillDetailAmountPaid": "ចំនួន​ទឹកប្រាក់​ដែលបានបង់", "fortnightlyMenuPolitics": "នយោបាយ", "fortnightlyHeadlineBees": "ឃ្មុំ​កសិដ្ឋាន​កំពុង​ខ្វះខាត​លម្អងផ្កា", "fortnightlyHeadlineGasoline": "អនាគត​នៃ​ប្រេងសាំង", "fortnightlyTrendingGreenArmy": "GreenArmy", "fortnightlyHeadlineFeminists": "អ្នកគាំទ្រ​សមភាពយេនឌ័រ​ប្រយុទ្ធប្រឆាំងនឹងការប្រកាន់​បក្ខពួក", "fortnightlyHeadlineFabrics": "អ្នករចនា​ប្រើ​បច្ចេកវិទ្យា ដើម្បី​បង្កើត​ក្រណាត់​ដែលមានលក្ខណៈ​ទំនើបបំផុត", "fortnightlyHeadlineStocks": "ដោយសារតែ​ភាគហ៊ុន​នៅទ្រឹងដដែល មនុស្សជាច្រើន​ផ្ដោតលើ​រូបិយបណ្ណ​វិញ", "fortnightlyTrendingReform": "កំណែទម្រង់", "fortnightlyMenuTech": "បច្ចេកវិទ្យា", "fortnightlyHeadlineWar": "ជីវិត​ប្រជាជន​អាមេរិក​ដែលមាន​ការបែងចែកវណ្ណៈ​ក្នុងអំឡុង​សង្គ្រាម", "fortnightlyHeadlineHealthcare": "បដិវត្តន៍​នៃ​ការថែទាំ​សុខភាព​ក្នុងសភាព​ស្ងប់ស្ងាត់ ប៉ុន្តែ​មានសន្ទុះ​ខ្លាំងក្លា", "fortnightlyLatestUpdates": "ព័ត៌មាន​ថ្មី​បំផុត", "fortnightlyTrendingStocks": "ភាគហ៊ុន", "rallyBillDetailTotalAmount": "ចំនួន​ទឹកប្រាក់​សរុប", "demoCupertinoPickerDateTime": "កាលបរិច្ឆេទ និងម៉ោង", "signIn": "ចូល", "dataTableRowWithSugar": "{value} មានស្ករ", "dataTableRowApplePie": "នំ​ប៉ោម", "dataTableRowDonut": "នំដូណាត់", "dataTableRowHoneycomb": "សំបុកឃ្មុំ", "dataTableRowLollipop": "ស្ករគ្រាប់​ដោតឈើ", "dataTableRowJellyBean": "ស្ករគ្រាប់រាងគ្រាប់សណ្ដែក", "dataTableRowGingerbread": "នំរសជាតិខ្ញី", "dataTableRowCupcake": "នំខាប់ខេក", "dataTableRowEclair": "នំអ៊ីក្លែ", "dataTableRowIceCreamSandwich": "នំប៊ីស្គីត​មានការ៉េម​នៅកណ្ដាល", "dataTableRowFrozenYogurt": "យ៉ាអួកក", "dataTableColumnIron": "ដែក (%)", "dataTableColumnCalcium": "កាល់ស្យូម (%)", "dataTableColumnSodium": "សូដ្យូម (mg)", "demoTimePickerTitle": "ផ្ទាំងជ្រើសរើស​ម៉ោង", "demo2dTransformationsResetTooltip": "កំណត់​ការបំប្លែង​ឡើងវិញ", "dataTableColumnFat": "ខ្លាញ់ (g)", "dataTableColumnCalories": "កាឡូរី", "dataTableColumnDessert": "បង្អែម (1 ចាន)", "cardsDemoTravelDestinationLocation1": "ថាន់ចាវួរ​នៅរដ្ឋតាមីល​ណាឌូ", "demoTimePickerDescription": "បង្ហាញ​ប្រអប់ ដែលមាន​ផ្ទាំងជ្រើសរើសម៉ោង​ដែលមានការរចនាគ្រប់ជ្រុងជ្រោយ។", "demoPickersShowPicker": "បង្ហាញ​ផ្ទាំងជ្រើសរើស", "demoTabsScrollingTitle": "អាច​រំកិលបាន", "demoTabsNonScrollingTitle": "មិនអាច​រំកិលបាន", "craneHours": "{hours,plural,=1{1 ម៉}other{{hours} ម៉}}", "craneMinutes": "{minutes,plural,=1{1 ន}other{{minutes} ន}}", "craneFlightDuration": "{hoursShortForm} {minutesShortForm}", "dataTableHeader": "អាហារូបត្ថម្ភ", "demoDatePickerTitle": "ផ្ទាំង​ជ្រើសរើស​កាលបរិច្ឆេទ", "demoPickersSubtitle": "ការជ្រើសរើស​កាលបរិច្ឆេទ និងម៉ោង", "demoPickersTitle": "ផ្ទាំងជ្រើសរើស", "demo2dTransformationsEditTooltip": "កែ​ប្រអប់", "demoDataTableDescription": "តារាងទិន្នន័យ​បង្ហាញអំពី​ព័ត៌មានជា​ទម្រង់ដូចក្រឡា​នៃជួរដេក និងជួរឈរ។ តារាង​ទាំងនេះ​រៀបចំព័ត៌មាន​តាមរបៀប​ដែលងាយស្រួល​ស្កេន ដើម្បីឱ្យ​អ្នកប្រើប្រាស់​អាច​រកមើល​លំនាំ និងស្ថិតិបាន។", "demo2dTransformationsDescription": "ចុច​ដើម្បី​កែប្រអប់ និង​ប្រើចលនា ដើម្បី​ផ្លាស់ទី​ជុំវិញ​ទិដ្ឋភាព។ ចុចអូស ច្បិចដើម្បី​ពង្រីកបង្រួម បង្វិល​ដោយប្រើ​ម្រាមដៃពីរ។ ចុច​ប៊ូតុង​កំណត់​ឡើងវិញ ដើម្បី​ត្រឡប់ទៅ​ទិស​ចាប់ផ្ដើមវិញ។", "demo2dTransformationsSubtitle": "អូស ពង្រីក​បង្រួម បង្វិល", "demo2dTransformationsTitle": "ការបំប្លែង​ទម្រង់ 2D", "demoCupertinoTextFieldPIN": "កូដ PIN", "demoCupertinoTextFieldDescription": "កន្លែងបញ្ចូល​អក្សរអនុញ្ញាត​ឱ្យអ្នកប្រើប្រាស់បញ្ចូល​អក្សរ តាមរយៈក្ដារចុច​ហាតវែរ ឬក្ដារចុច​លើអេក្រង់។", "demoCupertinoTextFieldSubtitle": "កន្លែងបញ្ចូល​អក្សរដែលមាន​រចនាប័ទ្ម iOS", "demoCupertinoTextFieldTitle": "កន្លែងបញ្ចូលអក្សរ", "demoDatePickerDescription": "បង្ហាញ​ប្រអប់ ដែលមាន​ផ្ទាំងជ្រើសរើស​កាលបរិច្ឆេទ​ដែលមានការរចនាគ្រប់ជ្រុងជ្រោយ។", "demoCupertinoPickerTime": "ម៉ោង", "demoCupertinoPickerDate": "កាលបរិច្ឆេទ", "demoCupertinoPickerTimer": "កម្មវិធីកំណត់ម៉ោង", "demoCupertinoPickerDescription": "ធាតុក្រាហ្វិកនៃ​ផ្ទាំងជ្រើសរើស​ដែលមានរចនាប័ទ្ម iOS ដែលអាច​ត្រូវបានប្រើ ដើម្បីជ្រើសរើស​ជួរអក្សរ កាលបរិច្ឆេទ ម៉ោង ឬទាំង​កាលបរិច្ឆេទ និងម៉ោង។", "demoCupertinoPickerSubtitle": "ផ្ទាំងជ្រើសរើស​ដែលមានរចនាប័ទ្ម iOS", "demoCupertinoPickerTitle": "ផ្ទាំងជ្រើសរើស", "dataTableRowWithHoney": "{value} មានទឹកឃ្មុំ", "cardsDemoTravelDestinationCity2": "ចិត្តធីណាដ", "bannerDemoResetText": "កំណត់​ផ្ទាំងផ្សាយ​ពាណិជ្ជកម្ម​ឡើងវិញ", "bannerDemoMultipleText": "សកម្មភាព​ច្រើន", "bannerDemoLeadingText": "រូបតំណាងនៅពីមុខ", "dismiss": "ច្រានចោល", "cardsDemoTappable": "អាចចុចបាន", "cardsDemoSelectable": "អាចជ្រើសរើសបាន (ចុចឱ្យយូរ)", "cardsDemoExplore": "រុករក", "cardsDemoExploreSemantics": "រុករក {destinationName}", "cardsDemoShareSemantics": "ចែករំលែក {destinationName}", "cardsDemoTravelDestinationTitle1": "ទីក្រុង​ពេញនិយម​ចំនួន 10 សម្រាប់​ទៅលេងនៅរដ្ឋតាមីល​ណាឌូ", "cardsDemoTravelDestinationDescription1": "លេខ 10", "cardsDemoTravelDestinationCity1": "ថាន់ចាវួរ", "dataTableColumnProtein": "ប្រូតេអ៊ីន (g)", "cardsDemoTravelDestinationTitle2": "សិល្បករ​មកពីឥណ្ឌា​ភាគខាងត្បូង", "cardsDemoTravelDestinationDescription2": "សត្វរាយ​សំណាញ់​សូត្រ", "bannerDemoText": "ពាក្យសម្ងាត់​របស់អ្នក​ត្រូវបានធ្វើ​បច្ចុប្បន្នភាព​នៅលើឧបករណ៍​ផ្សេងទៀតរបស់អ្នក។ សូម​ចូល​ម្ដងទៀត​។", "cardsDemoTravelDestinationLocation2": "ស៊ីវវ៉ាហ្កានហ្កា​នៅរដ្ឋ​តាមីល​ណាឌូ", "cardsDemoTravelDestinationTitle3": "ប្រសាទ​ប្រីហាឌីស្វារ៉ា", "cardsDemoTravelDestinationDescription3": "ប្រាសាទ", "demoBannerTitle": "ផ្ទាំងផ្សាយពាណិជ្ជកម្ម", "demoBannerSubtitle": "កំពុងបង្ហាញ​ផ្ទាំងផ្សាយពាណិជ្ជកម្ម​នៅក្នុងបញ្ជី", "demoBannerDescription": "ផ្ទាំងផ្សាយ​ពាណិជ្ជកម្ម​បង្ហាញ​សារសំខាន់ ច្បាស់លាស់ និងផ្ដល់​សកម្មភាព​ឱ្យ​អ្នកប្រើប្រាស់ឆ្លើយតប (ឬច្រានចោល​ផ្ទាំងផ្សាយពាណិជ្ជកម្ម)។ តម្រូវឱ្យមាន​សកម្មភាព​របស់អ្នក​ប្រើប្រាស់ ដើម្បី​ច្រានចោល​ផ្ទាំងផ្សាយពាណិជ្ជកម្ម។", "demoCardTitle": "កាត", "demoCardSubtitle": "កាតខ្សែបន្ទាត់គោល​ដែលមាន​ជ្រុងរាងមូល", "demoCardDescription": "កាតគឺជាសន្លឹក​ខ្លឹមសារមួយ​ដែលប្រើ ដើម្បីតំណាងឱ្យ​ព័ត៌មាន​ពាក់ព័ន្ធ​មួយចំនួន ឧទាហរណ៍ អាល់ប៊ុម ទីតាំង​ភូមិសាស្ត្រ អាហារ ព័ត៌មានទំនាក់ទំនង ។ល។", "demoDataTableTitle": "តារាងទិន្នន័យ", "demoDataTableSubtitle": "ជួរដេក និងជួរឈរ​នៃព័ត៌មាន", "dataTableColumnCarbs": "កាបូអ៊ីដ្រាត (g)", "placeTanjore": "ថាន់ចរ", "demoGridListsTitle": "បញ្ជី​ក្រឡា", "placeFlowerMarket": "ផ្សារ​លក់​ផ្កា", "placeBronzeWorks": "រោងចក្រ​ស្ល​សំរឹទ្ធ", "placeMarket": "ទីផ្សារ", "placeThanjavurTemple": "ប្រាសាទ​ថាន់ចាវួរ", "placeSaltFarm": "ស្រែ​អំបិល", "placeScooters": "កង់រុញ​ដោយ​ជើង", "placeSilkMaker": "ឧបករណ៍ផលិតសូត្រ", "placeLunchPrep": "ការរៀបចំ​អាហារ​ថ្ងៃត្រង់", "placeBeach": "ឆ្នេរ", "placeFisherman": "អ្នក​នេសាទ", "demoMenuSelected": "បាន​ជ្រើសរើស​៖ {value}", "demoMenuRemove": "លុប", "demoMenuGetLink": "យក​តំណ", "demoMenuShare": "ចែករំលែក", "demoBottomAppBarSubtitle": "បង្ហាញ​ការរុករក និងសកម្មភាព​នៅផ្នែកខាងក្រោម", "demoMenuAnItemWithASectionedMenu": "ធាតុ​ដែលមាន​ម៉ឺនុយ​តាមផ្នែក", "demoMenuADisabledMenuItem": "ធាតុ​ម៉ឺនុយ​ដែលបានបិទ", "demoLinearProgressIndicatorTitle": "សូចនាករដំណើរការរាងបន្ទាត់ត្រង់", "demoMenuContextMenuItemOne": "ធាតុ​ទីមួយ​ក្នុង​ម៉ឺនុយ​បរិបទ", "demoMenuAnItemWithASimpleMenu": "ធាតុ​ដែលមាន​ម៉ឺនុយ​ធម្មតា", "demoCustomSlidersTitle": "របាររំកិលផ្ទាល់ខ្លួន", "demoMenuAnItemWithAChecklistMenu": "ធាតុ​ដែលមាន​ម៉ឺនុយ​បញ្ជី​ត្រួតពិនិត្យ", "demoCupertinoActivityIndicatorTitle": "សូចនាករ​សកម្មភាព", "demoCupertinoActivityIndicatorSubtitle": "សូចនាករសកម្មភាពរចនាប័ទ្ម iOS", "demoCupertinoActivityIndicatorDescription": "សូចនាករសកម្មភាពរចនាប័ទ្ម iOS ដែលវិលស្របទ្រនិចនាឡិកា។", "demoCupertinoNavigationBarTitle": "របាររុករក", "demoCupertinoNavigationBarSubtitle": "របារ​រុករក​រចនាប័ទ្ម iOS", "demoCupertinoNavigationBarDescription": "របារ​រុករក​ដែលមាន​រចនាប័ទ្ម iOS​។ របារ​រុករក​គឺជា​របារ​ឧបករណ៍​ដែល​យ៉ាងហោចណាស់មាន​ចំណងជើង​ទំព័រ នៅផ្នែក​កណ្ដាលនៃ​របារ​ឧបករណ៍​។", "demoCupertinoPullToRefreshTitle": "ទាញ​ដើម្បី​ផ្ទុក​ឡើងវិញ", "demoCupertinoPullToRefreshSubtitle": "ការគ្រប់គ្រង​ការទាញ​ដើម្បី​ផ្ទុក​ឡើងវិញ​​រចនាប័ទ្ម iOS", "demoCupertinoPullToRefreshDescription": "ធាតុ​ក្រាហ្វិក​ដែល​ប្រើ​ការគ្រប់គ្រងខ្លឹមសារ​តាមរយៈ​ការទាញ​ដើម្បី​ផ្ទុក​ឡើងវិញ​​រចនាប័ទ្ម iOS​។", "demoProgressIndicatorTitle": "សូចនាករដំណើរការ", "demoProgressIndicatorSubtitle": "បន្ទាត់ត្រង់ រង្វង់ មិនកំណត់", "demoCircularProgressIndicatorTitle": "សូចនាករដំណើរការរាងរង្វង់", "demoCircularProgressIndicatorDescription": "សូចនាករដំណើរការរាងរង្វង់នៃរចនាប័ទ្មសម្ភារ ដែលវិលដើម្បី​បង្ហាញថា​កម្មវិធី​កំពុងជាប់រវល់។", "demoMenuFour": "បួន", "demoLinearProgressIndicatorDescription": "សូចនាករដំណើរការរាងបន្ទាត់ត្រង់នៃរចនាប័ទ្មសម្ភារ ដែលអាចហៅម្យ៉ាងទៀតថារបារ​ដំណើរការ។", "demoTooltipTitle": "កំណត់​ពន្យល់", "demoTooltipSubtitle": "សារ​ខ្លី​ដែលបង្ហាញ​នៅពេល​ចុច​ឱ្យយូរ ឬ​ដាក់ព្រួញ", "demoTooltipDescription": "កំណត់​ពន្យល់​ផ្ដល់​ស្លាក​អត្ថបទ​ដែល​ជួយ​ពន្យល់​អំពី​មុខងារ​របស់​ប៊ូតុង ឬ​សកម្មភាព​នៃ​ផ្ទៃប៉ះ​ផ្សេងទៀត​។ កំណត់​ពន្យល់​បង្ហាញ​អត្ថបទ​ដែលផ្ដល់​ព័ត៌មាន​ជាប្រយោជន៍ នៅពេល​អ្នកប្រើប្រាស់​ដាក់ព្រួញ ផ្ដោត ឬ​ចុចលើ​ធាតុ​ឱ្យយូរ​។", "demoTooltipInstructions": "ចុច​ឱ្យយូរ ឬ​ដាក់ព្រួញ ដើម្បី​បង្ហាញ​កំណត់​ពន្យល់​។", "placeChennai": "ជិនណៃ", "demoMenuChecked": "បាន​ធីក​៖ {value}", "placeChettinad": "ចិត្តធីណាដ", "demoMenuPreview": "មើលសាកល្បង", "demoBottomAppBarTitle": "របារកម្មវិធី​ផ្នែកខាងក្រោម", "demoBottomAppBarDescription": "របារកម្មវិធី​ផ្នែកខាងក្រោមផ្ដល់​សិទ្ធិចូលប្រើ​ថត​​រុករក​នៅផ្នែកខាងក្រោម និងសកម្មភាព​រហូតដល់បួន រួមទាំងប៊ូតុងសកម្មភាពអណ្ដែត​ផងដែរ។", "bottomAppBarNotch": "ក្បាលឆក", "bottomAppBarPosition": "ទីតាំងប៊ូតុងសកម្មភាពអណ្ដែត", "bottomAppBarPositionDockedEnd": "ភ្ជាប់ - ចុង", "bottomAppBarPositionDockedCenter": "ភ្ជាប់ - កណ្ដាល", "bottomAppBarPositionFloatingEnd": "អណ្ដែត - ចុង", "bottomAppBarPositionFloatingCenter": "អណ្ដែត - កណ្ដាល", "demoSlidersEditableNumericalValue": "តម្លៃលេខដែលអាចកែបាន", "demoGridListsSubtitle": "ប្លង់​ជួរដេក និង​ជួរឈរ", "demoGridListsDescription": "បញ្ជី​ក្រឡា​មានភាព​ស័ក្តិសម​បំផុត​សម្រាប់​បង្ហាញ​ទិន្នន័យ​ដែលមាន​លក្ខណៈ​ដូចៗគ្នា ដោយ​ជាធម្មតា​គឺជា​រូបភាព​។ គេ​ហៅ​ធាតុ​នីមួយៗ​នៅក្នុង​បញ្ជី​ក្រឡា​ថា​ប្រអប់។", "demoGridListsImageOnlyTitle": "រូបភាព​តែប៉ុណ្ណោះ", "demoGridListsHeaderTitle": "មាន​ក្បាលទំព័រ", "demoGridListsFooterTitle": "មាន​ជើងទំព័រ", "demoSlidersTitle": "របាររំកិល", "demoSlidersSubtitle": "ធាតុ​ក្រាហ្វិកសម្រាប់ជ្រើសរើស​តម្លៃដោយការអូស", "demoSlidersDescription": "របាររំកិលបង្ហាញចន្លោះតម្លៃ​នៅលើរបារ ដែលអ្នកប្រើប្រាស់​អាចជ្រើសរើសតម្លៃមួយ។ របាររំកិលទាំងនេះស័ក្តិសមសម្រាប់​ការកែតម្រូវការកំណត់​ផ្សេងៗដូចជា កម្រិតសំឡេង ពន្លឺ ឬការអនុវត្តតម្រងរូបភាពជាដើម។", "demoRangeSlidersTitle": "របាររំកិលចន្លោះតម្លៃ", "demoRangeSlidersDescription": "របាររំកិល​បង្ហាញ​ចន្លោះតម្លៃ​នៅលើរបារ។ របាររំកិល​ទាំងនេះ​អាចមាន​រូបតំណាងនៅចុងទាំងពីរនៃរបារ ដែលបង្ហាញចន្លោះតម្លៃ។ របាររំកិលទាំងនេះស័ក្តិសមសម្រាប់​ការកែតម្រូវការកំណត់​ផ្សេងៗដូចជា កម្រិតសំឡេង ពន្លឺ ឬការអនុវត្តតម្រងរូបភាពជាដើម។", "demoMenuAnItemWithAContextMenuButton": "ធាតុ​ដែលមាន​ម៉ឺនុយ​បរិបទ", "demoCustomSlidersDescription": "របាររំកិល​បង្ហាញ​ចន្លោះតម្លៃ​នៅលើរបារ ដែលអ្នកប្រើប្រាស់​អាចជ្រើសរើសតម្លៃមួយ ឬចន្លោះតម្លៃ។ អ្នកអាចកំណត់រចនាប័ទ្ម និងប្ដូរ​របាររំកិល​តាមបំណង។", "demoSlidersContinuousWithEditableNumericalValue": "គ្មានចំណុចតម្លៃ រួមជាមួយតម្លៃលេខដែលអាចកែបាន", "demoSlidersDiscrete": "ជាក់លាក់", "demoSlidersDiscreteSliderWithCustomTheme": "របាររំកិលតម្លៃជាក់លាក់ រួម​ជាមួយរចនាប័ទ្ម​ផ្ទាល់ខ្លួន", "demoSlidersContinuousRangeSliderWithCustomTheme": "របាររំកិល​គ្មានចំណុចតម្លៃ រួមជាមួយរចនាប័ទ្មផ្ទាល់ខ្លួន", "demoSlidersContinuous": "គ្មានចំណុចតម្លៃ", "placePondicherry": "ផនឌីឈ័ររី", "demoMenuTitle": "ម៉ឺនុយ", "demoContextMenuTitle": "ម៉ឺនុយ​បរិបទ", "demoSectionedMenuTitle": "ម៉ឺនុយ​តាមផ្នែក", "demoSimpleMenuTitle": "ម៉ឺនុយ​ធម្មតា", "demoChecklistMenuTitle": "ម៉ឺនុយ​បញ្ជី​ត្រួតពិនិត្យ", "demoMenuSubtitle": "ប៊ូតុង​ម៉ឺនុយ និង​ម៉ឺនុយ​ធម្មតា", "demoMenuDescription": "ម៉ឺនុយ​បង្ហាញ​បញ្ជី​ជម្រើស​នៅលើ​ផ្ទៃ​បណ្ដោះ​អាសន្ន​។ ជម្រើស​ទាំងនោះ​បង្ហាញ នៅពេល​អ្នកប្រើប្រាស់​ធ្វើអន្តរកម្ម​ជាមួយ​ប៊ូតុង សកម្មភាព ឬ​ការគ្រប់គ្រង​ផ្សេងទៀត​។", "demoMenuItemValueOne": "ធាតុម៉ឺនុយទីមួយ", "demoMenuItemValueTwo": "ធាតុម៉ឺនុយទីពីរ", "demoMenuItemValueThree": "ធាតុម៉ឺនុយទីបី", "demoMenuOne": "មួយ", "demoMenuTwo": "ពីរ", "demoMenuThree": "បី", "demoMenuContextMenuItemThree": "ធាតុ​ទីបី​ក្នុង​ម៉ឺនុយ​បរិបទ", "demoCupertinoSwitchSubtitle": "ប៊ូតុង​បិទបើក​ដែលមាន​រចនាប័ទ្ម iOS", "demoSnackbarsText": "នេះគឺជា​របារសារខ្លីៗ។", "demoCupertinoSliderSubtitle": "របាររំកិល​ដែលមាន​រចនាប័ទ្ម iOS", "demoCupertinoSliderDescription": "របាររំកិល​អាច​ត្រូវបានប្រើ​ដើម្បី​ជ្រើសរើសពី​សំណុំ​តម្លៃ​ជាក់លាក់ ឬ​មិនជាក់លាក់។", "demoCupertinoSliderContinuous": "មិនជាក់លាក់៖ {value}", "demoCupertinoSliderDiscrete": "ជាក់លាក់៖ {value}", "demoSnackbarsAction": "អ្នកបានចុច​សកម្មភាពរបស់​របារសារខ្លីៗ។", "backToGallery": "ត្រឡប់​ទៅ Gallery", "demoCupertinoTabBarTitle": "របារ​ផ្ទាំង", "demoCupertinoSwitchDescription": "ប៊ូតុង​បិទបើក​ត្រូវបានប្រើ​ដើម្បី​បិទ/បើក​ស្ថានភាព​នៃការកំណត់​តែមួយ។", "demoSnackbarsActionButtonLabel": "សកម្មភាព", "cupertinoTabBarProfileTab": "កម្រងព័ត៌មាន", "demoSnackbarsButtonLabel": "បង្ហាញ​របារសារខ្លីៗ", "demoSnackbarsDescription": "របារសារខ្លីៗ​ប្រាប់អ្នកប្រើប្រាស់​អំពី​ដំណើរការ​ដែល​កម្មវិធី​បានធ្វើ ឬ​នឹងធ្វើ។ របារទាំងនេះ​បង្ហាញជា​បណ្ដោះអាសន្ន​នៅ​ផ្នែកខាងក្រោម​នៃអេក្រង់។ របារប្រភេទនេះ​មិនគួររំខានដល់​បទពិសោធន៍​អ្នកប្រើប្រាស់ និងមិនតម្រូវឱ្យ​អ្នកប្រើប្រាស់​ធ្វើអ្វី​ដើម្បី​ឱ្យរបារនេះបាត់នោះទេ។", "demoSnackbarsSubtitle": "របារសារខ្លីៗ​បង្ហាញសារ​នៅផ្នែក​ខាងក្រោម​នៃអេក្រង់", "demoSnackbarsTitle": "របារសារខ្លីៗ", "demoCupertinoSliderTitle": "របាររំកិល", "cupertinoTabBarChatTab": "ការជជែក", "cupertinoTabBarHomeTab": "ទំព័រដើម", "demoCupertinoTabBarDescription": "របារផ្ទាំង​រុករក​នៅផ្នែក​ខាងក្រោម​ដែលមាន​រចនាប័ទ្ម iOS។ បង្ហាញ​ផ្ទាំងច្រើន​ដែលមានផ្ទាំង​មួយកំពុងបើក ដែល​តាមលំនាំដើម​គឺជា​ផ្ទាំងទីមួយ។", "demoCupertinoTabBarSubtitle": "របារផ្ទាំង​នៅផ្នែក​ខាងក្រោម​ដែលមាន​រចនាប័ទ្ម iOS", "demoOptionsFeatureTitle": "មើល​ជម្រើស", "demoOptionsFeatureDescription": "សូមចុច​ត្រង់នេះ ដើម្បីមើល​ជម្រើសដែលមាន​សម្រាប់​ការសាកល្បង​នេះ។", "demoCodeViewerCopyAll": "ចម្លង​ទាំងអស់", "shrineScreenReaderRemoveProductButton": "ដក {product} ចេញ", "shrineScreenReaderProductAddToCart": "បញ្ចូលទៅរទេះ", "shrineScreenReaderCart": "{quantity,plural,=0{រទេះទិញទំនិញ គ្មានទំនិញ}=1{រទេះទិញទំនិញ ទំនិញ 1}other{រទេះទិញទំនិញ ទំនិញ {quantity}}}", "demoCodeViewerFailedToCopyToClipboardMessage": "មិនអាច​ចម្លងទៅឃ្លីបបត​បានទេ៖ {error}", "demoCodeViewerCopiedToClipboardMessage": "បានចម្លង​ទៅ​ឃ្លីបបត។", "craneSleep8SemanticLabel": "សំណង់​បាក់បែក​នៃទីក្រុងម៉ាយ៉ាន​នៅលើ​ចំណោតច្រាំង​ពីលើឆ្នេរខ្សាច់", "craneSleep4SemanticLabel": "សណ្ឋាគារ​ជាប់មាត់បឹង​នៅពី​មុខភ្នំ", "craneSleep2SemanticLabel": "ប្រាសាទ​នៅ​ម៉ាឈូភីឈូ", "craneSleep1SemanticLabel": "ផ្ទះឈើ​នៅលើភ្នំ​ដែលស្ថិត​នៅក្នុង​ទេសភាព​មានព្រិលធ្លាក់​ជាមួយនឹង​ដើមឈើ​ដែលមាន​ស្លឹក​ពេញមួយឆ្នាំ", "craneSleep0SemanticLabel": "បឹងហ្គាឡូ​លើ​ទឹក", "craneFly13SemanticLabel": "អាងហែលទឹក​ជាប់​មាត់សមុទ្រ​ដែលមាន​ដើមត្នោត", "craneFly12SemanticLabel": "អាងហែលទឹក​ដែលមាន​ដើមត្នោត", "craneFly11SemanticLabel": "ប៉មភ្លើង​នាំផ្លូវ​ធ្វើពី​ឥដ្ឋ​នៅសមុទ្រ", "craneFly10SemanticLabel": "ប៉មវិហារ​អ៊ិស្លាម Al-Azhar អំឡុងពេល​ថ្ងៃលិច", "craneFly9SemanticLabel": "បុរសផ្អែកលើ​រថយន្ត​ស៊េរីចាស់​ពណ៌ខៀវ", "craneFly8SemanticLabel": "Supertree Grove", "craneEat9SemanticLabel": "តុគិតលុយ​នៅ​ហាងកាហ្វេដែល​មានលក់​នំធ្វើពីម្សៅ", "craneEat2SemanticLabel": "ប៊ឺហ្គឺ", "craneFly5SemanticLabel": "សណ្ឋាគារ​ជាប់មាត់បឹង​នៅពី​មុខភ្នំ", "demoSelectionControlsSubtitle": "ប្រអប់​ធីក ប៊ូតុង​មូល និង​ប៊ូតុង​បិទបើក", "craneEat10SemanticLabel": "ស្រ្តីកាន់​សាំងវិច​សាច់គោ​ដ៏ធំ", "craneFly4SemanticLabel": "បឹងហ្គាឡូ​លើ​ទឹក", "craneEat7SemanticLabel": "ទ្វារចូល​ហាងនំប៉័ង", "craneEat6SemanticLabel": "ម្ហូបដែល​ធ្វើពី​បង្គា", "craneEat5SemanticLabel": "កន្លែងអង្គុយ​នៅ​ភោជនីយដ្ឋាន​បែបសិល្បៈ", "craneEat4SemanticLabel": "បង្អែម​សូកូឡា", "craneEat3SemanticLabel": "តាកូ​កូរ៉េ", "craneFly3SemanticLabel": "ប្រាសាទ​នៅ​ម៉ាឈូភីឈូ", "craneEat1SemanticLabel": "បារគ្មាន​មនុស្ស ដែលមាន​ជើងម៉ា​សម្រាប់អង្គុយទទួលទាន​អាហារ", "craneEat0SemanticLabel": "ភីហ្សា​នៅក្នុង​ឡដុតអុស", "craneSleep11SemanticLabel": "អគារ​កប់ពពក Taipei 101", "craneSleep10SemanticLabel": "ប៉មវិហារ​អ៊ិស្លាម Al-Azhar អំឡុងពេល​ថ្ងៃលិច", "craneSleep9SemanticLabel": "ប៉មភ្លើង​នាំផ្លូវ​ធ្វើពី​ឥដ្ឋ​នៅសមុទ្រ", "craneEat8SemanticLabel": "បង្កង​ទឹកសាប​ដែលមាន​ទំហំតូច​មួយចាន", "craneSleep7SemanticLabel": "ផ្ទះល្វែង​ចម្រុះពណ៌​នៅ Ribeira Square", "craneSleep6SemanticLabel": "អាងហែលទឹក​ដែលមាន​ដើមត្នោត", "craneSleep5SemanticLabel": "តង់​នៅវាល", "settingsButtonCloseLabel": "បិទ​ការ​កំណត់", "demoSelectionControlsCheckboxDescription": "ប្រអប់​ធីក​អនុញ្ញាតឱ្យ​អ្នកប្រើប្រាស់​ជ្រើសរើស​ជម្រើសច្រើន​ពីបណ្ដុំ​មួយ។ តម្លៃរបស់​ប្រអប់​ធីកធម្មតា​គឺពិត ឬមិនពិត ហើយតម្លៃ​របស់ប្រអប់ធីក​ដែលមាន​បីស្ថានភាពក៏អាច​ទទេ​បានផងដែរ។", "settingsButtonLabel": "ការកំណត់", "demoListsTitle": "បញ្ជី", "demoListsSubtitle": "ប្លង់​បញ្ជី​រំកិល", "demoListsDescription": "ជួរដេកតែមួយដែលមានកម្ពស់ថេរ ដែលជាទូទៅមានអក្សរមួយចំនួន ក៏ដូចជារូបតំណាងនៅពីមុខ ឬពីក្រោយ។", "demoOneLineListsTitle": "មួយជួរ", "demoTwoLineListsTitle": "ពីរជួរ", "demoListsSecondary": "អក្សរនៅ​ជួរទីពីរ", "demoSelectionControlsTitle": "ការគ្រប់គ្រង​ការជ្រើសរើស", "craneFly7SemanticLabel": "ភ្នំ​រ៉ាស្សម៉រ", "demoSelectionControlsCheckboxTitle": "ប្រអប់​ធីក", "craneSleep3SemanticLabel": "បុរសផ្អែកលើ​រថយន្ត​ស៊េរីចាស់​ពណ៌ខៀវ", "demoSelectionControlsRadioTitle": "ប៊ូតុង​មូល", "demoSelectionControlsRadioDescription": "ប៊ូតុងមូល​អនុញ្ញាតឱ្យ​អ្នកប្រើប្រាស់​ជ្រើសរើស​ជម្រើសមួយ​ពី​បណ្ដុំមួយ។ ប្រើ​ប៊ូតុងមូល​សម្រាប់​ការជ្រើសរើស​ផ្ដាច់មុខ ប្រសិនបើ​អ្នកគិតថា​អ្នកប្រើប្រាស់​ត្រូវការមើល​ជម្រើស​ដែលមាន​ទាំងអស់​ទន្ទឹមគ្នា។", "demoSelectionControlsSwitchTitle": "ប៊ូតុង​បិទបើក", "demoSelectionControlsSwitchDescription": "ប៊ូតុង​បិទបើក​សម្រាប់​បិទ/បើក​ស្ថានភាព​ជម្រើស​នៃការកំណត់​តែមួយ។ ជម្រើសដែល​ប៊ូតុង​បិទបើក​គ្រប់គ្រង ក៏ដូចជា​ស្ថានភាព​ដែលវាស្ថិតនៅ គួរតែ​កំណត់​ឱ្យបាន​ច្បាស់លាស់ពី​ស្លាក​ក្នុងជួរ​ដែលពាក់ព័ន្ធ។", "craneFly0SemanticLabel": "ផ្ទះឈើ​នៅលើភ្នំ​ដែលស្ថិត​នៅក្នុង​ទេសភាព​មានព្រិលធ្លាក់​ជាមួយនឹង​ដើមឈើ​ដែលមាន​ស្លឹក​ពេញមួយឆ្នាំ", "craneFly1SemanticLabel": "តង់​នៅវាល", "craneFly2SemanticLabel": "ទង់ដែលមាន​សរសេរការបន់ស្រន់​នៅពីមុខ​ភ្នំដែល​មានព្រិលធ្លាក់", "craneFly6SemanticLabel": "ទិដ្ឋភាពនៃ Palacio de Bellas Artes ពីលើ​អាកាស", "rallySeeAllAccounts": "មើល​គណនី​ទាំងអស់", "rallyBillAmount": "វិក្កយបត្រ {billName} ដែលមានតម្លៃ {amount} ផុតកំណត់​នៅថ្ងៃទី {date}។", "shrineTooltipCloseCart": "បិទ​ទំព័រ​រទេះ", "shrineTooltipCloseMenu": "បិទ​ម៉ឺនុយ", "shrineTooltipOpenMenu": "បើកម៉ឺនុយ", "shrineTooltipSettings": "ការកំណត់", "shrineTooltipSearch": "ស្វែងរក", "demoTabsDescription": "ផ្ទាំង​រៀបចំ​ខ្លឹមសារ​នៅលើ​អេក្រង់ សំណុំ​ទិន្នន័យ​ផ្សេងៗគ្នា និងអន្តរកម្ម​ផ្សេងទៀត។", "demoTabsSubtitle": "ផ្ទាំង​មាន​ទិដ្ឋភាព​ដាច់ពីគ្នា​ដែលអាច​រំកិលបាន", "demoTabsTitle": "ផ្ទាំង", "rallyBudgetAmount": "ថវិកា {budgetName} ដែលចំណាយអស់ {amountUsed} នៃទឹកប្រាក់សរុប {amountTotal} ហើយនៅសល់ {amountLeft}", "shrineTooltipRemoveItem": "ដក​ទំនិញ​ចេញ", "rallyAccountAmount": "គណនី {accountName} {accountNumber} ដែលមាន​ទឹកប្រាក់ {amount}។", "rallySeeAllBudgets": "មើល​ថវិកា​ទាំងអស់", "rallySeeAllBills": "មើល​វិក្កយបត្រ​ទាំងអស់", "craneFormDate": "ជ្រើសរើស​កាល​បរិច្ឆេទ", "craneFormOrigin": "ជ្រើសរើស​ប្រភពដើម", "craneFly2": "ជ្រលង​ខាំប៊្យូ នេប៉ាល់", "craneFly3": "ម៉ាឈូភីឈូ ប៉េរូ", "craneFly4": "ម៉ាល ម៉ាល់ឌីវ", "craneFly5": "វីតស្នោវ ស្វ៊ីស", "craneFly6": "ទីក្រុង​ម៉ិកស៊ិក ប្រទេស​ម៉ិកស៊ិក", "craneFly7": "ភ្នំ​រ៉ាស្សម៉រ សហរដ្ឋ​អាមេរិក", "settingsTextDirectionLocaleBased": "ផ្អែកលើ​ភាសា", "craneFly9": "ហាវ៉ាណា គុយបា", "craneFly10": "គែរ អេហ្ស៊ីប", "craneFly11": "លីសបោន ព័រទុយហ្គាល់", "craneFly12": "ណាប៉ា សហរដ្ឋ​អាមេរិក", "craneFly13": "បាលី ឥណ្ឌូណេស៊ី", "craneSleep0": "ម៉ាល ម៉ាល់ឌីវ", "craneSleep1": "អាស្ប៉ិន សហរដ្ឋ​អាមេរិក", "craneSleep2": "ម៉ាឈូភីឈូ ប៉េរូ", "demoCupertinoSegmentedControlTitle": "ការគ្រប់គ្រង​ដែល​បែងចែក​ជាផ្នែក", "craneSleep4": "វីតស្នោវ ស្វ៊ីស", "craneSleep5": "ប៊ីកសឺ សហរដ្ឋ​អាមេរិក", "craneSleep6": "ណាប៉ា សហរដ្ឋ​អាមេរិក", "craneSleep7": "ព័រតូ ព័រទុយហ្គាល់", "craneSleep8": "ទូលូម ម៉ិកស៊ិក", "craneEat5": "សេអ៊ូល កូរ៉េ​ខាងត្បូង", "demoChipTitle": "ឈីប", "demoChipSubtitle": "ធាតុ​ចង្អៀតដែល​តំណាងឱ្យ​ធាតុ​បញ្ចូល លក្ខណៈ ឬ​សកម្មភាព", "demoActionChipTitle": "ឈីប​សកម្មភាព", "demoActionChipDescription": "ឈីប​សកម្មភាព​គឺជា​បណ្ដុំ​ជម្រើស ដែល​ជំរុញ​សកម្មភាព​ពាក់ព័ន្ធ​នឹង​ខ្លឹមសារ​ចម្បង​។ ឈីប​សកម្មភាព​គួរតែ​បង្ហាញ​ជា​បន្តបន្ទាប់ និង​តាម​បរិបទ​នៅក្នុង UI​។", "demoChoiceChipTitle": "ឈីប​ជម្រើស", "demoChoiceChipDescription": "ឈីប​ជម្រើស​តំណាងឱ្យ​ជម្រើស​តែមួយ​ពី​បណ្ដុំ​មួយ​។ ឈីប​ជម្រើស​មាន​ប្រភេទ ឬ​អត្ថបទ​បែប​ពណ៌នា​ដែល​ពាក់ព័ន្ធ​។", "demoFilterChipTitle": "ឈីប​តម្រង", "demoFilterChipDescription": "ឈីប​តម្រង​ប្រើ​ស្លាក ឬ​ពាក្យ​បែប​ពណ៌នា​ជា​វិធី​ក្នុងការ​ត្រង​ខ្លឹមសារ​។", "demoInputChipTitle": "ឈីប​ធាតុ​បញ្ចូល", "demoInputChipDescription": "ឈីប​ធាតុបញ្ចូល​តំណាងឱ្យ​ព័ត៌មានដ៏ស្មុគស្មាញ ដូចជា​ធាតុ (មនុស្ស ទីកន្លែង ឬ​វត្ថុ) ឬ​អត្ថបទ​សន្ទនា ជា​ទម្រង់​ចង្អៀត។", "craneSleep9": "លីសបោន ព័រទុយហ្គាល់", "craneEat10": "លីសបោន ព័រទុយហ្គាល់", "demoCupertinoSegmentedControlDescription": "ប្រើ​ដើម្បី​ជ្រើសរើស​រវាង​ជម្រើស​ដាច់ដោយឡែក​ផ្សេងៗគ្នា​មួយចំនួន។ នៅពេល​ជម្រើស​មួយ​នៅក្នុង​ការគ្រប់គ្រង​ដែលបែងចែក​ជាផ្នែក​ត្រូវបានជ្រើសរើស ជម្រើស​ផ្សេងទៀត​នៅក្នុង​ការគ្រប់គ្រង​ដែលបែងចែក​ជាផ្នែក​មិនត្រូវបានជ្រើសរើស​ទៀតទេ។", "chipTurnOnLights": "បើក​ភ្លើង", "chipSmall": "តូច", "chipMedium": "មធ្យម", "chipLarge": "ធំ", "chipElevator": "ជណ្ដើរ​យន្ត", "chipWasher": "ម៉ាស៊ីន​បោកគក់", "chipFireplace": "ជើងក្រាន​កម្ដៅ​បន្ទប់", "chipBiking": "ការ​ជិះ​កង់", "craneFormDiners": "អ្នក​ទទួលទាន​អាហារ​ពេលល្ងាច", "rallyAlertsMessageUnassignedTransactions": "{count,plural,=1{បង្កើន​ការកាត់ពន្ធ​របស់អ្នក​ដែលអាច​មាន! កំណត់​ប្រភេទ​ទៅ​ប្រតិបត្តិការ 1 ដែលមិនបានកំណត់។}other{បង្កើន​ការកាត់ពន្ធ​របស់អ្នក​ដែលអាច​មាន! កំណត់​ប្រភេទ​ទៅ​ប្រតិបត្តិការ {count} ដែលមិនបានកំណត់។}}", "craneFormTime": "ជ្រើសរើស​ពេលវេលា", "craneFormLocation": "ជ្រើស​រើសទីតាំង", "craneFormTravelers": "អ្នក​ធ្វើ​ដំណើរ", "craneEat8": "អាត្លង់តា សហរដ្ឋ​អាមេរិក", "craneFormDestination": "ជ្រើសរើស​គោលដៅ", "craneFormDates": "ជ្រើសរើស​កាល​បរិច្ឆេទ", "craneFly": "ជើង​ហោះ​ហើរ", "craneSleep": "កន្លែង​គេង", "craneEat": "អាហារដ្ឋាន", "craneFlySubhead": "ស្វែងរក​ជើង​ហោះហើរ​តាម​គោលដៅ", "craneSleepSubhead": "ស្វែងរក​អចលន​ទ្រព្យ​តាម​គោលដៅ", "craneEatSubhead": "ស្វែងរក​ភោជនីយ​ដ្ឋាន​តាម​គោលដៅ", "craneFlyStops": "{numberOfStops,plural,=0{មិន​ឈប់}=1{ការឈប់ 1 លើក}other{ការឈប់ {numberOfStops} លើក}}", "craneSleepProperties": "{totalProperties,plural,=0{មិនមាន​អចលនទ្រព្យ​ដែលអាចជួល​បានទេ}=1{មាន​អចលនទ្រព្យ 1 ដែលអាចជួល​បាន}other{មាន​អចលនទ្រព្យ​ {totalProperties} ដែលអាចជួល​បាន}}", "craneEatRestaurants": "{totalRestaurants,plural,=0{មិនមាន​ភោជនីយដ្ឋាន​ទេ}=1{ភោជនីយដ្ឋាន 1}other{ភោជនីយដ្ឋាន {totalRestaurants}}}", "craneFly0": "អាស្ប៉ិន សហរដ្ឋ​អាមេរិក", "demoCupertinoSegmentedControlSubtitle": "ការគ្រប់គ្រង​ដែលបែងចែក​ជាផ្នែក​តាមរចនាប័ទ្ម iOS", "craneSleep10": "គែរ អេហ្ស៊ីប", "craneEat9": "ម៉ាឌ្រីដ អេស្ប៉ាញ", "craneFly1": "ប៊ីកសឺ សហរដ្ឋ​អាមេរិក", "craneEat7": "ណាសវីល សហរដ្ឋ​អាមេរិក", "craneEat6": "ស៊ីអាថល សហរដ្ឋ​អាមេរិក", "craneFly8": "សិង្ហបុរី", "craneEat4": "ប៉ារីស បារាំង", "craneEat3": "ផតឡែន សហរដ្ឋ​អាមេរិក", "craneEat2": "ខរដូបា អាហ្សង់ទីន", "craneEat1": "ដាឡាស សហរដ្ឋ​អាមេរិក", "craneEat0": "នេផលស៍ អ៊ីតាលី", "craneSleep11": "តៃប៉ិ តៃវ៉ាន់", "craneSleep3": "ហាវ៉ាណា គុយបា", "shrineLogoutButtonCaption": "ចេញ", "rallyTitleBills": "វិក្កយបត្រ", "rallyTitleAccounts": "គណនី", "shrineProductVagabondSack": "កាបូប Vagabond", "rallyAccountDetailDataInterestYtd": "ការប្រាក់ YTD", "shrineProductWhitneyBelt": "ខ្សែក្រវ៉ាត់ Whitney", "shrineProductGardenStrand": "ខ្សែ Garden", "shrineProductStrutEarrings": "ក្រវិល Strut", "shrineProductVarsitySocks": "ស្រោមជើង Varsity", "shrineProductWeaveKeyring": "បន្តោង​សោក្រង", "shrineProductGatsbyHat": "មួក Gatsby", "shrineProductShrugBag": "កាបូប Shrug", "shrineProductGiltDeskTrio": "តុបីតាមទំហំ", "shrineProductCopperWireRack": "ធ្នើរស្ពាន់", "shrineProductSootheCeramicSet": "ឈុតសេរ៉ាមិច Soothe", "shrineProductHurrahsTeaSet": "ឈុតពែងតែ Hurrahs", "shrineProductBlueStoneMug": "ពែងថ្ម​ពណ៌ខៀវ", "shrineProductRainwaterTray": "ទត្រងទឹក", "shrineProductChambrayNapkins": "កន្សែង Chambray", "shrineProductSucculentPlanters": "រុក្ខជាតិ Succulent", "shrineProductQuartetTable": "តុ Quartet", "shrineProductKitchenQuattro": "quattro ផ្ទះបាយ", "shrineProductClaySweater": "អាវយឺត​ដៃវែង Clay", "shrineProductSeaTunic": "Sea tunic", "shrineProductPlasterTunic": "Plaster tunic", "rallyBudgetCategoryRestaurants": "ភោជនីយដ្ឋាន", "shrineProductChambrayShirt": "អាវ Chambray", "shrineProductSeabreezeSweater": "អាវយឺតដៃវែង Seabreeze", "shrineProductGentryJacket": "អាវក្រៅ Gentry", "shrineProductNavyTrousers": "ខោជើងវែង Navy", "shrineProductWalterHenleyWhite": "Walter henley (ស)", "shrineProductSurfAndPerfShirt": "អាវ Surf and perf", "shrineProductGingerScarf": "កន្សែងបង់ក Ginger", "shrineProductRamonaCrossover": "Ramona crossover", "shrineProductClassicWhiteCollar": "អាវ​ពណ៌សចាស់", "shrineProductSunshirtDress": "សម្លៀកបំពាក់​ស្ដើងៗ", "rallyAccountDetailDataInterestRate": "អត្រា​ការប្រាក់", "rallyAccountDetailDataAnnualPercentageYield": "ផល​ជាភាគរយ​ប្រចាំឆ្នាំ", "rallyAccountDataVacation": "វិស្សមកាល", "shrineProductFineLinesTee": "អាវយឺត​ឆ្នូតៗ", "rallyAccountDataHomeSavings": "គណនីសន្សំទិញផ្ទះ", "rallyAccountDataChecking": "គណនីមូលប្បទានបត្រ", "rallyAccountDetailDataInterestPaidLastYear": "ការប្រាក់ដែល​បានបង់ពីឆ្នាំមុន", "rallyAccountDetailDataNextStatement": "របាយការណ៍​បន្ទាប់", "rallyAccountDetailDataAccountOwner": "ម្ចាស់​គណនី", "rallyBudgetCategoryCoffeeShops": "ហាង​កាហ្វេ", "rallyBudgetCategoryGroceries": "គ្រឿងទេស", "shrineProductCeriseScallopTee": "អាវយឺត​ពណ៌ក្រហមព្រឿងៗ", "rallyBudgetCategoryClothing": "សម្លៀក​បំពាក់", "rallySettingsManageAccounts": "គ្រប់គ្រង​គណនី", "rallyAccountDataCarSavings": "គណនី​សន្សំទិញរថយន្ត", "rallySettingsTaxDocuments": "ឯកសារពន្ធ", "rallySettingsPasscodeAndTouchId": "លេខកូដសម្ងាត់ និង Touch ID", "rallySettingsNotifications": "ការជូនដំណឹង", "rallySettingsPersonalInformation": "ព័ត៌មាន​ផ្ទាល់​ខ្លួន", "rallySettingsPaperlessSettings": "ការកំណត់​មិនប្រើក្រដាស", "rallySettingsFindAtms": "ស្វែងរក ATM", "rallySettingsHelp": "ជំនួយ", "rallySettingsSignOut": "ចេញ", "rallyAccountTotal": "សរុប", "rallyBillsDue": "ចំនួនត្រូវបង់", "rallyBudgetLeft": "នៅសល់", "rallyAccounts": "គណនី", "rallyBills": "វិក្កយបត្រ", "rallyBudgets": "ថវិកា", "rallyAlerts": "ការជូនដំណឹង", "rallySeeAll": "មើល​ទាំងអស់​", "rallyFinanceLeft": "នៅសល់", "rallyTitleOverview": "ទិដ្ឋភាពរួម", "shrineProductShoulderRollsTee": "អាវយឺត​កធ្លាក់ពីស្មា", "shrineNextButtonCaption": "បន្ទាប់", "rallyTitleBudgets": "ថវិកា", "rallyTitleSettings": "ការ​កំណត់", "rallyLoginLoginToRally": "ចូលទៅ Rally", "rallyLoginNoAccount": "មិន​មាន​គណនី​មែន​ទេ?", "rallyLoginSignUp": "ចុះឈ្មោះ", "rallyLoginUsername": "ឈ្មោះអ្នក​ប្រើប្រាស់", "rallyLoginPassword": "ពាក្យសម្ងាត់", "rallyLoginLabelLogin": "ចូល", "rallyLoginRememberMe": "ចងចាំខ្ញុំ", "rallyLoginButtonLogin": "ចូល", "rallyAlertsMessageHeadsUpShopping": "សេចក្ដី​ជូន​ដំណឹង អ្នកបានប្រើអស់ {percent} នៃថវិកាទិញ​ទំនិញរបស់អ្នក​សម្រាប់ខែនេះ។", "rallyAlertsMessageSpentOnRestaurants": "អ្នកបាន​ចំណាយអស់ {amount} លើភោជនីយដ្ឋាន​នៅសប្ដាហ៍នេះ។", "rallyAlertsMessageATMFees": "អ្នកបានចំណាយអស់ {amount} សម្រាប់ថ្លៃសេវា ATM នៅខែនេះ", "rallyAlertsMessageCheckingAccount": "ល្អណាស់! គណនីមូលប្បទានបត្រ​របស់អ្នកគឺ​ខ្ពស់ជាង​ខែមុន {percent}។", "shrineMenuCaption": "ម៉ឺនុយ", "shrineCategoryNameAll": "ទាំង​អស់", "shrineCategoryNameAccessories": "គ្រឿង​តុបតែង", "shrineCategoryNameClothing": "សម្លៀក​បំពាក់", "shrineCategoryNameHome": "ផ្ទះ", "shrineLoginUsernameLabel": "ឈ្មោះអ្នក​ប្រើប្រាស់", "shrineLoginPasswordLabel": "ពាក្យសម្ងាត់", "shrineCancelButtonCaption": "បោះបង់", "shrineCartTaxCaption": "ពន្ធ៖", "shrineCartPageCaption": "រទេះ", "shrineProductQuantity": "បរិមាណ៖ {quantity}", "shrineProductPrice": "x {price}", "shrineCartItemCount": "{quantity,plural,=0{មិនមាន​ទំនិញ​ទេ}=1{ទំនិញ 1}other{ទំនិញ {quantity}}}", "shrineCartClearButtonCaption": "សម្អាត​រទេះ", "shrineCartTotalCaption": "សរុប", "shrineCartSubtotalCaption": "សរុប​រង៖", "shrineCartShippingCaption": "ការ​ដឹកជញ្ជូន៖", "shrineProductGreySlouchTank": "អាវវាលក្លៀក​ពណ៌ប្រផេះ", "shrineProductStellaSunglasses": "វ៉ែនតាការពារ​ពន្លឺថ្ងៃ Stella", "shrineProductWhitePinstripeShirt": "អាវឆ្នូតពណ៌ស", "demoTextFieldWhereCanWeReachYou": "តើយើងអាច​ទាក់ទងអ្នក​នៅទីណា?", "settingsTextDirectionLTR": "ពីឆ្វេង​ទៅស្ដាំ", "settingsTextScalingLarge": "ធំ", "demoBottomSheetHeader": "ក្បាលទំព័រ", "demoBottomSheetItem": "ធាតុទី {value}", "demoBottomTextFieldsTitle": "កន្លែងបញ្ចូលអក្សរ", "demoTextFieldTitle": "កន្លែងបញ្ចូលអក្សរ", "demoTextFieldSubtitle": "បន្ទាត់តែមួយ​នៃអក្សរ និងលេខដែល​អាចកែបាន", "demoTextFieldDescription": "កន្លែងបញ្ចូលអក្សរ​អាចឱ្យអ្នកប្រើប្រាស់​បញ្ចូលអក្សរ​ទៅក្នុង UI។ ជាទូទៅ វាបង្ហាញ​ជាទម្រង់បែបបទ និងប្រអប់បញ្ចូល។", "demoTextFieldShowPasswordLabel": "បង្ហាញពាក្យសម្ងាត់", "demoTextFieldHidePasswordLabel": "លាក់​ពាក្យ​សម្ងាត់", "demoTextFieldFormErrors": "សូមដោះស្រាយ​បញ្ហាពណ៌ក្រហម មុនពេលដាក់​បញ្ជូន។", "demoTextFieldNameRequired": "តម្រូវ​ឱ្យ​មាន​ឈ្មោះ។", "demoTextFieldOnlyAlphabeticalChars": "សូមបញ្ចូលតួអក្សរ​តាមលំដាប់អក្ខរក្រម​តែប៉ុណ្ណោះ។", "demoTextFieldEnterUSPhoneNumber": "(###) ###-#### - បញ្ចូលលេខទូរសព្ទ​សហរដ្ឋអាមេរិក។", "demoTextFieldEnterPassword": "សូម​បញ្ចូល​ពាក្យ​សម្ងាត់​។", "demoTextFieldPasswordsDoNotMatch": "ពាក្យសម្ងាត់​មិនត្រូវគ្នាទេ", "demoTextFieldWhatDoPeopleCallYou": "តើអ្នកដទៃ​ហៅអ្នកថាម៉េច?", "demoTextFieldNameField": "ឈ្មោះ*", "demoBottomSheetButtonText": "បង្ហាញ​សន្លឹកខាងក្រោម", "demoTextFieldPhoneNumber": "លេខទូរសព្ទ*", "demoBottomSheetTitle": "សន្លឹក​ខាងក្រោម", "demoTextFieldEmail": "អ៊ីមែល", "demoTextFieldTellUsAboutYourself": "ប្រាប់យើង​អំពីខ្លួនអ្នក (ឧ. សរសេរអំពី​អ្វីដែលអ្នកធ្វើ ឬចំណូលចិត្តអ្វី​ដែលអ្នកមាន)", "demoTextFieldKeepItShort": "សរសេរវាឱ្យខ្លី នេះគ្រាន់តែជា​ការសាកល្បងប៉ុណ្ណោះ។", "starterAppGenericButton": "ប៊ូតុង", "demoTextFieldLifeStory": "រឿងរ៉ាវជីវិត", "demoTextFieldSalary": "ប្រាក់បៀវត្សរ៍", "demoTextFieldUSD": "ដុល្លារអាមេរិក", "demoTextFieldNoMoreThan": "មិនឱ្យ​លើសពី 8 តួអក្សរទេ។", "demoTextFieldPassword": "ពាក្យសម្ងាត់*", "demoTextFieldRetypePassword": "វាយបញ្ចូល​ពាក្យសម្ងាត់ឡើងវិញ*", "demoTextFieldSubmit": "ដាក់​បញ្ជូន", "demoBottomNavigationSubtitle": "ការរុករក​ខាងក្រោម​ដោយប្រើទិដ្ឋភាពរលុបឆ្នូត", "demoBottomSheetAddLabel": "បន្ថែម", "demoBottomSheetModalDescription": "សន្លឹកខាងក្រោម​លក្ខណៈម៉ូដលគឺ​ជាជម្រើស​ផ្សេងក្រៅពី​ម៉ឺនុយ ឬប្រអប់ និងទប់ស្កាត់​អ្នកប្រើប្រាស់មិនឱ្យធ្វើ​អន្តរកម្មជាមួយ​កម្មវិធីដែលនៅសល់។", "demoBottomSheetModalTitle": "សន្លឹកខាងក្រោម​លក្ខណៈម៉ូដល", "demoBottomSheetPersistentDescription": "សន្លឹកខាងក្រោម​លក្ខណៈភើស៊ីស្ទើន​បង្ហាញព័ត៌មាន​ដែលបន្ថែមលើ​ខ្លឹមសារចម្បងនៃកម្មវិធី។ សន្លឹកខាងក្រោម​លក្ខណៈភើស៊ីស្ទើននៅតែអាចមើលឃើញ​ដដែល ទោះបីជានៅពេលអ្នកប្រើប្រាស់​ធ្វើអន្តរកម្ម​ជាមួយផ្នែកផ្សេងទៀតនៃ​កម្មវិធីក៏ដោយ។", "demoBottomSheetPersistentTitle": "សន្លឹកខាងក្រោម​លក្ខណៈភើស៊ីស្ទើន", "demoBottomSheetSubtitle": "សន្លឹកខាងក្រោម​លក្ខណៈម៉ូដល និងភើស៊ីស្ទើន", "demoTextFieldNameHasPhoneNumber": "លេខទូរសព្ទ​របស់ {name} គឺ {phoneNumber}", "buttonText": "ប៊ូតុង", "demoTypographyDescription": "និយមន័យសម្រាប់​រចនាប័ទ្មនៃ​ការរចនាអក្សរ ដែលបានរកឃើញ​នៅក្នុងរចនាប័ទ្មសម្ភារ។", "demoTypographySubtitle": "រចនាប័ទ្មអក្សរ​ដែលបានកំណត់​ជាមុនទាំងអស់", "demoTypographyTitle": "ការរចនា​អក្សរ", "demoFullscreenDialogDescription": "លក្ខណៈ​របស់​ប្រអប់ពេញអេក្រង់​បញ្ជាក់ថាតើ​ទំព័របន្ទាប់​គឺជា​ប្រអប់ម៉ូដល​ពេញអេក្រង់​ឬអត់", "demoFlatButtonDescription": "ប៊ូតុង​រាបស្មើ​បង្ហាញការសាចពណ៌​នៅពេលចុច ប៉ុន្តែ​មិនផុសឡើង​ទេ។ ប្រើប៊ូតុង​រាបស្មើ​នៅលើ​របារឧបករណ៍ នៅក្នុង​ប្រអប់ និង​ក្នុងជួរ​ជាមួយ​ចន្លោះ", "demoBottomNavigationDescription": "របាររុករក​ខាងក្រោម​បង្ហាញគោលដៅបីទៅប្រាំ​នៅខាងក្រោម​អេក្រង់។ គោលដៅនីមួយៗ​ត្រូវបានតំណាង​ដោយរូបតំណាង និងស្លាកអក្សរ​ជាជម្រើស។ នៅពេលចុច​រូបរុករកខាងក្រោម អ្នកប្រើប្រាស់ត្រូវបាន​នាំទៅគោលដៅ​រុករកផ្នែកខាងលើ ដែលពាក់ព័ន្ធ​នឹងរូបតំណាងនោះ។", "demoBottomNavigationSelectedLabel": "ស្លាកដែល​បានជ្រើសរើស", "demoBottomNavigationPersistentLabels": "ស្លាក​ជាអចិន្ត្រៃយ៍", "starterAppDrawerItem": "ធាតុទី {value}", "demoTextFieldRequiredField": "* បង្ហាញថាជាកន្លែងត្រូវបំពេញ", "demoBottomNavigationTitle": "ការរុករក​ខាងក្រោម", "settingsLightTheme": "ភ្លឺ", "settingsTheme": "រចនាប័ទ្ម", "settingsPlatformIOS": "iOS", "settingsPlatformAndroid": "Android", "settingsTextDirectionRTL": "ពីស្ដាំ​ទៅឆ្វេង", "settingsTextScalingHuge": "ធំសម្បើម", "cupertinoButton": "ប៊ូតុង", "settingsTextScalingNormal": "ធម្មតា", "settingsTextScalingSmall": "តូច", "settingsSystemDefault": "ប្រព័ន្ធ", "settingsTitle": "ការកំណត់", "rallyDescription": "កម្មវិធីហិរញ្ញវត្ថុ​ផ្ទាល់ខ្លួន", "aboutDialogDescription": "ដើម្បី​មើល​កូដ​ប្រភព​សម្រាប់​កម្មវិធី​នេះ សូមចូល​ទៅកាន់ {repoLink}​។", "bottomNavigationCommentsTab": "មតិ", "starterAppGenericBody": "តួ​អត្ថបទ", "starterAppGenericHeadline": "ចំណង​ជើង", "starterAppGenericSubtitle": "ចំណងជើង​រង", "starterAppGenericTitle": "ចំណង​ជើង", "starterAppTooltipSearch": "ស្វែងរក", "starterAppTooltipShare": "ចែករំលែក", "starterAppTooltipFavorite": "សំណព្វ", "starterAppTooltipAdd": "បន្ថែម", "bottomNavigationCalendarTab": "ប្រតិទិន", "starterAppDescription": "ស្រទាប់​ចាប់ផ្ដើមដែល​ឆ្លើយតបរហ័ស", "starterAppTitle": "កម្មវិធី​ចាប់ផ្ដើម", "aboutFlutterSamplesRepo": "ឃ្លាំង GitHub នៃគំរូ Flutter", "bottomNavigationContentPlaceholder": "កន្លែងដាក់​សម្រាប់ផ្ទាំង {title}", "bottomNavigationCameraTab": "កាមេរ៉ា", "bottomNavigationAlarmTab": "ម៉ោងរោទ៍", "bottomNavigationAccountTab": "គណនី", "demoTextFieldYourEmailAddress": "អាសយដ្ឋាន​អ៊ីមែល​របស់អ្នក", "demoToggleButtonDescription": "អាចប្រើ​ប៊ូតុងបិទ/បើក ដើម្បី​ដាក់ជម្រើស​ដែលពាក់ព័ន្ធ​ជាក្រុមបាន។ ដើម្បីរំលេចក្រុមប៊ូតុងបិទ/បើកដែលពាក់ព័ន្ធ ក្រុមប៊ូតុងគួរតែប្រើទម្រង់ផ្ទុកទូទៅរួមគ្នា", "colorsGrey": "ប្រផេះ", "colorsBrown": "ត្នោត", "colorsDeepOrange": "ទឹកក្រូច​ចាស់", "colorsOrange": "ទឹកក្រូច", "colorsAmber": "លឿងទុំ", "colorsYellow": "លឿង", "colorsLime": "បៃតងខ្ចី", "colorsLightGreen": "បៃតង​ស្រាល", "colorsGreen": "បៃតង", "homeHeaderGallery": "សាល​រូបភាព", "homeHeaderCategories": "ប្រភេទ", "shrineDescription": "កម្មវិធី​លក់រាយ​ទាន់សម័យ", "craneDescription": "កម្មវិធីធ្វើដំណើរ​ដែលកំណត់ឱ្យស្រប​នឹងបុគ្គល", "homeCategoryReference": "រចនាប័ទ្ម និងផ្សេងៗ", "demoInvalidURL": "មិនអាច​បង្ហាញ URL បានទេ៖", "demoOptionsTooltip": "ជម្រើស", "demoInfoTooltip": "ព័ត៌មាន", "demoCodeTooltip": "កូដ​សាកល្បង", "demoDocumentationTooltip": "ឯកសារ API", "demoFullscreenTooltip": "អេក្រង់ពេញ", "settingsTextScaling": "ការប្ដូរទំហំអក្សរ", "settingsTextDirection": "ទិស​អត្ថបទ", "settingsLocale": "ភាសា", "settingsPlatformMechanics": "មេកានិច​ប្រព័ន្ធ", "settingsDarkTheme": "ងងឹត", "settingsSlowMotion": "ចលនា​យឺត", "settingsAbout": "អំពី Flutter Gallery", "settingsFeedback": "ផ្ញើមតិកែលម្អ", "settingsAttribution": "រចនាដោយ TOASTER នៅក្នុង​ទីក្រុងឡុងដ៍", "demoButtonTitle": "ប៊ូតុង", "demoButtonSubtitle": "អត្ថបទ ផុសឡើង មានបន្ទាត់ជុំវិញ និងអ្វីៗជាច្រើនទៀត", "demoFlatButtonTitle": "ប៊ូតុង​រាបស្មើ", "demoRaisedButtonDescription": "ប៊ូតុង​ផុសឡើង​បន្ថែមវិមាត្រ​ទៅប្លង់​ដែលរាបស្មើភាគច្រើន។ ប៊ូតុង​ទាំងនេះ​រំលេច​មុខងារ​នៅកន្លែង​ដែលមមាញឹក ឬទូលាយ។", "demoRaisedButtonTitle": "ប៊ូតុង​ផុសឡើង", "demoOutlineButtonTitle": "ប៊ូតុងមាន​បន្ទាត់ជុំវិញ", "demoOutlineButtonDescription": "ប៊ូតុង​មានបន្ទាត់ជុំវិញ​ប្រែជា​ស្រអាប់ និង​ផុសឡើង​នៅពេលចុច។ ជាញឹកញាប់ ប៊ូតុងទាំងនេះត្រូវបានដាក់ជាគូជាមួយប៊ូតុងផុសឡើង ដើម្បីរំលេចសកម្មភាពបន្ទាប់បន្សំផ្សេង។", "demoToggleButtonTitle": "ប៊ូតុងបិទ/បើក", "colorsTeal": "បៃតងចាស់", "demoFloatingButtonTitle": "ប៊ូតុងសកម្មភាពអណែ្តត", "demoFloatingButtonDescription": "ប៊ូតុង​សកម្មភាព​អណ្តែត​គឺជា​ប៊ូតុងរូបរង្វង់ដែលស្ថិត​នៅលើ​ខ្លឹមសារ ដើម្បីរំលេច​សកម្មភាពចម្បង​នៅក្នុង​កម្មវិធី។", "demoDialogTitle": "ប្រអប់", "demoDialogSubtitle": "ធម្មតា ការជូនដំណឹង និងពេញ​អេក្រង់", "demoAlertDialogTitle": "ការជូនដំណឹង", "demoAlertDialogDescription": "ប្រអប់​ជូនដំណឹង​ជូនដំណឹង​ដល់អ្នកប្រើប្រាស់​អំពី​ស្ថានភាព ដែលតម្រូវឱ្យមាន​ការទទួលស្គាល់។ ប្រអប់​ជូនដំណឹង​មានចំណងជើង និង​បញ្ជី​សកម្មភាព​ដែលជាជម្រើស។", "demoAlertTitleDialogTitle": "ជូនដំណឹង​រួមជាមួយ​ចំណងជើង", "demoSimpleDialogTitle": "ធម្មតា", "demoSimpleDialogDescription": "ប្រអប់ធម្មតា​ផ្ដល់ជូន​អ្នកប្រើប្រាស់​នូវជម្រើសមួយ​រវាង​ជម្រើស​មួយចំនួន។ ប្រអប់ធម្មតា​មាន​ចំណងជើង​ដែលជាជម្រើស ដែល​បង្ហាញនៅលើ​ជម្រើស។", "demoFullscreenDialogTitle": "ពេញ​អេក្រង់", "demoCupertinoButtonsTitle": "ប៊ូតុង", "demoCupertinoButtonsSubtitle": "ប៊ូតុង​ដែលមាន​រចនាប័ទ្ម iOS", "demoCupertinoButtonsDescription": "ប៊ូតុង​ដែលមាន​រចនាប័ទ្ម iOS។ វាស្រូប​អក្សរ និង/ឬរូបតំណាង​ដែលរលាយបាត់ និង​លេចឡើងវិញ​បន្តិចម្ដងៗ នៅពេលចុច។ ប្រហែលជា​មានផ្ទៃខាងក្រោយ​តាមការ​ជ្រើសរើស។", "demoCupertinoAlertsTitle": "ការជូនដំណឹង", "demoCupertinoAlertsSubtitle": "ប្រអប់​ជូនដំណឹង​ដែលមាន​រចនាប័ទ្ម iOS", "demoCupertinoAlertTitle": "ការជូនដំណឹង", "demoCupertinoAlertDescription": "ប្រអប់​ជូនដំណឹង​ជូនដំណឹង​ដល់អ្នកប្រើប្រាស់​អំពី​ស្ថានភាព ដែលតម្រូវឱ្យមាន​ការទទួលស្គាល់។ ប្រអប់​ជូនដំណឹង​មានចំណងជើង ខ្លឹមសារ និងបញ្ជី​សកម្មភាព​ដែលជាជម្រើស។ ចំណងជើង​បង្ហាញ​នៅលើ​ខ្លឹមសារ ហើយ​សកម្មភាព​បង្ហាញនៅក្រោម​ខ្លឹមសារ។", "demoCupertinoAlertWithTitleTitle": "ជូនដំណឹង​រួមជាមួយ​ចំណងជើង", "demoCupertinoAlertButtonsTitle": "ការជូនដំណឹង​ដែលមាន​ប៊ូតុង", "demoCupertinoAlertButtonsOnlyTitle": "ប៊ូតុង​ជូនដំណឹង​តែប៉ុណ្ណោះ", "demoCupertinoActionSheetTitle": "បញ្ជី​សកម្មភាព", "demoCupertinoActionSheetDescription": "បញ្ជីសកម្មភាព​គឺជា​រចនាប័ទ្មនៃ​ការជូនដំណឹង​ជាក់លាក់ ដែល​បង្ហាញ​អ្នកប្រើប្រាស់​នូវបណ្ដុំ​ជម្រើសពីរ ឬច្រើនដែល​ពាក់ព័ន្ធនឹង​បរិបទ​បច្ចុប្បន្ន។ បញ្ជី​សកម្មភាព​អាចមាន​ចំណងជើង សារបន្ថែម និង​បញ្ជី​សកម្មភាព។", "demoColorsTitle": "ពណ៌", "demoColorsSubtitle": "ពណ៌ដែល​បានកំណត់​ជាមុន​ទាំងអស់", "demoColorsDescription": "តម្លៃថេរនៃ​គំរូពណ៌ និងពណ៌​ដែលតំណាងឱ្យ​ក្ដារលាយពណ៌​របស់​រចនាប័ទ្ម​សម្ភារ។", "buttonTextEnabled": "ENABLED", "buttonTextDisabled": "DISABLED", "buttonTextCreate": "បង្កើត", "dialogSelectedOption": "អ្នកបាន​ជ្រើសរើស៖ \"{value}\"", "dialogDiscardTitle": "លុបចោល​សេចក្ដី​ព្រាង?", "dialogLocationTitle": "ប្រើ​សេវាកម្ម​ទីតាំង​របស់ Google?", "dialogLocationDescription": "ឱ្យ Google ជួយ​កម្មវិធី​ក្នុងការកំណត់​ទីតាំង។ មានន័យថា​ផ្ញើទិន្នន័យ​ទីតាំង​អនាមិក​ទៅ Google ទោះបីជា​មិនមាន​កម្មវិធី​កំពុងដំណើរការ​ក៏ដោយ។", "dialogCancel": "បោះបង់", "dialogDiscard": "លុបចោល", "dialogDisagree": "មិនយល់ព្រម", "dialogAgree": "យល់ព្រម", "dialogSetBackup": "កំណត់​គណនី​បម្រុង​ទុក", "colorsBlueGrey": "ប្រផេះ​ខៀវ", "dialogShow": "បង្ហាញ​ប្រអប់", "dialogFullscreenTitle": "ប្រអប់​ពេញអេក្រង់", "dialogFullscreenSave": "រក្សាទុក", "dialogFullscreenDescription": "ការបង្ហាញអំពី​ប្រអប់​ពេញអេក្រង់", "cupertinoButtonEnabled": "Enabled", "cupertinoButtonDisabled": "Disabled", "cupertinoButtonWithBackground": "មាន​ផ្ទៃខាងក្រោយ", "cupertinoAlertCancel": "បោះបង់", "cupertinoAlertDiscard": "លុបចោល", "cupertinoAlertLocationTitle": "អនុញ្ញាតឱ្យ \"ផែនទី\" ចូលប្រើ​ទីតាំង​របស់អ្នក នៅពេល​អ្នកកំពុង​ប្រើកម្មវិធីនេះ​ឬ?", "cupertinoAlertLocationDescription": "ទីតាំង​បច្ចុប្បន្ន​របស់អ្នកនឹង​បង្ហាញ​នៅលើផែនទី និង​ត្រូវបានប្រើសម្រាប់​ទិសដៅ លទ្ធផលស្វែងរក​ដែលនៅជិត និង​រយៈពេល​ធ្វើដំណើរដែល​បាន​ប៉ាន់ស្មាន។", "cupertinoAlertAllow": "អនុញ្ញាត", "cupertinoAlertDontAllow": "មិនអនុញ្ញាត", "cupertinoAlertFavoriteDessert": "ជ្រើសរើស​បង្អែមដែល​ចូលចិត្ត", "cupertinoAlertDessertDescription": "សូមជ្រើសរើស​ប្រភេទបង្អែម​ដែលអ្នក​ចូលចិត្តពី​បញ្ជីខាងក្រោម។ ការជ្រើសរើស​របស់អ្នក​នឹងត្រូវបាន​ប្រើ ដើម្បីប្ដូរ​បញ្ជីអាហារដ្ឋាន​ដែលបានណែនាំ​តាមបំណង នៅក្នុង​តំបន់​របស់អ្នក។", "cupertinoAlertCheesecake": "នំខេកឈីស", "cupertinoAlertTiramisu": "បង្អែម​អ៊ីតាលី", "cupertinoAlertApplePie": "នំ​ប៉ោម", "cupertinoAlertChocolateBrownie": "នំសូកូឡា", "cupertinoShowAlert": "បង្ហាញ​ការជូនដំណឹង", "colorsRed": "ក្រហម", "colorsPink": "ផ្កាឈូក", "colorsPurple": "ស្វាយ", "colorsDeepPurple": "ស្វាយចាស់", "colorsIndigo": "ទឹកប៊ិក", "colorsBlue": "ខៀវ", "colorsLightBlue": "ខៀវ​ស្រាល", "colorsCyan": "ស៊ីលៀប", "dialogAddAccount": "បញ្ចូលគណនី", "Gallery": "សាល​រូបភាព", "Categories": "ប្រភេទ", "SHRINE": "ទី​សក្ការ​បូជា", "Basic shopping app": "កម្មវិធី​ទិញទំនិញសាមញ្ញ", "RALLY": "ការប្រណាំងរថយន្ត", "CRANE": "ម៉ាស៊ីនស្ទូច", "Travel app": "កម្មវិធីធ្វើដំណើរ", "MATERIAL": "សម្ភារ", "CUPERTINO": "CUPERTINO", "REFERENCE STYLES & MEDIA": "មេឌៀ និងរចនាប័ទ្ម​យោង" }
gallery/lib/l10n/intl_km.arb/0
{ "file_path": "gallery/lib/l10n/intl_km.arb", "repo_id": "gallery", "token_count": 73944 }
878
{ "loading": "ଲୋଡ ହେଉଛି", "deselect": "ଅଚୟନ କରନ୍ତୁ", "select": "ଚୟନ କରନ୍ତୁ", "selectable": "ଚୟନ କରିବା ଯୋଗ୍ୟ (ଅଧିକ ସମୟ ଦବାନ୍ତୁ)", "selected": "ଚୟନ କରାଯାଇଛି", "demo": "ଡେମୋ", "bottomAppBar": "ନିମ୍ନ ଆପ ବାର", "notSelected": "ଚୟନ କରାଯାଇନାହିଁ", "demoCupertinoSearchTextFieldTitle": "ସନ୍ଧାନ ଟେକ୍ସଟ ଫିଲ୍ଡ", "demoCupertinoPicker": "ପିକର", "demoCupertinoSearchTextFieldSubtitle": "iOS-ଷ୍ଟାଇଲର ସନ୍ଧାନ ଟେକ୍ସଟ ଫିଲ୍ଡ", "demoCupertinoSearchTextFieldDescription": "ଏକ ସନ୍ଧାନ ଟେକ୍ସଟ ଫିଲ୍ଡ ଯାହା ଉପଯୋଗକର୍ତ୍ତାଙ୍କୁ ଟେକ୍ସଟ ଲେଖି ସନ୍ଧାନ କରିବାକୁ ଅନୁମତି ଦିଏ ଏବଂ ଏହା ପରାମର୍ଶଗୁଡ଼ିକ ଅଫର ଓ ଫିଲ୍ଟର କରିପାରିବ।", "demoCupertinoSearchTextFieldPlaceholder": "କିଛି ଟେକ୍ସଟ ଲେଖନ୍ତୁ", "demoCupertinoScrollbarTitle": "ସ୍କ୍ରୋଲବାର", "demoCupertinoScrollbarSubtitle": "iOS-ଷ୍ଟାଇଲର ସ୍କ୍ରୋଲବାର", "demoCupertinoScrollbarDescription": "ପ୍ରଦତ୍ତ ପିଲାକୁ ଗୋପନ ରଖୁଥିବା ଏକ ସ୍କ୍ରୋଲବାର", "demoTwoPaneItem": "ଆଇଟମ {value}", "demoTwoPaneList": "ତାଲିକା", "demoTwoPaneFoldableLabel": "ଫୋଲ୍ଡ କରାଯାଇପାରୁଥିବା ଡିଭାଇସ", "demoTwoPaneSmallScreenLabel": "ଛୋଟ ସ୍କ୍ରିନ", "demoTwoPaneSmallScreenDescription": "ଏକ ଛୋଟ ସ୍କ୍ରିନ ଡିଭାଇସରେ TwoPane ଏହିଭଳି କାର୍ଯ୍ୟ କରେ।", "demoTwoPaneTabletLabel": "ଟାବଲେଟ / ଡେସ୍କଟପ", "demoTwoPaneTabletDescription": "ଏକ ଟାବଲେଟ କିମ୍ବା ଡେସ୍କଟପ ପରି ଗୋଟିଏ ବଡ଼ ସ୍କ୍ରିନରେ TwoPane ଏହିଭଳି କାର୍ଯ୍ୟ କରେ।", "demoTwoPaneTitle": "TwoPane", "demoTwoPaneSubtitle": "ଫୋଲ୍ଡ କରାଯାଇପାରୁଥିବା ଡିଭାଇସ, ବଡ଼ ଏବଂ ଛୋଟ ସ୍କ୍ରିନରେ ପ୍ରତିକ୍ରିୟାଶୀଳ ଲେଆଉଟ", "splashSelectDemo": "ଏକ ଡେମୋ ଚୟନ କରନ୍ତୁ", "demoTwoPaneFoldableDescription": "ଏକ ଫୋଲ୍ଡ କରାଯାଇପାରୁଥିବା ଡିଭାଇସରେ TwoPane ଏହିଭଳି କାର୍ଯ୍ୟ କରେ।", "demoTwoPaneDetails": "ବିବରଣୀ", "demoTwoPaneSelectItem": "ଗୋଟିଏ ଆଇଟମ ଚୟନ କରନ୍ତୁ", "demoTwoPaneItemDetails": "ଆଇଟମ {value} ବିବରଣୀ", "demoCupertinoContextMenuActionText": "ପ୍ରସଙ୍ଗ ମେନୁ ଦେଖିବା ପାଇଁ ଫ୍ଲଟର ଲୋଗୋକୁ ଦବାଇ ଧରି ରଖନ୍ତୁ।", "demoCupertinoContextMenuDescription": "ଗୋଟିଏ ଉପାଦାନକୁ ଅଧିକ-ସମୟ ଦବାଇଲେ iOS-ଷ୍ଟାଇଲ ପୂର୍ଣ୍ଣ ସ୍କ୍ରିନର ଏକ ପ୍ରାସଙ୍ଗିକ ମେନୁ ଦେଖାଯାଏ।", "demoAppBarTitle": "ଆପ ବାର", "demoAppBarDescription": "ଆପ ବାର ବର୍ତ୍ତମାନର ସ୍କ୍ରିନ ପାଇଁ ସମ୍ବନ୍ଧିତ ବିଷୟବସ୍ତୁ ଏବଂ କାର୍ଯ୍ୟଗୁଡ଼ିକ ପ୍ରଦାନ କରେ। ବ୍ରାଣ୍ଡିଂ, ସ୍କ୍ରିନ ଟାଇଟେଲ, ନାଭିଗେସନ ଏବଂ କାର୍ଯ୍ୟଗୁଡ଼ିକ ପାଇଁ ଏହାକୁ ବ୍ୟବହାର କରାଯାଏ", "demoDividerTitle": "ଡିଭାଇଡର", "demoDividerSubtitle": "ଏକ ଡିଭାଇଡର ହେଉଛି ଏକ ପତଳା ଲାଇନ ଯାହା ତାଲିକା ଏବଂ ଲେଆଉଟଗୁଡ଼ିକରେ ଥିବା ବିଷୟବସ୍ତୁକୁ ଗୋଷ୍ଠୀଭୁକ୍ତ କରେ।", "demoDividerDescription": "ବିଷୟବସ୍ତୁକୁ ଅଲଗା କରିବା ପାଇଁ ଡିଭାଇଡରଗୁଡ଼ିକୁ ତାଲିକା, ଡ୍ରୟର ଏବଂ ଅନ୍ୟ ସ୍ଥାନରେ ବ୍ୟବହାର କରାଯାଇପାରିବ।", "demoVerticalDividerTitle": "ଭର୍ଟିକାଲ ଡିଭାଇଡର", "demoCupertinoContextMenuTitle": "ପ୍ରସଙ୍ଗ ମେନୁ", "demoCupertinoContextMenuSubtitle": "iOS-ଷ୍ଟାଇଲ ପ୍ରସଙ୍ଗ ମେନୁ", "demoAppBarSubtitle": "ବର୍ତ୍ତମାନର ସ୍କ୍ରିନ ସହ ସମ୍ବନ୍ଧିତ ସୂଚନା ଏବଂ କାର୍ଯ୍ୟଗୁଡ଼ିକ ଡିସପ୍ଲେ କରେ", "demoCupertinoContextMenuActionOne": "କାର୍ଯ୍ୟ ଏକ", "demoCupertinoContextMenuActionTwo": "କାର୍ଯ୍ୟ ଦୁଇ", "demoDateRangePickerDescription": "ଏକ ମ୍ୟାଟେରିଆଲ ଡିଜାଇନର ତାରିଖ ରେଞ୍ଜ ପିକର ଥିବା ଡାଏଲଗକୁ ଦେଖାଏ।", "demoDateRangePickerTitle": "ତାରିଖ ରେଞ୍ଜ ପିକର", "demoNavigationDrawerUserName": "ଉପଯୋଗକର୍ତ୍ତାଙ୍କ ନାମ", "demoNavigationDrawerUserEmail": "[email protected]", "demoNavigationDrawerText": "ଡ୍ରୟରକୁ ଦେଖିବାକୁ ଧାରରୁ ସ୍ୱାଇପ୍ କରନ୍ତୁ କିମ୍ବା ଉପର-ବାମପଟେ ଥିବା ଆଇକନକୁ ଟାପ୍ କରନ୍ତୁ", "demoNavigationRailTitle": "ନାଭିଗେସନ୍ ରେଲ୍", "demoNavigationRailSubtitle": "ଏକ ଆପ୍ ଭିତରେ ଏକ ନାଭିଗେସନ୍ ରେଲ୍ ଡିସପ୍ଲେ କରାଯାଉଛି", "demoNavigationRailDescription": "ସାଧାରଣତଃ ତିନୋଟିରୁ ପାଞ୍ଚଟି ଭିତରେ କମ୍ ସଂଖ୍ୟକ ଭ୍ୟୁଗୁଡ଼ିକ ମଧ୍ୟରେ ନାଭିଗେଟ୍ କରିବା ପାଇଁ ଆପର ବାମ କିମ୍ବା ଡାହାଣପଟେ ଏକ ମ୍ୟାଟେରିଆଲ୍ ୱିଜେଟ୍ ଡିସପ୍ଲେ କରାଯାଏ।", "demoNavigationRailFirst": "ପ୍ରଥମ", "demoNavigationDrawerTitle": "ନାଭିଗେସନ୍ ଡ୍ରୟର୍", "demoNavigationRailThird": "ତୃତୀୟ", "replyStarredLabel": "ତାରାଙ୍କିତ", "demoTextButtonDescription": "ଏକ ଟେକ୍ସଟ୍ ବଟନକୁ ଦବାଇଲେ କାଳିର ଛିଟିକା ଦେଖାଯାଏ କିନ୍ତୁ ବଟନ୍ ଉପରକୁ ଉଠେ ନାହିଁ। ଟୁଲବାରରେ, ଡାଏଲଗରେ ଏବଂ ପ୍ୟାଡିଂ ସହ ଇନଲାଇନରେ ଟେକ୍ସଟ୍ ବଟନ୍ ବ୍ୟବହାର କରନ୍ତୁ", "demoElevatedButtonTitle": "ଏଲିଭେଟ୍ ହୋଇଥିବା ବଟନ୍", "demoElevatedButtonDescription": "ଏଲିଭେଟ୍ ହୋଇଥିବା ବଟନଗୁଡ଼ିକ ପ୍ରାୟ ସମତଳ ଲେଆଉଟଗୁଡ଼ିକୁ ଆକାର ଦେଇଥାଏ। ସେଗୁଡ଼ିକ ବ୍ୟସ୍ତ କିମ୍ବା ଚଉଡ଼ା ଜାଗାଗୁଡ଼ିକରେ ଫଙ୍କସନଗୁଡ଼ିକୁ ଗୁରୁତ୍ୱ ଦେଇଥାଏ।", "demoOutlinedButtonTitle": "ଆଉଟଲାଇନ୍ ହୋଇଥିବା ବଟନ୍", "demoOutlinedButtonDescription": "ଆଉଟଲାଇନ୍ ହୋଇଥିବା ବଟନଗୁଡ଼ିକ ଦବାଇଲେ ଅସ୍ୱଚ୍ଛ ହୋଇଯାଏ ଏବଂ ଉପରକୁ ଉଠିଯାଏ। ଏକ ବୈକଳ୍ପିକ, ଦ୍ୱିତୀୟ କାର୍ଯ୍ୟକୁ ସୂଚିତ କରିବା ପାଇଁ ସେଗୁଡ଼ିକୁ ଅନେକ ସମୟରେ ଉପରକୁ ଉଠିଥିବା ବଟନଗୁଡ଼ିକ ସହ ପେୟାର୍ କରାଯାଇଥାଏ।", "demoContainerTransformDemoInstructions": "କାର୍ଡ, ତାଲିକା ଓ FAB", "demoNavigationDrawerSubtitle": "ଆପବାର୍ ଭିତରେ ଏକ ଡ୍ରୟର୍ ଡିସପ୍ଲେ କରାଯାଉଛି", "replyDescription": "ଏକ ଦକ୍ଷ, ଫୋକସ୍ କରାଯାଇଥିବା ଇମେଲ୍ ଆପ୍", "demoNavigationDrawerDescription": "ମ୍ୟାଟେରିଆଲ୍ ଡିଜାଇନ୍ ପ୍ୟାନେଲ୍ ଯାହା ଆପ୍ଲିକେସନ୍ ଭିତରେ ନାଭିଗେସନ୍ ଲିଙ୍କଗୁଡ଼ିକୁ ଦେଖାଇବାକୁ ସ୍କ୍ରିନର ଧାରରୁ ଭୂସମାନ୍ତର ଭାବରେ ସ୍ଲାଇଡ୍ କରେ।", "replyDraftsLabel": "ଡ୍ରାଫ୍ଟଗୁଡ଼ିକ", "demoNavigationDrawerToPageOne": "ପ୍ରଥମ ଆଇଟମ୍", "replyInboxLabel": "ଇନବକ୍ସ", "demoSharedXAxisDemoInstructions": "'ପରବର୍ତ୍ତୀ' ଓ 'ପଛକୁ ଫେରନ୍ତୁ' ବଟନ୍", "replySpamLabel": "ସ୍ପାମ୍", "replyTrashLabel": "ଟ୍ରାସ୍", "replySentLabel": "ପଠାଯାଇଛି", "demoNavigationRailSecond": "ଦ୍ୱିତୀୟ", "demoNavigationDrawerToPageTwo": "ଦ୍ୱିତୀୟ ଆଇଟମ୍", "demoFadeScaleDemoInstructions": "ମୋଡାଲ୍ ଓ FAB", "demoFadeThroughDemoInstructions": "ବଟମ୍ ନାଭିଗେସନ୍", "demoSharedZAxisDemoInstructions": "ସେଟିଂସ୍ ଆଇକନ୍ ବଟନ୍", "demoSharedYAxisDemoInstructions": "\"ଏବେ ଚଲାଯାଇଥିବା\" ଅନୁସାରେ ସର୍ଟ୍ କରନ୍ତୁ", "demoTextButtonTitle": "ଟେକ୍ସଟ୍ ବଟନ୍", "demoSharedZAxisBeefSandwichRecipeTitle": "ବୀଫ୍ ସାଣ୍ଡୱିଚ୍", "demoSharedZAxisDessertRecipeDescription": "ଡିଜର୍ଟର ରେସିପି", "demoSharedYAxisAlbumTileSubtitle": "କଳାକାର", "demoSharedYAxisAlbumTileTitle": "ଆଲବମ୍", "demoSharedYAxisRecentSortTitle": "ବର୍ତ୍ତମାନ ଚଲାଯାଇଛି", "demoSharedYAxisAlphabeticalSortTitle": "A-Z", "demoSharedYAxisAlbumCount": "268ଟି ଆଲବମ୍", "demoSharedYAxisTitle": "ସେୟାର୍ କରାଯାଇଥିବା y-ଅକ୍ଷ", "demoSharedXAxisCreateAccountButtonText": "ଆକାଉଣ୍ଟ ତିଆରି କରନ୍ତୁ", "demoFadeScaleAlertDialogDiscardButton": "ଖାରଜ କରନ୍ତୁ", "demoSharedXAxisSignInTextFieldLabel": "ଇମେଲ୍ କିମ୍ଵା ଫୋନ୍ ନମ୍ଵର", "demoSharedXAxisSignInSubtitleText": "ଆପଣଙ୍କ ଆକାଉଣ୍ଟରେ ସାଇନ୍ ଇନ୍ କରନ୍ତୁ", "demoSharedXAxisSignInWelcomeText": "ନମସ୍କାର David Park", "demoSharedXAxisIndividualCourseSubtitle": "ବ୍ୟକ୍ତିଗତ ଭାବେ ଦେଖାଯାଇଛି", "demoSharedXAxisBundledCourseSubtitle": "ବଣ୍ଡଲ୍ କରାଯାଇଥିବା", "demoFadeThroughAlbumsDestination": "ଆଲବମ୍", "demoSharedXAxisDesignCourseTitle": "ଡିଜାଇନ୍", "demoSharedXAxisIllustrationCourseTitle": "ଇଲୁଷ୍ଟ୍ରେସନ୍", "demoSharedXAxisBusinessCourseTitle": "ବ୍ୟବସାୟ", "demoSharedXAxisArtsAndCraftsCourseTitle": "କଳା ଏବଂ ହସ୍ତଶିଳ୍ପ", "demoMotionPlaceholderSubtitle": "ଦ୍ୱିତୀୟ ଟେକ୍ସଟ୍", "demoFadeScaleAlertDialogCancelButton": "ବାତିଲ୍ କରନ୍ତୁ", "demoFadeScaleAlertDialogHeader": "ଆଲର୍ଟ ଡାଏଲଗ୍", "demoFadeScaleHideFabButton": "FAB ଲୁଚାନ୍ତୁ", "demoFadeScaleShowFabButton": "FAB ଦେଖାନ୍ତୁ", "demoFadeScaleShowAlertDialogButton": "ମୋଡାଲ୍ ଦେଖାନ୍ତୁ", "demoFadeScaleDescription": "ସ୍କ୍ରିନର ମଧ୍ୟଭାଗରେ ଫିକା ହେଉଥିବା ଡାଏଲଗ୍ ପରି, ସ୍କ୍ରିନର ସୀମାର ଭିତରକୁ ଯାଉଥିବା କିମ୍ବା ବାହାରକୁ ଆସୁଥିବା UI ଉପାଦାନଗୁଡ଼ିକ ପାଇଁ ଫେଡ୍ ଥ୍ରୁ ପାଟର୍ନ ବ୍ୟବହାର କରାଯାଏ।", "demoFadeScaleTitle": "ଫେଡ୍", "demoFadeThroughTextPlaceholder": "123ଟି ଫଟୋ", "demoFadeThroughSearchDestination": "Search", "demoFadeThroughPhotosDestination": "Photos", "demoSharedXAxisCoursePageSubtitle": "ବଣ୍ଡଲ୍ କରାଯାଇଥିବା ବର୍ଗଗୁଡ଼ିକ ଆପଣଙ୍କ ଫିଡରେ ଗୋଷ୍ଠୀ ଭାବରେ ଦେଖାଯାଏ। ଆପଣ ପରେ ଯେ କୌଣସି ସମୟରେ ଏହାକୁ ବଦଳାଇ ପାରିବେ।", "demoFadeThroughDescription": "ପରସ୍ପର ସହିତ ଦୃଢ଼ ସମ୍ପର୍କ ନଥିବା UI ଉପାଦାନଗୁଡ଼ିକ ମଧ୍ୟରେ ଟ୍ରାଞ୍ଜିସନ୍ ପାଇଁ ଫେଡ୍ ଥ୍ରୁ ପାଟର୍ନ ବ୍ୟବହାର କରାଯାଏ।", "demoFadeThroughTitle": "ଫେଡ୍ ଥ୍ରୁ", "demoSharedZAxisHelpSettingLabel": "ସାହାଯ୍ୟ", "demoMotionSubtitle": "ପୂର୍ବ ନିର୍ଦ୍ଧାରିତ ସମସ୍ତ ଟ୍ରାଞ୍ଜିସନ୍ ପାଟର୍ନ", "demoSharedZAxisNotificationSettingLabel": "ବିଜ୍ଞପ୍ତିଗୁଡ଼ିକ", "demoSharedZAxisProfileSettingLabel": "ପ୍ରୋଫାଇଲ୍", "demoSharedZAxisSavedRecipesListTitle": "ସେଭ୍ କରାଯାଇଥିବା ରେସିପିଗୁଡ଼ିକ", "demoSharedZAxisBeefSandwichRecipeDescription": "ବୀଫ୍ ସାଣ୍ଡୱିଚର ରେସିପି", "demoSharedZAxisCrabPlateRecipeDescription": "କଙ୍କଡ଼ା ତରକାରୀର ରେସିପି", "demoSharedXAxisCoursePageTitle": "ଆପଣଙ୍କର କୋର୍ସକୁ ବ୍ୟବସ୍ଥିତ କରନ୍ତୁ", "demoSharedZAxisCrabPlateRecipeTitle": "କଙ୍କଡ଼ା", "demoSharedZAxisShrimpPlateRecipeDescription": "ଚିଙ୍ଗୁଡ଼ି ତରକାରୀର ରେସିପି", "demoSharedZAxisShrimpPlateRecipeTitle": "ଚିଙ୍ଗୁଡ଼ି", "demoContainerTransformTypeFadeThrough": "ଫେଡ୍ ଥ୍ରୁ", "demoSharedZAxisDessertRecipeTitle": "ଡିଜର୍ଟ", "demoSharedZAxisSandwichRecipeDescription": "ସାଣ୍ଡୱିଚର ରେସିପି", "demoSharedZAxisSandwichRecipeTitle": "ସାଣ୍ଡୱିଚ୍", "demoSharedZAxisBurgerRecipeDescription": "ବର୍ଗରର ରେସିପି", "demoSharedZAxisBurgerRecipeTitle": "ବର୍ଗର୍", "demoSharedZAxisSettingsPageTitle": "ସେଟିଂସ୍", "demoSharedZAxisTitle": "ସେୟାର୍ କରାଯାଇଥିବା z-ଅକ୍ଷ", "demoSharedZAxisPrivacySettingLabel": "ଗୋପନୀୟତା", "demoMotionTitle": "ମୋସନ୍", "demoContainerTransformTitle": "କଣ୍ଟେନର୍ ଟ୍ରାନ୍ସଫର୍ମ", "demoContainerTransformDescription": "କଣ୍ଟେନର୍ ଟ୍ରାନ୍ସଫର୍ମ ପାଟର୍ନ ଏକ କଣ୍ଟେନର୍ ଅନ୍ତର୍ଭୁକ୍ତ ଥିବା UI ଉପାଦାନଗୁଡ଼ିକ ମଧ୍ୟରେ ଟ୍ରାଞ୍ଜିସନ୍ ପାଇଁ ଡିଜାଇନ୍ କରାଯାଇଛି। ଏହି ପାଟର୍ନ ଦୁଇଟି UI ଉପାଦାନ ମଧ୍ୟରେ ଦୃଶ୍ୟମାନ ହେଉଥିବା ସଂଯୋଗ ତିଆରି କରେ", "demoContainerTransformModalBottomSheetTitle": "ଫେଡ୍ ମୋଡ୍", "demoContainerTransformTypeFade": "ଫେଡ୍", "demoSharedYAxisAlbumTileDurationUnit": "ମିନିଟ୍", "demoMotionPlaceholderTitle": "ଟାଇଟେଲ୍", "demoSharedXAxisForgotEmailButtonText": "ଇମେଲ୍ ଭୁଲି ଯାଇଛନ୍ତି?", "demoMotionSmallPlaceholderSubtitle": "ଦ୍ଵିତୀୟ", "demoMotionDetailsPageTitle": "ବିବରଣୀ ପୃଷ୍ଠା", "demoMotionListTileTitle": "ତାଲିକା ଆଇଟମ୍", "demoSharedAxisDescription": "ସ୍ପାସିଅଲ୍ କିମ୍ବା ନାଭିଗେସନାଲ୍ ସମ୍ପର୍କ ଥିବା UI ଉପାଦାନଗୁଡ଼ିକ ମଧ୍ୟରେ ଟ୍ରାଞ୍ଜିସନ୍ ପାଇଁ ସେୟାର୍ କରାଯାଇଥିବା ଅକ୍ଷ ପାଟର୍ନ ବ୍ୟବହାର କରାଯାଏ। ଏହି ପାଟର୍ନ ଉପାଦାନଗୁଡ଼ିକ ମଧ୍ୟରେ ସମ୍ପର୍କକୁ ଦୃଢ଼ କରିବାକୁ x, y କିମ୍ବା z ଅକ୍ଷରେ ସେୟାର୍ କରାଯାଇଥିବା ରୂପାନ୍ତରଣ ବ୍ୟବହାର କରେ।", "demoSharedXAxisTitle": "ସେୟାର୍ କରାଯାଇଥିବା x-ଅକ୍ଷ", "demoSharedXAxisBackButtonText": "ପଛକୁ ଫେରନ୍ତୁ", "demoSharedXAxisNextButtonText": "ପରବର୍ତ୍ତୀ", "demoSharedXAxisCulinaryCourseTitle": "ରୋଷେଇ", "githubRepo": "{repoName} GitHub ଡାଟା ଷ୍ଟୋରେଜ୍ ସ୍ଥାନ", "fortnightlyMenuUS": "ଯୁକ୍ତରାଷ୍ଟ୍ର ଆମେରିକା", "fortnightlyMenuBusiness": "ବ୍ୟବସାୟ", "fortnightlyMenuScience": "ବିଜ୍ଞାନ", "fortnightlyMenuSports": "ଖେଳ", "fortnightlyMenuTravel": "ଭ୍ରମଣ", "fortnightlyMenuCulture": "ସଂସ୍କୃତି", "fortnightlyTrendingTechDesign": "TechDesign", "rallyBudgetDetailAmountLeft": "ବକେୟା ରାଶି", "fortnightlyHeadlineArmy": "ଆଭ୍ୟନ୍ତରୀଣ ସ୍ତରରେ ଗ୍ରୀନ୍ ଆର୍ମିର ପରିବର୍ତ୍ତନ", "fortnightlyDescription": "ବିଷୟବସ୍ତୁ-କେନ୍ଦ୍ରିତ ସମାଚାର ଆପ୍", "rallyBillDetailAmountDue": "ବକେୟା ରାଶି", "rallyBudgetDetailTotalCap": "ମୋଟ ବଜେଟ୍", "rallyBudgetDetailAmountUsed": "ବ୍ୟବହାର କରାଯାଇଥିବା ରାଶି", "fortnightlyTrendingHealthcareRevolution": "HealthcareRevolution", "fortnightlyMenuFrontPage": "ଫ୍ରଣ୍ଟ ପେଜ୍", "fortnightlyMenuWorld": "ବିଶ୍ଵ", "rallyBillDetailAmountPaid": "ପୈଠ କରାଯାଇଥିବା ରାଶି", "fortnightlyMenuPolitics": "ରାଜନୀତି", "fortnightlyHeadlineBees": "ଚାଷ ପାଇଁ ମହୁମାଛିଙ୍କ ନିଅଣ୍ଟ", "fortnightlyHeadlineGasoline": "ପେଟ୍ରୋଲର ଭବିଷ୍ୟତ", "fortnightlyTrendingGreenArmy": "GreenArmy", "fortnightlyHeadlineFeminists": "ପକ୍ଷପାତୀଙ୍କ ବିରୋଧରେ ନାରୀବାଦୀଙ୍କ ସଂଘର୍ଷ", "fortnightlyHeadlineFabrics": "ଭବିଷ୍ୟତରେ କପଡ଼ା ଉତ୍ପାଦନ କ୍ଷେତ୍ରରେ ଡିଜାଇନରଙ୍କ ପ୍ରଯୁକ୍ତିବିଦ୍ୟାର ବ୍ୟବହାର", "fortnightlyHeadlineStocks": "ଷ୍ଟକରେ ମାନ୍ଦା ଅବସ୍ଥା ସମୟରେ ଲୋକମାନଙ୍କ ମୁଦ୍ରା ବଜାର ପ୍ରତି ଆଗ୍ରହ", "fortnightlyTrendingReform": "Reform", "fortnightlyMenuTech": "ଟେକ୍ନୋଲୋଜି", "fortnightlyHeadlineWar": "ଯୁଦ୍ଧ ସମୟରେ ବିଭାଜିତ ଆମେରିକୀୟଙ୍କ ଜୀବନ ଶୈଳୀ", "fortnightlyHeadlineHealthcare": "ସ୍ୱାସ୍ଥ୍ୟସେବାରେ ଧୀର କିନ୍ତୁ ସଶକ୍ତ ବିପ୍ଳବ", "fortnightlyLatestUpdates": "ନବୀନତମ ଅପଡେଟ୍", "fortnightlyTrendingStocks": "Stocks", "rallyBillDetailTotalAmount": "ମୋଟ ରାଶି", "demoCupertinoPickerDateTime": "ତାରିଖ ଓ ସମୟ", "signIn": "ସାଇନ୍ ଇନ୍ କରନ୍ତୁ", "dataTableRowWithSugar": "ଚିନି ସହିତ {value}", "dataTableRowApplePie": "ଆପଲ୍ ପାଏ", "dataTableRowDonut": "ଡୋନଟ୍", "dataTableRowHoneycomb": "ହନିକମ୍ବ", "dataTableRowLollipop": "ଲଲିପପ୍", "dataTableRowJellyBean": "ଜେଲି ବିନ୍", "dataTableRowGingerbread": "ଜିଞ୍ଜରବ୍ରେଡ୍", "dataTableRowCupcake": "କପକେକ୍", "dataTableRowEclair": "ଇକ୍ଲେଆର୍", "dataTableRowIceCreamSandwich": "ଆଇସକ୍ରିମ୍ ସ୍ୟାଣ୍ଡୱିଚ୍", "dataTableRowFrozenYogurt": "ଫ୍ରୋଜେନ୍ ୟୋଗହର୍ଟ", "dataTableColumnIron": "ଆଇରନ୍ (%)", "dataTableColumnCalcium": "କ୍ୟାଲସିୟମ୍ (%)", "dataTableColumnSodium": "ସୋଡିୟମ୍ (mg)", "demoTimePickerTitle": "ସମୟ ପିକର୍", "demo2dTransformationsResetTooltip": "ରୂପାନ୍ତରଣଗୁଡ଼ିକ ରିସେଟ୍ କରନ୍ତୁ", "dataTableColumnFat": "ଚର୍ବି (g)", "dataTableColumnCalories": "କ୍ୟାଲୋରୀ", "dataTableColumnDessert": "ଡିଜର୍ଟ (1 ସର୍ଭିଂ)", "cardsDemoTravelDestinationLocation1": "ଥାଞ୍ଜାଭୁର୍, ତାମିଲନାଡୁ", "demoTimePickerDescription": "ମ୍ୟାଟେରିଆଲ୍ ଡିଜାଇନର ସମୟ ପିକର୍ ଥିବା ଡାଏଲଗ୍ ଦେଖାଏ।", "demoPickersShowPicker": "ଶୋ ପିକର୍", "demoTabsScrollingTitle": "ସ୍କ୍ରୋଲିଂ", "demoTabsNonScrollingTitle": "ଅଣ-ସ୍କ୍ରୋଲିଂ", "craneHours": "{hours,plural,=1{1ଘ}other{{hours}ଘ}}", "craneMinutes": "{minutes,plural,=1{1ମି}other{{minutes}ମି}}", "craneFlightDuration": "{hoursShortForm} {minutesShortForm}", "dataTableHeader": "ପୁଷ୍ଟି", "demoDatePickerTitle": "ତାରିଖ ପିକର୍", "demoPickersSubtitle": "ତାରିଖ ଓ ସମୟ ଚୟନ", "demoPickersTitle": "ପିକରଗୁଡ଼ିକ", "demo2dTransformationsEditTooltip": "ଟାଇଲ୍ ଏଡିଟ୍ କରନ୍ତୁ", "demoDataTableDescription": "ଡାଟା ଟେବୁଲଗୁଡ଼ିକ, ଧାଡ଼ି ଏବଂ ସ୍ତମ୍ଭଗୁଡ଼ିକର ଏକ ଗ୍ରିଡ-ପରି ଫର୍ମାଟରେ ସୂଚନା ଡିସପ୍ଲେ କରେ। ସେମାନେ ଏଭଳି ଏକ ଉପାୟରେ ସୂଚନାକୁ ବ୍ୟବସ୍ଥିତ କରନ୍ତି ଯାହା ସ୍କାନ କରିବା ସହଜ ଅଟେ, ଯାହା ଫଳରେ ଉପଯୋଗକର୍ତ୍ତାମାନେ ପାଟର୍ନ ଏବଂ ଇନସାଇଟଗୁଡ଼ିକୁ ଖୋଜିପାରିବେ।", "demo2dTransformationsDescription": "ଟାଇଲ୍ ଏଡିଟ୍ କରିବାକୁ ଟାପ୍ କରନ୍ତୁ ଏବଂ ଦୃଶ୍ୟର ବିଭିନ୍ନ ଭାଗକୁ ମୁଭ୍ କରିବା ପାଇଁ ଜେଶ୍ଚରଗୁଡ଼ିକ ବ୍ୟବହାର କରନ୍ତୁ। ପ୍ୟାନ୍ କରିବାକୁ ଟାଣନ୍ତୁ, ଜୁମ୍ କରିବା ପାଇଁ ପିଞ୍ଚ କରନ୍ତୁ, ଦୁଇଟି ଆଙ୍ଗୁଠିରେ ଘୂରାନ୍ତୁ। ଆରମ୍ଭର ଓରିଏଣ୍ଟେସନକୁ ଫେରିବା ପାଇଁ ରିସେଟ୍ ବଟନ୍ ଦବାନ୍ତୁ।", "demo2dTransformationsSubtitle": "ପ୍ୟାନ୍, ଜୁମ୍, ଘୂର୍ଣ୍ଣନ", "demo2dTransformationsTitle": "2D ରୂପାନ୍ତରଣଗୁଡ଼ିକ", "demoCupertinoTextFieldPIN": "PIN", "demoCupertinoTextFieldDescription": "ଏକ ଟେକ୍ସଟ୍ ଫିଲ୍ଡ ଉପଯୋଗକର୍ତ୍ତାଙ୍କୁ ଏକ ହାର୍ଡୱେୟାର କୀବୋର୍ଡ କିମ୍ବା ଏକ ଅନସ୍କ୍ରିନ୍ କୀବୋର୍ଡ ବ୍ୟବହାର କରି ଟେକ୍ସଟ୍ ଲେଖିବାକୁ ଦେଇଥାଏ।", "demoCupertinoTextFieldSubtitle": "iOS-ଶୈଳୀଋ ଟେକ୍ସଟ୍ ଫିଲ୍ଡଗୁଡ଼ିକ", "demoCupertinoTextFieldTitle": "ଟେକ୍ସଟ୍ ଫିଲ୍ଡ", "demoDatePickerDescription": "ମ୍ୟାଟେରିଆଲ୍ ଡିଜାଇନର ତାରିଖ ପିକର୍ ଥିବା ଡାଏଲଗ୍ ଦେଖାଏ।", "demoCupertinoPickerTime": "ସମୟ", "demoCupertinoPickerDate": "ତାରିଖ", "demoCupertinoPickerTimer": "ଟାଇମର୍", "demoCupertinoPickerDescription": "ଏକ iOS-ଷ୍ଟାଇଲର ପିକର ୱିଜେଟ ଯାହାକୁ ଷ୍ଟ୍ରିଙ୍ଗ, ତାରିଖ, ସମୟ କିମ୍ବା ଉଭୟ ତାରିଖ ଓ ସମୟ ଚୟନ କରିବା ପାଇଁ ବ୍ୟବହାର କରାଯାଇପାରିବ।", "demoCupertinoPickerSubtitle": "iOS-ଷ୍ଟାଇଲର ପିକରଗୁଡ଼ିକ", "demoCupertinoPickerTitle": "ପିକରଗୁଡ଼ିକ", "dataTableRowWithHoney": "ମହୁ ସହିତ {value}", "cardsDemoTravelDestinationCity2": "ଚେଟିନାଡ୍", "bannerDemoResetText": "ବ୍ୟାନର୍ ରିସେଟ୍ କରନ୍ତୁ", "bannerDemoMultipleText": "ଏକାଧିକ କାର୍ଯ୍ୟଗୁଡ଼ିକ", "bannerDemoLeadingText": "ଲିଡିଂ ଆଇକନ୍", "dismiss": "ଖାରଜ କରନ୍ତୁ", "cardsDemoTappable": "ଟାପ୍ କରିବା ଯୋଗ୍ୟ", "cardsDemoSelectable": "ଚୟନ କରିବା ଯୋଗ୍ୟ (ଦବାଇ ରଖନ୍ତୁ)", "cardsDemoExplore": "ଏକ୍ସପ୍ଲୋର୍ କରନ୍ତୁ", "cardsDemoExploreSemantics": "ଏକ୍ସପ୍ଲୋର୍ କରନ୍ତୁ {destinationName}", "cardsDemoShareSemantics": "ସେୟାର୍ କରନ୍ତୁ {destinationName}", "cardsDemoTravelDestinationTitle1": "ତାମିଲନାଡୁରେ ଭ୍ରମଣ କରିବା ପାଇଁ 10ଟି ଶ୍ରେଷ୍ଠ ସହର", "cardsDemoTravelDestinationDescription1": "ନମ୍ବର 10", "cardsDemoTravelDestinationCity1": "ଥାଞ୍ଜାଭୁର୍", "dataTableColumnProtein": "ପ୍ରୋଟିନ୍ (g)", "cardsDemoTravelDestinationTitle2": "ଦକ୍ଷିଣ ଭାରତର କାରିଗର", "cardsDemoTravelDestinationDescription2": "ସିଲ୍କ ସ୍ପିନରଗୁଡ଼ିକ", "bannerDemoText": "ଆପଣଙ୍କ ପାସୱାର୍ଡ ଆପଣଙ୍କର ଅନ୍ୟ ଡିଭାଇସରେ ଅପଡେଟ୍ କରାଯାଇଥିଲା। ଦୟାକରି ପୁଣି ସାଇନ୍ ଇନ୍ କରନ୍ତୁ।", "cardsDemoTravelDestinationLocation2": "ଶିବଗଙ୍ଗା, ତାମିଲନାଡୁ", "cardsDemoTravelDestinationTitle3": "ବୃହଦିଶ୍ୱର ମନ୍ଦିର", "cardsDemoTravelDestinationDescription3": "ମନ୍ଦିରଗୁଡ଼ିକ", "demoBannerTitle": "ବ୍ୟାନର୍", "demoBannerSubtitle": "ଏକ ତାଲିକା ମଧ୍ୟରେ ଏକ ବ୍ୟାନର୍ ଡିସପ୍ଲେ କରାଯାଉଛି", "demoBannerDescription": "ଏକ ବ୍ୟାନର୍, ଏକ ଗୁରୁତ୍ୱପୂର୍ଣ୍ଣ, ସଂକ୍ଷିପ୍ତ ମେସେଜ୍ ଡିସପ୍ଲେ କରେ ଏବଂ ଉପଯୋଗକର୍ତ୍ତାମାନଙ୍କ ପାଇଁ ସମ୍ବୋଧନ କରିବାକୁ (କିମ୍ବା ବ୍ୟାନରକୁ ଖାରଜ କରିବାକୁ) ପଦକ୍ଷେପଗୁଡ଼ିକ ପ୍ରଦାନ କରେ। ଏହାକୁ ଖାରଜ କରିବା ପାଇଁ ଜଣେ ଉପଯୋଗକର୍ତ୍ତାଙ୍କର ପଦକ୍ଷେପ ଆବଶ୍ୟକ ଅଟେ।", "demoCardTitle": "କାର୍ଡଗୁଡ଼ିକ", "demoCardSubtitle": "ଗୋଲାକାର କୋଣ ଥିବା ବେସଲାଇନ କାର୍ଡଗୁଡ଼ିକ", "demoCardDescription": "କାର୍ଡ ହେଉଛି ମ୍ୟାଟେରିଆଲର ଏକ ସିଟ୍ ଯାହାକୁ କିଛି ସମ୍ପର୍କିତ ସୂଚନାର ପ୍ରତିନିଧିତ୍ୱ କରିବା ପାଇଁ ବ୍ୟବହାର କରାଯାଇଥାଏ, ଉଦାହରଣ ସ୍ୱରୂପ ଆଲବମ୍, ଭୌଗଳିକ ଲୋକେସନ୍, ଭୋଜନ, ଯୋଗାଯୋଗ ବିବରଣୀ ଇତ୍ୟାଦି।", "demoDataTableTitle": "ଡାଟା ଟେବଲଗୁଡ଼ିକ", "demoDataTableSubtitle": "ସୂଚନା ଥିବା ଧାଡ଼ି ଓ ସ୍ତମ୍ଭଗୁଡ଼ିକ", "dataTableColumnCarbs": "କାର୍ବୋହାଇଡ୍ରେଟ୍ (g)", "placeTanjore": "ତେଞ୍ଜୋର୍", "demoGridListsTitle": "ଗ୍ରିଡ୍ ତାଲିକାଗୁଡ଼ିକ", "placeFlowerMarket": "ଫୁଲ ମାର୍କେଟ୍", "placeBronzeWorks": "ବ୍ରୋଞ୍ଜ୍ ୱାର୍କ୍ସ", "placeMarket": "ମାର୍କେଟ୍", "placeThanjavurTemple": "ଥାଞ୍ଜାଭୁର୍ ମନ୍ଦିର", "placeSaltFarm": "ସଲ୍ଟ ଫାର୍ମ", "placeScooters": "ସ୍କୁଟର୍", "placeSilkMaker": "ସିଲ୍କ ବୁଣାକାର", "placeLunchPrep": "ମଧ୍ୟାହ୍ନ ଭୋଜନ ପ୍ରସ୍ତୁତି", "placeBeach": "ବେଳାଭୂମି", "placeFisherman": "କେଉଟ", "demoMenuSelected": "ଚୟନିତ: {value}", "demoMenuRemove": "କାଢ଼ନ୍ତୁ", "demoMenuGetLink": "ଲିଙ୍କ୍ ପାଆନ୍ତୁ", "demoMenuShare": "ସେୟାର୍ କରନ୍ତୁ", "demoBottomAppBarSubtitle": "ନିମ୍ନ ଭାଗରେ ନାଭିଗେସନ୍ ଏବଂ କାର୍ଯ୍ୟଗୁଡ଼ିକ ପ୍ରଦର୍ଶନ କରେ", "demoMenuAnItemWithASectionedMenu": "ବିଭାଗୀକୃତ ମେନୁ ମାଧ୍ୟମରେ ଏକ ଆଇଟମ୍", "demoMenuADisabledMenuItem": "ମେନୁ ଆଇଟମ୍ ଅକ୍ଷମ କରାଯାଇଛି", "demoLinearProgressIndicatorTitle": "ରୈଖିକ ପ୍ରଗତିର ସୂଚକ", "demoMenuContextMenuItemOne": "ପ୍ରସଙ୍ଗ ମେନୁର ପ୍ରଥମ ଆଇଟମ୍", "demoMenuAnItemWithASimpleMenu": "ସରଳ ମେନୁ ସହ ଏକ ଆଇଟମ୍", "demoCustomSlidersTitle": "କଷ୍ଟମ୍ ସ୍ଲାଇଡରଗୁଡ଼ିକ", "demoMenuAnItemWithAChecklistMenu": "ଚେକଲିଷ୍ଟ ମେନୁ ସହ ଏକ ଆଇଟମ୍", "demoCupertinoActivityIndicatorTitle": "କାର୍ଯ୍ୟକଳାପ ସୂଚକ", "demoCupertinoActivityIndicatorSubtitle": "iOS-ଶୈଳୀରେ କାର୍ଯ୍ୟକଳାପର ସୂଚକ", "demoCupertinoActivityIndicatorDescription": "ଏକ iOS-ଶୈଳୀରେ କାର୍ଯ୍ୟକଳାପର ସୂଚକ ଯାହା ଘଣ୍ଟାକଣ୍ଟାର ଦିଗରେ ଘୂରିଥାଏ।", "demoCupertinoNavigationBarTitle": "ନାଭିଗେସନ୍ ବାର୍", "demoCupertinoNavigationBarSubtitle": "iOS-ଶୈଳୀର ନାଭିଗେସନ୍ ବାର୍", "demoCupertinoNavigationBarDescription": "ଏକ iOS-ଶୈଳୀର ନାଭିଗେସନ୍ ବାର୍। ନାଭିଗେସନ୍ ବାର୍ ଏକ ଟୁଲବାର୍ ଅଟେ ଯେଉଁଥିରେ ଟୁଲବାରର ମଝିରେ, ଅତିକମରେ ଗୋଟିଏ ପୃଷ୍ଠା ଟାଇଟଲ୍ ଥାଏ।", "demoCupertinoPullToRefreshTitle": "ରିଫ୍ରେସ୍ କରିବା ପାଇଁ ଟାଣନ୍ତୁ", "demoCupertinoPullToRefreshSubtitle": "iOS-ଶୈଳୀର ନିୟନ୍ତ୍ରଣ ରିଫ୍ରେସ୍ କରିବା ପାଇଁ ଟାଣନ୍ତୁ", "demoCupertinoPullToRefreshDescription": "ଏକ ୱିଜେଟ୍ ଯାହା iOS-ଶୈଳୀର ବିଷୟବସ୍ତୁ ନିୟନ୍ତ୍ରଣ ରିଫ୍ରେସ୍ କରିବା ପାଇଁ ଟାଣିବା କାର୍ଯ୍ୟକାରୀ କରିଥାଏ।", "demoProgressIndicatorTitle": "ପ୍ରଗତିର ସୂଚକଗୁଡ଼ିକ", "demoProgressIndicatorSubtitle": "ରୈଖିକ, ବୃତ୍ତାକାର, ଅନିର୍ଦ୍ଧାରିତ", "demoCircularProgressIndicatorTitle": "ବୃତ୍ତାକାର ପ୍ରଗତିର ସୂଚକ", "demoCircularProgressIndicatorDescription": "Material Designର ଏକ ବୃତ୍ତାକାର ପ୍ରଗତିର ସୂଚକ, ଯାହା ଆପ୍ଲିକେସନ୍ ବ୍ୟସ୍ତ ଅଛି ବୋଲି ଦର୍ଶାଇବାକୁ ଘୂରିଥାଏ।", "demoMenuFour": "ଚାରି", "demoLinearProgressIndicatorDescription": "Material Designର ଏକ ରୈଖିକ ପ୍ରଗତିର ସୂଚକ, ଯାହା ଏକ ପ୍ରଗତି ବାର୍ ରୂପେ ମଧ୍ୟ ପରିଚିତ ଅଟେ।", "demoTooltipTitle": "ଟୁଲଟିପ୍ସ", "demoTooltipSubtitle": "ଅଧିକ ସମୟ ଦବେଇ ରଖିଲେ ବା ହୋଭର୍ କଲେ ଛୋଟ ମେସେଜ୍ ପ୍ରଦର୍ଶିତ ହୋଇଥାଏ", "demoTooltipDescription": "ଟୁଲଟିପ୍ସ ଟେକ୍ସଟ୍ ଲେବଲ୍ ପ୍ରଦାନ କରେ ଯାହା କୌଣସି ବଟନର କାର୍ଯ୍ୟ ବା ଅନ୍ୟ ଉପଯୋଗକର୍ତ୍ତାଙ୍କ ଇଣ୍ଟର୍ଫେସ୍ କାର୍ଯ୍ୟକୁ ବ୍ୟାଖ୍ୟା କରିବାରେ ସାହାଯ୍ୟ କରିଥାଏ। ଉପଯୋଗକର୍ତ୍ତାମାନେ କୌଣସି ଉପାଦାନରେ ହୋଭର୍ କଲେ, ଫୋକସ୍ କଲେ ବା ଅଧିକ ସମୟ ଦବେଇ ରଖିଲେ, ଟୁଲଟିପ୍ସ ସୂଚନାତ୍ମକ ଟେକ୍ସଟ୍ ପ୍ରଦାନ କରେ।", "demoTooltipInstructions": "ଟୁଲଟିପ୍ ପ୍ରଦର୍ଶିତ ପାଇଁ ଅଧିକ ସମୟ ଦବେଇ ରଖନ୍ତୁ ବା ହୋଭର୍ କରନ୍ତୁ।", "placeChennai": "ଚେନ୍ନାଇ", "demoMenuChecked": "ଯାଞ୍ଚ କରାଯାଇଛି: {value}", "placeChettinad": "ଚେଟିନାଡ୍", "demoMenuPreview": "ପ୍ରିଭ୍ୟୁ କରନ୍ତୁ", "demoBottomAppBarTitle": "ବଟନ୍ ଆପ୍ ବାର୍", "demoBottomAppBarDescription": "ବଟମ୍ ଆପ୍ ବାର୍, ଫ୍ଲୋଟିଂ ଆକ୍ସନ୍ ବଟନ୍ ସହିତ, ନିମ୍ନସ୍ଥ ନାଭିଗେସନ୍ ଡ୍ରୟର୍ ଏବଂ ଚାରୋଟି ପର୍ଯ୍ୟନ୍ତ କାର୍ଯ୍ୟକୁ ଆକ୍ସେସ୍ ପ୍ରଦାନ କରେ।", "bottomAppBarNotch": "ନଚ୍", "bottomAppBarPosition": "ଫ୍ଲୋଟିଂ ଆକ୍ସନ୍ ବଟନର ଅବସ୍ଥିତି", "bottomAppBarPositionDockedEnd": "ଡକ୍ କରାଯାଇଛି - ଶେଷରେ", "bottomAppBarPositionDockedCenter": "ଡକ୍ କରାଯାଇଛି - ମଝିରେ", "bottomAppBarPositionFloatingEnd": "ଫ୍ଲୋଟିଂ - ଶେଷରେ", "bottomAppBarPositionFloatingCenter": "ଫ୍ଲୋଟିଂ - ମଝିରେ", "demoSlidersEditableNumericalValue": "ସମ୍ପାଦନଯୋଗ୍ୟ ସାଂଖ୍ୟିକ ମୂଲ୍ୟ", "demoGridListsSubtitle": "ଧାଡ଼ି ଏବଂ ସ୍ତମ୍ଭର ଲେଆଉଟ୍", "demoGridListsDescription": "ଏକ ପ୍ରକାରର ଡାଟା, ସାଧାରଣତଃ ଛବିଗୁଡ଼ିକ ଉପସ୍ଥାପନ କରିବା ପାଇଁ ଗ୍ରିଡ୍ ତାଲିକାଗୁଡ଼ିକ ସବୁଠୁ ଭଲ ବିକଳ୍ପ ଅଟେ। ଏକ ଗ୍ରିଡ୍ ତାଲିକାରେ ଥିବା ପ୍ରତ୍ୟେକ ଆଇଟମକୁ ଏକ ଟାଇଲ୍ କୁହାଯାଏ।", "demoGridListsImageOnlyTitle": "କେବଳ ଛବି", "demoGridListsHeaderTitle": "ହେଡର୍ ସହ", "demoGridListsFooterTitle": "ଫୁଟର୍ ସହ", "demoSlidersTitle": "ସ୍ଲାଇଡରଗୁଡ଼ିକ", "demoSlidersSubtitle": "ସ୍ୱାଇପ୍ କରି ଏକ ମୂଲ୍ୟ ଚୟନ କରିବା ପାଇଁ ୱିଜେଟଗୁଡ଼ିକ", "demoSlidersDescription": "ସ୍ଲାଇଡରଗୁଡ଼ିକ ଏକ ବାର୍ ସହିତ ମୂଲ୍ୟଗୁଡ଼ିକର ଏକ ରେଞ୍ଜ୍ ଦର୍ଶାଇଥାଏ, ଯେଉଁଥିରୁ ଉପଯୋଗକର୍ତ୍ତାମାନେ ଏକ ମୂଲ୍ୟ ଚୟନ କରିପାରିବେ। ସେଗୁଡ଼ିକ ଭଲ୍ୟୁମ୍, ଉଜ୍ଜ୍ୱଳତା କିମ୍ବା ଛବି ଫିଲ୍ଟରଗୁଡ଼ିକ ଲାଗୁ କରିବା ପରି ସେଟିଂସ୍ ଆଡଜଷ୍ଟ କରିବା ପାଇଁ ଉତ୍ତମ ଅଟେ।", "demoRangeSlidersTitle": "ରେଞ୍ଜ୍ ସ୍ଲାଇଡରଗୁଡ଼ିକ", "demoRangeSlidersDescription": "ସ୍ଲାଇଡରଗୁଡ଼ିକ ଏକ ବାର୍ ସହିତ ମୂଲ୍ୟଗୁଡ଼ିକର ଏକ ରେଞ୍ଜ୍ ଦର୍ଶାଇଥାଏ। ବାରର ଉଭୟ ପ୍ରାନ୍ତରେ ସେଗୁଡ଼ିକର ଆଇକନ୍ ରହିପାରେ ଯାହା ମୂଲ୍ୟଗୁଡ଼ିକର ଏକ ରେଞ୍ଜ୍ ଦର୍ଶାଇଥାଏ। ସେଗୁଡ଼ିକ ଭଲ୍ୟୁମ୍, ଉଜ୍ଜ୍ୱଳତା କିମ୍ବା ଛବି ଫିଲ୍ଟରଗୁଡ଼ିକ ଲାଗୁ କରିବା ପରି ସେଟିଂସ୍ ଆଡଜଷ୍ଟ କରିବା ପାଇଁ ଉତ୍ତମ ଅଟେ।", "demoMenuAnItemWithAContextMenuButton": "ପ୍ରସଙ୍ଗ ମେନୁ ମାଧ୍ୟମରେ ଏକ ଆଇଟମ୍", "demoCustomSlidersDescription": "ସ୍ଲାଇଡରଗୁଡ଼ିକ ଏକ ବାର୍ ସହିତ ମୂଲ୍ୟଗୁଡ଼ିକର ଏକ ରେଞ୍ଜ୍ ଦର୍ଶାଇଥାଏ, ଯେଉଁଥିରୁ ଉପଯୋଗକର୍ତ୍ତାମାନେ ଏକ ମୂଲ୍ୟ କିମ୍ବା ମୂଲ୍ୟଗୁଡ଼ିକର ଏକ ରେଞ୍ଜ୍ ଚୟନ କରିପାରିବେ। ସ୍ଲାଇଡରଗୁଡ଼ିକରେ ଥିମ୍ ପ୍ରୟୋଗ କରାଯାଇପାରେ ଏବଂ କଷ୍ଟମାଇଜ୍ କରାଯାଇପାରେ।", "demoSlidersContinuousWithEditableNumericalValue": "ଏକ ସ୍ଲାଇଡରରେ ସମ୍ପାଦନଯୋଗ୍ୟ ମୂଲ୍ୟ ସହ ଅବିରତ ସାଂଖ୍ୟିକ ମୂଲ୍ୟ", "demoSlidersDiscrete": "ଭିନ୍ନ", "demoSlidersDiscreteSliderWithCustomTheme": "କଷ୍ଟମ୍ ଥିମ୍ ସହ ଭିନ୍ନ ସ୍ଲାଇଡର୍", "demoSlidersContinuousRangeSliderWithCustomTheme": "କଷ୍ଟମ୍ ଥିମ୍ ସହ ଅବିରତ ମୂଲ୍ୟ ଥିବା ରେଞ୍ଜ୍ ସ୍ଲାଇଡର୍", "demoSlidersContinuous": "ଅବିରତ", "placePondicherry": "ପଣ୍ଡିଚେରୀ", "demoMenuTitle": "ମେନୁ", "demoContextMenuTitle": "ପ୍ରସଙ୍ଗ ମେନୁ", "demoSectionedMenuTitle": "ବିଭାଗୀକୃତ ମେନୁ", "demoSimpleMenuTitle": "ସରଳ ମେନୁ", "demoChecklistMenuTitle": "ଚେକଲିଷ୍ଟ ମେନୁ", "demoMenuSubtitle": "ମେନୁ ବଟନ୍ ଏବଂ ସରଳ ମେନୁ", "demoMenuDescription": "ଏକ ମେନୁ ଏକ ଅସ୍ଥାୟୀ ପୃଷ୍ଠ ଉପରେ ବିକଳ୍ପଗୁଡ଼ିକର ଏକ ତାଲିକା ଦେଖାଇଥାଏ। ଉପଯୋଗକର୍ତ୍ତାମାନେ ଏକ ବଟନ୍, କାର୍ଯ୍ୟ, ବା ଅନ୍ୟ ନିୟନ୍ତ୍ରଣ ମାଧ୍ୟମରେ ଇଣ୍ଟରାକ୍ଟ କଲେ, ସେଗୁଡ଼ିକ ଦେଖାଯାଏ।", "demoMenuItemValueOne": "ମେନୁର ପ୍ରଥମ ଆଇଟମ୍", "demoMenuItemValueTwo": "ମେନୁର ଦ୍ଵିତୀୟ ଆଇଟମ୍", "demoMenuItemValueThree": "ମେନୁର ତୃତୀୟ ଆଇଟମ୍", "demoMenuOne": "ଏକ", "demoMenuTwo": "ଦୁଇ", "demoMenuThree": "ତିନି", "demoMenuContextMenuItemThree": "ପ୍ରସଙ୍ଗ ମେନୁର ତୃତୀୟ ଆଇଟମ୍", "demoCupertinoSwitchSubtitle": "iOS-ଷ୍ଟାଇଲ୍ ସ୍ୱିଚ୍", "demoSnackbarsText": "ଏହା ଏକ ସ୍ନାକ୍‌ବାର୍ ଅଟେ।", "demoCupertinoSliderSubtitle": "iOS-ଷ୍ଟାଇଲ୍ ସ୍ଲାଇଡର୍", "demoCupertinoSliderDescription": "ମୂଲ୍ୟଗୁଡ଼ିକର ଏକ ଅବିରତ ବା ଏକ ଭିନ୍ନ ସେଟ୍‌ରୁ ଚୟନ କରିବା ପାଇଁ ଏକ ସ୍ଲାଇଡର୍ ବ୍ୟବହାର କରାଯାଇପାରେ।", "demoCupertinoSliderContinuous": "ଅବିରତ: {value}", "demoCupertinoSliderDiscrete": "ଭିନ୍ନ: {value}", "demoSnackbarsAction": "ଆପଣ ସ୍ନାକ୍‌ବାର୍ କାର୍ଯ୍ୟକୁ ଦବାଇଛନ୍ତି।", "backToGallery": "ଗ୍ୟାଲେରୀକୁ ଫେରନ୍ତୁ", "demoCupertinoTabBarTitle": "ଟାବ୍ ବାର୍", "demoCupertinoSwitchDescription": "ଏକ ସ୍ୱିଚ୍ ଯାହା ଏକ ସିଙ୍ଗଲ୍ ସେଟିଂସ୍‌ର ଚାଲୁ/ବନ୍ଦ ସ୍ଥିତିକୁ ଟୋଗଲ୍ କରିବା ପାଇଁ ବ୍ୟବହୃତ ହୋଇଥାଏ।", "demoSnackbarsActionButtonLabel": "କାର୍ଯ୍ୟ", "cupertinoTabBarProfileTab": "ପ୍ରୋଫାଇଲ୍", "demoSnackbarsButtonLabel": "ଏକ ସ୍ନାକ୍‌ବାର୍ ଦେଖାନ୍ତୁ", "demoSnackbarsDescription": "ସ୍ନାକବାର ଏକ ଆପ ପରଫର୍ମ କରିଥିବା ବା କରିବାକୁ ଥିବା ଏକ ପ୍ରକ୍ରିୟା ବିଷୟରେ ଉପଯୋଗକର୍ତ୍ତାମାନଙ୍କୁ ସୂଚନା ଦେଇଥାଏ। ସେଗୁଡ଼ିକ ସ୍କ୍ରିନର ନିମ୍ନରେ ଅସ୍ଥାୟୀ ଭାବେ ଦେଖାଯାଏ। ସେଗୁଡ଼ିକ ଉପଯୋଗକର୍ତ୍ତାଙ୍କ ଅନୁଭୂତିରେ ବାଧା ସୃଷ୍ଟି କରିବା ଉଚିତ୍ ନୁହେଁ ଏବଂ ଉପଯୋଗକର୍ତ୍ତାଙ୍କ ଇନପୁଟକୁ ଅଦୃଶ୍ୟ କରିବାର ଆବଶ୍ୟକତା ନୁହେଁ।", "demoSnackbarsSubtitle": "ସ୍ନାକ୍‌ବାର୍ ସ୍କ୍ରିନ୍‌ର ତଳେ ମେସେଜ୍‌ଗୁଡ଼ିକ ଦେଖାଏ", "demoSnackbarsTitle": "ସ୍ନାକ୍‌ବାର୍", "demoCupertinoSliderTitle": "ସ୍ଲାଇଡର୍", "cupertinoTabBarChatTab": "Chat", "cupertinoTabBarHomeTab": "ମୂଳପୃଷ୍ଠା", "demoCupertinoTabBarDescription": "ଏକ iOS-ଷ୍ଟାଇଲ୍ ବଟମ୍ ନାଭିଗେସନ୍ ଟାବ୍ ବାର୍। ଏକାଧିକ ଟାବ୍ ଦେଖାଏ, ଯେଉଁଥିରେ ଡିଫଲ୍ଟ ଭାବେ ପ୍ରଥମ ଟାବ୍ ସକ୍ରିୟ ଥାଏ।", "demoCupertinoTabBarSubtitle": "iOS-ଷ୍ଟାଇଲ୍ ବଟମ୍ ଟାବ୍ ବାର୍", "demoOptionsFeatureTitle": "ବିକଳ୍ପଗୁଡ଼ିକ ଦେଖନ୍ତୁ", "demoOptionsFeatureDescription": "ଏହି ଡେମୋ ପାଇଁ ଉପଲବ୍ଧ ବିକଳ୍ପଗୁଡ଼ିକୁ ଦେଖିବାକୁ ଏଠାରେ ଟାପ୍ କରନ୍ତୁ।", "demoCodeViewerCopyAll": "ସବୁ କପି କରନ୍ତୁ", "shrineScreenReaderRemoveProductButton": "{product} କାଢ଼ନ୍ତୁ", "shrineScreenReaderProductAddToCart": "କାର୍ଟରେ ଯୋଗ କରନ୍ତୁ", "shrineScreenReaderCart": "{quantity,plural,=0{ସପିଂ କାର୍ଟ, କୌଣସି ଆଇଟମ୍ ନାହିଁ}=1{ସପିଂ କାର୍ଟ, 1ଟି ଆଇଟମ୍}other{ସପିଂ କାର୍ଟ, {quantity}ଟି ଆଇଟମ୍}}", "demoCodeViewerFailedToCopyToClipboardMessage": "କ୍ଲିପ୍‌ବୋର୍ଡକୁ କପି କରିବାରେ ବିଫଳ ହେଲା: {error}", "demoCodeViewerCopiedToClipboardMessage": "କ୍ଲିପ୍‌ବୋର୍ଡ‌କୁ କପି କରାଯାଇଛି।", "craneSleep8SemanticLabel": "ସମୂଦ୍ର ତଟରେ ଥିବା ଏକ ଚଟାଣ ଉପରେ ଗଢ଼ିଉଠିଥିବା ମାୟା ସଭ୍ୟତା", "craneSleep4SemanticLabel": "ପର୍ବତଗୁଡ଼ିକ ସାମ୍ନାରେ ହ୍ରଦ ପାଖରେ ଥିବା ହୋଟେଲ୍", "craneSleep2SemanticLabel": "ମାଚୁ ପିଚୁ ସିଟାଡେଲ୍", "craneSleep1SemanticLabel": "ଏଭର୍‌ଗ୍ରୀନ୍ ଗଛ ଓ ଆଖପାଖରେ ବରଫ ପଡ଼ିଥିବା ଦୃଶ୍ୟ", "craneSleep0SemanticLabel": "ପାଣି ଉପରେ ଥିବା ଘର", "craneFly13SemanticLabel": "ଖଜୁରୀ ଗଛ ଥିବା ସମୁଦ୍ର ପାଖ ପୁଲ୍", "craneFly12SemanticLabel": "ଖଜୁରୀ ଗଛ ସହ ପୁଲ୍", "craneFly11SemanticLabel": "ସମୂଦ୍ରରେ ଇଟାରେ ତିଆରି ଲାଇଟ୍‌ହାଉସ୍", "craneFly10SemanticLabel": "ସୂର୍ଯ୍ୟାସ୍ତ ସମୟରେ ଅଲ୍-ଆଜହାର୍ ମୋସ୍କ ଟାୱାର୍‌ର", "craneFly9SemanticLabel": "ଏକ ପୁରୁଣା ନୀଳ କାରରେ ବୁଲୁଥିବା ପୁରୁଷ", "craneFly8SemanticLabel": "ସୁପର୍‌ଟ୍ରି ଗ୍ରୋଭ୍", "craneEat9SemanticLabel": "ପେଷ୍ଟ୍ରୀ ସହ କଫୀ କାଉଣ୍ଟର୍", "craneEat2SemanticLabel": "ବର୍ଗର୍", "craneFly5SemanticLabel": "ପର୍ବତଗୁଡ଼ିକ ସାମ୍ନାରେ ହ୍ରଦ ପାଖରେ ଥିବା ହୋଟେଲ୍", "demoSelectionControlsSubtitle": "Checkboxes, ରେଡିଓ ବଟନ୍ ଏବଂ ସ୍ୱିଚ୍‌ଗୁଡ଼ିକ", "craneEat10SemanticLabel": "ବଡ଼ ପାଷ୍ଟ୍ରାମି ସାଣ୍ଡୱିଚ୍ ଧରିଥିବା ମହିଳା", "craneFly4SemanticLabel": "ପାଣି ଉପରେ ଥିବା ଘର", "craneEat7SemanticLabel": "ବେକେରୀର ପ୍ରବେଶ ସ୍ଥାନ", "craneEat6SemanticLabel": "ଚିଙ୍ଗୁଡ଼ି ତରକାରି", "craneEat5SemanticLabel": "ଆର୍ଟସେ ରେଷ୍ଟୁରାଣ୍ଟର ବସିବା ଅଞ୍ଚଳ", "craneEat4SemanticLabel": "ଚକୋଲେଟ୍ ମିଠା", "craneEat3SemanticLabel": "କୋରୀୟ ଟାକୋ", "craneFly3SemanticLabel": "ମାଚୁ ପିଚୁ ସିଟାଡେଲ୍", "craneEat1SemanticLabel": "ଡିନର୍ ଶୈଳୀର ଷ୍ଟୁଲ୍‌ଗୁଡ଼ିକ ଥିବା ଖାଲି ବାର୍", "craneEat0SemanticLabel": "ଏକ କାଠର ଓଭାନ୍‌ରେ ପିଜା", "craneSleep11SemanticLabel": "ଟାଇପେୟୀ 101 ଆକକାଶ ଛୁଆଁ ପ୍ରାସାଦ", "craneSleep10SemanticLabel": "ସୂର୍ଯ୍ୟାସ୍ତ ସମୟରେ ଅଲ୍-ଆଜହାର୍ ମୋସ୍କ ଟାୱାର୍‌ର", "craneSleep9SemanticLabel": "ସମୂଦ୍ରରେ ଇଟାରେ ତିଆରି ଲାଇଟ୍‌ହାଉସ୍", "craneEat8SemanticLabel": "କଙ୍କଡ଼ା ପରି ଦେଖାଯାଉଥିବା ଚିଙ୍ଗୁଡ଼ି ମାଛ ପ୍ଲେଟ୍", "craneSleep7SemanticLabel": "ରିବେରିଆ ସ୍କୋୟାର୍‌ରେ ରଙ୍ଗୀନ୍ ଆପାର୍ଟମେଣ୍ଟଗୁଡ଼ିକ", "craneSleep6SemanticLabel": "ଖଜୁରୀ ଗଛ ସହ ପୁଲ୍", "craneSleep5SemanticLabel": "ଏକ ପଡ଼ିଆରେ ଥିବା ଟେଣ୍ଟ", "settingsButtonCloseLabel": "ସେଟିଂସ୍‌କୁ ବନ୍ଦ କରନ୍ତୁ", "demoSelectionControlsCheckboxDescription": "ଚେକ୍‌ବକ୍ସଗୁଡ଼ିକ ଉପଯୋଗକର୍ତ୍ତାଙ୍କୁ ଏକ ସେଟ୍‌ରୁ ଏକାଧିକ ବିକଳ୍ପ ଚୟନ କରିବାକୁ ଅନୁମତି ଦେଇଥାଏ। ଏକ ସାମାନ୍ୟ ଚେକ୍‌ବକ୍ସର ମୂଲ୍ୟ ସତ୍ୟ କିମ୍ବା ମିଥ୍ୟା ଅଟେ ଏବଂ ଏକ ଟ୍ରିସେଟ୍ ଚେକ୍‌ବକ୍ସର ମୂଲ୍ୟ ମଧ୍ୟ ଶୂନ୍ୟ ହୋଇପାରିବ।", "settingsButtonLabel": "ସେଟିଂସ୍", "demoListsTitle": "ତାଲିକାଗୁଡ଼ିକ", "demoListsSubtitle": "ତାଲିକା ଲେଆଉଟ୍‌ଗୁଡ଼ିକୁ ସ୍କ୍ରୋଲ୍ କରୁଛି", "demoListsDescription": "ଏକ ଏକକ ନିର୍ଦ୍ଦିଷ୍ଟ-ଉଚ୍ଚତା ଧାଡ଼ି ଯେଉଁଥିରେ ସାଧାରଣତଃ କିଛି ଟେକ୍ସଟ୍ ସାମିଲ ଥାଏ, ଏହାସହ ଆଗରେ କିମ୍ବା ପଛରେ ଏକ ଆଇକନ୍ ଥାଏ।", "demoOneLineListsTitle": "ଗୋଟିଏ ଲାଇନ୍", "demoTwoLineListsTitle": "ଦୁଇଟି ଲାଇନ୍", "demoListsSecondary": "ଦ୍ୱିତୀୟ ଟେକ୍ସଟ୍", "demoSelectionControlsTitle": "ଚୟନ ଉପରେ ନିୟନ୍ତ୍ରଣ", "craneFly7SemanticLabel": "ମାଉଣ୍ଟ ରସ୍‌ମୋର୍", "demoSelectionControlsCheckboxTitle": "ଚେକ୍‌ବକ୍ସ", "craneSleep3SemanticLabel": "ଏକ ପୁରୁଣା ନୀଳ କାରରେ ବୁଲୁଥିବା ପୁରୁଷ", "demoSelectionControlsRadioTitle": "ରେଡିଓ", "demoSelectionControlsRadioDescription": "ରେଡିଓ ବଟନ୍‌ଗୁଡ଼ିକ ଉପଯୋଗକର୍ତ୍ତାଙ୍କୁ ଏକ ସେଟ୍‌ରୁ ଗୋଟିଏ ବିକଳ୍ପ ଚୟନ କରିବାକୁ ଅନୁମତି ଦେଇଥାଏ। ଯଦି ଆପଣ ଭାବୁଛନ୍ତି କି ଉପଯୋଗକର୍ତ୍ତା ଉପଲବ୍ଧ ଥିବା ସମସ୍ତ ବିକଳ୍ପ ଦେଖିବାକୁ ଚାହୁଁଛନ୍ତି, ତେବେ ବିଶେଷ ଚୟନ ପାଇଁ ରେଡିଓ ବଟନ୍ ବ୍ୟବହାର କରନ୍ତୁ।", "demoSelectionControlsSwitchTitle": "ସ୍ୱିଚ୍ କରନ୍ତୁ", "demoSelectionControlsSwitchDescription": "ଏକ ସିଙ୍ଗଲ ସେଟିଂସ ବିକଳ୍ପର ସ୍ଥିତିକୁ ଚାଲୁ/ବନ୍ଦ ସ୍ୱିଚ ଦ୍ୱାରା ଟୋଗଲ କରାଯାଏ। ସ୍ୱିଚ ନିୟନ୍ତ୍ରଣ କରୁଥିବା ବିକଳ୍ପ ସହ ଏହାର ସ୍ଥିତିକୁ ନିର୍ଦ୍ଦିଷ୍ଟ ଇନଲାଇନ ଲେବଲରେ ସ୍ପଷ୍ଟ କରାଯିବ ଉଚିତ୍।", "craneFly0SemanticLabel": "ଏଭର୍‌ଗ୍ରୀନ୍ ଗଛ ଓ ଆଖପାଖରେ ବରଫ ପଡ଼ିଥିବା ଦୃଶ୍ୟ", "craneFly1SemanticLabel": "ଏକ ପଡ଼ିଆରେ ଥିବା ଟେଣ୍ଟ", "craneFly2SemanticLabel": "ବରଫ ପାହାଡ଼ ସାମ୍ନାରେ ପ୍ରାର୍ଥନା ପାଇଁ ପତାକା", "craneFly6SemanticLabel": "ପାଲାସିଓ ଡେ ବେଲାସ୍ ଆର୍ଟସ୍‌ର ଉପର ଦୃଶ୍ୟ", "rallySeeAllAccounts": "ସବୁ ଆକାଉଣ୍ଟ ଦେଖନ୍ତୁ", "rallyBillAmount": "{billName} ପାଇଁ {amount} ପେମେଣ୍ଟ କରିବାର ଧାର୍ଯ୍ୟ ସମୟ {date} ଅଟେ।", "shrineTooltipCloseCart": "କାର୍ଟ ବନ୍ଦ କରନ୍ତୁ", "shrineTooltipCloseMenu": "ମେନୁ ବନ୍ଦ କରନ୍ତୁ", "shrineTooltipOpenMenu": "ମେନୁ ଖୋଲନ୍ତୁ", "shrineTooltipSettings": "ସେଟିଂସ୍", "shrineTooltipSearch": "Search", "demoTabsDescription": "ଟାବ୍, ଭିନ୍ନ ସ୍କ୍ରିନ୍, ଡାଟା ସେଟ୍ ଏବଂ ଅନ୍ୟ ଇଣ୍ଟରାକ୍ସନ୍‌ଗୁଡ଼ିକରେ ବିଷୟବସ୍ତୁ ସଂଗଠିତ କରେ।", "demoTabsSubtitle": "ସ୍ୱତନ୍ତ୍ରଭାବରେ ସ୍କ୍ରୋଲ୍ ଯୋଗ୍ୟ ଭ୍ୟୁଗୁଡ଼ିକର ଟାବ୍", "demoTabsTitle": "ଟାବ୍‌ଗୁଡ଼ିକ", "rallyBudgetAmount": "{budgetName} ବଜେଟ୍‌ରେ {amountTotal}ରୁ {amountUsed} ବ୍ୟବହୃତ ହୋଇଛି, {amountLeft} ବାକି ଅଛି", "shrineTooltipRemoveItem": "ଆଇଟମ୍ କାଢ଼ି ଦିଅନ୍ତୁ", "rallyAccountAmount": "{accountName}ଙ୍କ ଆକାଉଣ୍ଟ ନମ୍ବର {accountNumber}ରେ {amount} ଜମା କରାଯାଇଛି।", "rallySeeAllBudgets": "ସବୁ ବଜେଟ୍ ଦେଖନ୍ତୁ", "rallySeeAllBills": "ସବୁ ବିଲ୍ ଦେଖନ୍ତୁ", "craneFormDate": "ତାରିଖ ଚୟନ କରନ୍ତୁ", "craneFormOrigin": "ଆରମ୍ଭ ସ୍ଥଳୀ ବାଛନ୍ତୁ", "craneFly2": "ଖୁମ୍ୱୁ ଉପତ୍ୟକା, ନେପାଳ", "craneFly3": "ମାଚୁ ପିଚୁ, ପେରୁ", "craneFly4": "ମାଲେ, ମାଳଦ୍ୱୀପ", "craneFly5": "ଭିଜ୍‍ନାଉ, ସ୍ଵିଜର୍‌ଲ୍ୟାଣ୍ଡ", "craneFly6": "ମେକ୍ସିକୋ ସହର, ମେକ୍ସିକୋ", "craneFly7": "ମାଉଣ୍ଟ ରସ୍‌ମୋର୍, ଯୁକ୍ତରାଷ୍ଟ୍ର ଆମେରିକା", "settingsTextDirectionLocaleBased": "ଲୋକେଲର ଆଧାରରେ", "craneFly9": "ହାଭାନା, କ୍ୟୁବା", "craneFly10": "କାଏରୋ, ଇଜିପ୍ଟ", "craneFly11": "ଲିସବନ୍, ପର୍ତ୍ତୁଗାଲ୍", "craneFly12": "ନାପା, ଯୁକ୍ତରାଷ୍ଟ୍ର ଆମେରିକା", "craneFly13": "ବାଲି, ଇଣ୍ଡୋନେସିଆ", "craneSleep0": "ମାଲେ, ମାଳଦ୍ୱୀପ", "craneSleep1": "ଅସ୍ପେନ୍, ଯୁକ୍ତରାଷ୍ଟ୍ର ଆମେରିକା", "craneSleep2": "ମାଚୁ ପିଚୁ, ପେରୁ", "demoCupertinoSegmentedControlTitle": "ସେଗମେଣ୍ଟେଡ୍ କଣ୍ଟ୍ରୋଲ୍", "craneSleep4": "ଭିଜ୍‍ନାଉ, ସ୍ଵିଜର୍‌ଲ୍ୟାଣ୍ଡ", "craneSleep5": "ବିଗ୍ ସୁର୍, ଯୁକ୍ତରାଷ୍ଟ୍ର ଆମେରିକା", "craneSleep6": "ନାପା, ଯୁକ୍ତରାଷ୍ଟ୍ର ଆମେରିକା", "craneSleep7": "ପୋର୍ତୋ, ପର୍ତ୍ତୁଗାଲ୍", "craneSleep8": "ଟ୍ୟୁଲମ୍, ମେକ୍ସିକୋ", "craneEat5": "ସିଓଲ୍, ଦକ୍ଷିଣ କୋରିଆ", "demoChipTitle": "ଚିପ୍ସ", "demoChipSubtitle": "ସଂକ୍ଷିପ୍ତ ଉପାଦାନଗୁଡ଼ିକ ଯାହା ଏକ ଇନ୍‍ପୁଟ୍, ବିଶେଷତା କିମ୍ବା କାର୍ଯ୍ୟକୁ ପ୍ରତିନିଧିତ୍ୱ କରେ", "demoActionChipTitle": "ଆକ୍ସନ୍ ଚିପ୍", "demoActionChipDescription": "ଆକ୍ସନ୍ ଚିପ୍ସ, ବିକଳ୍ପଗୁଡ଼ିକର ଏକ ସେଟ୍ ଯାହା ପ୍ରାଥମିକ ବିଷୟବସ୍ତୁ ସମ୍ପର୍କିତ କାର୍ଯ୍ୟଗୁଡ଼ିକୁ ଟ୍ରିଗର୍ କରିଥାଏ। ଏକ UIରେ ଆକ୍ସନ୍ ଚିପ୍ସ ଗତିଶୀଳ ଏବଂ ପ୍ରାସଙ୍ଗିକ ଭାବରେ ଦେଖାଯିବା ଉଚିତ।", "demoChoiceChipTitle": "ଚଏସ୍ ଚିପ୍", "demoChoiceChipDescription": "ଚଏସ୍ ଚିପ୍ସ, କୌଣସି ସେଟ୍‍ରୁ ଏକକ ପସନ୍ଦର ପ୍ରତିନିଧିତ୍ୱ କରିଥାଏ। ଚଏସ୍ ଚିପ୍ସରେ ସମ୍ପର୍କିତ ବର୍ଣ୍ଣନାତ୍ମକ ଟେକ୍ସଟ୍ କିମ୍ବା ବର୍ଗଗୁଡ଼ିକ ଥାଏ।", "demoFilterChipTitle": "ଫିଲ୍ଟର୍ ଚିପ୍", "demoFilterChipDescription": "ଫିଲ୍ଟର୍ ଚିପ୍ସ, ବିଷୟବସ୍ତୁକୁ ଫିଲ୍ଟର୍ କରିବାର ଉପାୟ ଭାବରେ ଟ୍ୟାଗ୍ କିମ୍ବା ବର୍ଣ୍ଣନାତ୍ମକ ଶବ୍ଦଗୁଡ଼ିକୁ ବ୍ୟବହାର କରିଥାଏ।", "demoInputChipTitle": "ଚିପ୍ ଇନ୍‍ପୁଟ୍ କରନ୍ତୁ", "demoInputChipDescription": "ଇନ୍‍ପୁଟ୍ ଚିପ୍ସ, ଏକ ଏଣ୍ଟିଟି (ବ୍ୟକ୍ତି, ସ୍ଥାନ କିମ୍ବା ଜିନିଷ) କିମ୍ବା ବାର୍ତ୍ତାଳାପ ଟେକ୍ସଟ୍ ପରି ଏକ ଜଟିଳ ସୂଚନାର ଅଂଶକୁ ସଂକ୍ଷିପ୍ତ ଆକାରରେ ପ୍ରତିନିଧିତ୍ୱ କରେ।", "craneSleep9": "ଲିସବନ୍, ପର୍ତ୍ତୁଗାଲ୍", "craneEat10": "ଲିସବନ୍, ପର୍ତ୍ତୁଗାଲ୍", "demoCupertinoSegmentedControlDescription": "କେତେଗୁଡ଼ିଏ ଭିନ୍ନ ସ୍ୱତନ୍ତ୍ର ବିକଳ୍ପ ମଧ୍ୟରୁ ଗୋଟିଏ ନମ୍ବରକୁ ଚୟନ କରିବା ପାଇଁ ଏହା ବ୍ୟବହାର କରାଯାଏ। ଯେତେବେଳେ ବର୍ଗୀକୃତ ନିୟନ୍ତ୍ରଣରୁ ଗୋଟିଏ ବିକଳ୍ପ ଚୟନ କରାଯାଏ, ସେତେବେଳେ ସେହି ବର୍ଗୀକୃତ ନିୟନ୍ତ୍ରଣରୁ ଅନ୍ୟ ବିକଳ୍ପ ଚୟନ କରିହେବ ନାହିଁ।", "chipTurnOnLights": "ଲାଇଟ୍ ଚାଲୁ କରନ୍ତୁ", "chipSmall": "ଛୋଟ", "chipMedium": "ମଧ୍ୟମ", "chipLarge": "ବଡ଼", "chipElevator": "ଏଲିଭେଟର୍", "chipWasher": "ୱାସର୍", "chipFireplace": "ଫାୟାରପ୍ଲେସ୍", "chipBiking": "ବାଇକ୍ ଚଲାଇବା", "craneFormDiners": "ଭୋଜନକାରୀ ବ୍ୟକ୍ତିମାନେ", "rallyAlertsMessageUnassignedTransactions": "{count,plural,=1{ଆପଣଙ୍କର କରରେ ସମ୍ଭାବ୍ୟ ଛାଡ଼କୁ ବଢ଼ାନ୍ତୁ! 1ଟି ଆସାଇନ୍ କରାଯାଇନଥିବା ଟ୍ରାଞ୍ଜାକ୍ସନ୍‌ରେ ବର୍ଗଗୁଡ଼ିକୁ ଆସାଇନ୍ କରନ୍ତୁ।}other{ଆପଣଙ୍କର କରରେ ସମ୍ଭାବ୍ୟ ଛାଡ଼କୁ ବଢ଼ାନ୍ତୁ! {count}ଟି ଆସାଇନ୍ କରାଯାଇନଥିବା ଟ୍ରାଞ୍ଜାକ୍ସନ୍‌ରେ ବର୍ଗଗୁଡ଼ିକୁ ଆସାଇନ୍ କରନ୍ତୁ।}}", "craneFormTime": "ସମୟ ଚୟନ କରନ୍ତୁ", "craneFormLocation": "ଲୋକେସନ୍ ଚୟନ କରନ୍ତୁ", "craneFormTravelers": "ଭ୍ରମଣକାରୀମାନେ", "craneEat8": "ଆଟଲାଣ୍ଟା, ଯୁକ୍ତରାଷ୍ଟ୍ର ଆମେରିକା", "craneFormDestination": "ଗନ୍ତବ୍ୟସ୍ଥଳ ବାଛନ୍ତୁ", "craneFormDates": "ତାରିଖଗୁଡ଼ିକୁ ଚୟନ କରନ୍ତୁ", "craneFly": "ଫ୍ଲାଏ ମୋଡ୍", "craneSleep": "ସ୍ଲିପ୍ ମୋଡ୍", "craneEat": "ଖାଇବାର ସ୍ଥାନଗୁଡ଼ିକ", "craneFlySubhead": "ଗନ୍ତବ୍ୟସ୍ଥଳ ଅନୁଯାୟୀ ଫ୍ଲାଇଟ୍‍ଗୁଡ଼ିକ ଏକ୍ସପ୍ଲୋର୍ କରନ୍ତୁ", "craneSleepSubhead": "ଗନ୍ତବ୍ୟସ୍ଥଳ ଅନୁଯାୟୀ ପ୍ରୋପର୍ଟି ଏକ୍ସପ୍ଲୋର୍ କରନ୍ତୁ", "craneEatSubhead": "ଗନ୍ତବ୍ୟସ୍ଥଳ ଅନୁଯାୟୀ ରେଷ୍ଟୁରାଣ୍ଟଗୁଡ଼ିକ ଏକ୍ସପ୍ଲୋର୍ କରନ୍ତୁ", "craneFlyStops": "{numberOfStops,plural,=0{ନନ୍‌ଷ୍ଟପ୍}=1{1ଟି ରହଣି}other{{numberOfStops}ଟି ରହଣି}}", "craneSleepProperties": "{totalProperties,plural,=0{କୌଣସି ପ୍ରୋପର୍ଟି ଉପଲବ୍ଧ ନାହିଁ}=1{1ଟି ଉପଲବ୍ଧ ଥିବା ପ୍ରୋପର୍ଟି}other{{totalProperties}ଟି ଉପଲବ୍ଧ ଥିବା ପ୍ରୋପର୍ଟି}}", "craneEatRestaurants": "{totalRestaurants,plural,=0{କୌଣସି ରେଷ୍ଟୁରାଣ୍ଟ ନାହିଁ}=1{1ଟି ରେଷ୍ଟୁରାଣ୍ଟ}other{{totalRestaurants}ଟି ରେଷ୍ଟୁରାଣ୍ଟ}}", "craneFly0": "ଅସ୍ପେନ୍, ଯୁକ୍ତରାଷ୍ଟ୍ର ଆମେରିକା", "demoCupertinoSegmentedControlSubtitle": "iOS-ଶୈଳୀର ବର୍ଗୀକୃତ ନିୟନ୍ତ୍ରଣ", "craneSleep10": "କାଏରୋ, ଇଜିପ୍ଟ", "craneEat9": "ମାଦ୍ରିଦ୍, ସ୍ପେନ୍", "craneFly1": "ବିଗ୍ ସୁର୍, ଯୁକ୍ତରାଷ୍ଟ୍ର ଆମେରିକା", "craneEat7": "ନ୍ୟାସ୍‌ଭ୍ୟାଲି, ଯୁକ୍ତରାଷ୍ଟ୍ର ଆମେରିକା", "craneEat6": "ସିଟଲ୍, ଯୁକ୍ତରାଷ୍ଟ୍ର ଆମେରିକା", "craneFly8": "ସିଙ୍ଗାପୁର", "craneEat4": "ପ୍ୟାରିସ୍, ଫ୍ରାନ୍ସ", "craneEat3": "ପୋର୍ଟଲ୍ୟାଣ୍ଡ, ଯୁକ୍ତରାଷ୍ଟ୍ର ଆମେରିକା", "craneEat2": "କୋର୍ଡୋବା, ଆର୍ଜେଣ୍ଟିନା", "craneEat1": "ଡଲାସ୍, ଯୁକ୍ତରାଷ୍ଟ୍ର ଆମେରିକା", "craneEat0": "ନେପଲସ୍, ଇଟାଲୀ", "craneSleep11": "ତାଇପେଇ, ତାଇୱାନ୍", "craneSleep3": "ହାଭାନା, କ୍ୟୁବା", "shrineLogoutButtonCaption": "ଲଗଆଉଟ୍", "rallyTitleBills": "ବିଲ୍‌ଗୁଡ଼ିକ", "rallyTitleAccounts": "ଆକାଉଣ୍ଟଗୁଡ଼ିକ", "shrineProductVagabondSack": "ଭାଗାବଣ୍ଡ ସାକ୍", "rallyAccountDetailDataInterestYtd": "ସୁଧ YTD", "shrineProductWhitneyBelt": "ହ୍ୱିଟ୍‌ନେ ବେଲ୍ଟ", "shrineProductGardenStrand": "ଗାର୍ଡେନ୍ ଷ୍ଟ୍ରାଣ୍ଡ", "shrineProductStrutEarrings": "ଷ୍ଟ୍ରଟ୍ ଇଅର୍‌ରିଂ", "shrineProductVarsitySocks": "ଭାର୍ସିଟୀ ସକ୍ସ", "shrineProductWeaveKeyring": "ୱେଭ୍ କୀ'ରିଂ", "shrineProductGatsbyHat": "ଗେଟ୍ସବାଏ ହେଟ୍", "shrineProductShrugBag": "ସ୍ରଗ୍ ବ୍ୟାଗ୍", "shrineProductGiltDeskTrio": "ଗ୍ଲିଟ୍ ଡେସ୍କ ଟ୍ରିଓ", "shrineProductCopperWireRack": "ତମ୍ବା ୱାୟାର୍ ରେକ୍", "shrineProductSootheCeramicSet": "ସୁଦ୍ ସେରାମିକ୍ ସେଟ୍", "shrineProductHurrahsTeaSet": "ହୁରାହ୍'ର ଟି ସେଟ୍", "shrineProductBlueStoneMug": "ବ୍ଲୁ ଷ୍ଟୋନ୍ ମଗ୍", "shrineProductRainwaterTray": "ରେନ୍‌ୱାଟର୍ ଟ୍ରେ", "shrineProductChambrayNapkins": "ଚାମ୍ବରେ ନାପ୍‌କିନ୍ସ", "shrineProductSucculentPlanters": "ସକ୍ୟୁଲେଣ୍ଟ ପ୍ଲାଣ୍ଟର୍ସ", "shrineProductQuartetTable": "କ୍ୱାର୍ଟେଟ୍ ଟେବଲ୍", "shrineProductKitchenQuattro": "କିଚେନ୍ କ୍ୱାଟ୍ରୋ", "shrineProductClaySweater": "କ୍ଲେ ସ୍ୱେଟର୍", "shrineProductSeaTunic": "ସି ଟ୍ୟୁନିକ୍", "shrineProductPlasterTunic": "ପ୍ଲାଷ୍ଟର୍ ଟ୍ୟୁନିକ୍", "rallyBudgetCategoryRestaurants": "ରେଷ୍ଟୁରାଣ୍ଟଗୁଡ଼ିକ", "shrineProductChambrayShirt": "ଚାମ୍ବରେ ସାର୍ଟ", "shrineProductSeabreezeSweater": "ସିବ୍ରିଜ୍ ସ୍ୱେଟର୍", "shrineProductGentryJacket": "ଜେଣ୍ଟ୍ରି ଜ୍ୟାକେଟ୍", "shrineProductNavyTrousers": "ନେଭି ଟ୍ରାଉଜର୍", "shrineProductWalterHenleyWhite": "ୱାଲ୍ଟର୍ ହେନ୍‌ଲି (ଧଳା)", "shrineProductSurfAndPerfShirt": "ସର୍ଫ ଏବଂ ପର୍ଫ ସାର୍ଟ", "shrineProductGingerScarf": "ଜିଞ୍ଜର୍ ସ୍କାର୍ଫ", "shrineProductRamonaCrossover": "ରାମୋନା କ୍ରସ୍‌ଓଭର୍", "shrineProductClassicWhiteCollar": "କ୍ଲାସିକ୍ ହ୍ୱାଇଟ୍ କୋଲାର୍", "shrineProductSunshirtDress": "ସନ୍‌ସାର୍ଟ ଡ୍ରେସ୍", "rallyAccountDetailDataInterestRate": "ସୁଧ ଦର", "rallyAccountDetailDataAnnualPercentageYield": "ବାର୍ଷିକ ପ୍ରତିଶତ ୟେଲ୍ଡ", "rallyAccountDataVacation": "ଛୁଟି", "shrineProductFineLinesTee": "ଫାଇନ୍ ଲାଇନ୍ ଟି", "rallyAccountDataHomeSavings": "ହୋମ୍ ସେଭିଂସ୍", "rallyAccountDataChecking": "ଯାଞ୍ଚ କରାଯାଉଛି", "rallyAccountDetailDataInterestPaidLastYear": "ଗତ ବର୍ଷ ଦେଇଥିବା ସୁଧ", "rallyAccountDetailDataNextStatement": "ପରବର୍ତ୍ତୀ ଷ୍ଟେଟ୍‍ମେଣ୍ଟ", "rallyAccountDetailDataAccountOwner": "ଆକାଉଣ୍ଟ ମାଲିକ", "rallyBudgetCategoryCoffeeShops": "କଫି ଦୋକାନ", "rallyBudgetCategoryGroceries": "ଗ୍ରୋସେରୀ", "shrineProductCeriseScallopTee": "ସିରିଜ୍ ସ୍କଲୋପ୍ ଟି", "rallyBudgetCategoryClothing": "କପଡ଼ା", "rallySettingsManageAccounts": "ଆକାଉଣ୍ଟଗୁଡ଼ିକୁ ପରିଚାଳନା କରନ୍ତୁ", "rallyAccountDataCarSavings": "କାର୍ ସେଭିଂସ୍", "rallySettingsTaxDocuments": "ଟେକ୍ସ ଡକ୍ୟୁମେଣ୍ଟ", "rallySettingsPasscodeAndTouchId": "ପାସ୍‌କୋଡ୍ ଏବଂ ଟଚ୍ ID", "rallySettingsNotifications": "ବିଜ୍ଞପ୍ତିଗୁଡ଼ିକ", "rallySettingsPersonalInformation": "ବ୍ୟକ୍ତିଗତ ସୂଚନା", "rallySettingsPaperlessSettings": "ପେପର୍‌ଲେସ୍ ସେଟିଂସ୍", "rallySettingsFindAtms": "ATM ଖୋଜନ୍ତୁ", "rallySettingsHelp": "ସାହାଯ୍ୟ", "rallySettingsSignOut": "ସାଇନ୍-ଆଉଟ୍ କରନ୍ତୁ", "rallyAccountTotal": "ମୋଟ", "rallyBillsDue": "ଧାର୍ଯ୍ୟ ସମୟ", "rallyBudgetLeft": "ଅବଶିଷ୍ଟ ଅଛି", "rallyAccounts": "ଆକାଉଣ୍ଟଗୁଡ଼ିକ", "rallyBills": "ବିଲ୍‌ଗୁଡ଼ିକ", "rallyBudgets": "ବଜେଟ୍", "rallyAlerts": "ଆଲର୍ଟଗୁଡ଼ିକ", "rallySeeAll": "ସବୁ ଦେଖନ୍ତୁ", "rallyFinanceLeft": "ଅବଶିଷ୍ଟ ରାଶି", "rallyTitleOverview": "ସାରାଂଶ", "shrineProductShoulderRollsTee": "ସୋଲ୍‌ଡର୍ ରୋଲ୍ସ ଟି", "shrineNextButtonCaption": "ପରବର୍ତ୍ତୀ", "rallyTitleBudgets": "ବଜେଟ୍", "rallyTitleSettings": "ସେଟିଂସ୍", "rallyLoginLoginToRally": "Rallyରେ ଲଗ୍ ଇନ୍ କରନ୍ତୁ", "rallyLoginNoAccount": "କୌଣସି AdSense ଆକାଉଣ୍ଟ ନାହିଁ?", "rallyLoginSignUp": "ସାଇନ୍ ଅପ୍ କରନ୍ତୁ", "rallyLoginUsername": "ଉପଯୋଗକର୍ତ୍ତାଙ୍କ ନାମ", "rallyLoginPassword": "ପାସ୍‌ୱାର୍ଡ", "rallyLoginLabelLogin": "ଲଗ୍ଇନ୍", "rallyLoginRememberMe": "ମୋତେ ମନେରଖନ୍ତୁ", "rallyLoginButtonLogin": "ଲଗ୍ ଇନ୍ କରନ୍ତୁ", "rallyAlertsMessageHeadsUpShopping": "ହେଡ୍ସ ଅପ, ଆପଣ ଏହି ମାସ ପାଇଁ ଆପଣଙ୍କ ସପିଂ ବଜେଟର {percent} ବ୍ୟବହାର କରିଛନ୍ତି।", "rallyAlertsMessageSpentOnRestaurants": "ଆପଣ ଏହି ସପ୍ତାହରେ ରେଷ୍ଟୁରାଣ୍ଟଗୁଡ଼ିକରେ {amount} ଖର୍ଚ୍ଚ କରିଛନ୍ତି।", "rallyAlertsMessageATMFees": "ଆପଣ ଏହି ମାସରେ ATM ଫିରେ {amount} ଖର୍ଚ୍ଚ କରିଛନ୍ତି", "rallyAlertsMessageCheckingAccount": "ବଢ଼ିଆ କାମ! ଗତ ମାସଠାରୁ ଆପଣଙ୍କ ଆକାଉଣ୍ଟର ଚେକିଂ {percent} ବଢ଼ିଛି।", "shrineMenuCaption": "ମେନୁ", "shrineCategoryNameAll": "ସମସ୍ତ", "shrineCategoryNameAccessories": "ଆକସେସୋରୀ", "shrineCategoryNameClothing": "ପୋଷାକ", "shrineCategoryNameHome": "ଘର", "shrineLoginUsernameLabel": "ଉପଯୋଗକର୍ତ୍ତାଙ୍କ ନାମ", "shrineLoginPasswordLabel": "ପାସ୍‌ୱାର୍ଡ", "shrineCancelButtonCaption": "ବାତିଲ୍ କରନ୍ତୁ", "shrineCartTaxCaption": "କର:", "shrineCartPageCaption": "କାର୍ଟ", "shrineProductQuantity": "ପରିମାଣ: {quantity}", "shrineProductPrice": "x {price}", "shrineCartItemCount": "{quantity,plural,=0{କୌଣସି ଆଇଟମ୍ ନାହିଁ}=1{1ଟି ଆଇଟମ୍}other{{quantity}ଟି ଆଇଟମ୍}}", "shrineCartClearButtonCaption": "କାର୍ଟ ଖାଲି କରନ୍ତୁ", "shrineCartTotalCaption": "ମୋଟ", "shrineCartSubtotalCaption": "ସର୍ବମୋଟ:", "shrineCartShippingCaption": "ସିପିଂ:", "shrineProductGreySlouchTank": "ଗ୍ରେ ସ୍ଲାଉଚ୍ ଟାଙ୍କ", "shrineProductStellaSunglasses": "ଷ୍ଟେଲା ସନ୍‌ଗ୍ଲାସ୍", "shrineProductWhitePinstripeShirt": "ଧଳା ପିନ୍‌ଷ୍ଟ୍ରିପ୍ ସାର୍ଟ", "demoTextFieldWhereCanWeReachYou": "ଆମେ କେଉଁଥିରେ ଆପଣଙ୍କୁ ସମ୍ପର୍କ କରିବୁ?", "settingsTextDirectionLTR": "LTR", "settingsTextScalingLarge": "ବଡ଼", "demoBottomSheetHeader": "ହେଡର୍", "demoBottomSheetItem": "ଆଇଟମ୍ {value}", "demoBottomTextFieldsTitle": "ଟେକ୍ସଟ୍ ଫିଲ୍ଡ", "demoTextFieldTitle": "ଟେକ୍ସଟ୍ ଫିଲ୍ଡ", "demoTextFieldSubtitle": "ଏଡିଟ୍ ଯୋଗ୍ୟ ଟେକ୍ସଟ୍ ଏବଂ ସଂଖ୍ୟାଗୁଡ଼ିକର ସିଙ୍ଗଲ୍ ଲାଇନ୍", "demoTextFieldDescription": "ଟେକ୍ସଟ୍ ଫିଲ୍ଡ ଉପଯୋଗକର୍ତ୍ତାଙ୍କୁ ଏକ UIରେ ଟେକ୍ସଟ୍ ଲେଖିବାକୁ ଅନୁମତି ଦେଇଥାଏ। ସେମାନେ ସାଧାରଣତଃ ଫର୍ମ ଏବଂ ଡାଇଲଗ୍‌ରେ ଦେଖାଯାଆନ୍ତି।", "demoTextFieldShowPasswordLabel": "ପାସ୍‍ୱାର୍ଡ ଦେଖାନ୍ତୁ", "demoTextFieldHidePasswordLabel": "ପାସ୍‍ୱାର୍ଡ ଲୁଚାନ୍ତୁ", "demoTextFieldFormErrors": "ଦାଖଲ କରିବା ପୂର୍ବରୁ ଦୟାକରି ଲାଲ ତ୍ରୁଟିଗୁଡ଼କୁ ସମାଧାନ କରନ୍ତୁ।", "demoTextFieldNameRequired": "ନାମ ଆବଶ୍ୟକ ଅଟେ।", "demoTextFieldOnlyAlphabeticalChars": "ଦୟାକରି କେବଳ ଅକ୍ଷରରେ ଲେଖନ୍ତୁ।", "demoTextFieldEnterUSPhoneNumber": "(###) ###-#### - ଏକ US ଫୋନ୍ ନମ୍ବର ଲେଖନ୍ତୁ।", "demoTextFieldEnterPassword": "ଦୟାକରି ଗୋଟିଏ ପାସ୍‌ୱାର୍ଡ ଲେଖନ୍ତୁ।", "demoTextFieldPasswordsDoNotMatch": "ପାସ୍‌ୱାର୍ଡଗୁଡ଼ିକ ମେଳ ହେଉନାହିଁ", "demoTextFieldWhatDoPeopleCallYou": "ଲୋକ ଆପଣଙ୍କୁ କ'ଣ ଡାକୁଛନ୍ତି?", "demoTextFieldNameField": "ନାମ*", "demoBottomSheetButtonText": "ତଳ ସିଟ୍ ଦେଖାନ୍ତୁ", "demoTextFieldPhoneNumber": "ଫୋନ୍ ନମ୍ବର*", "demoBottomSheetTitle": "ତଳ ସିଟ୍", "demoTextFieldEmail": "ଇମେଲ୍", "demoTextFieldTellUsAboutYourself": "ଆପଣଙ୍କ ବିଷୟରେ ଆମକୁ କୁହନ୍ତୁ (ଉ.ଦା., ଆପଣ କ'ଣ କରନ୍ତି କିମ୍ବା ଆପଣଙ୍କ ସଉକ କ'ଣ କୁହନ୍ତୁ)", "demoTextFieldKeepItShort": "ଏହାକୁ ଛୋଟ ରଖନ୍ତୁ, ଏହା କେବଳ ଏକ ଡେମୋ ଅଟେ।", "starterAppGenericButton": "ବଟନ୍", "demoTextFieldLifeStory": "ଲାଇଫ୍ ଷ୍ଟୋରୀ", "demoTextFieldSalary": "ଦରମା", "demoTextFieldUSD": "USD", "demoTextFieldNoMoreThan": "8ରୁ ଅଧିକ ଅକ୍ଷର ନୁହେଁ", "demoTextFieldPassword": "ପାସ୍‌ୱାର୍ଡ*", "demoTextFieldRetypePassword": "ପାସ୍‍ୱାର୍ଡ ପୁଣି ଲେଖନ୍ତୁ*", "demoTextFieldSubmit": "ଦାଖଲ କରନ୍ତୁ", "demoBottomNavigationSubtitle": "କ୍ରସ୍-ଫେଡିଂ ଭ୍ୟୁ ସହ ବଟମ୍ ନାଭିଗେସନ୍", "demoBottomSheetAddLabel": "ଯୋଗ କରନ୍ତୁ", "demoBottomSheetModalDescription": "ଏକ ମୋଡାଲ୍ ବଟମ୍ ସିଟ୍ ହେଉଛି ଏକ ମେନୁ କିମ୍ବା ଏକ ଡାଇଲଗ୍‌ର ବିକଳ୍ପ ଏବଂ ଏହା ବାକି ଆପ୍ ବ୍ୟବହାର କରିବାରୁ ଉପଯୋଗକର୍ତ୍ତାଙ୍କୁ ପ୍ରତିରୋଧ କରିଥାଏ।", "demoBottomSheetModalTitle": "ମୋଡାଲ୍ ବଟମ୍ ସିଟ୍", "demoBottomSheetPersistentDescription": "ଏକ ପର୍ସିଷ୍ଟେଣ୍ଟ ବଟମ୍ ସିଟ୍ ଆପ୍‌ର ଏଭଳି ସୂଚନା ସେୟାର୍ କରେ ଯାହା ଏହାର ପ୍ରାଥମିକ ବିଷୟବସ୍ତୁର ପୂରକ ଅଟେ। ଉପଯୋଗକର୍ତ୍ତା ଆପ୍‌ର ଅନ୍ୟ ଭାଗ ବ୍ୟବହାର କରୁଥିବା ବେଳେ ଏକ ପର୍ସିଷ୍ଟାଣ୍ଟ ବଟମ୍ ସିଟ୍ ଦୃଶ୍ୟମାନ ହୋଇ ରହିବ।", "demoBottomSheetPersistentTitle": "ପର୍ସିଷ୍ଟେଣ୍ଟ ବଟମ୍ ସିଟ୍", "demoBottomSheetSubtitle": "ପର୍ସିଷ୍ଟେଣ୍ଟ ଏବଂ ମୋଡାଲ୍ ବଟମ୍ ସିଟ୍", "demoTextFieldNameHasPhoneNumber": "{name}ଙ୍କ ଫୋନ୍ ନମ୍ବର {phoneNumber} ଅଟେ", "buttonText": "ବଟନ୍", "demoTypographyDescription": "ମେଟେରିଆଲ୍ ଡିଜାଇନ୍‌ରେ ପାଇଥିବା ଭିନ୍ନ ଟାଇପୋଗ୍ରାଫିକାଲ୍ ଶୈଳୀର ସଂଜ୍ଞା।", "demoTypographySubtitle": "ସମସ୍ତ ପୂର୍ବ ନିର୍ଦ୍ଧାରିତ ଟେକ୍ସଟ୍ ଶୈଳୀ", "demoTypographyTitle": "ଟାଇପୋଗ୍ରାଫି", "demoFullscreenDialogDescription": "fullscreenDialog ବୈଶିଷ୍ଟ୍ୟ ଇନ୍‍କମିଂ ପୃଷ୍ଠାଟି ଏକ ପୂର୍ଣ୍ଣ ସ୍କ୍ରିନ୍ ମୋଡାଲ୍ ଡାଏଲଗ୍‍ ହେବ କି ନାହିଁ ତାହା ନିର୍ଦ୍ଦିଷ୍ଟ କରେ", "demoFlatButtonDescription": "ଏକ ସମତଳ ବଟନ୍ ଦବାଇଲେ କାଳିର ଛିଟିକା ପ୍ରଦର୍ଶିତ ହୁଏ, କିନ୍ତୁ ଏହା ଉପରକୁ ଉଠେ ନାହିଁ। ଟୁଲ୍‍ବାର୍‍‍ରେ, ଡାଏଲଗ୍‍‍ରେ ଏବଂ ପ୍ୟାଡିଂ ସହ ଇନ୍‍ଲାଇନ୍‍‍ରେ ସମତଳ ବଟନ୍ ବ୍ୟବହାର କରନ୍ତୁ", "demoBottomNavigationDescription": "ବଟମ୍ ନାଭିଗେସନ୍ ବାର୍ ତିନିରୁ ପାଞ୍ଚ ଦିଗରେ ସ୍କ୍ରିନ୍‌ର ତଳେ ଦେଖାଯାଏ। ପ୍ରତ୍ୟେକ ଦିଗ ଏକ ଆଇକନ୍ ଏବଂ ଏକ ବିକଳ୍ପ ଟେକ୍ସଟ୍ ସ୍ତର ଦ୍ୱାରା ପ୍ରଦର୍ଶିତ କରାଯାଇଛି। ଯେତେବେଳେ ବଟମ୍ ନାଭିଗେସନ୍ ଆଇକନ୍ ଟାପ୍ କରାଯାଏ, ସେତେବେଳେ ଉପଯୋଗକର୍ତ୍ତାଙ୍କୁ ସେହି ଆଇକନ୍ ସହ ସମ୍ବନ୍ଧିତ ଶୀର୍ଷ ସ୍ତର ନେଭିଗେସନ୍ ଦିଗକୁ ନେଇଯାଇଥାଏ।", "demoBottomNavigationSelectedLabel": "ଚୟନିତ ସ୍ତର", "demoBottomNavigationPersistentLabels": "ପର୍ସିଷ୍ଟେଣ୍ଟ ସ୍ତର", "starterAppDrawerItem": "ଆଇଟମ୍ {value}", "demoTextFieldRequiredField": "* ଆବଶ୍ୟକ ଫିଲ୍ଡକୁ ସୂଚିତ କରେ", "demoBottomNavigationTitle": "ବଟମ୍ ନାଭିଗେସନ୍", "settingsLightTheme": "ଲାଇଟ୍", "settingsTheme": "ଥିମ୍", "settingsPlatformIOS": "iOS", "settingsPlatformAndroid": "Android", "settingsTextDirectionRTL": "RTL", "settingsTextScalingHuge": "ବହୁତ ବଡ଼", "cupertinoButton": "ବଟନ୍", "settingsTextScalingNormal": "ସାଧାରଣ", "settingsTextScalingSmall": "ଛୋଟ", "settingsSystemDefault": "ସିଷ୍ଟମ୍", "settingsTitle": "ସେଟିଂସ୍", "rallyDescription": "ଏକ ବ୍ୟକ୍ତିଗତ ଫାଇନାନ୍ସ ଆପ୍", "aboutDialogDescription": "ଏହି ଆପ୍ ପାଇଁ ଉତ୍ସ କୋଡ୍ ଦେଖିବାକୁ, ଦୟାକରି {repoLink}କୁ ଯାଆନ୍ତୁ।", "bottomNavigationCommentsTab": "ମନ୍ତବ୍ୟଗୁଡ଼ିକ", "starterAppGenericBody": "ବଡି", "starterAppGenericHeadline": "ହେଡଲାଇନ", "starterAppGenericSubtitle": "ସବ୍‌ଟାଇଟଲ୍", "starterAppGenericTitle": "ଟାଇଟଲ୍", "starterAppTooltipSearch": "Search", "starterAppTooltipShare": "ସେୟାର୍‍ କରନ୍ତୁ", "starterAppTooltipFavorite": "ପସନ୍ଦ", "starterAppTooltipAdd": "ଯୋଗ କରନ୍ତୁ", "bottomNavigationCalendarTab": "କ୍ୟାଲେଣ୍ଡର୍", "starterAppDescription": "ଏକ ପ୍ରତିକ୍ରିୟାଶୀଳ ଷ୍ଟାର୍ଟର୍ ଲେଆଉଟ୍", "starterAppTitle": "ଷ୍ଟାର୍ଟର୍ ଆପ୍", "aboutFlutterSamplesRepo": "ଫ୍ଲଟର୍ ସାମ୍ପଲ୍ ଗିଥୁବ୍ ରେପୋ", "bottomNavigationContentPlaceholder": "{title} ଟାବ୍ ପାଇଁ ପ୍ଲେସ୍‌ହୋଲ୍ଡର୍", "bottomNavigationCameraTab": "କ୍ୟାମେରା", "bottomNavigationAlarmTab": "ଆଲାରାମ୍", "bottomNavigationAccountTab": "ଆକାଉଣ୍ଟ", "demoTextFieldYourEmailAddress": "ଆପଣଙ୍କର ଇମେଲ୍ ଠିକଣା", "demoToggleButtonDescription": "ସମ୍ବନ୍ଧିତ ବିକଳ୍ପଗୁଡ଼ିକ ଗୋଷ୍ଠୀଭୁକ୍ତ କରିବା ପାଇଁ ଟୋଗଲ୍ ବଟନ୍‍ଗୁଡ଼ିକ ବ୍ୟବହାର କରାଯାଏ। ସମ୍ବନ୍ଧିତ ଟୋଗଲ୍ ବଟନ୍‍ଗୁଡ଼ିକର ଗୋଷ୍ଠୀଗୁଡ଼ିକୁ ଗୁରୁତ୍ୱ ଦେବା ପାଇଁ, ଗୋଷ୍ଠୀ ସମାନ କଣ୍ଟେନର୍ ସେୟାର୍ କରିବା ଉଚିତ", "colorsGrey": "ଧୂସର", "colorsBrown": "ଧୂସର", "colorsDeepOrange": "ଗାଢ଼ କମଳା", "colorsOrange": "କମଳା", "colorsAmber": "ଅମ୍ବର୍", "colorsYellow": "ହଳଦିଆ", "colorsLime": "ଲାଇମ୍", "colorsLightGreen": "ହାଲୁକା ସବୁଜ", "colorsGreen": "ସବୁଜ", "homeHeaderGallery": "ଗ୍ୟାଲେରୀ", "homeHeaderCategories": "ବର୍ଗଗୁଡ଼ିକ", "shrineDescription": "ଏକ ଫେସନେ‌ବଲ୍ ରିଟେଲ୍ ଆପ୍", "craneDescription": "ଏକ ବ୍ୟକ୍ତିଗତକୃତ ଟ୍ରାଭେଲ୍ ଆପ୍", "homeCategoryReference": "ଷ୍ଟାଇଲ୍ସ ଓ ଅନ୍ୟ", "demoInvalidURL": "URL ଦେଖାଯାଇପାରିଲା ନାହିଁ:", "demoOptionsTooltip": "ବିକଳ୍ପଗୁଡ଼ିକ", "demoInfoTooltip": "ସୂଚନା", "demoCodeTooltip": "ଡେମୋ କୋଡ୍", "demoDocumentationTooltip": "API ଡକ୍ୟୁମେଣ୍ଟେସନ୍", "demoFullscreenTooltip": "ପୂର୍ଣ୍ଣ ସ୍କ୍ରିନ୍", "settingsTextScaling": "ଟେକ୍ସଟ୍ ସ୍କେଲିଂ", "settingsTextDirection": "ଟେକ୍ସଟ୍ ଦିଗ", "settingsLocale": "ସ୍ଥାନ", "settingsPlatformMechanics": "ପ୍ଲାଟଫର୍ମ ମେକାନିକ୍", "settingsDarkTheme": "ଗାଢ଼", "settingsSlowMotion": "ସ୍ଲୋ ମୋଶନ୍", "settingsAbout": "ଫ୍ଲଟର୍ ଗ୍ୟାଲେରୀ ବିଷୟରେ", "settingsFeedback": "ମତାମତ ପଠାନ୍ତୁ", "settingsAttribution": "ଲଣ୍ଡନ୍‌ରେ TOASTER ଦ୍ୱାରା ଡିଜାଇନ୍ କରାଯାଇଛି", "demoButtonTitle": "ବଟନ୍‍ଗୁଡ଼ିକ", "demoButtonSubtitle": "ଟେକ୍ସଟ୍, ଏଲିଭେଟ୍ ହୋଇଥିବା, ଆଉଟଲାଇନ୍ ହୋଇଥିବା ଓ ଆହୁରି ଅନେକ କିଛି", "demoFlatButtonTitle": "ସମତଳ ବଟନ୍", "demoRaisedButtonDescription": "ଉଠିଥିବା ବଟନ୍‍ଗୁଡ଼ିକ ପ୍ରାୟ ସମତଳ ଲେଆଉଟ୍‍ଗୁଡ଼ିକୁ ଆକାର ଦେଇଥାଏ। ସେଗୁଡ଼ିକ ବ୍ୟସ୍ତ କିମ୍ବା ଚଉଡ଼ା ଜାଗାଗୁଡ଼ିକରେ ଫଙ୍କସନ୍‍ଗୁଡ଼ିକୁ ଗୁରୁତ୍ୱ ଦେଇଥାଏ।", "demoRaisedButtonTitle": "ଉଠିଥିବା ବଟନ୍", "demoOutlineButtonTitle": "ଆଉଟ୍‍ଲାଇନ୍ ବଟନ୍", "demoOutlineButtonDescription": "ଆଉଟ୍‍ଲାଇନ୍ ବଟନ୍‍ଗୁଡ଼ିକ ଅସ୍ୱଚ୍ଛ ହୋଇଥାଏ ଏବଂ ଦବାଇଲେ ଉପରକୁ ଉଠିଯାଏ। ଏକ ଇଚ୍ଛାଧୀନ, ଦ୍ୱିତୀୟ କାର୍ଯ୍ୟକୁ ସୂଚିତ କରିବା ପାଇଁ ସେଗୁଡ଼ିକୁ ଅନେକ ସମୟରେ ଉଠିଥିବା ବଟନ୍‍ଗୁଡ଼ିକ ସହ ପେୟର୍ କରାଯାଇଥାଏ।", "demoToggleButtonTitle": "ଟୋଗଲ୍ ବଟନ୍‍ଗୁଡ଼ିକ", "colorsTeal": "ଟିଲ୍", "demoFloatingButtonTitle": "ଫ୍ଲୋଟିଂ ଆକ୍ସନ୍ ବଟନ୍", "demoFloatingButtonDescription": "ଏକ ଫ୍ଲୋଟିଂ କାର୍ଯ୍ୟ ବଟନ୍ ହେଉଛି ଏକ ବୃତ୍ତାକାର ଆଇକନ୍ ବଟନ୍ ଯାହା ଆପ୍ଲିକେସନ୍‍‍ରେ କୌଣସି ପ୍ରାଥମିକ କାର୍ଯ୍ୟକୁ ପ୍ରଚାର କରିବା ପାଇଁ ବିଷୟବସ୍ତୁ ଉପରେ ରହେ।", "demoDialogTitle": "ଡାଏଲଗ୍‍ଗୁଡ଼ିକ", "demoDialogSubtitle": "ସରଳ, ଆଲର୍ଟ ଏବଂ ପୂର୍ଣ୍ଣ ସ୍କ୍ରିନ୍", "demoAlertDialogTitle": "ଆଲର୍ଟ", "demoAlertDialogDescription": "ଏକ ଆଲର୍ଟ ଡାଏଲଗ୍ ଉପଯୋଗକର୍ତ୍ତାଙ୍କୁ ସ୍ୱୀକୃତି ଆବଶ୍ୟକ କରୁଥିବା ପରିସ୍ଥିତି ବିଷୟରେ ସୂଚନା ଦିଏ। ଆଲର୍ଟ ଡାଏଲଗ୍‍‍ରେ ଏକ ଇଚ୍ଛାଧୀନ ଟାଇଟେଲ୍ ଏବଂ କାର୍ଯ୍ୟଗୁଡ଼ିକର ଏକ ଇଚ୍ଛାଧୀନ ତାଲିକା ଥାଏ।", "demoAlertTitleDialogTitle": "ଟାଇଟେଲ୍ ସହ ଆଲର୍ଟ", "demoSimpleDialogTitle": "ସରଳ", "demoSimpleDialogDescription": "ଏକ ସରଳ ଡାଏଲଗ୍ ଉପଯୋଗକର୍ତ୍ତାଙ୍କୁ ବିଭିନ୍ନ ବିକଳ୍ପଗୁଡ଼ିକ ମଧ୍ୟରୁ ଏକ ପସନ୍ଦ ପ୍ରଦାନ କରେ। ଏକ ସରଳ ଡାଏଲଗ୍‍‍ରେ ଏକ ଇଚ୍ଛାଧୀନ ଟାଇଟେଲ୍ ଥାଏ ଯାହା ପସନ୍ଦଗୁଡ଼ିକ ଉପରେ ପ୍ରଦର୍ଶିତ ହୁଏ।", "demoFullscreenDialogTitle": "ପୂର୍ଣ୍ଣ ସ୍କ୍ରିନ୍", "demoCupertinoButtonsTitle": "ବଟନ୍‍ଗୁଡ଼ିକ", "demoCupertinoButtonsSubtitle": "iOS-ଶୈଳୀଋ ବଟନ୍‍ଗୁଡ଼ିକ", "demoCupertinoButtonsDescription": "ଏକ iOS-ଶୈଳୀର ବଟନ୍। ଏଥିରେ ଟେକ୍ସଟ୍ ଏବଂ/କିମ୍ବା ଅନ୍ତର୍ଭୁକ୍ତ ଅଛି ଯାହା ସ୍ପର୍ଶ କଲେ ଯାହା ଫିକା ଏବଂ ଗାଢ଼ ହୋଇଯାଏ। ଏଥିରେ ଇଚ୍ଛାଧୀନ ରୂପେ ଏକ ପୃଷ୍ଠପଟ ଥାଇପାରେ।", "demoCupertinoAlertsTitle": "ଆଲର୍ଟଗୁଡ଼ିକ", "demoCupertinoAlertsSubtitle": "iOS-ଶୈଳୀର ଆଲର୍ଟ ଡାଏଲଗ୍", "demoCupertinoAlertTitle": "ଆଲର୍ଟ", "demoCupertinoAlertDescription": "ଏକ ଆଲର୍ଟ ଡାଏଲଗ୍ ଉପଯୋଗକର୍ତ୍ତାଙ୍କୁ ସ୍ୱୀକୃତି ଆବଶ୍ୟକ କରୁଥିବା ପରିସ୍ଥିତି ବିଷୟରେ ସୂଚନା ଦିଏ। ଆଲର୍ଟ ଡାଏଲଗ୍‍‍ରେ ଏକ ଇଚ୍ଛାଧୀନ ଟାଇଟେଲ୍, ଇଚ୍ଛାଧୀନ ବିଷୟବସ୍ତୁ ଏବଂ କାର୍ଯ୍ୟଗୁଡ଼ିକର ଏକ ଇଚ୍ଛାଧୀନ ତାଲିକା ଥାଏ। ଟାଇଟେଲ୍ ବିଷୟବସ୍ତୁର ଉପରେ ଏବଂ କାର୍ଯ୍ୟଗୁଡ଼ିକ ବିଷୟବସ୍ତୁର ତଳେ ପ୍ରଦର୍ଶିତ ହୁଏ।", "demoCupertinoAlertWithTitleTitle": "ଟାଇଟେଲ୍ ସହ ଆଲର୍ଟ", "demoCupertinoAlertButtonsTitle": "ବଟନ୍‍ଗୁଡ଼ିକ ସହ ଆଲର୍ଟ", "demoCupertinoAlertButtonsOnlyTitle": "କେବଳ ଆଲର୍ଟ ବଟନ୍‍ଗୁଡ଼ିକ", "demoCupertinoActionSheetTitle": "ଆକ୍ସନ୍ ସିଟ୍", "demoCupertinoActionSheetDescription": "ଆକ୍ସନ୍ ସିଟ୍ ହେଉଛି ଆଲର୍ଟର ଏକ ନିର୍ଦ୍ଦିଷ୍ଟ ଶୈଳୀ ଯାହା ଉପଯୋଗକର୍ତ୍ତାଙ୍କ ପାଇଁ ବର୍ତ୍ତମାନର ପ୍ରସଙ୍ଗ ସମ୍ବନ୍ଧିତ ଦୁଇ କିମ୍ବା ତା'ଠାରୁ ଅଧିକ ପସନ୍ଦର ଏକ ସେଟ୍ ପ୍ରସ୍ତୁତ କରେ। ଆକ୍ସନ୍ ସିଟ୍‍‍ରେ ଏକ ଟାଇଟେଲ୍, ଏକ ଅତିରିକ୍ତ ମେସେଜ୍ କାର୍ଯ୍ୟଗୁଡ଼ିକର ଏକ ତାଲିକା ଥାଏ।", "demoColorsTitle": "ରଙ୍ଗ", "demoColorsSubtitle": "ପୂର୍ବ ନିର୍ଦ୍ଧାରିତ ସମସ୍ତ ରଙ୍ଗ", "demoColorsDescription": "ରଙ୍ଗ ଓ ରଙ୍ଗ ସ୍ୱାଚ୍ ସ୍ଥିରାଙ୍କଗୁଡ଼ିକ ଉପାଦାନ ଡିଜାଇନ୍‍ର ରଙ୍ଗ ପ୍ୟାଲେଟ୍‍ର ପ୍ରତିନିଧିତ୍ୱ କରେ।", "buttonTextEnabled": "ENABLED", "buttonTextDisabled": "DISABLED", "buttonTextCreate": "ତିଆରି କରନ୍ତୁ", "dialogSelectedOption": "ଆପଣ ଏହା ଚୟନ କରିଛନ୍ତି: \"{value}\"", "dialogDiscardTitle": "ଡ୍ରାଫ୍ଟ ଖାରଜ କରିବେ?", "dialogLocationTitle": "Googleର ଲୋକେସନ୍ ସେବା ବ୍ୟବହାର କରିବେ?", "dialogLocationDescription": "Googleକୁ ଲୋକେସନ୍ ନିର୍ଦ୍ଧାରଣ କରିବାରେ ଆପ୍ସର ସାହାଯ୍ୟ କରିବାକୁ ଦିଅନ୍ତୁ। ଏହାର ଅର୍ଥ ହେଲା, କୌଣସି ଆପ୍ ଚାଲୁ ନଥିବା ସମୟରେ ମଧ୍ୟ Googleକୁ ଲୋକେସନ୍ ଡାଟା ପଠାଇବା।", "dialogCancel": "ବାତିଲ୍ କରନ୍ତୁ", "dialogDiscard": "ଖାରଜ କରନ୍ତୁ", "dialogDisagree": "ଅସମ୍ମତ", "dialogAgree": "ସମ୍ମତ", "dialogSetBackup": "ବ୍ୟାକ୍‍ଅପ୍ ଆକାଉଣ୍ଟ ସେଟ୍ କରନ୍ତୁ", "colorsBlueGrey": "ନୀଳ ଧୂସର", "dialogShow": "ଡାଏଲଗ୍ ଦେଖାନ୍ତୁ", "dialogFullscreenTitle": "ପୂର୍ଣ୍ଣ ସ୍କ୍ରିନ୍ ଡାଏଲଗ୍", "dialogFullscreenSave": "ସେଭ୍ କରନ୍ତୁ", "dialogFullscreenDescription": "ପୂର୍ଣ୍ଣ ସ୍କ୍ରିନ୍ ଡାଏଲଗ୍ ଡେମୋ", "cupertinoButtonEnabled": "Enabled", "cupertinoButtonDisabled": "Disabled", "cupertinoButtonWithBackground": "ପୃଷ୍ଠପଟ ସହିତ", "cupertinoAlertCancel": "ବାତିଲ୍ କରନ୍ତୁ", "cupertinoAlertDiscard": "ଖାରଜ କରନ୍ତୁ", "cupertinoAlertLocationTitle": "ଆପଣ ଆପ୍ ବ୍ୟବହାର କରିବା ସମୟରେ ଆପଣଙ୍କର ଲୋକେସନ୍ ଆକ୍ସେସ୍ କରିବା ପାଇଁ \"Maps\"କୁ ଅନୁମତି ଦେବେ?", "cupertinoAlertLocationDescription": "ଆପଣଙ୍କର ଲୋକେସନ୍ mapରେ ପ୍ରଦର୍ଶିତ ହେବ ଏବଂ ଦିଗନିର୍ଦ୍ଦେଶ୍, ନିକଟର ସନ୍ଧାନ ଫଳାଫଳ ଏବଂ ଆନୁମାନିକ ଭ୍ରମଣ ସମୟ ପାଇଁ ବ୍ୟବହାର କରାଯିବ।", "cupertinoAlertAllow": "ଅନୁମତି ଦିଅନ୍ତୁ", "cupertinoAlertDontAllow": "ଅନୁମତି ଦିଅନ୍ତୁ ନାହିଁ", "cupertinoAlertFavoriteDessert": "ପସନ୍ଦର ଡେଜର୍ଟ ଚୟନ କରନ୍ତୁ", "cupertinoAlertDessertDescription": "ଦୟାକରି ନିମ୍ନସ୍ଥ ତାଲିକାରୁ ଆପଣଙ୍କ ପସନ୍ଦର ଡେଜର୍ଟର ପ୍ରକାର ଚୟନ କରନ୍ତୁ। ଆପଣଙ୍କର ଚୟନଟି ଆପଣଙ୍କ ଅଞ୍ଚଳରେ ଭୋଜନଳୟଗୁଡ଼ିକର ପ୍ରସ୍ତାବିତ ତାଲିକାକୁ କଷ୍ଟମାଇଜ୍ କରିବା ପାଇଁ ବ୍ୟବହାର କରାଯିବ।", "cupertinoAlertCheesecake": "ଚିଜ୍ କେକ୍", "cupertinoAlertTiramisu": "ତିରାମିସୁ", "cupertinoAlertApplePie": "ଆପଲ୍ ପାଏ", "cupertinoAlertChocolateBrownie": "ଚକୋଲେଟ୍ ବ୍ରାଉନି", "cupertinoShowAlert": "ଆଲର୍ଟ ଦେଖାନ୍ତୁ", "colorsRed": "ଲାଲ୍", "colorsPink": "ଗୋଲାପି", "colorsPurple": "ବାଇଗଣୀ", "colorsDeepPurple": "ଗାଢ଼ ବାଇଗଣି", "colorsIndigo": "ଘନ ନୀଳ", "colorsBlue": "ନୀଳ", "colorsLightBlue": "ହାଲୁକା ନୀଳ", "colorsCyan": "ସାଇଆନ୍", "dialogAddAccount": "ଆକାଉଣ୍ଟ ଯୋଗ କରନ୍ତୁ", "Gallery": "ଗ୍ୟାଲେରୀ", "Categories": "ବର୍ଗଗୁଡ଼ିକ", "SHRINE": "ଶକ୍ତିପୀଠ", "Basic shopping app": "ବେସିକ୍ ସପିଂ ଆପ୍", "RALLY": "ରାଲି", "CRANE": "କ୍ରେନ୍", "Travel app": "ଭ୍ରମଣ ଆପ୍", "MATERIAL": "ମ୍ୟାଟେରିଆଲ୍", "CUPERTINO": "କୁପର୍‍ଟିନୋ", "REFERENCE STYLES & MEDIA": "ରେଫରେନ୍ସ ଶୈଳୀ ଓ ମିଡ଼ିଆ" }
gallery/lib/l10n/intl_or.arb/0
{ "file_path": "gallery/lib/l10n/intl_or.arb", "repo_id": "gallery", "token_count": 73989 }
879
{ "loading": "ஏற்றுகிறது", "deselect": "தேர்வு நீக்கு", "select": "தேர்ந்தெடு", "selectable": "தேர்ந்தெடுக்கக்கூடியது (நீண்ட நேரம் அழுத்தவும்)", "selected": "தேர்ந்தெடுக்கப்பட்டது", "demo": "டெமோ", "bottomAppBar": "ஆப்ஸின் அடிப்பகுதியிலுள்ள பட்டி", "notSelected": "தேர்ந்தெடுக்கப்படவில்லை", "demoCupertinoSearchTextFieldTitle": "தேடல் வார்த்தையை உள்ளிடுவதற்கான புலம்", "demoCupertinoPicker": "தேர்வுக் கருவி", "demoCupertinoSearchTextFieldSubtitle": "iOS-ஸ்டைல் தேடல் வார்த்தையை உள்ளிடுவதற்கான புலம்", "demoCupertinoSearchTextFieldDescription": "தேடல் வார்த்தையை உள்ளிடுவதற்கான புலத்தில் பயனர்கள் வார்த்தைகளை உள்ளிட்டுத் தேடலாம், இதனால் அவர்களுக்குப் பரிந்துரைகள் வடிகட்டப்பட்டுக் காட்டப்படும்.", "demoCupertinoSearchTextFieldPlaceholder": "சில வார்த்தைகளை உள்ளிடவும்", "demoCupertinoScrollbarTitle": "ஸ்க்ரோல்பார்", "demoCupertinoScrollbarSubtitle": "iOS-ஸ்டைல் ஸ்க்ரோல்பார்", "demoCupertinoScrollbarDescription": "கொடுக்கப்பட்ட உபநிலையைக் கொண்டுள்ள ஸ்க்ரோல்பார்", "demoTwoPaneItem": "{value} பொருள்", "demoTwoPaneList": "பட்டியல்", "demoTwoPaneFoldableLabel": "மடக்கத்தக்கது", "demoTwoPaneSmallScreenLabel": "சிறிய திரை", "demoTwoPaneSmallScreenDescription": "சிறிய திரை உள்ள சாதனத்தில் 'இரு திரை' இவ்வாறுதான் செயல்படும்.", "demoTwoPaneTabletLabel": "டேப்லெட் / டெஸ்க்டாப்", "demoTwoPaneTabletDescription": "டேப்லெட், டெஸ்க்டாப் போன்ற பெரிய திரை உள்ள சாதனங்களில் 'இரு திரை' இவ்வாறுதான் செயல்படும்.", "demoTwoPaneTitle": "இரு திரை", "demoTwoPaneSubtitle": "மடக்கத்தக்க, பெரிய, சிறிய திரைகளில் தானாகப் பொருந்தும் தன்மையுள்ள தளவமைப்புகள் உள்ளன", "splashSelectDemo": "டெமோவைத் தேர்ந்தெடுங்கள்", "demoTwoPaneFoldableDescription": "மடக்கத்தக்க சாதனத்தில் 'இரு திரை' இவ்வாறுதான் செயல்படும்.", "demoTwoPaneDetails": "விவரங்கள்", "demoTwoPaneSelectItem": "ஏதேனுமொன்றைத் தேர்ந்தெடுங்கள்", "demoTwoPaneItemDetails": "{value} பொருள் குறித்த விவரங்கள்", "demoCupertinoContextMenuActionText": "சூழல் மெனுவைப் பார்க்க Flutter லோகோவைத் தட்டிப் பிடித்திருக்கவும்.", "demoCupertinoContextMenuDescription": "ஓர் உறுப்பு நீண்ட நேரம் அழுத்தப்படும்போது iOS-ஸ்டைல் முழுத்திரை சூழல் மெனு தோன்றும்.", "demoAppBarTitle": "ஆப்ஸ் பட்டி", "demoAppBarDescription": "தற்போதுள்ள திரையுடன் தொடர்புடைய உள்ளடக்கத்தையும் செயல்களையும் ஆப்ஸ் பட்டி வழங்குகிறது. பிராண்டிங், திரையின் தலைப்புகள், வழிசெலுத்தல், செயல்கள் ஆகியவற்றுக்காக இது பயன்படுத்தப்படுகிறது", "demoDividerTitle": "பிரிப்பான்", "demoDividerSubtitle": "பிரிப்பான் என்பது பட்டியல்களிலும் தளவமைப்புகளிலும் உள்ள உள்ளடக்கத்தைக் குழுவாக்கும் ஒரு மெல்லிய கோடாகும்.", "demoDividerDescription": "பட்டியல்கள், டிராயர்கள் மற்றும் வேறு எங்காவது இருக்கும் உள்ளடக்கத்தைப் பிரிப்பதற்குப் பிரிப்பான்களைப் பயன்படுத்தலாம்.", "demoVerticalDividerTitle": "செங்குத்துப் பிரிப்பான்", "demoCupertinoContextMenuTitle": "சூழல் மெனு", "demoCupertinoContextMenuSubtitle": "iOS-ஸ்டைல் சூழல் மெனு", "demoAppBarSubtitle": "தற்போதுள்ள திரையுடன் தொடர்புடைய தகவல்களையும் செயல்களையும் காட்டும்", "demoCupertinoContextMenuActionOne": "முதலாவது செயல்", "demoCupertinoContextMenuActionTwo": "இரண்டாவது செயல்", "demoDateRangePickerDescription": "மெட்டீரியல் டிசைனுக்கான தேதியைத் தேர்வு செய்யும் சாளரத்துடன் கூடிய ஓர் உரையாடலைக் காட்டும்.", "demoDateRangePickerTitle": "தேதியைத் தேர்வு செய்யும் சாளரம்", "demoNavigationDrawerUserName": "பயனர் பெயர்", "demoNavigationDrawerUserEmail": "[email protected]", "demoNavigationDrawerText": "டிராயரைக் காண, திரையின் ஓரத்திலிருந்து ஸ்வைப் செய்யவும் அல்லது மேலே இடதுபுறத்தில் உள்ள ஐகானைத் தட்டவும்", "demoNavigationRailTitle": "வழிசெலுத்தல் பாதை", "demoNavigationRailSubtitle": "ஆப்ஸிற்குள் வழிசெலுத்தல் பாதையைக் காட்டுதல்", "demoNavigationRailDescription": "சிறிய எண்ணிக்கையிலான காட்சிகளுக்கு இடையே (பொதுவாக மூன்று முதல் ஐந்து வரை) வழிசெலுத்த, ஆப்ஸின் இடதுபுறமாகவோ வலதுபுறமாகவோ 'மெட்டீரியல் விட்ஜெட்' காட்டப்படும்.", "demoNavigationRailFirst": "முதலாவது", "demoNavigationDrawerTitle": "வழிசெலுத்தல் டிராயர்", "demoNavigationRailThird": "மூன்றாவது", "replyStarredLabel": "நட்சத்திரமிட்டவை", "demoTextButtonDescription": "உரை பட்டனை அழுத்தும்போது இங்க் ஸ்பிளாஷ் காட்டப்படுமே தவிர பட்டன் உயர்த்தப்படாது. உரையாடல்கள் மற்றும் இன்லைன் இடைவெளிகளிலும் கருவிப்பட்டிகளிலும் உரை பட்டனைப் பயன்படுத்தலாம்", "demoElevatedButtonTitle": "உயர்த்தப்பட்ட பட்டன்", "demoElevatedButtonDescription": "உயர்த்தப்பட்ட பட்டன்கள் பெரும்பாலும் தட்டையான தளவமைப்புகளுக்குப் பரிமாணத்தைச் சேர்த்திடும். நெருக்கமான அல்லது பரந்த இடங்களில் இவை செயல்பாடுகளைத் தனிப்படுத்திக் காட்டிடும்.", "demoOutlinedButtonTitle": "வெளிக்கோடு பட்டன்", "demoOutlinedButtonDescription": "வெளிக்கோடு பட்டன்களை அழுத்தும்போது அவற்றின் பின்னணி மறைந்து உயர்த்தப்பட்டுக் காணப்படும். மாற்று, இரண்டாம் நிலைச் செயலைக் குறிப்பதற்காக இவை பெரும்பாலும் உயர்த்தப்பட்ட பட்டன்களுடன் இணைத்துப் பயன்படுத்தப்படும்.", "demoContainerTransformDemoInstructions": "கார்டுகள், பட்டியல்கள், FAB", "demoNavigationDrawerSubtitle": "ஆப்ஸ் பட்டியில் டிராயரைக் காட்டுதல்", "replyDescription": "திறன்மிக்க, பிரத்தியேக அம்சங்களுடன் மின்னஞ்சல் ஆப்ஸ்", "demoNavigationDrawerDescription": "ஆப்ஸிலுள்ள வழிசெலுத்தல் இணைப்புகளைக் காட்ட, திரையின் ஓரத்திலிருந்து கிடைமட்டமாக ’மெட்டீரியல் டிசைன் பேனல்’ ஸ்லைடு ஆகும்.", "replyDraftsLabel": "வரைவுகள்", "demoNavigationDrawerToPageOne": "முதலாவது", "replyInboxLabel": "இன்பாக்ஸ்", "demoSharedXAxisDemoInstructions": "அடுத்து & முந்தையது பட்டன்கள்", "replySpamLabel": "ஸ்பேம்", "replyTrashLabel": "நீக்கியவை", "replySentLabel": "அனுப்பியவை", "demoNavigationRailSecond": "இரண்டாவது", "demoNavigationDrawerToPageTwo": "இரண்டாவது", "demoFadeScaleDemoInstructions": "மோடல் & FAB", "demoFadeThroughDemoInstructions": "கீழ்ப்புற வழிசெலுத்தல்", "demoSharedZAxisDemoInstructions": "அமைப்புகள் ஐகான் பட்டன்", "demoSharedYAxisDemoInstructions": "”சமீபத்தில் பிளே செய்தவை” வாரியாக வரிசைப்படுத்து", "demoTextButtonTitle": "உரை பட்டன்", "demoSharedZAxisBeefSandwichRecipeTitle": "பீஃப் சாண்ட்விச்", "demoSharedZAxisDessertRecipeDescription": "டெசர்ட் ரெசிபி", "demoSharedYAxisAlbumTileSubtitle": "கலைஞர்", "demoSharedYAxisAlbumTileTitle": "ஆல்பம்", "demoSharedYAxisRecentSortTitle": "சமீபத்தில் பிளே செய்தவை", "demoSharedYAxisAlphabeticalSortTitle": "A-Z", "demoSharedYAxisAlbumCount": "268 ஆல்பங்கள்", "demoSharedYAxisTitle": "பகிரப்பட்ட y ஆக்சிஸ்", "demoSharedXAxisCreateAccountButtonText": "கணக்கை உருவாக்கு", "demoFadeScaleAlertDialogDiscardButton": "நிராகரி", "demoSharedXAxisSignInTextFieldLabel": "மின்னஞ்சல் முகவரி அல்லது ஃபோன் எண்", "demoSharedXAxisSignInSubtitleText": "உங்கள் கணக்கைப் பயன்படுத்தி உள்நுழைக", "demoSharedXAxisSignInWelcomeText": "வணக்கம் David Park", "demoSharedXAxisIndividualCourseSubtitle": "தனித்தனியாகக் காட்டப்படுகின்றன", "demoSharedXAxisBundledCourseSubtitle": "தொகுக்கப்பட்டவை", "demoFadeThroughAlbumsDestination": "ஆல்பங்கள்", "demoSharedXAxisDesignCourseTitle": "வடிவமைப்பு", "demoSharedXAxisIllustrationCourseTitle": "விளக்கப்படம்", "demoSharedXAxisBusinessCourseTitle": "பிசினஸ்", "demoSharedXAxisArtsAndCraftsCourseTitle": "கலை & கைவினைப் பொருட்கள்", "demoMotionPlaceholderSubtitle": "இரண்டாம் நிலை உரை", "demoFadeScaleAlertDialogCancelButton": "ரத்துசெய்", "demoFadeScaleAlertDialogHeader": "எச்சரிக்கை செய்தி", "demoFadeScaleHideFabButton": "FABயை மறை", "demoFadeScaleShowFabButton": "FABயைக் காட்டு", "demoFadeScaleShowAlertDialogButton": "MODALலைக் காட்டு", "demoFadeScaleDescription": "திரையின் நடுவில் ஃபேடு ஆகும் வசனங்கள் போன்று திரை எல்லைகளுக்குள் உள்நுழையும் அல்லது வெளியேறும் UI கூறுகளுக்கு ஃபேடு பேட்டர்ன் பயன்படுத்தப்படுகிறது.", "demoFadeScaleTitle": "ஃபேடு", "demoFadeThroughTextPlaceholder": "123 படங்கள்", "demoFadeThroughSearchDestination": "Search", "demoFadeThroughPhotosDestination": "Photos", "demoSharedXAxisCoursePageSubtitle": "தொகுக்கப்பட்ட வகைகள் உங்கள் ஊட்டத்தில் குழுக்களாகத் தோன்றும். இதைப் பிறகு எப்போது வேண்டுமானாலும் மாற்றிக்கொள்ளலாம்.", "demoFadeThroughDescription": "ஒன்றோடு ஒன்று நெருங்கிய தொடர்பில்லாத UI கூறுகளுக்கு இடையேயான நிலைமாற்றங்களுக்கு ஃபேடு த்ரூ பேட்டர்ன் பயன்படுத்தப்படுகிறது.", "demoFadeThroughTitle": "ஃபேடு த்ரூ", "demoSharedZAxisHelpSettingLabel": "உதவி", "demoMotionSubtitle": "முன்கூட்டியே வரையறுக்கப்பட்ட நிலைமாற்ற பேட்டர்ன்கள் அனைத்தும்", "demoSharedZAxisNotificationSettingLabel": "அறிவிப்புகள்", "demoSharedZAxisProfileSettingLabel": "சுயவிவரம்", "demoSharedZAxisSavedRecipesListTitle": "சேமிக்கப்பட்ட ரெசிபிகள்", "demoSharedZAxisBeefSandwichRecipeDescription": "பீஃப் சாண்ட்விச் ரெசிபி", "demoSharedZAxisCrabPlateRecipeDescription": "நண்டு பிளேட் ரெசிபி", "demoSharedXAxisCoursePageTitle": "பாடங்களை ஒழுங்குபடுத்துங்கள்", "demoSharedZAxisCrabPlateRecipeTitle": "நண்டு", "demoSharedZAxisShrimpPlateRecipeDescription": "இறால் பிளேட் ரெசிபி", "demoSharedZAxisShrimpPlateRecipeTitle": "இறால்", "demoContainerTransformTypeFadeThrough": "ஃபேடு த்ரூ", "demoSharedZAxisDessertRecipeTitle": "டெசர்ட்", "demoSharedZAxisSandwichRecipeDescription": "சாண்ட்விச் ரெசிபி", "demoSharedZAxisSandwichRecipeTitle": "சாண்ட்விச்", "demoSharedZAxisBurgerRecipeDescription": "பர்கர் ரெசிபி", "demoSharedZAxisBurgerRecipeTitle": "பர்கர்", "demoSharedZAxisSettingsPageTitle": "அமைப்புகள்", "demoSharedZAxisTitle": "பகிரப்பட்ட z ஆக்சிஸ்", "demoSharedZAxisPrivacySettingLabel": "தனியுரிமை", "demoMotionTitle": "மோஷன்", "demoContainerTransformTitle": "கண்டெய்னர் மாற்றம்", "demoContainerTransformDescription": "கண்டெய்னரை உள்ளடக்கிய UI கூறுகளுக்கு இடையேயான நிலைமாற்றங்களுக்காகக் கண்டெய்னர் நிலைமாற்ற பேட்டர்ன் வடிவமைக்கப்பட்டுள்ளது. இந்தப் பேட்டர்ன் இரண்டு UI கூறுகளுக்கு இடையேயான தெரியக்கூடிய இணைப்பு ஒன்றை உருவாக்குகிறது", "demoContainerTransformModalBottomSheetTitle": "ஃபேடு பயன்முறை", "demoContainerTransformTypeFade": "ஃபேடு", "demoSharedYAxisAlbumTileDurationUnit": "நிமி", "demoMotionPlaceholderTitle": "தலைப்பு", "demoSharedXAxisForgotEmailButtonText": "மின்னஞ்சல் முகவரியை மறந்துவிட்டீர்களா?", "demoMotionSmallPlaceholderSubtitle": "இரண்டாம் நிலை", "demoMotionDetailsPageTitle": "விவரங்கள் பக்கம்", "demoMotionListTileTitle": "பட்டியல் வகை", "demoSharedAxisDescription": "இடம்சார்ந்த அல்லது வழிசார்ந்த தொடர்புள்ள UI கூறுகளுக்கு இடையேயான நிலைமாற்றங்களுக்குப் பகிரப்பட்ட ஆக்சிஸ் பேட்டர்ன் பயன்படுத்தப்படுகிறது. கூறுகளுக்கு இடையேயான தொடர்பை வலுப்படுத்துவதற்காக x, y அல்லது z ஆக்சிஸின் பகிரப்பட்ட மாற்றத்தை இந்தப் பேட்டர்ன் பயன்படுத்துகிறது.", "demoSharedXAxisTitle": "பகிரப்பட்ட x ஆக்சிஸ்", "demoSharedXAxisBackButtonText": "முந்தையது", "demoSharedXAxisNextButtonText": "அடுத்து", "demoSharedXAxisCulinaryCourseTitle": "சமையல்", "githubRepo": "{repoName} GitHub தரவு சேமிப்பகம்", "fortnightlyMenuUS": "அமெரிக்கா", "fortnightlyMenuBusiness": "பிசினஸ்", "fortnightlyMenuScience": "அறிவியல்", "fortnightlyMenuSports": "விளையாட்டு", "fortnightlyMenuTravel": "பயணம்", "fortnightlyMenuCulture": "கலாச்சாரம்", "fortnightlyTrendingTechDesign": "TechDesign", "rallyBudgetDetailAmountLeft": "மீதமுள்ள தொகை", "fortnightlyHeadlineArmy": "பசுமை ராணுவம் உள்ளிருந்தே சீரமைக்கப்படுகிறது", "fortnightlyDescription": "உள்ளடக்கத்தை மையப்படுத்திய ஓர் செய்திகள் ஆப்ஸ்", "rallyBillDetailAmountDue": "நிலுவைத் தொகை", "rallyBudgetDetailTotalCap": "மொத்த முதல்", "rallyBudgetDetailAmountUsed": "பயன்படுத்திய தொகை", "fortnightlyTrendingHealthcareRevolution": "HealthcareRevolution", "fortnightlyMenuFrontPage": "முதல் பக்கம்", "fortnightlyMenuWorld": "உலகம்", "rallyBillDetailAmountPaid": "செலுத்திய தொகை", "fortnightlyMenuPolitics": "அரசியல்", "fortnightlyHeadlineBees": "வயல்வெளித் தேனீக்களுக்குத் தட்டுப்பாடு", "fortnightlyHeadlineGasoline": "பெட்ரோலின் எதிர்காலம்", "fortnightlyTrendingGreenArmy": "GreenArmy", "fortnightlyHeadlineFeminists": "ஒருதலைப்பட்சம் குறித்த பெண்ணியவாதிகளின் நிலைப்பாடு", "fortnightlyHeadlineFabrics": "தொழில்நுட்பத்தினால் அதிநவீன துணி வகைகளை உருவாக்கும் வடிவமைப்பாளர்கள்", "fortnightlyHeadlineStocks": "பங்குகள் தேக்கத்தினால் நாணயத்தை எதிர்நோக்கியுள்ள மக்கள்", "fortnightlyTrendingReform": "Reform", "fortnightlyMenuTech": "தொழில்நுட்பம்", "fortnightlyHeadlineWar": "போரின் போது பிளவுபட்ட அமெரிக்கக் குடும்பங்கள்", "fortnightlyHeadlineHealthcare": "சத்தமின்றி சரித்திரம் படைக்கும் சுகாதாரப் புரட்சி", "fortnightlyLatestUpdates": "சமீபத்திய செய்திகள்", "fortnightlyTrendingStocks": "பங்குகள்", "rallyBillDetailTotalAmount": "மொத்தத் தொகை", "demoCupertinoPickerDateTime": "தேதியும் நேரமும்", "signIn": "உள்நுழை", "dataTableRowWithSugar": "சர்க்கரை உள்ள {value}", "dataTableRowApplePie": "Apple pie", "dataTableRowDonut": "Donut", "dataTableRowHoneycomb": "Honeycomb", "dataTableRowLollipop": "Lollipop", "dataTableRowJellyBean": "Jelly bean", "dataTableRowGingerbread": "Gingerbread", "dataTableRowCupcake": "Cupcake", "dataTableRowEclair": "Eclair", "dataTableRowIceCreamSandwich": "Ice cream sandwich", "dataTableRowFrozenYogurt": "Frozen yogurt", "dataTableColumnIron": "இரும்பு (%)", "dataTableColumnCalcium": "கால்சியம் (%)", "dataTableColumnSodium": "சோடியம் (மி.கி.)", "demoTimePickerTitle": "நேரம் தேர்வுக் கருவி", "demo2dTransformationsResetTooltip": "உருமாற்றங்களை ரீசெட் செய்யும்", "dataTableColumnFat": "கொழுப்பு (கி)", "dataTableColumnCalories": "கலோரிகள்", "dataTableColumnDessert": "டெசர்ட் (ஒருவருக்கானது)", "cardsDemoTravelDestinationLocation1": "தஞ்சாவூர், தமிழ்நாடு", "demoTimePickerDescription": "மெட்டீரியல் வடிவ நேரத் தேர்வுக் கருவியைக் கொண்ட உரையாடலைக் காட்டும்.", "demoPickersShowPicker": "தேர்வுக் கருவியைக் காண்பி", "demoTabsScrollingTitle": "நகரக்கூடியது", "demoTabsNonScrollingTitle": "நகராதது", "craneHours": "{hours,plural,=1{1ம.நே.}other{{hours}ம.நே.}}", "craneMinutes": "{minutes,plural,=1{1நி.}other{{minutes}நி.}}", "craneFlightDuration": "{hoursShortForm} {minutesShortForm}", "dataTableHeader": "ஊட்டச்சத்து", "demoDatePickerTitle": "தேதி தேர்வுக் கருவி", "demoPickersSubtitle": "தேதி மற்றும் நேரத் தேர்வுக் கருவி", "demoPickersTitle": "தேர்வுக் கருவிகள்", "demo2dTransformationsEditTooltip": "கட்டத்தை மாற்றும்", "demoDataTableDescription": "வரிசைகளையும் நெடுவரிசைகளையும் கொண்ட கட்டம் போன்ற வடிவமைப்பில் தகவல்களைத் தரவு அட்டவணைகள் காட்டும். அவை எளிதில் ஸ்கேன் செய்யும் வகையில் தகவல்களை ஒருங்கிணைக்கும், இதனால் பயனர்களால் வடிவங்களையும் புள்ளிவிவரங்களையும் பார்க்க முடியும்.", "demo2dTransformationsDescription": "கட்டங்களை மாற்ற தட்டவும், காட்சியில் எங்கு வேண்டுமானாலும் செல்ல சைகைகளைப் பயன்படுத்தவும். நகர்த்த இழுக்கவும், அளவை மாற்ற பின்ச் செய்யவும், சுழற்ற இரு விரல்களைப் பயன்படுத்தவும். தொடக்க திசையமைப்பிற்குத் திரும்ப ரீசெட் பட்டனை அழுத்தவும்.", "demo2dTransformationsSubtitle": "நகர்த்துதல், அளவை மாற்றுதல், சுழற்றுதல்", "demo2dTransformationsTitle": "2D உருமாற்றங்கள்", "demoCupertinoTextFieldPIN": "பின்", "demoCupertinoTextFieldDescription": "ஒரு உரைப் புலமானது வன்பொருள் கீபோர்டு மூலமாகவோ ஸ்கிரீன் கீபோர்டு மூலமாகவோ உரையை உள்ளிட பயனரை அனுமதிக்கும்.", "demoCupertinoTextFieldSubtitle": "iOS பாணி உரைப் புலங்கள்", "demoCupertinoTextFieldTitle": "உரைப் புலங்கள்", "demoDatePickerDescription": "மெட்டீரியல் வடிவ தேதி தேர்வுக் கருவியைக் கொண்ட உரையாடலைக் காட்டும்.", "demoCupertinoPickerTime": "நேரம்", "demoCupertinoPickerDate": "தேதி", "demoCupertinoPickerTimer": "டைமர்", "demoCupertinoPickerDescription": "வார்த்தைகள், நாட்கள், நேரங்கள், அல்லது இரண்டையும் தேர்ந்தெடுக்கக்கூடிய iOS-ஸ்டைல் தேர்வுக் கருவியைக் கொண்ட விட்ஜெட்.", "demoCupertinoPickerSubtitle": "iOS-ஸ்டைல் தேர்வுக் கருவிகள்", "demoCupertinoPickerTitle": "தேர்வுக் கருவிகள்", "dataTableRowWithHoney": "தேன் உள்ள {value}", "cardsDemoTravelDestinationCity2": "செட்டிநாடு", "bannerDemoResetText": "பேனரை ரீசெட் செய்க", "bannerDemoMultipleText": "பல செயல்கள்", "bannerDemoLeadingText": "முன்னணி ஐகான்", "dismiss": "நிராகரி", "cardsDemoTappable": "தட்டக்கூடிய பட்டன்", "cardsDemoSelectable": "தேர்ந்தெடுக்கக்கூடியது (நீண்ட நேரம் அழுத்தவும்)", "cardsDemoExplore": "கண்டறி", "cardsDemoExploreSemantics": "{destinationName} பற்றி அறிக", "cardsDemoShareSemantics": "{destinationName} பற்றிய விவரங்களைப் பகிர்க", "cardsDemoTravelDestinationTitle1": "தமிழ்நாட்டில் செல்ல வேண்டிய 10 சிறந்த நகரங்கள்", "cardsDemoTravelDestinationDescription1": "எண் 10", "cardsDemoTravelDestinationCity1": "தஞ்சாவூர்", "dataTableColumnProtein": "புரதம் (கி)", "cardsDemoTravelDestinationTitle2": "தென்னிந்தியாவின் கைவினைக் கலைஞர்கள்", "cardsDemoTravelDestinationDescription2": "பட்டு நெசவாளர்கள்", "bannerDemoText": "உங்களின் மற்றொரு சாதனத்தில் கடவுச்சொல் சேர்க்கப்பட்டது. மீண்டும் உள்நுழைக.", "cardsDemoTravelDestinationLocation2": "சிவகங்கை, தமிழ்நாடு", "cardsDemoTravelDestinationTitle3": "பிரகதீஸ்வரர் கோவில்", "cardsDemoTravelDestinationDescription3": "கோவில்கள்", "demoBannerTitle": "பேனர்", "demoBannerSubtitle": "பட்டியலுக்குள் பேனரைக் காட்டுகிறது", "demoBannerDescription": "ஒரு பேனர் முக்கியமான, சுருக்கமான செய்தியைக் காண்பிக்கும், மேலும் பயனர்கள் எடுத்துக்காட்டுவதற்கான நடவடிக்கைகளை வழங்குகிறது (அல்லது பேனரை நிராகரிக்கிறது). இது நிராகரிக்கப்படுவதற்கு ஒரு பயனரின் நடவடிக்கை தேவைப்படுகிறது.", "demoCardTitle": "கார்டுகள்", "demoCardSubtitle": "வளைந்த ஓரங்களுடன் கூடிய பேஸ்லைன் கார்டுகள்", "demoCardDescription": "கார்டு என்பது தொடர்புடைய தகவல்களைத் தெரியப்படுத்தும் பொருட்டு பயன்படுத்தப்படும் தாள் ஆகும், உதாரணமாக, ஆல்பம், புவிசார் இருப்பிடம், உணவு, தொடர்பு விவரங்கள் போன்றவை.", "demoDataTableTitle": "தரவு அட்டவணைகள்", "demoDataTableSubtitle": "தகவல்களைக் கொண்ட வரிசைகள் மற்றும் நெடுவரிசைகள்", "dataTableColumnCarbs": "கார்போஹைட்ரேட்கள் (கி)", "placeTanjore": "தஞ்சாவூர்", "demoGridListsTitle": "கட்டப் பட்டியல்கள்", "placeFlowerMarket": "மலர் சந்தை", "placeBronzeWorks": "ப்ரான்ஸ் வொர்க்ஸ்", "placeMarket": "சந்தை", "placeThanjavurTemple": "தஞ்சாவூர் கோயில்", "placeSaltFarm": "சால்ட் ஃபார்ம்", "placeScooters": "ஸ்கூட்டர்கள்", "placeSilkMaker": "பட்டு உருவாக்குபவர்", "placeLunchPrep": "மதிய உணவு தயாரிப்பு", "placeBeach": "கடற்கரை", "placeFisherman": "மீனவர்", "demoMenuSelected": "தேர்ந்தெடுக்கப்பட்டது: {value}", "demoMenuRemove": "அகற்று", "demoMenuGetLink": "இணைப்பைப் பெறு", "demoMenuShare": "பகிர்", "demoBottomAppBarSubtitle": "வழிசெலுத்தலையும் செயல்களையும் அடிப்பகுதியில் காட்டுகிறது", "demoMenuAnItemWithASectionedMenu": "பிரிக்கப்பட்ட மெனுவுடன் உள்ள விருப்பம்", "demoMenuADisabledMenuItem": "முடக்கப்பட்ட மெனு விருப்பம்", "demoLinearProgressIndicatorTitle": "நீள்வடிவ செயல்நிலை இண்டிக்கேட்டர்", "demoMenuContextMenuItemOne": "சூழல் மெனு விருப்பம் ஒன்று", "demoMenuAnItemWithASimpleMenu": "எளிய மெனுவுடன் உள்ள விருப்பம்", "demoCustomSlidersTitle": "பிரத்தியேக ஸ்லைடர்கள்", "demoMenuAnItemWithAChecklistMenu": "சரிபார்ப்புப் பட்டியல் மெனுவுடன் உள்ள விருப்பம்", "demoCupertinoActivityIndicatorTitle": "செயல்பாட்டு இண்டிக்கேட்டர்", "demoCupertinoActivityIndicatorSubtitle": "iOS பாணி செயல்பாட்டு இண்டிக்கேட்டர்கள்", "demoCupertinoActivityIndicatorDescription": "வலஞ்சுழியாகச் சுழலும் iOS பாணி செயல்பாட்டு இண்டிக்கேட்டர்.", "demoCupertinoNavigationBarTitle": "வழிசெலுத்தல் பட்டி", "demoCupertinoNavigationBarSubtitle": "iOS பாணி வழிசெலுத்தல் பட்டி", "demoCupertinoNavigationBarDescription": "iOS பாணியிலான வழிசெலுத்தல் பட்டி. குறைந்தபட்சப் பக்கத் தலைப்பைக் கருவிப்பட்டியின் நடுவில் கொண்ட கருவிப்பட்டியே வழிசெலுத்தல் பட்டி என்பது.", "demoCupertinoPullToRefreshTitle": "ரெஃப்ரெஷ் செய்ய இழுக்கவும்", "demoCupertinoPullToRefreshSubtitle": "iOS பாணியில் இழுப்பதன் மூலம் கட்டுப்பாட்டை ரெஃப்ரெஷ் செய்தல்", "demoCupertinoPullToRefreshDescription": "iOS பாணியில் இழுப்பதன் மூலம் கட்டுப்பாட்டை ரெஃப்ரெஷ் செய்தலை நடைமுறைப்படுத்தும் விட்ஜெட்.", "demoProgressIndicatorTitle": "செயல்நிலை இண்டிக்கேட்டர்கள்", "demoProgressIndicatorSubtitle": "நீள்வடிவ, வட்டமான, வரையறுக்க இயலாத வடிவங்களைக் கொண்டவை", "demoCircularProgressIndicatorTitle": "வட்டமான செயல்நிலை இண்டிக்கேட்டர்", "demoCircularProgressIndicatorDescription": "மெட்டீரியல் வடிவமுடைய வட்டமான செயல்நிலை இண்டிக்கேட்டர், இது ஆப்ஸ் செயல்படுவதைக் குறிப்பதற்காகச் சுழல்கிறது.", "demoMenuFour": "நான்கு", "demoLinearProgressIndicatorDescription": "மெட்டீரியல் வடிவமுடைய நீள்வடிவ செயல்நிலை இண்டிக்கேட்டர், இது செயல்நிலைப் பட்டி என்றும் அழைக்கப்படுகிறது.", "demoTooltipTitle": "உதவிக்குறிப்புகள்", "demoTooltipSubtitle": "நீண்ட நேர அழுத்தும்போதோ மேலே கொண்டுசெல்லும்போதோ காட்டப்படும் குறுகிய மெசேஜ்", "demoTooltipDescription": "பட்டனின் செயல்பாடு அல்லது பிற பயனர் இடைமுகச் செயலை விளக்க உதவும் உரை லேபிள்களை உதவிக்குறிப்புகள் வழங்கும். பயனர்கள் ஒரு பொருளின் மேலே கொண்டுசெல்லும்போது, மையப்படுத்தும்போது அல்லது நீண்ட நேரம் அழுத்தும்போது பயனுள்ள உரையை உதவிக்குறிப்புகள் காட்டும்.", "demoTooltipInstructions": "உதவிக்குறிப்பைக் காட்ட நீண்ட நேரம் அழுத்தவும் அல்லது மேலே கொண்டுசெல்லவும்.", "placeChennai": "சென்னை", "demoMenuChecked": "சரிபார்க்கப்பட்டது: {value}", "placeChettinad": "செட்டிநாடு", "demoMenuPreview": "மாதிரிக்காட்சி", "demoBottomAppBarTitle": "ஆப்ஸின் அடிப்பகுதியிலுள்ள பட்டி", "demoBottomAppBarDescription": "ஆப்ஸின் அடிப்பகுதியிலுள்ள பட்டிகள், அடியிலுள்ள வழிசெலுத்தல் டிராயருக்கும் மிதக்கும் செயல் பட்டன் உள்ளிட்ட நான்கு செயல்களுக்கும் அணுகலை வழங்குகின்றன.", "bottomAppBarNotch": "நாட்ச்", "bottomAppBarPosition": "மிதக்கும் செயல் பட்டனின் நிலை", "bottomAppBarPositionDockedEnd": "டாக் செய்யப்பட்டது - இறுதிப் பகுதி", "bottomAppBarPositionDockedCenter": "டாக் செய்யப்பட்டது - நடுப்பகுதி", "bottomAppBarPositionFloatingEnd": "மிதத்தல் - இறுதிப்பகுதி", "bottomAppBarPositionFloatingCenter": "மிதத்தல் - நடுப்பகுதி", "demoSlidersEditableNumericalValue": "மாற்றக்கூடிய எண் மதிப்பு", "demoGridListsSubtitle": "வரிசை மற்றும் நெடுவரிசை தளவமைப்பு", "demoGridListsDescription": "கட்டப் பட்டியல்கள் பொதுவாகப் படங்கள் போன்ற சமச்சீர் தரவை வழங்குவதற்கே மிகச் சிறந்தது. கட்டப் பட்டியலில் உள்ள விருப்பம் ஒவ்வொன்றும் டைல் எனப்படும்.", "demoGridListsImageOnlyTitle": "படம் மட்டும்", "demoGridListsHeaderTitle": "மேற்குறிப்புடன்", "demoGridListsFooterTitle": "அடிக்குறிப்புடன்", "demoSlidersTitle": "ஸ்லைடர்கள்", "demoSlidersSubtitle": "ஸ்வைப் செய்வதன் மூலம் மதிப்பைத் தேர்ந்தெடுக்க உதவும் விட்ஜெட்கள்", "demoSlidersDescription": "ஸ்லைடர்கள் ஒரு பட்டியிலுள்ள மதிப்புகளின் வரம்பைக் காட்டுகின்றன, அதிலிருந்து பயனர்கள் ஒரு மதிப்பைத் தேர்ந்தெடுக்கலாம். ஒலி, பிரகாசம் அல்லது பட வடிப்பான்களைப் பயன்படுத்துதல் போன்ற அமைப்புகளைச் சரிசெய்வதற்கான சிறந்த கூறுகளே ஸ்லைடர்கள் ஆகும்.", "demoRangeSlidersTitle": "ரேஞ்ச் ஸ்லைடர்கள்", "demoRangeSlidersDescription": "ஸ்லைடர்கள் ஒரு பட்டியிலுள்ள மதிப்புகளின் வரம்பைக் காட்டுகின்றன. மதிப்புகளின் வரம்பைக் காட்டும் பட்டியின் இரு முனைகளிலும் அவை ஐகான்களைக் கொண்டிருக்கலாம். ஒலி, பிரகாசம் அல்லது பட வடிப்பான்களைப் பயன்படுத்துதல் போன்ற அமைப்புகளைச் சரிசெய்வதற்கான சிறந்த கூறுகளே ஸ்லைடர்கள் ஆகும்.", "demoMenuAnItemWithAContextMenuButton": "சூழல் மெனுவுடன் உள்ள விருப்பம்", "demoCustomSlidersDescription": "ஸ்லைடர்கள் ஒரு பட்டியிலுள்ள மதிப்புகளின் வரம்பைக் காட்டுகின்றன, அதிலிருந்து பயனர்கள் ஒரு மதிப்பையோ மதிப்புகளின் வரம்பையோ தேர்ந்தெடுக்கலாம். ஸ்லைடர்களைக் குறிப்பிட்ட தீமிற்கு ஏற்ப மாற்றவும் பிரத்தியேகமாக்கிக் கொள்ளவும் முடியும்.", "demoSlidersContinuousWithEditableNumericalValue": "மாற்றக்கூடிய எண் மதிப்புகளுடன் தொடர்ச்சியான மதிப்பைக் கொண்டது", "demoSlidersDiscrete": "தொடர்ச்சியற்ற மதிப்புகளைக் கொண்டது", "demoSlidersDiscreteSliderWithCustomTheme": "பிரத்தியேக தீமினை உடைய தொடர்ச்சியற்ற மதிப்புகளைக் கொண்ட ஸ்லைடர்", "demoSlidersContinuousRangeSliderWithCustomTheme": "பிரத்தியேக தீமினை உடைய தொடர்ச்சியான மதிப்புகளைக் கொண்ட ரேஞ்ச் ஸ்லைடர்", "demoSlidersContinuous": "தொடர்ச்சியானது", "placePondicherry": "பாண்டிச்சேரி", "demoMenuTitle": "மெனு", "demoContextMenuTitle": "சூழல் மெனு", "demoSectionedMenuTitle": "பிரிக்கப்பட்ட மெனு", "demoSimpleMenuTitle": "எளிய மெனு", "demoChecklistMenuTitle": "சரிபார்ப்புப் பட்டியல் மெனு", "demoMenuSubtitle": "மெனு பட்டன்கள் மற்றும் எளிய மெனுக்கள்", "demoMenuDescription": "தற்காலிக இடத்தில் விருப்பங்களின் பட்டியலை மெனு காட்டும். பட்டன், செயல் அல்லது பிற கட்டுப்பாட்டைப் பயனர் பயன்படுத்தும்போது அவை தோன்றும்.", "demoMenuItemValueOne": "மெனு விருப்பம் ஒன்று", "demoMenuItemValueTwo": "மெனு விருப்பம் இரண்டு", "demoMenuItemValueThree": "மெனு விருப்பம் மூன்று", "demoMenuOne": "ஒன்று", "demoMenuTwo": "இரண்டு", "demoMenuThree": "மூன்று", "demoMenuContextMenuItemThree": "சூழல் மெனு விருப்பம் மூன்று", "demoCupertinoSwitchSubtitle": "iOS-style ஸ்விட்ச்", "demoSnackbarsText": "இதுதான் ஸ்நாக்பார்.", "demoCupertinoSliderSubtitle": "iOS-style ஸ்லைடர்", "demoCupertinoSliderDescription": "தொடர்ச்சியான அல்லது தொடர்ச்சியற்ற மதிப்புத் தொகுப்பிலிருந்து தேர்வுசெய்ய ஸ்லைடரைப் பயன்படுத்தலாம்.", "demoCupertinoSliderContinuous": "தொடர்ச்சியானது: {value}", "demoCupertinoSliderDiscrete": "தொடர்ச்சியற்றது: {value}", "demoSnackbarsAction": "ஸ்நாக்பாரின் நடவடிக்கையை அழுத்தியுள்ளீர்கள்.", "backToGallery": "கேலரிக்குத் திரும்பு", "demoCupertinoTabBarTitle": "தாவல் பட்டி", "demoCupertinoSwitchDescription": "ஒற்றை அமைப்பின் ஆன்/ஆஃப் நிலையை மாற்றுவதற்கு ஸ்விட்ச் பயன்படுத்தப்படும்.", "demoSnackbarsActionButtonLabel": "நடவடிக்கை", "cupertinoTabBarProfileTab": "சுயவிவரம்", "demoSnackbarsButtonLabel": "ஸ்நாக்பாரைக் காட்டு", "demoSnackbarsDescription": "ஆப்ஸ் செய்யக்கூடிய அல்லது செய்யவுள்ள செயலாக்கத்தை ஸ்நாக்பார்கள் பயனர்களுக்குத் தெரிவிக்கும். அவை தற்காலிகமாகத் திரையின் கீழ்ப்பகுதியில் தோன்றும். பயனர் அனுபவத்தில் அவை குறுக்கிடக்கூடாது, மறைவதற்கு பயனரின் உள்ளீடு அவற்றுக்குத் தேவையில்லை.", "demoSnackbarsSubtitle": "ஸ்நாக்பார்கள் திரையின் கீழ்ப்பகுதியில் செய்திகளைக் காட்டும்", "demoSnackbarsTitle": "ஸ்நாக்பார்கள்", "demoCupertinoSliderTitle": "ஸ்லைடர்", "cupertinoTabBarChatTab": "அரட்டை", "cupertinoTabBarHomeTab": "முகப்பு", "demoCupertinoTabBarDescription": "iOS-style கீழ் வழிசெலுத்தல் தாவல் பட்டி. பல தாவல்களைக் காட்டும். அவற்றில் ஒன்று செயலில் இருக்கும், இயல்பாக முதல் தாவல் செயலில் இருக்கும்.", "demoCupertinoTabBarSubtitle": "iOS-style கீழ்த் தாவல் பட்டி", "demoOptionsFeatureTitle": "விருப்பங்களைக் காட்டுவதற்கான பட்டன்", "demoOptionsFeatureDescription": "இந்த டெமோவிற்குக் கிடைக்கக்கூடிய விருப்பங்களைப் பார்க்க இங்கே தட்டவும்.", "demoCodeViewerCopyAll": "அனைத்தையும் நகலெடு", "shrineScreenReaderRemoveProductButton": "{product} ஐ அகற்றும்", "shrineScreenReaderProductAddToCart": "கார்ட்டில் சேர்", "shrineScreenReaderCart": "{quantity,plural,=0{ஷாப்பிங் கார்ட், எதுவும் இல்லை}=1{ஷாப்பிங் கார்ட், 1 பொருள்}other{ஷாப்பிங் கார்ட், {quantity} பொருட்கள்}}", "demoCodeViewerFailedToCopyToClipboardMessage": "கிளிப்போர்டுக்கு நகலெடுக்க இயலவில்லை: {error}", "demoCodeViewerCopiedToClipboardMessage": "கிளிப்போர்டுக்கு நகலெடுக்கப்பட்டது.", "craneSleep8SemanticLabel": "பீச்சைத் தாண்டி உள்ள ஒற்றைக் கிளிஃப்பில் உள்ள மாயன்", "craneSleep4SemanticLabel": "மலைகளின் முன்னால் ஏரிக்கு அருகில் உள்ள ஹோட்டல்", "craneSleep2SemanticLabel": "மாச்சு பிச்சு சைட்டாடெல்", "craneSleep1SemanticLabel": "பனிபடர்ந்த மரங்கள் சூழ்ந்த நிலப்பரப்பில் உள்ள சாலேட்", "craneSleep0SemanticLabel": "ஓவர்வாட்டர் பங்களாக்கள்", "craneFly13SemanticLabel": "பனைமரங்கள் அதிகம் கொண்ட கடலருகே உள்ள குளம்", "craneFly12SemanticLabel": "பனைமரங்கள் சூழ்ந்த குளம்", "craneFly11SemanticLabel": "கடலில் பிரைட்டான லைட்ஹவுஸ்", "craneFly10SemanticLabel": "சூரிய அஸ்தமனத்தின் போது அல் அஜார் மசூதியின் காட்சி", "craneFly9SemanticLabel": "பழங்கால நீளக் காரில் சாய்ந்தபடி உள்ள ஒருவன்", "craneFly8SemanticLabel": "சூப்பர்டிரீ குரோவ்", "craneEat9SemanticLabel": "பாஸ்த்திரிக்கள் உள்ள கஃபே கவுண்ட்டர்", "craneEat2SemanticLabel": "பர்கர்", "craneFly5SemanticLabel": "மலைகளின் முன்னால் ஏரிக்கு அருகில் உள்ள ஹோட்டல்", "demoSelectionControlsSubtitle": "செக்பாக்ஸ்கள், ரேடியோ பட்டன்கள் மற்றும் ஸ்விட்ச்கள்", "craneEat10SemanticLabel": "பெரிய பாஸ்டிராமி சாண்ட்விச்சை வைத்திருக்கும் பெண்", "craneFly4SemanticLabel": "ஓவர்வாட்டர் பங்களாக்கள்", "craneEat7SemanticLabel": "பேக்கரி நுழைவு", "craneEat6SemanticLabel": "ஷ்ரிம்ப் டிஷ்", "craneEat5SemanticLabel": "ஆர்ட்ஸி உணவகத்தில் உள்ள அமரும் பகுதி", "craneEat4SemanticLabel": "சாக்கலேட் டெசெர்ட்", "craneEat3SemanticLabel": "கொரிய டாகோ", "craneFly3SemanticLabel": "மாச்சு பிச்சு சைட்டாடெல்", "craneEat1SemanticLabel": "டின்னர் ஸ்டைல் ஸ்டூல்களைக் கொண்ட காலியான பார்", "craneEat0SemanticLabel": "கட்டையால் நெருப்பூட்டப்பட்ட ஓவனில் உள்ள பிட்ஜா", "craneSleep11SemanticLabel": "தைபெய் 101 ஸ்கைஸ்கிரேப்பர்", "craneSleep10SemanticLabel": "சூரிய அஸ்தமனத்தின் போது அல் அஜார் மசூதியின் காட்சி", "craneSleep9SemanticLabel": "கடலில் பிரைட்டான லைட்ஹவுஸ்", "craneEat8SemanticLabel": "ஒரு பிளேட் கிராஃபிஷ்", "craneSleep7SemanticLabel": "ரிபாரியா ஸ்கொயரில் உள்ள கலகலப்பான அபார்ட்மெண்ட்டுகள்", "craneSleep6SemanticLabel": "பனைமரங்கள் சூழ்ந்த குளம்", "craneSleep5SemanticLabel": "களத்தில் உள்ள டெண்ட்", "settingsButtonCloseLabel": "அமைப்புகளை மூடும்", "demoSelectionControlsCheckboxDescription": "அமைப்பில் இருந்து ஒன்றுக்கும் மேற்பட்ட விருப்பங்களைத் தேர்வுசெய்ய செக்பாக்ஸ்கள் உதவும். சாதாராண செக்பாக்ஸின் மதிப்பு சரி அல்லது தவறாக இருப்பதுடன் டிரைஸ்டேட் செக்பாக்ஸின் மதிப்பு பூஜ்ஜியமாகவும்கூட இருக்கக்கூடும்.", "settingsButtonLabel": "அமைப்புகள்", "demoListsTitle": "பட்டியல்கள்", "demoListsSubtitle": "நகரும் பட்டியல் தளவமைப்புகள்", "demoListsDescription": "ஒற்றை நிலையான உயர வரிசை பொதுவாக சில உரையையும் முன்னணி அல்லது பின்னணி ஐகானையும் கொண்டுள்ளது.", "demoOneLineListsTitle": "ஒரு வரி", "demoTwoLineListsTitle": "இரண்டு கோடுகள்", "demoListsSecondary": "இரண்டாம் நிலை உரை", "demoSelectionControlsTitle": "தேர்வுக் கட்டுப்பாடுகள்", "craneFly7SemanticLabel": "ரஷ்மோர் மலை", "demoSelectionControlsCheckboxTitle": "செக்பாக்ஸ்", "craneSleep3SemanticLabel": "பழங்கால நீளக் காரில் சாய்ந்தபடி உள்ள ஒருவன்", "demoSelectionControlsRadioTitle": "வானொலி", "demoSelectionControlsRadioDescription": "அமைப்பில் இருந்து ஒரு விருப்பத்தைத் தேர்வுசெய்ய ரேடியோ பட்டன்கள் அனுமதிக்கும். பயனர் அனைத்து விருப்பங்களையும் ஒன்றை அடுத்து ஒன்று பார்க்க வேண்டுமானால் பிரத்தியேகத் தேர்விற்கு ரேடியோ பட்டன்களைப் பயன்படுத்தும்.", "demoSelectionControlsSwitchTitle": "மாற்றுக", "demoSelectionControlsSwitchDescription": "ஒற்றை அமைப்புகளுக்கான விருப்பத்தேர்வின் நிலையை ஆன்/ஆஃப் ஸ்விட்ச்சுகள் நிலைமாற்றும். ஸ்விட்ச்சுகள் கட்டுப்படுத்தும் விருப்பத்தேர்வும், அது இருக்கும் நிலையும் விருப்பத்திற்குரிய இன்லைன் லேபிளால் தெரிவாக்கப்பட்டிருக்க வேண்டும்.", "craneFly0SemanticLabel": "பனிபடர்ந்த மரங்கள் சூழ்ந்த நிலப்பரப்பில் உள்ள சாலேட்", "craneFly1SemanticLabel": "களத்தில் உள்ள டெண்ட்", "craneFly2SemanticLabel": "பனிபடர்ந்த மலைக்கு முன் உள்ள வழிபாட்டுக் கொடிகள்", "craneFly6SemanticLabel": "பலாசியா டி பெல்லாஸ் ஆர்டஸின் ஏரியல் வியூ", "rallySeeAllAccounts": "அனைத்து அக்கவுண்ட்டுகளையும் காட்டு", "rallyBillAmount": "{amount}க்கான {billName} பில்லின் நிலுவைத் தேதி: {date}.", "shrineTooltipCloseCart": "கார்ட்டை மூடுவதற்கான பட்டன்", "shrineTooltipCloseMenu": "மெனுவை மூடுவதற்கான பட்டன்", "shrineTooltipOpenMenu": "மெனுவைத் திறப்பதற்கான பட்டன்", "shrineTooltipSettings": "அமைப்புகளுக்கான பட்டன்", "shrineTooltipSearch": "தேடலுக்கான பட்டன்", "demoTabsDescription": "தாவல்கள் என்பவை வெவ்வேறு திரைகள், தரவுத் தொகுப்புகள் மற்றும் பிற தொடர்புகளுக்கான உள்ளடக்கத்தை ஒழுங்கமைக்கின்றன.", "demoTabsSubtitle": "சார்பின்றி நகர்த்திப் பார்க்கும் வசதியுடைய தாவல்கள்", "demoTabsTitle": "தாவல்கள்", "rallyBudgetAmount": "{amountTotal}க்கான {budgetName} பட்ஜெட்டில் பயன்படுத்தப்பட்ட தொகை: {amountUsed}, மீதமுள்ள தொகை: {amountLeft}", "shrineTooltipRemoveItem": "பொருளை அகற்றுவதற்கான பட்டன்", "rallyAccountAmount": "{amount} பேலன்ஸைக் கொண்ட {accountName} அக்கவுண்ட் எண்: {accountNumber}.", "rallySeeAllBudgets": "அனைத்து பட்ஜெட்களையும் காட்டு", "rallySeeAllBills": "அனைத்துப் பில்களையும் காட்டு", "craneFormDate": "தேதியைத் தேர்வுசெய்க", "craneFormOrigin": "தொடங்குமிடத்தைத் தேர்வுசெய்க", "craneFly2": "கும்பு வேலி, நேபாளம்", "craneFly3": "மச்சு பிச்சு, பெரு", "craneFly4": "மாலே, மாலத்தீவுகள்", "craneFly5": "விட்ஸ்னாவ், சுவிட்சர்லாந்து", "craneFly6": "மெக்ஸிகோ நகரம், மெக்ஸிகோ", "craneFly7": "ரஷ்மோர் மலை, அமெரிக்கா", "settingsTextDirectionLocaleBased": "வட்டார மொழியின் அடிப்படையில்", "craneFly9": "ஹவானா, கியூபா", "craneFly10": "கெய்ரோ, எகிப்து", "craneFly11": "லிஸ்பன், போர்ச்சுகல்", "craneFly12": "நாப்பா, அமெரிக்கா", "craneFly13": "பாலி, இந்தோனேசியா", "craneSleep0": "மாலே, மாலத்தீவுகள்", "craneSleep1": "ஆஸ்பென், அமெரிக்கா", "craneSleep2": "மச்சு பிச்சு, பெரு", "demoCupertinoSegmentedControlTitle": "பகுதிப் பிரிப்பிற்கான கட்டுப்பாடு", "craneSleep4": "விட்ஸ்னாவ், சுவிட்சர்லாந்து", "craneSleep5": "பிக் ஸுர், அமெரிக்கா", "craneSleep6": "நாப்பா, அமெரிக்கா", "craneSleep7": "போர்ட்டோ, போர்ச்சுகல்", "craneSleep8": "டுலூம், மெக்சிகோ", "craneEat5": "சியோல், தென் கொரியா", "demoChipTitle": "சிப்கள்", "demoChipSubtitle": "இவை உள்ளீட்டையோ பண்புக்கூற்றையோ செயலையோ குறிப்பதற்கான சிறிய கூறுகள் ஆகும்", "demoActionChipTitle": "செயல்பாட்டு சிப்", "demoActionChipDescription": "செயல்பாட்டு சிப்கள் முதன்மை உள்ளடக்கம் தொடர்பான செயலை மேற்கொள்ளத் தூண்டும் விருப்பங்களின் தொகுப்பாகும். குறிப்பிட்ட UIயில் மாறும் விதத்திலும் சூழலுக்கேற்பவும் செயல்பாட்டு சிப்கள் தோன்ற வேண்டும்.", "demoChoiceChipTitle": "தேர்வு சிப்", "demoChoiceChipDescription": "குறிப்பிட்ட தொகுப்பில் இருந்து ஒன்றை மட்டும் தேர்வுசெய்ய தேர்வு சிப்கள் பயன்படுகின்றன. தேர்வு சிப்களில் தொடர்புடைய விளக்க உரையோ வகைகளோ இருக்கும்.", "demoFilterChipTitle": "வடிப்பான் சிப்", "demoFilterChipDescription": "வடிப்பான் சிப்கள் உள்ளடக்கத்தை வடிகட்டுவதற்கு குறிச்சொற்களையோ விளக்கச் சொற்களையோ பயன்படுத்துகின்றன.", "demoInputChipTitle": "சிப்பை உள்ளிடுக", "demoInputChipDescription": "குறிப்பிட்ட விஷயம் (நபர், இடம் அல்லது பொருள்) அல்லது உரையாடுவதற்கான உரை போன்ற சிக்கலான தகவல்களை சுருக்கமாகக் குறிக்க உள்ளீட்டு சிப்கள் பயன்படுகின்றன.", "craneSleep9": "லிஸ்பன், போர்ச்சுகல்", "craneEat10": "லிஸ்பன், போர்ச்சுகல்", "demoCupertinoSegmentedControlDescription": "பல பரஸ்பர பிரத்தியேக விருப்பங்களில் இருந்து தேவையானதைத் தேர்வுசெய்யப் பயன்படுகிறது. பகுதிப் பிரிப்பிற்கான கட்டுப்பாட்டில் ஒரு விருப்பத்தைத் தேர்வுசெய்துவிட்டால் அதிலுள்ள மற்ற விருப்பங்களைத் தேர்வுசெய்ய இயலாது.", "chipTurnOnLights": "விளக்குகளை ஆன் செய்க", "chipSmall": "சிறியது", "chipMedium": "நடுத்தரமானது", "chipLarge": "பெரியது", "chipElevator": "மின்தூக்கி", "chipWasher": "வாஷர்", "chipFireplace": "நெருப்பிடம்", "chipBiking": "பைக்கிங்", "craneFormDiners": "உணவருந்துவோர்", "rallyAlertsMessageUnassignedTransactions": "{count,plural,=1{உங்களுக்குரிய சாத்தியமான வரிக் கழிவை அதிகரித்துக்கொள்ளுங்கள்! ஒரு பொறுப்புமாற்றப்படாத பணப் பரிமாற்றத்திற்கான வகைகளைச் சேருங்கள்.}other{உங்களுக்குரிய சாத்தியமான வரிக் கழிவை அதிகரித்துக்கொள்ளுங்கள்! {count} பொறுப்புமாற்றப்படாத பணப் பரிமாற்றங்களுக்கான வகைகளைச் சேருங்கள்.}}", "craneFormTime": "நேரத்தைத் தேர்வுசெய்க", "craneFormLocation": "இருப்பிடத்தைத் தேர்வுசெய்க", "craneFormTravelers": "பயணிகள்", "craneEat8": "அட்லாண்டா, அமெரிக்கா", "craneFormDestination": "சேருமிடத்தைத் தேர்வுசெய்க", "craneFormDates": "தேதிகளைத் தேர்வுசெய்க", "craneFly": "விமானங்கள்", "craneSleep": "உறங்குமிடம்", "craneEat": "உணவருந்துமிடம்", "craneFlySubhead": "சேருமிடத்தின் அடிப்படையில் விமானங்களைக் கண்டறிதல்", "craneSleepSubhead": "சேருமிடத்தின் அடிப்படையில் வாடகை விடுதிகளைக் கண்டறிதல்", "craneEatSubhead": "சேருமிடத்தின் அடிப்படையில் உணவகங்களைக் கண்டறிதல்", "craneFlyStops": "{numberOfStops,plural,=0{நிறுத்தம் எதுவுமில்லை}=1{ஒரு நிறுத்தம்}other{{numberOfStops} நிறுத்தங்கள்}}", "craneSleepProperties": "{totalProperties,plural,=0{உடைமை எதுவும் இல்லை}=1{ஒரு உடைமை உள்ளது}other{{totalProperties} உடைமைகள் உள்ளன}}", "craneEatRestaurants": "{totalRestaurants,plural,=0{உணவகங்கள் இல்லை}=1{ஒரு உணவகம்}other{{totalRestaurants} உணவகங்கள்}}", "craneFly0": "ஆஸ்பென், அமெரிக்கா", "demoCupertinoSegmentedControlSubtitle": "iOS-ஸ்டைல் பகுதிப் பிரிப்பிற்கான கட்டுப்பாடு", "craneSleep10": "கெய்ரோ, எகிப்து", "craneEat9": "மாட்ரிட், ஸ்பெயின்", "craneFly1": "பிக் ஸுர், அமெரிக்கா", "craneEat7": "நாஷ்வில்லி, அமெரிக்கா", "craneEat6": "சியாட்டில், அமெரிக்கா", "craneFly8": "சிங்கப்பூர்", "craneEat4": "பாரிஸ், ஃபிரான்ஸ்", "craneEat3": "போர்ட்லாந்து, அமெரிக்கா", "craneEat2": "கோர்டோபா, அர்ஜெண்டினா", "craneEat1": "டல்லாஸ், அமெரிக்கா", "craneEat0": "நேப்பிள்ஸ், இத்தாலி", "craneSleep11": "டாய்பேய், தைவான்", "craneSleep3": "ஹவானா, கியூபா", "shrineLogoutButtonCaption": "வெளியேறு", "rallyTitleBills": "பில்கள்", "rallyTitleAccounts": "கணக்குகள்", "shrineProductVagabondSack": "வேகபாண்ட் பேக்", "rallyAccountDetailDataInterestYtd": "வட்டி YTD", "shrineProductWhitneyBelt": "விட்னி பெல்ட்", "shrineProductGardenStrand": "கார்டன் ஸ்டிராண்டு", "shrineProductStrutEarrings": "ஸ்டிரட் காதணிகள்", "shrineProductVarsitySocks": "வார்சிட்டி சாக்ஸ்கள்", "shrineProductWeaveKeyring": "வீவ் கீரிங்", "shrineProductGatsbyHat": "காட்ஸ்பை தொப்பி", "shrineProductShrugBag": "ஷ்ரக் பேக்", "shrineProductGiltDeskTrio": "கில்ட் டெஸ்க் டிரியோ", "shrineProductCopperWireRack": "காப்பர் வயர் ரேக்", "shrineProductSootheCeramicSet": "இதமான செராமிக் செட்", "shrineProductHurrahsTeaSet": "ஹுர்ராஸ் டீ செட்", "shrineProductBlueStoneMug": "புளூ ஸ்டோன் மக்", "shrineProductRainwaterTray": "ரெயின்வாட்டர் டிரே", "shrineProductChambrayNapkins": "சாம்பிரே நாப்கின்கள்", "shrineProductSucculentPlanters": "சக்குலண்ட் பிளாண்ட்டர்கள்", "shrineProductQuartetTable": "குவார்டெட் டேபிள்", "shrineProductKitchenQuattro": "கிட்சன் குவாட்ரோ", "shrineProductClaySweater": "கிளே ஸ்வெட்டர்", "shrineProductSeaTunic": "கடல் டியூனிக்", "shrineProductPlasterTunic": "பிளாஸ்டர் டியூனிக்", "rallyBudgetCategoryRestaurants": "உணவகங்கள்", "shrineProductChambrayShirt": "சாம்பிரே ஷர்ட்", "shrineProductSeabreezeSweater": "கடல்காற்றுக்கேற்ற ஸ்வெட்டர்", "shrineProductGentryJacket": "ஜெண்ட்ரி ஜாக்கெட்", "shrineProductNavyTrousers": "நேவி டிரவுசர்கள்", "shrineProductWalterHenleyWhite": "வால்ட்டர் ஹென்லே (வெள்ளை)", "shrineProductSurfAndPerfShirt": "ஸர்ஃப் & பெர்ஃப் ஷர்ட்", "shrineProductGingerScarf": "ஜிஞ்சர் ஸ்கார்ஃப்", "shrineProductRamonaCrossover": "ரமோனா கிராஸ்ஓவர்", "shrineProductClassicWhiteCollar": "கிளாசிக்கான வெள்ளை காலர்", "shrineProductSunshirtDress": "சன்ஷர்ட் ஆடை", "rallyAccountDetailDataInterestRate": "வட்டி விகிதம்", "rallyAccountDetailDataAnnualPercentageYield": "சதவீத அடிப்படையில் ஆண்டின் லாபம்", "rallyAccountDataVacation": "சுற்றுலா", "shrineProductFineLinesTee": "ஃபைன் லைன்ஸ் டீ-ஷர்ட்", "rallyAccountDataHomeSavings": "வீட்டு சேமிப்புகள்", "rallyAccountDataChecking": "செக்கிங்", "rallyAccountDetailDataInterestPaidLastYear": "கடந்த ஆண்டு செலுத்திய வட்டி", "rallyAccountDetailDataNextStatement": "அடுத்த அறிக்கை", "rallyAccountDetailDataAccountOwner": "கணக்கு உரிமையாளர்", "rallyBudgetCategoryCoffeeShops": "காஃபி ஷாப்கள்", "rallyBudgetCategoryGroceries": "மளிகைப்பொருட்கள்", "shrineProductCeriseScallopTee": "செரைஸ் ஸ்கேலாப் டீ-ஷர்ட்", "rallyBudgetCategoryClothing": "ஆடை", "rallySettingsManageAccounts": "கணக்குகளை நிர்வகி", "rallyAccountDataCarSavings": "கார் சேமிப்புகள்", "rallySettingsTaxDocuments": "வரி தொடர்பான ஆவணங்கள்", "rallySettingsPasscodeAndTouchId": "கடவுக்குறியீடும் தொடுதல் ஐடியும்", "rallySettingsNotifications": "அறிவிப்புகள்", "rallySettingsPersonalInformation": "தனிப்பட்ட தகவல்", "rallySettingsPaperlessSettings": "பேப்பர்லெஸ் அமைப்புகள்", "rallySettingsFindAtms": "ATMகளைக் கண்டறி", "rallySettingsHelp": "உதவி", "rallySettingsSignOut": "வெளியேறு", "rallyAccountTotal": "மொத்தம்", "rallyBillsDue": "நிலுவை", "rallyBudgetLeft": "மீதம்", "rallyAccounts": "கணக்குகள்", "rallyBills": "பில்கள்", "rallyBudgets": "பட்ஜெட்கள்", "rallyAlerts": "விழிப்பூட்டல்கள்", "rallySeeAll": "எல்லாம் காட்டு", "rallyFinanceLeft": "மீதம்", "rallyTitleOverview": "மேலோட்டம்", "shrineProductShoulderRollsTee": "ஷோல்டர் ரோல்ஸ் டீ-ஷர்ட்", "shrineNextButtonCaption": "அடுத்து", "rallyTitleBudgets": "பட்ஜெட்கள்", "rallyTitleSettings": "அமைப்புகள்", "rallyLoginLoginToRally": "Rallyயில் உள்நுழைக", "rallyLoginNoAccount": "கணக்கு இல்லையா?", "rallyLoginSignUp": "பதிவு செய்க", "rallyLoginUsername": "பயனர்பெயர்", "rallyLoginPassword": "கடவுச்சொல்", "rallyLoginLabelLogin": "உள்நுழைக", "rallyLoginRememberMe": "எனது கடவுச்சொல்லைச் சேமி", "rallyLoginButtonLogin": "உள்நுழைக", "rallyAlertsMessageHeadsUpShopping": "கவனத்திற்கு: இந்த மாதத்திற்கான ஷாப்பிங் பட்ஜெட்டில் {percent} பயன்படுத்திவிட்டீர்கள்.", "rallyAlertsMessageSpentOnRestaurants": "இந்த வாரத்தில் உணவகங்களில் {amount} செலவிட்டுள்ளீர்கள்.", "rallyAlertsMessageATMFees": "இந்த மாதம் ATM கட்டணங்களில் {amount} செலவிட்டுள்ளீர்கள்", "rallyAlertsMessageCheckingAccount": "பாராட்டுகள்! உங்கள் செக்கிங் கணக்கு சென்ற மாதத்தைவிட {percent} அதிகரித்துள்ளது.", "shrineMenuCaption": "மெனு", "shrineCategoryNameAll": "அனைத்தும்", "shrineCategoryNameAccessories": "அணிகலன்கள்", "shrineCategoryNameClothing": "ஆடை", "shrineCategoryNameHome": "வீட்டுப்பொருட்கள்", "shrineLoginUsernameLabel": "பயனர்பெயர்", "shrineLoginPasswordLabel": "கடவுச்சொல்", "shrineCancelButtonCaption": "ரத்துசெய்", "shrineCartTaxCaption": "வரி:", "shrineCartPageCaption": "கார்ட்", "shrineProductQuantity": "எண்ணிக்கை: {quantity}", "shrineProductPrice": "x {price}", "shrineCartItemCount": "{quantity,plural,=0{எதுவும் இல்லை}=1{ஒரு பொருள்}other{{quantity} பொருட்கள்}}", "shrineCartClearButtonCaption": "கார்ட்டை காலி செய்", "shrineCartTotalCaption": "மொத்தம்", "shrineCartSubtotalCaption": "கூட்டுத்தொகை:", "shrineCartShippingCaption": "ஷிப்பிங் விலை:", "shrineProductGreySlouchTank": "கிரே ஸ்லவுச் டேங்க்", "shrineProductStellaSunglasses": "ஸ்டெல்லா சன்கிளாஸ்கள்", "shrineProductWhitePinstripeShirt": "வெள்ளை பின்ஸ்டிரைப் ஷர்ட்", "demoTextFieldWhereCanWeReachYou": "உங்களை எப்படித் தொடர்புகொள்வது?", "settingsTextDirectionLTR": "இடமிருந்து வலம்", "settingsTextScalingLarge": "பெரியது", "demoBottomSheetHeader": "மேற்தலைப்பு", "demoBottomSheetItem": "{value} பொருள்", "demoBottomTextFieldsTitle": "உரைப் புலங்கள்", "demoTextFieldTitle": "உரைப் புலங்கள்", "demoTextFieldSubtitle": "திருத்தக்கூடிய ஒற்றை வரி உரையும் எண்களும்", "demoTextFieldDescription": "உரைப் புலங்கள் பயனர்களை UIயில் உரையை உள்ளிட அனுமதிக்கும். அவை வழக்கமாகப் படிவங்களாகவும் உரையாடல்களாகவும் தோன்றும்.", "demoTextFieldShowPasswordLabel": "கடவுச்சொல்லைக் காட்டு", "demoTextFieldHidePasswordLabel": "கடவுச்சொல்லை மறைக்கும்", "demoTextFieldFormErrors": "சமர்ப்பிப்பதற்கு முன் சிவப்பு நிறத்தால் குறிக்கப்பட்டுள்ள பிழைகளைச் சரிசெய்யவும்.", "demoTextFieldNameRequired": "பெயரை உள்ளிடுவது அவசியம்.", "demoTextFieldOnlyAlphabeticalChars": "எழுத்துகளை மட்டும் உள்ளிடவும்.", "demoTextFieldEnterUSPhoneNumber": "(###) ###-#### - அமெரிக்க ஃபோன் எண் ஒன்றை உள்ளிடவும்.", "demoTextFieldEnterPassword": "கடவுச்சொல்லை உள்ளிடவும்.", "demoTextFieldPasswordsDoNotMatch": "கடவுச்சொற்கள் பொருந்தவில்லை", "demoTextFieldWhatDoPeopleCallYou": "உங்களை எப்படி அழைப்பார்கள்?", "demoTextFieldNameField": "பெயர்*", "demoBottomSheetButtonText": "கீழ்த் திரையைக் காட்டு", "demoTextFieldPhoneNumber": "ஃபோன் எண்*", "demoBottomSheetTitle": "கீழ்த் திரை", "demoTextFieldEmail": "மின்னஞ்சல்", "demoTextFieldTellUsAboutYourself": "உங்களைப் பற்றிச் சொல்லுங்கள் (எ.கா., நீங்கள் என்ன செய்கிறீர்கள் என்பதையோ உங்கள் பொழுதுபோக்கு என்ன என்பதையோ எழுதுங்கள்)", "demoTextFieldKeepItShort": "சுருக்கமாக இருக்கட்டும், இது ஒரு டெமோ மட்டுமே.", "starterAppGenericButton": "பட்டன்", "demoTextFieldLifeStory": "வாழ்க்கைக் கதை", "demoTextFieldSalary": "சம்பளம்", "demoTextFieldUSD": "USD", "demoTextFieldNoMoreThan": "8 எழுத்துகளுக்கு மேல் இருக்கக் கூடாது.", "demoTextFieldPassword": "கடவுச்சொல்*", "demoTextFieldRetypePassword": "கடவுச்சொல்லை மீண்டும் உள்ளிடுக*", "demoTextFieldSubmit": "சமர்ப்பி", "demoBottomNavigationSubtitle": "கிராஸ்-ஃபேடிங் பார்வைகள் கொண்ட கீழ் வழிசெலுத்தல்", "demoBottomSheetAddLabel": "சேர்", "demoBottomSheetModalDescription": "மோடல் கீழ்த் திரை என்பது மெனு அல்லது உரையாடலுக்கு ஒரு மாற்று ஆகும். அது பயனரை ஆப்ஸின் பிற பகுதிகளைப் பயன்படுத்துவதிலிருந்து தடுக்கிறது.", "demoBottomSheetModalTitle": "மோடல் கீழ்த் திரை", "demoBottomSheetPersistentDescription": "நிலைத்திருக்கும் கீழ்த் திரை ஒன்று ஆப்ஸின் முதன்மை உள்ளடக்கத்துக்குத் தொடர்புடைய தகவல்களைக் காட்டும். ஆப்ஸின் பிற பகுதிகளைப் பயன்படுத்தினாலும் பயனரால் நிலைத்திருக்கும் கீழ்த் திரையைப் பார்க்க முடியும்.", "demoBottomSheetPersistentTitle": "நிலைத்திருக்கும் கீழ்த் திரை", "demoBottomSheetSubtitle": "நிலைத்திருக்கும் மற்றும் மோடல் கீழ்த் திரைகள்", "demoTextFieldNameHasPhoneNumber": "{name} உடைய ஃபோன் எண் {phoneNumber}", "buttonText": "பட்டன்", "demoTypographyDescription": "மெட்டீரியல் டிசைனில் இருக்கும் வெவ்வேறு டைப்போகிராஃபிக்கல் ஸ்டைல்களுக்கான விளக்கங்கள்.", "demoTypographySubtitle": "முன்கூட்டியே வரையறுக்கப்பட்ட உரை ஸ்டைல்கள்", "demoTypographyTitle": "டைப்போகிராஃபி", "demoFullscreenDialogDescription": "The fullscreenDialog property specifies whether the incoming page is a fullscreen modal dialog", "demoFlatButtonDescription": "A flat button displays an ink splash on press but does not lift. Use flat buttons on toolbars, in dialogs and inline with padding", "demoBottomNavigationDescription": "கீழ் வழிசெலுத்தல் பட்டிகள் கீழ்த் திரையில் மூன்று முதல் ஐந்து இடங்களைக் காட்டும். ஒவ்வொரு இடமும் ஒரு ஐகானாலும் விருப்பத்திற்குட்பட்ட உரை லேபிளாலும் குறிப்பிடப்படும். கீழ் வழிசெலுத்தல் ஐகான் தட்டப்படும்போது அந்த ஐகானுடன் தொடர்புடைய உயர்நிலை வழிசெலுத்தல் இடத்திற்குப் பயனர் இட்டுச் செல்லப்படுவார்.", "demoBottomNavigationSelectedLabel": "தேர்ந்தெடுக்கப்பட்ட லேபிள்", "demoBottomNavigationPersistentLabels": "நிலைத்திருக்கும் லேபிள்கள்", "starterAppDrawerItem": "{value} பொருள்", "demoTextFieldRequiredField": "* அவசியமானதைக் குறிக்கிறது", "demoBottomNavigationTitle": "கீழ்ப்புற வழிசெலுத்தல்", "settingsLightTheme": "லைட்", "settingsTheme": "தீம்", "settingsPlatformIOS": "iOS", "settingsPlatformAndroid": "Android", "settingsTextDirectionRTL": "வலமிருந்து இடம்", "settingsTextScalingHuge": "மிகப் பெரியது", "cupertinoButton": "பட்டன்", "settingsTextScalingNormal": "இயல்பு", "settingsTextScalingSmall": "சிறியது", "settingsSystemDefault": "சிஸ்டம்", "settingsTitle": "அமைப்புகள்", "rallyDescription": "ஒரு பிரத்தியேக நிதி ஆப்ஸ்", "aboutDialogDescription": "இந்த ஆப்ஸிற்கான மூலக் குறியீட்டைப் பார்க்க {repoLink} இணைப்பிற்குச் செல்லவும்.", "bottomNavigationCommentsTab": "கருத்துகள்", "starterAppGenericBody": "உரைப் பகுதி", "starterAppGenericHeadline": "தலைப்பு", "starterAppGenericSubtitle": "துணைத்தலைப்பு", "starterAppGenericTitle": "தலைப்பு", "starterAppTooltipSearch": "Search", "starterAppTooltipShare": "பகிரும்", "starterAppTooltipFavorite": "பிடித்தது", "starterAppTooltipAdd": "சேர்க்கும்", "bottomNavigationCalendarTab": "Calendar", "starterAppDescription": "திரைக்கு ஏற்ப மாறும் ஸ்டார்ட்டர் தளவமைப்பு", "starterAppTitle": "ஸ்டாட்டர் ஆப்ஸ்", "aboutFlutterSamplesRepo": "Flutter மாதிரிகள் GitHub தரவு சேமிப்பகம்", "bottomNavigationContentPlaceholder": "{title} தாவலுக்கான ஒதுக்கிடம்", "bottomNavigationCameraTab": "கேமரா", "bottomNavigationAlarmTab": "அலாரம்", "bottomNavigationAccountTab": "கணக்கு", "demoTextFieldYourEmailAddress": "உங்கள் மின்னஞ்சல் முகவரி", "demoToggleButtonDescription": "Toggle buttons can be used to group related options. To emphasize groups of related toggle buttons, a group should share a common container", "colorsGrey": "GREY", "colorsBrown": "BROWN", "colorsDeepOrange": "DEEP ORANGE", "colorsOrange": "ORANGE", "colorsAmber": "AMBER", "colorsYellow": "YELLOW", "colorsLime": "LIME", "colorsLightGreen": "LIGHT GREEN", "colorsGreen": "GREEN", "homeHeaderGallery": "Gallery", "homeHeaderCategories": "வகைகள்", "shrineDescription": "ஒரு நவீன ஷாப்பிங் ஆப்ஸ்", "craneDescription": "பிரத்தியேகப் பயண ஆப்ஸ்", "homeCategoryReference": "ஸ்டைல்களும் மற்றவையும்", "demoInvalidURL": "Couldn't display URL:", "demoOptionsTooltip": "Options", "demoInfoTooltip": "Info", "demoCodeTooltip": "டெமோ குறியீடு", "demoDocumentationTooltip": "API Documentation", "demoFullscreenTooltip": "முழுத்திரை", "settingsTextScaling": "எழுத்து அளவு", "settingsTextDirection": "உரையின் திசை", "settingsLocale": "மொழி", "settingsPlatformMechanics": "பிளாட்ஃபார்ம் மெக்கானிக்ஸ்", "settingsDarkTheme": "டார்க்", "settingsSlowMotion": "ஸ்லோ மோஷன்", "settingsAbout": "Flutter கேலரி - ஓர் அறிமுகம்", "settingsFeedback": "கருத்தை அனுப்பு", "settingsAttribution": "லண்டனில் இருக்கும் TOASTER வடிவமைத்தது", "demoButtonTitle": "Buttons", "demoButtonSubtitle": "உரை பட்டன், உயர்த்தப்பட்ட பட்டன், வெளிக்கோடு பட்டன் மற்றும் பல", "demoFlatButtonTitle": "Flat Button", "demoRaisedButtonDescription": "Raised buttons add dimension to mostly flat layouts. They emphasize functions on busy or wide spaces.", "demoRaisedButtonTitle": "Raised Button", "demoOutlineButtonTitle": "Outline Button", "demoOutlineButtonDescription": "Outline buttons become opaque and elevate when pressed. They are often paired with raised buttons to indicate an alternative, secondary action.", "demoToggleButtonTitle": "Toggle Buttons", "colorsTeal": "TEAL", "demoFloatingButtonTitle": "Floating Action Button", "demoFloatingButtonDescription": "A floating action button is a circular icon button that hovers over content to promote a primary action in the application.", "demoDialogTitle": "Dialogs", "demoDialogSubtitle": "Simple, alert, and fullscreen", "demoAlertDialogTitle": "Alert", "demoAlertDialogDescription": "An alert dialog informs the user about situations that require acknowledgement. An alert dialog has an optional title and an optional list of actions.", "demoAlertTitleDialogTitle": "Alert With Title", "demoSimpleDialogTitle": "Simple", "demoSimpleDialogDescription": "A simple dialog offers the user a choice between several options. A simple dialog has an optional title that is displayed above the choices.", "demoFullscreenDialogTitle": "Fullscreen", "demoCupertinoButtonsTitle": "பட்டன்கள்", "demoCupertinoButtonsSubtitle": "iOS-style buttons", "demoCupertinoButtonsDescription": "An iOS-style button. It takes in text and/or an icon that fades out and in on touch. May optionally have a background.", "demoCupertinoAlertsTitle": "Alerts", "demoCupertinoAlertsSubtitle": "iOS-style alert dialogs", "demoCupertinoAlertTitle": "விழிப்பூட்டல்", "demoCupertinoAlertDescription": "An alert dialog informs the user about situations that require acknowledgement. An alert dialog has an optional title, optional content, and an optional list of actions. The title is displayed above the content and the actions are displayed below the content.", "demoCupertinoAlertWithTitleTitle": "தலைப்புடன் கூடிய விழிப்பூட்டல்", "demoCupertinoAlertButtonsTitle": "Alert With Buttons", "demoCupertinoAlertButtonsOnlyTitle": "Alert Buttons Only", "demoCupertinoActionSheetTitle": "Action Sheet", "demoCupertinoActionSheetDescription": "An action sheet is a specific style of alert that presents the user with a set of two or more choices related to the current context. An action sheet can have a title, an additional message, and a list of actions.", "demoColorsTitle": "Colors", "demoColorsSubtitle": "All of the predefined colors", "demoColorsDescription": "மெட்டீரியல் டிசைனின் வண்ணத் தட்டைக் குறிக்கின்ற வண்ணங்களும், வண்ணக் கலவை மாறிலிகளும்.", "buttonTextEnabled": "ENABLED", "buttonTextDisabled": "DISABLED", "buttonTextCreate": "Create", "dialogSelectedOption": "You selected: \"{value}\"", "dialogDiscardTitle": "Discard draft?", "dialogLocationTitle": "Use Google's location service?", "dialogLocationDescription": "Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running.", "dialogCancel": "CANCEL", "dialogDiscard": "DISCARD", "dialogDisagree": "DISAGREE", "dialogAgree": "AGREE", "dialogSetBackup": "Set backup account", "colorsBlueGrey": "BLUE GREY", "dialogShow": "SHOW DIALOG", "dialogFullscreenTitle": "Full Screen Dialog", "dialogFullscreenSave": "SAVE", "dialogFullscreenDescription": "A full screen dialog demo", "cupertinoButtonEnabled": "Enabled", "cupertinoButtonDisabled": "Disabled", "cupertinoButtonWithBackground": "With Background", "cupertinoAlertCancel": "Cancel", "cupertinoAlertDiscard": "Discard", "cupertinoAlertLocationTitle": "Allow \"Maps\" to access your location while you are using the app?", "cupertinoAlertLocationDescription": "Your current location will be displayed on the map and used for directions, nearby search results, and estimated travel times.", "cupertinoAlertAllow": "Allow", "cupertinoAlertDontAllow": "Don't Allow", "cupertinoAlertFavoriteDessert": "Select Favorite Dessert", "cupertinoAlertDessertDescription": "Please select your favorite type of dessert from the list below. Your selection will be used to customize the suggested list of eateries in your area.", "cupertinoAlertCheesecake": "Cheesecake", "cupertinoAlertTiramisu": "Tiramisu", "cupertinoAlertApplePie": "Apple Pie", "cupertinoAlertChocolateBrownie": "Chocolate Brownie", "cupertinoShowAlert": "Show Alert", "colorsRed": "RED", "colorsPink": "PINK", "colorsPurple": "PURPLE", "colorsDeepPurple": "DEEP PURPLE", "colorsIndigo": "INDIGO", "colorsBlue": "BLUE", "colorsLightBlue": "LIGHT BLUE", "colorsCyan": "CYAN", "dialogAddAccount": "கணக்கைச் சேர்", "Gallery": "கேலரி", "Categories": "வகைகள்", "SHRINE": "SHRINE", "Basic shopping app": "அடிப்படை ஷாப்பிங்கிற்கான ஆப்ஸ்", "RALLY": "RALLY", "CRANE": "CRANE", "Travel app": "பயண ஆப்ஸ்", "MATERIAL": "MATERIAL", "CUPERTINO": "CUPERTINO", "REFERENCE STYLES & MEDIA": "மேற்கோள் ஸ்டைல்கள் & மீடியா" }
gallery/lib/l10n/intl_ta.arb/0
{ "file_path": "gallery/lib/l10n/intl_ta.arb", "repo_id": "gallery", "token_count": 74048 }
880
// Copyright 2020 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/material.dart'; /// An image that shows a [placeholder] widget while the target [image] is /// loading, then fades in the new image when it loads. /// /// This is similar to [FadeInImage] but the difference is that it allows you /// to specify a widget as a [placeholder], instead of just an [ImageProvider]. /// It also lets you override the [child] argument, in case you want to wrap /// the image with another widget, for example an [Ink.image]. class FadeInImagePlaceholder extends StatelessWidget { const FadeInImagePlaceholder({ super.key, required this.image, required this.placeholder, this.child, this.duration = const Duration(milliseconds: 500), this.excludeFromSemantics = false, this.width, this.height, this.fit, }); /// The target image that we are loading into memory. final ImageProvider image; /// Widget displayed while the target [image] is loading. final Widget placeholder; /// What widget you want to display instead of [placeholder] after [image] is /// loaded. /// /// Defaults to display the [image]. final Widget? child; /// The duration for how long the fade out of the placeholder and /// fade in of [child] should take. final Duration duration; /// See [Image.excludeFromSemantics]. final bool excludeFromSemantics; /// See [Image.width]. final double? width; /// See [Image.height]. final double? height; /// See [Image.fit]. final BoxFit? fit; @override Widget build(BuildContext context) { return Image( image: image, excludeFromSemantics: excludeFromSemantics, width: width, height: height, fit: fit, frameBuilder: (context, child, frame, wasSynchronouslyLoaded) { if (wasSynchronouslyLoaded) { return this.child ?? child; } else { return AnimatedSwitcher( duration: duration, child: frame != null ? this.child ?? child : placeholder, ); } }, ); } }
gallery/lib/layout/image_placeholder.dart/0
{ "file_path": "gallery/lib/layout/image_placeholder.dart", "repo_id": "gallery", "token_count": 718 }
881
// Copyright 2019 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_gen/gen_l10n/gallery_localizations.dart'; import 'package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart'; import 'package:gallery/data/gallery_options.dart'; import 'package:gallery/layout/adaptive.dart'; import 'package:gallery/layout/image_placeholder.dart'; import 'package:gallery/studies/crane/backlayer.dart'; import 'package:gallery/studies/crane/border_tab_indicator.dart'; import 'package:gallery/studies/crane/colors.dart'; import 'package:gallery/studies/crane/header_form.dart'; import 'package:gallery/studies/crane/item_cards.dart'; import 'package:gallery/studies/crane/model/data.dart'; import 'package:gallery/studies/crane/model/destination.dart'; class _FrontLayer extends StatefulWidget { const _FrontLayer({ required this.title, required this.index, required this.mobileTopOffset, required this.restorationId, }); final String title; final int index; final double mobileTopOffset; final String restorationId; @override _FrontLayerState createState() => _FrontLayerState(); } class _FrontLayerState extends State<_FrontLayer> { List<Destination>? destinations; static const frontLayerBorderRadius = 16.0; static const bottomPadding = EdgeInsets.only(bottom: 120); @override void didChangeDependencies() { super.didChangeDependencies(); // We use didChangeDependencies because the initialization involves an // InheritedWidget (for localization). However, we don't need to get // destinations again when, say, resizing the window. if (destinations == null) { if (widget.index == 0) destinations = getFlyDestinations(context); if (widget.index == 1) destinations = getSleepDestinations(context); if (widget.index == 2) destinations = getEatDestinations(context); } } Widget _header() { return Align( alignment: AlignmentDirectional.centerStart, child: Padding( padding: const EdgeInsets.only( top: 20, bottom: 22, ), child: SelectableText( widget.title, style: Theme.of(context).textTheme.titleSmall, ), ), ); } @override Widget build(BuildContext context) { final isDesktop = isDisplayDesktop(context); final isSmallDesktop = isDisplaySmallDesktop(context); final crossAxisCount = isDesktop ? 4 : 1; return FocusTraversalGroup( policy: ReadingOrderTraversalPolicy(), child: Padding( padding: isDesktop ? EdgeInsets.zero : EdgeInsets.only(top: widget.mobileTopOffset), child: PhysicalShape( elevation: 16, color: cranePrimaryWhite, clipper: const ShapeBorderClipper( shape: RoundedRectangleBorder( borderRadius: BorderRadius.only( topLeft: Radius.circular(frontLayerBorderRadius), topRight: Radius.circular(frontLayerBorderRadius), ), ), ), child: Padding( padding: isDesktop ? EdgeInsets.symmetric( horizontal: isSmallDesktop ? appPaddingSmall : appPaddingLarge) .add(bottomPadding) : const EdgeInsets.symmetric(horizontal: 20).add(bottomPadding), child: Column( children: [ _header(), Expanded( child: MasonryGridView.count( key: ValueKey('CraneListView-${widget.index}'), restorationId: widget.restorationId, crossAxisCount: crossAxisCount, crossAxisSpacing: 16.0, itemBuilder: (context, index) => DestinationCard(destination: destinations![index]), itemCount: destinations!.length, ), ), ], ), ), ), ), ); } } /// Builds a Backdrop. /// /// A Backdrop widget has two layers, front and back. The front layer is shown /// by default, and slides down to show the back layer, from which a user /// can make a selection. The user can also configure the titles for when the /// front or back layer is showing. class Backdrop extends StatefulWidget { final Widget frontLayer; final List<BackLayerItem> backLayerItems; final Widget frontTitle; final Widget backTitle; const Backdrop({ super.key, required this.frontLayer, required this.backLayerItems, required this.frontTitle, required this.backTitle, }); @override State<Backdrop> createState() => _BackdropState(); } class _BackdropState extends State<Backdrop> with TickerProviderStateMixin, RestorationMixin { final RestorableInt tabIndex = RestorableInt(0); late TabController _tabController; late Animation<Offset> _flyLayerHorizontalOffset; late Animation<Offset> _sleepLayerHorizontalOffset; late Animation<Offset> _eatLayerHorizontalOffset; // How much the 'sleep' front layer is vertically offset relative to other // front layers, in pixels, with the mobile layout. static const _sleepLayerTopOffset = 60.0; @override String get restorationId => 'tab_non_scrollable_demo'; @override void restoreState(RestorationBucket? oldBucket, bool initialRestore) { registerForRestoration(tabIndex, 'tab_index'); _tabController.index = tabIndex.value; } @override void initState() { super.initState(); _tabController = TabController(length: 3, vsync: this); _tabController.addListener(() { // When the tab controller's value is updated, make sure to update the // tab index value, which is state restorable. setState(() { tabIndex.value = _tabController.index; }); }); // Offsets to create a horizontal gap between front layers. final tabControllerAnimation = _tabController.animation!; _flyLayerHorizontalOffset = tabControllerAnimation.drive( Tween<Offset>(begin: const Offset(0, 0), end: const Offset(-0.05, 0))); _sleepLayerHorizontalOffset = tabControllerAnimation.drive( Tween<Offset>(begin: const Offset(0.05, 0), end: const Offset(0, 0))); _eatLayerHorizontalOffset = tabControllerAnimation.drive(Tween<Offset>( begin: const Offset(0.10, 0), end: const Offset(0.05, 0))); } @override void dispose() { _tabController.dispose(); tabIndex.dispose(); super.dispose(); } void _handleTabs(int tabIndex) { _tabController.animateTo(tabIndex, duration: const Duration(milliseconds: 300)); } @override Widget build(BuildContext context) { final isDesktop = isDisplayDesktop(context); final textScaleFactor = GalleryOptions.of(context).textScaleFactor(context); final localizations = GalleryLocalizations.of(context)!; return Material( color: cranePurple800, child: Padding( padding: const EdgeInsets.only(top: 12), child: FocusTraversalGroup( policy: ReadingOrderTraversalPolicy(), child: Scaffold( backgroundColor: cranePurple800, appBar: AppBar( automaticallyImplyLeading: false, systemOverlayStyle: SystemUiOverlayStyle.light, elevation: 0, titleSpacing: 0, flexibleSpace: CraneAppBar( tabController: _tabController, tabHandler: _handleTabs, ), ), body: Stack( children: [ BackLayer( tabController: _tabController, backLayerItems: widget.backLayerItems, ), Container( margin: EdgeInsets.only( top: isDesktop ? (isDisplaySmallDesktop(context) ? textFieldHeight * 3 : textFieldHeight * 2) + 20 * textScaleFactor / 2 : 175 + 140 * textScaleFactor / 2, ), // To display the middle front layer higher than the others, // we allow the TabBarView to overflow by an offset // (doubled because it technically overflows top & bottom). // The other front layers are top padded by this offset. child: LayoutBuilder(builder: (context, constraints) { return OverflowBox( maxHeight: constraints.maxHeight + _sleepLayerTopOffset * 2, child: TabBarView( physics: isDesktop ? const NeverScrollableScrollPhysics() : null, // use default TabBarView physics controller: _tabController, children: [ SlideTransition( position: _flyLayerHorizontalOffset, child: _FrontLayer( title: localizations.craneFlySubhead, index: 0, mobileTopOffset: _sleepLayerTopOffset, restorationId: 'fly-subhead', ), ), SlideTransition( position: _sleepLayerHorizontalOffset, child: _FrontLayer( title: localizations.craneSleepSubhead, index: 1, mobileTopOffset: 0, restorationId: 'sleep-subhead', ), ), SlideTransition( position: _eatLayerHorizontalOffset, child: _FrontLayer( title: localizations.craneEatSubhead, index: 2, mobileTopOffset: _sleepLayerTopOffset, restorationId: 'eat-subhead', ), ), ], ), ); }), ), ], ), ), ), ), ); } } class CraneAppBar extends StatefulWidget { final Function(int)? tabHandler; final TabController tabController; const CraneAppBar({ super.key, this.tabHandler, required this.tabController, }); @override State<CraneAppBar> createState() => _CraneAppBarState(); } class _CraneAppBarState extends State<CraneAppBar> { @override Widget build(BuildContext context) { final isDesktop = isDisplayDesktop(context); final isSmallDesktop = isDisplaySmallDesktop(context); final textScaleFactor = GalleryOptions.of(context).textScaleFactor(context); final localizations = GalleryLocalizations.of(context)!; return SafeArea( child: Padding( padding: EdgeInsets.symmetric( horizontal: isDesktop && !isSmallDesktop ? appPaddingLarge : appPaddingSmall, ), child: Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, crossAxisAlignment: CrossAxisAlignment.center, children: [ const ExcludeSemantics( child: FadeInImagePlaceholder( image: AssetImage( 'crane/logo/logo.png', package: 'flutter_gallery_assets', ), placeholder: SizedBox( width: 40, height: 60, ), width: 40, height: 60, ), ), Expanded( child: Padding( padding: const EdgeInsetsDirectional.only(start: 24), child: Theme( data: Theme.of(context).copyWith( splashColor: Colors.transparent, ), child: TabBar( indicator: BorderTabIndicator( indicatorHeight: isDesktop ? 28 : 32, textScaleFactor: textScaleFactor, ), controller: widget.tabController, labelPadding: const EdgeInsets.symmetric(horizontal: 32), isScrollable: true, // left-align tabs on desktop labelStyle: Theme.of(context).textTheme.labelLarge, labelColor: cranePrimaryWhite, physics: const BouncingScrollPhysics(), unselectedLabelColor: cranePrimaryWhite.withOpacity(.6), onTap: (index) => widget.tabController.animateTo( index, duration: const Duration(milliseconds: 300), ), tabs: [ Tab(text: localizations.craneFly), Tab(text: localizations.craneSleep), Tab(text: localizations.craneEat), ], ), ), ), ), ], ), ), ); } }
gallery/lib/studies/crane/backdrop.dart/0
{ "file_path": "gallery/lib/studies/crane/backdrop.dart", "repo_id": "gallery", "token_count": 6496 }
882
// Copyright 2019 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/gallery_localizations.dart'; import 'package:gallery/data/gallery_options.dart'; import 'package:gallery/layout/image_placeholder.dart'; import 'package:gallery/layout/text_scale.dart'; import 'package:google_fonts/google_fonts.dart'; import 'package:intl/intl.dart'; class ArticleData { ArticleData({ required this.imageUrl, required this.imageAspectRatio, required this.category, required this.title, this.snippet, }); final String imageUrl; final double imageAspectRatio; final String category; final String title; final String? snippet; } class HorizontalArticlePreview extends StatelessWidget { const HorizontalArticlePreview({ super.key, required this.data, this.minutes, }); final ArticleData data; final int? minutes; @override Widget build(BuildContext context) { final textTheme = Theme.of(context).textTheme; return Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, crossAxisAlignment: CrossAxisAlignment.start, children: [ Expanded( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ SelectableText( data.category, style: textTheme.titleMedium, ), const SizedBox(height: 12), SelectableText( data.title, style: textTheme.headlineSmall!.copyWith(fontSize: 16), ), ], ), ), if (minutes != null) ...[ SelectableText( GalleryLocalizations.of(context)!.craneMinutes(minutes!), style: textTheme.bodyLarge, ), const SizedBox(width: 8), ], FadeInImagePlaceholder( image: AssetImage(data.imageUrl, package: 'flutter_gallery_assets'), placeholder: Container( color: Colors.black.withOpacity(0.1), width: 64 / (1 / data.imageAspectRatio), height: 64, ), fit: BoxFit.cover, excludeFromSemantics: true, ), ], ); } } class VerticalArticlePreview extends StatelessWidget { const VerticalArticlePreview({ super.key, required this.data, this.width, this.headlineTextStyle, this.showSnippet = false, }); final ArticleData data; final double? width; final TextStyle? headlineTextStyle; final bool showSnippet; @override Widget build(BuildContext context) { final textTheme = Theme.of(context).textTheme; return SizedBox( width: width ?? double.infinity, child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ SizedBox( width: double.infinity, child: FadeInImagePlaceholder( image: AssetImage( data.imageUrl, package: 'flutter_gallery_assets', ), placeholder: LayoutBuilder(builder: (context, constraints) { return Container( color: Colors.black.withOpacity(0.1), width: constraints.maxWidth, height: constraints.maxWidth / data.imageAspectRatio, ); }), fit: BoxFit.fitWidth, width: double.infinity, excludeFromSemantics: true, ), ), const SizedBox(height: 12), SelectableText( data.category, style: textTheme.titleMedium, ), const SizedBox(height: 12), SelectableText( data.title, style: headlineTextStyle ?? textTheme.headlineSmall, ), if (showSnippet) ...[ const SizedBox(height: 4), SelectableText( data.snippet!, style: textTheme.bodyMedium, ), ], ], ), ); } } List<Widget> buildArticlePreviewItems(BuildContext context) { final localizations = GalleryLocalizations.of(context)!; Widget articleDivider = Container( margin: const EdgeInsets.symmetric(vertical: 16), color: Colors.black.withOpacity(0.07), height: 1, ); Widget sectionDivider = Container( margin: const EdgeInsets.symmetric(vertical: 16), color: Colors.black.withOpacity(0.2), height: 1, ); final textTheme = Theme.of(context).textTheme; return <Widget>[ VerticalArticlePreview( data: ArticleData( imageUrl: 'fortnightly/fortnightly_healthcare.jpg', imageAspectRatio: 391 / 248, category: localizations.fortnightlyMenuWorld.toUpperCase(), title: localizations.fortnightlyHeadlineHealthcare, ), headlineTextStyle: textTheme.headlineSmall!.copyWith(fontSize: 20), ), articleDivider, HorizontalArticlePreview( data: ArticleData( imageUrl: 'fortnightly/fortnightly_war.png', imageAspectRatio: 1, category: localizations.fortnightlyMenuPolitics.toUpperCase(), title: localizations.fortnightlyHeadlineWar, ), ), articleDivider, HorizontalArticlePreview( data: ArticleData( imageUrl: 'fortnightly/fortnightly_gas.png', imageAspectRatio: 1, category: localizations.fortnightlyMenuTech.toUpperCase(), title: localizations.fortnightlyHeadlineGasoline, ), ), sectionDivider, SelectableText( localizations.fortnightlyLatestUpdates, style: textTheme.titleLarge, ), articleDivider, HorizontalArticlePreview( data: ArticleData( imageUrl: 'fortnightly/fortnightly_army.png', imageAspectRatio: 1, category: localizations.fortnightlyMenuPolitics.toUpperCase(), title: localizations.fortnightlyHeadlineArmy, ), minutes: 2, ), articleDivider, HorizontalArticlePreview( data: ArticleData( imageUrl: 'fortnightly/fortnightly_stocks.png', imageAspectRatio: 77 / 64, category: localizations.fortnightlyMenuWorld.toUpperCase(), title: localizations.fortnightlyHeadlineStocks, ), minutes: 5, ), articleDivider, HorizontalArticlePreview( data: ArticleData( imageUrl: 'fortnightly/fortnightly_fabrics.png', imageAspectRatio: 76 / 64, category: localizations.fortnightlyMenuTech.toUpperCase(), title: localizations.fortnightlyHeadlineFabrics, ), minutes: 4, ), articleDivider, ]; } class HashtagBar extends StatelessWidget { const HashtagBar({super.key}); @override Widget build(BuildContext context) { final verticalDivider = Container( margin: const EdgeInsets.symmetric(horizontal: 16, vertical: 8), color: Colors.black.withOpacity(0.1), width: 1, ); final textTheme = Theme.of(context).textTheme; final height = 32 * reducedTextScale(context); final localizations = GalleryLocalizations.of(context)!; return SizedBox( height: height, child: ListView( restorationId: 'hashtag_bar_list_view', scrollDirection: Axis.horizontal, children: [ const SizedBox(width: 16), Center( child: SelectableText( '#${localizations.fortnightlyTrendingTechDesign}', style: textTheme.titleSmall, ), ), verticalDivider, Center( child: SelectableText( '#${localizations.fortnightlyTrendingReform}', style: textTheme.titleSmall, ), ), verticalDivider, Center( child: SelectableText( '#${localizations.fortnightlyTrendingHealthcareRevolution}', style: textTheme.titleSmall, ), ), verticalDivider, Center( child: SelectableText( '#${localizations.fortnightlyTrendingGreenArmy}', style: textTheme.titleSmall, ), ), verticalDivider, Center( child: SelectableText( '#${localizations.fortnightlyTrendingStocks}', style: textTheme.titleSmall, ), ), verticalDivider, ], ), ); } } class NavigationMenu extends StatelessWidget { const NavigationMenu({super.key, this.isCloseable = false}); final bool isCloseable; @override Widget build(BuildContext context) { final localizations = GalleryLocalizations.of(context)!; return ListView( children: [ if (isCloseable) Row( children: [ IconButton( icon: const Icon(Icons.close), tooltip: MaterialLocalizations.of(context).closeButtonTooltip, onPressed: () => Navigator.pop(context), ), Image.asset( 'fortnightly/fortnightly_title.png', package: 'flutter_gallery_assets', excludeFromSemantics: true, ), ], ), const SizedBox(height: 32), MenuItem( localizations.fortnightlyMenuFrontPage, header: true, ), MenuItem(localizations.fortnightlyMenuWorld), MenuItem(localizations.fortnightlyMenuUS), MenuItem(localizations.fortnightlyMenuPolitics), MenuItem(localizations.fortnightlyMenuBusiness), MenuItem(localizations.fortnightlyMenuTech), MenuItem(localizations.fortnightlyMenuScience), MenuItem(localizations.fortnightlyMenuSports), MenuItem(localizations.fortnightlyMenuTravel), MenuItem(localizations.fortnightlyMenuCulture), ], ); } } class MenuItem extends StatelessWidget { const MenuItem(this.title, {super.key, this.header = false}); final String title; final bool header; @override Widget build(BuildContext context) { return Padding( padding: const EdgeInsets.symmetric(vertical: 8), child: Row( children: [ Container( width: 32, alignment: Alignment.centerLeft, child: header ? null : const Icon(Icons.arrow_drop_down), ), Expanded( child: SelectableText( title, style: Theme.of(context).textTheme.titleMedium!.copyWith( fontWeight: header ? FontWeight.w700 : FontWeight.w600, fontSize: 16, ), ), ), ], ), ); } } class StockItem extends StatelessWidget { const StockItem({ super.key, required this.ticker, required this.price, required this.percent, }); final String ticker; final String price; final double percent; @override Widget build(BuildContext context) { final textTheme = Theme.of(context).textTheme; final percentFormat = NumberFormat.decimalPercentPattern( locale: GalleryOptions.of(context).locale.toString(), decimalDigits: 2, ); return Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ SelectableText(ticker, style: textTheme.titleMedium), const SizedBox(height: 2), Row( children: [ Expanded( child: SelectableText( price, style: textTheme.titleSmall!.copyWith( color: textTheme.titleSmall!.color!.withOpacity(0.75), ), ), ), SelectableText( percent > 0 ? '+' : '-', style: textTheme.titleSmall!.copyWith( fontSize: 12, color: percent > 0 ? const Color(0xff20CF63) : const Color(0xff661FFF), ), ), const SizedBox(width: 4), SelectableText( percentFormat.format(percent.abs() / 100), style: textTheme.bodySmall!.copyWith( fontSize: 12, color: textTheme.titleSmall!.color!.withOpacity(0.75), ), ), ], ) ], ); } } List<Widget> buildStockItems(BuildContext context) { Widget articleDivider = Container( margin: const EdgeInsets.symmetric(vertical: 16), color: Colors.black.withOpacity(0.07), height: 1, ); const imageAspectRatio = 165 / 55; return <Widget>[ SizedBox( width: double.infinity, child: FadeInImagePlaceholder( image: const AssetImage( 'fortnightly/fortnightly_chart.png', package: 'flutter_gallery_assets', ), placeholder: LayoutBuilder(builder: (context, constraints) { return Container( color: Colors.black.withOpacity(0.1), width: constraints.maxWidth, height: constraints.maxWidth / imageAspectRatio, ); }), width: double.infinity, fit: BoxFit.contain, excludeFromSemantics: true, ), ), articleDivider, const StockItem( ticker: 'DIJA', price: '7,031.21', percent: -0.48, ), articleDivider, const StockItem( ticker: 'SP', price: '1,967.84', percent: -0.23, ), articleDivider, const StockItem( ticker: 'Nasdaq', price: '6,211.46', percent: 0.52, ), articleDivider, const StockItem( ticker: 'Nikkei', price: '5,891', percent: 1.16, ), articleDivider, const StockItem( ticker: 'DJ Total', price: '89.02', percent: 0.80, ), articleDivider, ]; } class VideoPreview extends StatelessWidget { const VideoPreview({ super.key, required this.data, required this.time, }); final ArticleData data; final String time; @override Widget build(BuildContext context) { final textTheme = Theme.of(context).textTheme; return Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ SizedBox( width: double.infinity, child: FadeInImagePlaceholder( image: AssetImage( data.imageUrl, package: 'flutter_gallery_assets', ), placeholder: LayoutBuilder(builder: (context, constraints) { return Container( color: Colors.black.withOpacity(0.1), width: constraints.maxWidth, height: constraints.maxWidth / data.imageAspectRatio, ); }), fit: BoxFit.contain, width: double.infinity, excludeFromSemantics: true, ), ), const SizedBox(height: 4), Row( children: [ Expanded( child: SelectableText( data.category, style: textTheme.titleMedium, ), ), SelectableText(time, style: textTheme.bodyLarge) ], ), const SizedBox(height: 4), SelectableText(data.title, style: textTheme.headlineSmall!.copyWith(fontSize: 16)), ], ); } } List<Widget> buildVideoPreviewItems(BuildContext context) { final localizations = GalleryLocalizations.of(context)!; return <Widget>[ VideoPreview( data: ArticleData( imageUrl: 'fortnightly/fortnightly_feminists.jpg', imageAspectRatio: 148 / 88, category: localizations.fortnightlyMenuPolitics.toUpperCase(), title: localizations.fortnightlyHeadlineFeminists, ), time: '2:31', ), const SizedBox(height: 32), VideoPreview( data: ArticleData( imageUrl: 'fortnightly/fortnightly_bees.jpg', imageAspectRatio: 148 / 88, category: localizations.fortnightlyMenuUS.toUpperCase(), title: localizations.fortnightlyHeadlineBees, ), time: '1:37', ), ]; } ThemeData buildTheme(BuildContext context) { final lightTextTheme = ThemeData.light().textTheme; return ThemeData( scaffoldBackgroundColor: Colors.white, appBarTheme: AppBarTheme( color: Colors.white, elevation: 0, iconTheme: IconTheme.of(context).copyWith(color: Colors.black), ), highlightColor: Colors.transparent, textTheme: TextTheme( // preview snippet bodyMedium: GoogleFonts.merriweather( fontWeight: FontWeight.w300, fontSize: 16, textStyle: lightTextTheme.bodyMedium, ), // time in latest updates bodyLarge: GoogleFonts.libreFranklin( fontWeight: FontWeight.w500, fontSize: 11, color: Colors.black.withOpacity(0.5), textStyle: lightTextTheme.bodyLarge, ), // preview headlines headlineSmall: GoogleFonts.libreFranklin( fontWeight: FontWeight.w500, fontSize: 16, textStyle: lightTextTheme.headlineSmall, ), // (caption 2), preview category, stock ticker titleMedium: GoogleFonts.robotoCondensed( fontWeight: FontWeight.w700, fontSize: 16, ), titleSmall: GoogleFonts.libreFranklin( fontWeight: FontWeight.w400, fontSize: 14, textStyle: lightTextTheme.titleSmall, ), // section titles: Top Highlights, Last Updated... titleLarge: GoogleFonts.merriweather( fontWeight: FontWeight.w700, fontStyle: FontStyle.italic, fontSize: 14, textStyle: lightTextTheme.titleLarge, ), ), ); }
gallery/lib/studies/fortnightly/shared.dart/0
{ "file_path": "gallery/lib/studies/fortnightly/shared.dart", "repo_id": "gallery", "token_count": 8157 }
883
// Copyright 2019 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/material.dart'; import 'package:gallery/layout/adaptive.dart'; import 'package:gallery/studies/rally/colors.dart'; import 'package:gallery/studies/rally/data.dart'; import 'package:gallery/studies/rally/routes.dart' as rally_route; class SettingsView extends StatefulWidget { const SettingsView({super.key}); @override State<SettingsView> createState() => _SettingsViewState(); } class _SettingsViewState extends State<SettingsView> { @override Widget build(BuildContext context) { return FocusTraversalGroup( child: Container( padding: EdgeInsets.only(top: isDisplayDesktop(context) ? 24 : 0), child: ListView( restorationId: 'settings_list_view', shrinkWrap: true, children: [ for (String title in DummyDataService.getSettingsTitles(context)) ...[ _SettingsItem(title), const Divider( color: RallyColors.dividerColor, height: 1, ) ] ], ), ), ); } } class _SettingsItem extends StatelessWidget { const _SettingsItem(this.title); final String title; @override Widget build(BuildContext context) { return TextButton( style: TextButton.styleFrom( foregroundColor: Colors.white, padding: EdgeInsets.zero, ), onPressed: () { Navigator.of(context).restorablePushNamed(rally_route.loginRoute); }, child: Container( alignment: AlignmentDirectional.centerStart, padding: const EdgeInsets.symmetric(vertical: 24, horizontal: 28), child: Text(title), ), ); } }
gallery/lib/studies/rally/tabs/settings.dart/0
{ "file_path": "gallery/lib/studies/rally/tabs/settings.dart", "repo_id": "gallery", "token_count": 753 }
884
// Copyright 2019 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/gallery_localizations.dart'; import 'package:gallery/data/gallery_options.dart'; import 'package:gallery/layout/adaptive.dart'; import 'package:gallery/studies/shrine/backdrop.dart'; import 'package:gallery/studies/shrine/category_menu_page.dart'; import 'package:gallery/studies/shrine/expanding_bottom_sheet.dart'; import 'package:gallery/studies/shrine/home.dart'; import 'package:gallery/studies/shrine/login.dart'; import 'package:gallery/studies/shrine/model/app_state_model.dart'; import 'package:gallery/studies/shrine/model/product.dart'; import 'package:gallery/studies/shrine/page_status.dart'; import 'package:gallery/studies/shrine/routes.dart' as routes; import 'package:gallery/studies/shrine/scrim.dart'; import 'package:gallery/studies/shrine/supplemental/layout_cache.dart'; import 'package:gallery/studies/shrine/theme.dart'; import 'package:scoped_model/scoped_model.dart'; class ShrineApp extends StatefulWidget { const ShrineApp({super.key}); static const String loginRoute = routes.loginRoute; static const String homeRoute = routes.homeRoute; @override State<ShrineApp> createState() => _ShrineAppState(); } class _ShrineAppState extends State<ShrineApp> with TickerProviderStateMixin, RestorationMixin { // Controller to coordinate both the opening/closing of backdrop and sliding // of expanding bottom sheet late AnimationController _controller; // Animation Controller for expanding/collapsing the cart menu. late AnimationController _expandingController; final _RestorableAppStateModel _model = _RestorableAppStateModel(); final RestorableDouble _expandingTabIndex = RestorableDouble(0); final RestorableDouble _tabIndex = RestorableDouble(1); final Map<String, List<List<int>>> _layouts = {}; @override String get restorationId => 'shrine_app_state'; @override void restoreState(RestorationBucket? oldBucket, bool initialRestore) { registerForRestoration(_model, 'app_state_model'); registerForRestoration(_tabIndex, 'tab_index'); registerForRestoration( _expandingTabIndex, 'expanding_tab_index', ); _controller.value = _tabIndex.value; _expandingController.value = _expandingTabIndex.value; } @override void initState() { super.initState(); _controller = AnimationController( vsync: this, duration: const Duration(milliseconds: 450), value: 1, ); // Save state restoration animation values only when the cart page // fully opens or closes. _controller.addStatusListener((status) { if (status == AnimationStatus.completed || status == AnimationStatus.dismissed) { _tabIndex.value = _controller.value; } }); _expandingController = AnimationController( duration: const Duration(milliseconds: 500), vsync: this, ); // Save state restoration animation values only when the menu page // fully opens or closes. _expandingController.addStatusListener((status) { if (status == AnimationStatus.completed || status == AnimationStatus.dismissed) { _expandingTabIndex.value = _expandingController.value; } }); } @override void dispose() { _controller.dispose(); _expandingController.dispose(); _tabIndex.dispose(); _expandingTabIndex.dispose(); super.dispose(); } Widget mobileBackdrop() { return Backdrop( frontLayer: const ProductPage(), backLayer: CategoryMenuPage(onCategoryTap: () => _controller.forward()), frontTitle: const Text('SHRINE'), backTitle: Text(GalleryLocalizations.of(context)!.shrineMenuCaption), controller: _controller, ); } Widget desktopBackdrop() { return const DesktopBackdrop( frontLayer: ProductPage(), backLayer: CategoryMenuPage(), ); } // Closes the bottom sheet if it is open. Future<bool> _onWillPop() async { final status = _expandingController.status; if (status == AnimationStatus.completed || status == AnimationStatus.forward) { await _expandingController.reverse(); return false; } return true; } @override Widget build(BuildContext context) { final Widget home = LayoutCache( layouts: _layouts, child: PageStatus( menuController: _controller, cartController: _expandingController, child: LayoutBuilder( builder: (context, constraints) => HomePage( backdrop: isDisplayDesktop(context) ? desktopBackdrop() : mobileBackdrop(), scrim: Scrim(controller: _expandingController), expandingBottomSheet: ExpandingBottomSheet( hideController: _controller, expandingController: _expandingController, ), ), ), ), ); return ScopedModel<AppStateModel>( model: _model.value, // ignore: deprecated_member_use child: WillPopScope( onWillPop: _onWillPop, child: MaterialApp( // By default on desktop, scrollbars are applied by the // ScrollBehavior. This overrides that. All vertical scrollables in // the gallery need to be audited before enabling this feature, // see https://github.com/flutter/gallery/issues/541 scrollBehavior: const MaterialScrollBehavior().copyWith(scrollbars: false), restorationScopeId: 'shrineApp', title: 'Shrine', debugShowCheckedModeBanner: false, initialRoute: ShrineApp.loginRoute, routes: { ShrineApp.loginRoute: (context) => const LoginPage(), ShrineApp.homeRoute: (context) => home, }, theme: shrineTheme.copyWith( platform: GalleryOptions.of(context).platform, ), // L10n settings. localizationsDelegates: GalleryLocalizations.localizationsDelegates, supportedLocales: GalleryLocalizations.supportedLocales, locale: GalleryOptions.of(context).locale, ), ), ); } } class _RestorableAppStateModel extends RestorableListenable<AppStateModel> { @override AppStateModel createDefaultValue() => AppStateModel()..loadProducts(); @override AppStateModel fromPrimitives(Object? data) { final appState = AppStateModel()..loadProducts(); final appData = Map<String, dynamic>.from(data as Map); // Reset selected category. final categoryIndex = appData['category_index'] as int; appState.setCategory(categories[categoryIndex]); // Reset cart items. final cartItems = appData['cart_data'] as Map<dynamic, dynamic>; cartItems.forEach((dynamic id, dynamic quantity) { appState.addMultipleProductsToCart(id as int, quantity as int); }); return appState; } @override Object toPrimitives() { return <String, dynamic>{ 'cart_data': value.productsInCart, 'category_index': categories.indexOf(value.selectedCategory), }; } }
gallery/lib/studies/shrine/app.dart/0
{ "file_path": "gallery/lib/studies/shrine/app.dart", "repo_id": "gallery", "token_count": 2596 }
885
// Copyright 2019 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:ui' show lerpDouble; import 'package:flutter/material.dart'; class CutCornersBorder extends OutlineInputBorder { const CutCornersBorder({ super.borderSide, super.borderRadius = const BorderRadius.all(Radius.circular(2)), this.cut = 7, super.gapPadding = 2, }); @override CutCornersBorder copyWith({ BorderSide? borderSide, BorderRadius? borderRadius, double? gapPadding, double? cut, }) { return CutCornersBorder( borderSide: borderSide ?? this.borderSide, borderRadius: borderRadius ?? this.borderRadius, gapPadding: gapPadding ?? this.gapPadding, cut: cut ?? this.cut, ); } final double cut; @override ShapeBorder? lerpFrom(ShapeBorder? a, double t) { if (a is CutCornersBorder) { final outline = a; return CutCornersBorder( borderRadius: BorderRadius.lerp(outline.borderRadius, borderRadius, t)!, borderSide: BorderSide.lerp(outline.borderSide, borderSide, t), cut: cut, gapPadding: outline.gapPadding, ); } return super.lerpFrom(a, t); } @override ShapeBorder? lerpTo(ShapeBorder? b, double t) { if (b is CutCornersBorder) { final outline = b; return CutCornersBorder( borderRadius: BorderRadius.lerp(borderRadius, outline.borderRadius, t)!, borderSide: BorderSide.lerp(borderSide, outline.borderSide, t), cut: cut, gapPadding: outline.gapPadding, ); } return super.lerpTo(b, t); } Path _notchedCornerPath(Rect center, [double start = 0, double extent = 0]) { final path = Path(); if (start > 0 || extent > 0) { path.relativeMoveTo(extent + start, center.top); _notchedSidesAndBottom(center, path); path ..lineTo(center.left + cut, center.top) ..lineTo(start, center.top); } else { path.moveTo(center.left + cut, center.top); _notchedSidesAndBottom(center, path); path.lineTo(center.left + cut, center.top); } return path; } Path _notchedSidesAndBottom(Rect center, Path path) { return path ..lineTo(center.right - cut, center.top) ..lineTo(center.right, center.top + cut) ..lineTo(center.right, center.top + center.height - cut) ..lineTo(center.right - cut, center.top + center.height) ..lineTo(center.left + cut, center.top + center.height) ..lineTo(center.left, center.top + center.height - cut) ..lineTo(center.left, center.top + cut); } @override void paint( Canvas canvas, Rect rect, { double? gapStart, double gapExtent = 0, double gapPercentage = 0, TextDirection? textDirection, }) { assert(gapPercentage >= 0 && gapPercentage <= 1); final paint = borderSide.toPaint(); final outer = borderRadius.toRRect(rect); if (gapStart == null || gapExtent <= 0 || gapPercentage == 0) { canvas.drawPath(_notchedCornerPath(outer.middleRect), paint); } else { final extent = lerpDouble(0.0, gapExtent + gapPadding * 2, gapPercentage); switch (textDirection!) { case TextDirection.rtl: { final path = _notchedCornerPath( outer.middleRect, gapStart + gapPadding - extent!, extent); canvas.drawPath(path, paint); break; } case TextDirection.ltr: { final path = _notchedCornerPath( outer.middleRect, gapStart - gapPadding, extent!); canvas.drawPath(path, paint); break; } } } } }
gallery/lib/studies/shrine/supplemental/cut_corners_border.dart/0
{ "file_path": "gallery/lib/studies/shrine/supplemental/cut_corners_border.dart", "repo_id": "gallery", "token_count": 1557 }
886
// Copyright 2020 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:web_benchmarks/client.dart'; import 'common.dart'; import 'gallery_automator.dart'; import 'gallery_recorder.dart'; typedef RecorderFactory = Recorder Function(); final Map<String, RecorderFactory> benchmarks = <String, RecorderFactory>{ galleryStudiesPerf: () => GalleryRecorder( benchmarkName: galleryStudiesPerf, shouldRunPredicate: (demo) => typeOfDemo(demo) == DemoType.study, ), galleryUnanimatedPerf: () => GalleryRecorder( benchmarkName: galleryUnanimatedPerf, shouldRunPredicate: (demo) => typeOfDemo(demo) == DemoType.unanimatedWidget, ), galleryAnimatedPerf: () => GalleryRecorder( benchmarkName: galleryAnimatedPerf, shouldRunPredicate: (demo) => typeOfDemo(demo) == DemoType.animatedWidget, ), galleryScrollPerf: () => GalleryRecorder( benchmarkName: galleryScrollPerf, testScrollingOnly: true, ), }; /// Runs the client of the Gallery web benchmarks. /// /// When the Gallery web benchmarks are run, the server builds an app with this /// file as the entry point (see `test/run_benchmarks.dart`). The app automates /// the gallery, records some performance data, and reports them. Future<void> main() async { await runBenchmarks(benchmarks); }
gallery/test_benchmarks/benchmarks/client.dart/0
{ "file_path": "gallery/test_benchmarks/benchmarks/client.dart", "repo_id": "gallery", "token_count": 506 }
887
# api [![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link] [![License: MIT][license_badge]][license_link] [![Powered by Dart Frog](https://img.shields.io/endpoint?url=https://tinyurl.com/dartfrog-badge)](https://dartfrog.vgv.dev) API used on the I/O FLIP card game for Google I/O. Used env variables: - FB_APP_ID [license_badge]: https://img.shields.io/badge/license-MIT-blue.svg [license_link]: https://opensource.org/licenses/MIT [very_good_analysis_badge]: https://img.shields.io/badge/style-very_good_analysis-B22C89.svg [very_good_analysis_link]: https://pub.dev/packages/very_good_analysis
io_flip/api/README.md/0
{ "file_path": "io_flip/api/README.md", "repo_id": "io_flip", "token_count": 239 }
888
include: package:very_good_analysis/analysis_options.3.1.0.yaml
io_flip/api/packages/card_renderer/analysis_options.yaml/0
{ "file_path": "io_flip/api/packages/card_renderer/analysis_options.yaml", "repo_id": "io_flip", "token_count": 23 }
889
// GENERATED CODE - DO NOT MODIFY BY HAND part of 'deck.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** Deck _$DeckFromJson(Map<String, dynamic> json) => Deck( id: json['id'] as String, userId: json['userId'] as String, cards: (json['cards'] as List<dynamic>) .map((e) => Card.fromJson(e as Map<String, dynamic>)) .toList(), shareImage: json['shareImage'] as String?, ); Map<String, dynamic> _$DeckToJson(Deck instance) => <String, dynamic>{ 'id': instance.id, 'userId': instance.userId, 'cards': instance.cards.map((e) => e.toJson()).toList(), 'shareImage': instance.shareImage, };
io_flip/api/packages/game_domain/lib/src/models/deck.g.dart/0
{ "file_path": "io_flip/api/packages/game_domain/lib/src/models/deck.g.dart", "repo_id": "io_flip", "token_count": 290 }
890
import 'package:game_domain/game_domain.dart'; import 'package:game_script_machine/game_script_machine.dart'; /// {@template match_resolution_failure} /// Throw when a round cannot be resolved. /// {@endtemplate} class MatchResolutionFailure implements Exception { /// {@macro match_resolution_failure} MatchResolutionFailure({ required this.message, required this.stackTrace, }); /// Message. final String message; /// StackTrace. final StackTrace stackTrace; } /// {@template match_solver} /// A class with logic on how to solve match problems, /// it includes methods to determine who won't the game /// among other domain specific logic to matches. /// {@endtemplate} class MatchSolver { /// {@macro match_solver} const MatchSolver({ required GameScriptMachine gameScriptMachine, }) : _gameScriptMachine = gameScriptMachine; final GameScriptMachine _gameScriptMachine; /// Calculates and return the result of a match. MatchResult calculateMatchResult(Match match, MatchState state) { if (!state.isOver()) { throw MatchResolutionFailure( message: "Can't calculate the result of a match that " "hasn't finished yet.", stackTrace: StackTrace.current, ); } var hostRounds = 0; var guestRounds = 0; for (var i = 0; i < state.hostPlayedCards.length; i++) { final roundResult = calculateRoundResult( match, state, i, ); if (roundResult == MatchResult.host) { hostRounds++; } else if (roundResult == MatchResult.guest) { guestRounds++; } } if (hostRounds == guestRounds) { return MatchResult.draw; } else { return hostRounds > guestRounds ? MatchResult.host : MatchResult.guest; } } /// Calculates and return result of a round of match. /// /// Throws [MatchResolutionFailure] when trying to solve a round /// that isn't finished yet. MatchResult calculateRoundResult(Match match, MatchState state, int round) { if (state.hostPlayedCards.length > round && state.guestPlayedCards.length > round) { } else { throw MatchResolutionFailure( message: "Can't calculate the result of a round that " "hasn't finished yet.", stackTrace: StackTrace.current, ); } final hostCardId = state.hostPlayedCards[round]; final guestCardId = state.guestPlayedCards[round]; final hostCard = match.hostDeck.cards.firstWhere((card) => card.id == hostCardId); final guestCard = match.guestDeck.cards.firstWhere((card) => card.id == guestCardId); final comparison = _gameScriptMachine.compare(hostCard, guestCard); if (comparison == 0) { return MatchResult.draw; } else { return comparison > 0 ? MatchResult.host : MatchResult.guest; } } /// Returns true when player, determined by [isHost], can select a card /// to play. bool isPlayerAllowedToPlay(MatchState state, {required bool isHost}) { final hostPlayedCardsLength = state.hostPlayedCards.length; final guestPlayedCardsLength = state.guestPlayedCards.length; if (isHost) { if (hostPlayedCardsLength <= guestPlayedCardsLength) { return true; } } else { if (guestPlayedCardsLength <= hostPlayedCardsLength) { return true; } } return false; } /// Returns true when player, determined by [isHost], can play the card /// with id [cardId] or if they need to either /// wait for their opponent to play first or play another card. bool canPlayCard(MatchState state, String cardId, {required bool isHost}) { if (isHost && state.hostPlayedCards.contains(cardId)) { return false; } if (!isHost && state.guestPlayedCards.contains(cardId)) { return false; } return isPlayerAllowedToPlay(state, isHost: isHost); } }
io_flip/api/packages/game_domain/lib/src/solvers/match_solver.dart/0
{ "file_path": "io_flip/api/packages/game_domain/lib/src/solvers/match_solver.dart", "repo_id": "io_flip", "token_count": 1393 }
891
include: package:very_good_analysis/analysis_options.4.0.0.yaml
io_flip/api/packages/game_script_machine/analysis_options.yaml/0
{ "file_path": "io_flip/api/packages/game_script_machine/analysis_options.yaml", "repo_id": "io_flip", "token_count": 23 }
892
import 'dart:math'; import 'package:db_client/db_client.dart'; import 'package:prompt_repository/prompt_repository.dart'; /// {@template language_model_repository} /// Repository providing access language model services /// {@endtemplate} class LanguageModelRepository { /// {@macro language_model_repository} LanguageModelRepository({ required DbClient dbClient, required PromptRepository promptRepository, Random? rng, }) : _dbClient = dbClient, _promptRepository = promptRepository { _rng = rng ?? Random(); } late final Random _rng; final PromptRepository _promptRepository; final DbClient _dbClient; /// Returns an unique card name. Future<String> generateCardName({ required String characterName, required String characterClass, required String characterPower, }) async { final option = _rng.nextInt(2); switch (option) { case 0: return '$characterClass $characterName'; default: final shortenedTerm = await _promptRepository.getByTerm(characterPower); final cardPower = shortenedTerm?.shortenedTerm ?? characterPower; return '$cardPower $characterName'; } } String _normalizePrompt(String value) => value.replaceAll(' ', '_').toLowerCase(); /// Returns an unique card flavor text. Future<String> generateFlavorText({ required String character, required String characterPower, required String characterClass, required String location, }) async { final descriptions = await _dbClient.find('card_descriptions', { 'character': _normalizePrompt(character), 'characterClass': _normalizePrompt(characterClass), 'power': _normalizePrompt(characterPower), 'location': _normalizePrompt(location), }); if (descriptions.isEmpty) { return ''; } final index = _rng.nextInt(descriptions.length); return descriptions[index].data['description'] as String; } }
io_flip/api/packages/language_model_repository/lib/src/language_model_repository.dart/0
{ "file_path": "io_flip/api/packages/language_model_repository/lib/src/language_model_repository.dart", "repo_id": "io_flip", "token_count": 657 }
893
name: match_repository description: Access to Match datasource version: 0.1.0+1 publish_to: none environment: sdk: ">=3.0.0 <4.0.0" dependencies: cards_repository: path: ../cards_repository db_client: path: ../db_client equatable: ^2.0.5 game_domain: path: ../game_domain image_model_repository: path: ../image_model_repository json_annotation: ^4.8.0 language_model_repository: path: ../language_model_repository meta: ^1.9.0 dev_dependencies: mocktail: ^0.3.0 test: ^1.19.2 very_good_analysis: ^4.0.0
io_flip/api/packages/match_repository/pubspec.yaml/0
{ "file_path": "io_flip/api/packages/match_repository/pubspec.yaml", "repo_id": "io_flip", "token_count": 243 }
894
// ignore_for_file: prefer_const_constructors import 'package:db_client/db_client.dart'; import 'package:game_script_machine/game_script_machine.dart'; import 'package:mocktail/mocktail.dart'; import 'package:scripts_repository/scripts_repository.dart'; import 'package:test/test.dart'; class _MockDbClient extends Mock implements DbClient {} void main() { group('ScriptsRepository', () { setUpAll(() { registerFallbackValue( DbEntityRecord( id: '', ), ); }); test('can be instantiated', () { expect( ScriptsRepository( dbClient: _MockDbClient(), ), isNotNull, ); }); late DbClient dbClient; late ScriptsRepository scriptsRepository; void mockQuery(List<DbEntityRecord> result) { when(() => dbClient.findBy('scripts', 'selected', true)) .thenAnswer((_) async => result); } setUp(() { dbClient = _MockDbClient(); when(() => dbClient.add(any(), any())).thenAnswer((_) async => ''); when(() => dbClient.update(any(), any())).thenAnswer((_) async => ''); scriptsRepository = ScriptsRepository(dbClient: dbClient); }); group('getCurrentScript', () { test('returns the default when there is none in the db', () async { mockQuery([]); final script = await scriptsRepository.getCurrentScript(); expect(script, equals(defaultGameLogic)); }); test('returns the db result', () async { mockQuery([ DbEntityRecord( id: '', data: const { 'script': 'script', 'selected': true, }, ), ]); final script = await scriptsRepository.getCurrentScript(); expect(script, equals('script')); }); }); group('updateCurrentScript', () { test("creates a new record when there isn't one yet", () async { mockQuery([]); await scriptsRepository.updateCurrentScript('script'); verify( () => dbClient.add('scripts', { 'script': 'script', 'selected': true, }), ).called(1); }); test('updates the existent when there is one', () async { mockQuery([ DbEntityRecord( id: 'id', data: const { 'script': 'script', 'selected': true, }, ), ]); await scriptsRepository.updateCurrentScript('script 2'); verify( () => dbClient.update( 'scripts', DbEntityRecord( id: 'id', data: const { 'script': 'script 2', 'selected': true, }, ), ), ).called(1); }); }); }); }
io_flip/api/packages/scripts_repository/test/src/scripts_repository_test.dart/0
{ "file_path": "io_flip/api/packages/scripts_repository/test/src/scripts_repository_test.dart", "repo_id": "io_flip", "token_count": 1319 }
895
import 'dart:async'; import 'dart:io'; import 'package:dart_frog/dart_frog.dart'; import 'package:match_repository/match_repository.dart'; FutureOr<Response> onRequest(RequestContext context, String matchId) async { if (context.request.method == HttpMethod.get) { final matchRepository = context.read<MatchRepository>(); final match = await matchRepository.getMatch(matchId); if (match == null) { return Response(statusCode: HttpStatus.notFound); } return Response.json(body: match.toJson()); } return Response(statusCode: HttpStatus.methodNotAllowed); }
io_flip/api/routes/game/matches/[matchId]/index.dart/0
{ "file_path": "io_flip/api/routes/game/matches/[matchId]/index.dart", "repo_id": "io_flip", "token_count": 203 }
896
import 'dart:io'; import 'package:dart_frog/dart_frog.dart'; import 'package:game_domain/game_domain.dart'; import 'package:leaderboard_repository/leaderboard_repository.dart'; import 'package:mocktail/mocktail.dart'; import 'package:test/test.dart'; import '../../../../../routes/game/leaderboard/results/index.dart' as route; class _MockLeaderboardRepository extends Mock implements LeaderboardRepository {} class _MockRequest extends Mock implements Request {} class _MockRequestContext extends Mock implements RequestContext {} void main() { group('GET /', () { late LeaderboardRepository leaderboardRepository; late Request request; late RequestContext context; const leaderboardPlayers = [ LeaderboardPlayer( id: 'id', longestStreak: 1, initials: 'AAA', ), LeaderboardPlayer( id: 'id2', longestStreak: 2, initials: 'BBB', ), LeaderboardPlayer( id: 'id3', longestStreak: 3, initials: 'CCC', ), ]; setUp(() { leaderboardRepository = _MockLeaderboardRepository(); when(() => leaderboardRepository.getLeaderboard()).thenAnswer( (_) async => leaderboardPlayers, ); request = _MockRequest(); when(() => request.method).thenReturn(HttpMethod.get); context = _MockRequestContext(); when(() => context.request).thenReturn(request); when(() => context.read<LeaderboardRepository>()) .thenReturn(leaderboardRepository); }); test('responds with a 200', () async { final response = await route.onRequest(context); expect(response.statusCode, equals(HttpStatus.ok)); }); test('only allows get methods', () async { when(() => request.method).thenReturn(HttpMethod.post); final response = await route.onRequest(context); expect(response.statusCode, equals(HttpStatus.methodNotAllowed)); }); test('responds with the list of leaderboard players', () async { final response = await route.onRequest(context); final json = await response.json(); expect( json, equals({ 'leaderboardPlayers': [ { 'id': 'id', 'longestStreak': 1, 'initials': 'AAA', }, { 'id': 'id2', 'longestStreak': 2, 'initials': 'BBB', }, { 'id': 'id3', 'longestStreak': 3, 'initials': 'CCC', }, ], }), ); }); }); }
io_flip/api/test/routes/game/leaderboard/results/index_test.dart/0
{ "file_path": "io_flip/api/test/routes/game/leaderboard/results/index_test.dart", "repo_id": "io_flip", "token_count": 1130 }
897
import 'dart:io'; import 'package:data_loader/data_loader.dart'; import 'package:mocktail/mocktail.dart'; import 'package:path/path.dart' as path; import 'package:test/test.dart'; class _MockFile extends Mock implements File {} void main() { group('ImageLoader', () { late File csv; late File image; late String dest; late ImageLoader imageLoader; setUp(() { csv = _MockFile(); image = _MockFile(); when(() => image.copy(any())).thenAnswer( (_) async => _MockFile(), ); dest = path.join( Directory.systemTemp.path, 'image_loader', ); if (Directory(dest).existsSync()) { Directory(dest).deleteSync(recursive: true); } imageLoader = ImageLoader( csv: csv, image: image, dest: dest, variations: 8, ); }); test('can be instantiated', () { expect( ImageLoader( csv: _MockFile(), image: _MockFile(), dest: '', variations: 8, ), isNotNull, ); }); test('load the images', () async { when(() => csv.readAsLines()).thenAnswer( (_) async => [ 'Character,Class,Power,Power(shorter),Location,', 'Dash,Alien,Banjos,B,City,', 'Android,Mage,Bass,B,Forest,', ], ); await imageLoader.loadImages((_, __) {}); final expectedFilePaths = [ 'dash_alien_city_1.png', 'dash_alien_forest_2.png', 'dash_alien_city_1.png', 'dash_alien_forest_2.png', 'dash_mage_city_1.png', 'dash_mage_forest_2.png', 'dash_mage_city_1.png', 'dash_mage_forest_2.png', 'android_alien_city_1.png', 'android_alien_forest_2.png', 'android_alien_city_1.png', 'android_alien_forest_2.png', 'android_mage_city_1.png', 'android_mage_forest_2.png', 'android_mage_city_1.png', 'android_mage_forest_2.png', ]; for (final filePath in expectedFilePaths) { final file = File( path.join( dest, 'public', 'illustrations', filePath, ), ); expect(file.existsSync(), isTrue); } }); }); }
io_flip/api/tools/data_loader/test/src/image_loader_test.dart/0
{ "file_path": "io_flip/api/tools/data_loader/test/src/image_loader_test.dart", "repo_id": "io_flip", "token_count": 1145 }
898
import 'package:flop/flop/flop.dart'; import 'package:flutter/material.dart'; class App extends StatelessWidget { const App({ super.key, required this.setAppCheckDebugToken, required this.reload, }); final void Function(String) setAppCheckDebugToken; final void Function() reload; @override Widget build(BuildContext context) { return MaterialApp( theme: ThemeData( appBarTheme: const AppBarTheme(color: Color(0xFF13B9FF)), colorScheme: ColorScheme.fromSwatch( accentColor: const Color(0xFF13B9FF), ), ), home: FlopPage( setAppCheckDebugToken: setAppCheckDebugToken, reload: reload, ), ); } }
io_flip/flop/lib/app/view/app.dart/0
{ "file_path": "io_flip/flop/lib/app/view/app.dart", "repo_id": "io_flip", "token_count": 285 }
899
export 'view/app.dart';
io_flip/lib/app/app.dart/0
{ "file_path": "io_flip/lib/app/app.dart", "repo_id": "io_flip", "token_count": 10 }
900
import 'package:api_client/api_client.dart'; import 'package:bloc/bloc.dart'; import 'package:equatable/equatable.dart'; import 'package:game_domain/game_domain.dart'; import 'package:io_flip/audio/audio_controller.dart'; import 'package:io_flip/gen/assets.gen.dart'; part 'draft_event.dart'; part 'draft_state.dart'; class DraftBloc extends Bloc<DraftEvent, DraftState> { DraftBloc({ required GameResource gameResource, required AudioController audioController, }) : _gameResource = gameResource, _audioController = audioController, super(const DraftState.initial()) { on<DeckRequested>(_onDeckRequested); on<PreviousCard>(_onPreviousCard); on<NextCard>(_onNextCard); on<CardSwiped>(_onCardSwiped); on<CardSwipeStarted>(_onCardSwipeStarted); on<SelectCard>(_onSelectCard); on<PlayerDeckRequested>(_onPlayerDeckRequested); } final GameResource _gameResource; final AudioController _audioController; final List<String> _playedHoloReveal = []; Future<void> _onDeckRequested( DeckRequested event, Emitter<DraftState> emit, ) async { try { emit(state.copyWith(status: DraftStateStatus.deckLoading)); final cards = await _gameResource.generateCards(event.prompts); emit( state.copyWith( cards: cards, status: DraftStateStatus.deckLoaded, ), ); _playHoloReveal(cards); } catch (e, s) { addError(e, s); emit(state.copyWith(status: DraftStateStatus.deckFailed)); } } void _onPreviousCard( PreviousCard event, Emitter<DraftState> emit, ) { final cards = _retrieveLastCard(); _playHoloReveal(cards); emit(state.copyWith(cards: cards)); } void _onNextCard( NextCard event, Emitter<DraftState> emit, ) { final cards = _dismissTopCard(); _playHoloReveal(cards); emit(state.copyWith(cards: cards)); } void _onCardSwiped( CardSwiped event, Emitter<DraftState> emit, ) { final cards = _dismissTopCard(); _playHoloReveal(cards); emit( state.copyWith( cards: cards, firstCardOpacity: 1, ), ); } void _onCardSwipeStarted( CardSwipeStarted event, Emitter<DraftState> emit, ) { _audioController.playSfx(Assets.sfx.cardMovement); final opacity = 1 - event.progress; emit(state.copyWith(firstCardOpacity: opacity)); } void _onSelectCard( SelectCard event, Emitter<DraftState> emit, ) { final topCard = state.cards.first; if (state.selectedCards.contains(topCard)) return; _audioController.playSfx(Assets.sfx.addToHand); final oldSelectedCard = state.selectedCards[event.index]; final selectedCards = List.of(state.selectedCards); selectedCards[event.index] = topCard; final selectionCompleted = selectedCards.length == 3 && !selectedCards.contains(null); final cards = [ ...state.cards.skip(1), if (oldSelectedCard != null) oldSelectedCard, ]; _playHoloReveal(cards); emit( state.copyWith( cards: cards, selectedCards: selectedCards, status: selectionCompleted ? DraftStateStatus.deckSelected : DraftStateStatus.deckLoaded, ), ); } List<Card> _dismissTopCard() { final cards = [...state.cards]; final firstCard = cards.removeAt(0); cards.add(firstCard); return cards; } List<Card> _retrieveLastCard() { final cards = [...state.cards]; final lastCard = cards.removeLast(); cards.insert(0, lastCard); return cards; } void _playHoloReveal(List<Card> cards) { final card = cards.first; if (card.rarity && !_playedHoloReveal.contains(card.id)) { _playedHoloReveal.add(card.id); _audioController.playSfx(Assets.sfx.holoReveal); } } Future<void> _onPlayerDeckRequested( PlayerDeckRequested event, Emitter<DraftState> emit, ) async { try { emit(state.copyWith(status: DraftStateStatus.deckLoading)); final deckId = await _gameResource.createDeck(event.cardIds); final deck = await _gameResource.getDeck(deckId); emit( state.copyWith( deck: deck, status: DraftStateStatus.playerDeckCreated, createPrivateMatch: event.createPrivateMatch, privateMatchInviteCode: event.privateMatchInviteCode, ), ); } catch (e, s) { addError(e, s); emit(state.copyWith(status: DraftStateStatus.playerDeckFailed)); } } }
io_flip/lib/draft/bloc/draft_bloc.dart/0
{ "file_path": "io_flip/lib/draft/bloc/draft_bloc.dart", "repo_id": "io_flip", "token_count": 1844 }
901
import 'dart:math' as math; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:game_domain/game_domain.dart'; import 'package:go_router/go_router.dart'; import 'package:io_flip/audio/audio.dart'; import 'package:io_flip/audio/audio_controller.dart'; import 'package:io_flip/game/game.dart'; import 'package:io_flip/gen/assets.gen.dart'; import 'package:io_flip/info/info.dart'; import 'package:io_flip/l10n/l10n.dart'; import 'package:io_flip/match_making/match_making.dart'; import 'package:io_flip/share/share.dart'; import 'package:io_flip/utils/utils.dart'; import 'package:io_flip_ui/io_flip_ui.dart'; import 'package:provider/provider.dart'; class GameSummaryView extends StatelessWidget { const GameSummaryView({super.key, this.isWeb = kIsWeb}); final bool isWeb; static const _gap = SizedBox(width: IoFlipSpacing.sm); static const cardInspectorDuration = Duration(seconds: 4); @override Widget build(BuildContext context) { final result = context.select((GameBloc bloc) => bloc.gameResult()); final audio = context.read<AudioController>(); switch (result) { case GameResult.win: audio.playSfx(Assets.sfx.winMatch); break; case GameResult.lose: audio.playSfx(Assets.sfx.lostMatch); break; case GameResult.draw: case null: audio.playSfx(Assets.sfx.drawMatch); } final isPhoneWidth = MediaQuery.sizeOf(context).width < 400; final screenHeight = MediaQuery.sizeOf(context).height; return IoFlipScaffold( body: MatchResultSplash( isWeb: isWeb, result: result ?? GameResult.draw, child: Column( mainAxisSize: MainAxisSize.min, children: [ if (!isPhoneWidth && screenHeight > 610) Padding( padding: const EdgeInsets.only(top: IoFlipSpacing.lg), child: IoFlipLogo( height: 97, width: 64, ), ) else if (screenHeight > 660) Padding( padding: const EdgeInsets.only(top: IoFlipSpacing.md), child: IoFlipLogo( height: 88, width: 133, ), ), const Spacer(), const SizedBox(height: IoFlipSpacing.sm), const _ResultView(), const FittedBox( fit: BoxFit.scaleDown, child: _CardsView(), ), const Spacer(), const Padding( padding: EdgeInsets.all(IoFlipSpacing.sm), child: Row( crossAxisAlignment: CrossAxisAlignment.end, children: [ AudioToggleButton(), _gap, Expanded( child: GameSummaryFooter(), ), _gap, InfoButton(), ], ), ), ], ), ), ); } } class _ResultView extends StatefulWidget { const _ResultView(); @override State<_ResultView> createState() => _ResultViewState(); } class _ResultViewState extends State<_ResultView> { @override void initState() { super.initState(); WidgetsBinding.instance.addPostFrameCallback((_) { showCardInspectorSnackBar(context); }); } @override Widget build(BuildContext context) { final bloc = context.watch<GameBloc>(); final state = bloc.state as MatchLoadedState; late final String title; switch (bloc.gameResult()) { case GameResult.win: title = context.l10n.gameWonTitle; break; case GameResult.lose: title = context.l10n.gameLostTitle; break; case GameResult.draw: title = context.l10n.gameTiedTitle; break; case null: return Center(child: Text(context.l10n.gameResultError)); } return Column( mainAxisSize: MainAxisSize.min, children: [ Text( title, style: IoFlipTextStyles.mobileH1, ), Row( mainAxisSize: MainAxisSize.min, children: [ Image.asset( Assets.images.tempPreferencesCustom.path, color: IoFlipColors.seedYellow, ), const SizedBox(width: IoFlipSpacing.sm), Text( context.l10n .gameSummaryStreak(state.playerScoreCard.latestStreak), style: IoFlipTextStyles.mobileH6 .copyWith(color: IoFlipColors.seedYellow), ), ], ), ], ); } void showCardInspectorSnackBar(BuildContext context) { final text = context.l10n.cardInspectorText; const textStyle = IoFlipTextStyles.bodyMD; const defaultPadding = IoFlipSpacing.lg; final screenSize = MediaQuery.sizeOf(context); final textSize = calculateTextSize(text, textStyle); final double horizontalMargin = math.max( 0, (screenSize.width - textSize.width - (2 * defaultPadding)) / 2, ); showDialog<void>( context: context, barrierColor: Colors.transparent, builder: (context) { return Dialog( insetPadding: EdgeInsets.symmetric( horizontal: horizontalMargin, vertical: IoFlipSpacing.md, ), backgroundColor: IoFlipColors.seedBlack.withOpacity(.7), shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(24), ), child: Padding( padding: const EdgeInsets.symmetric( vertical: IoFlipSpacing.md, horizontal: defaultPadding, ), child: Text(text, style: textStyle, textAlign: TextAlign.center), ), ); }, ); Future.delayed( GameSummaryView.cardInspectorDuration, () { if (ModalRoute.of(context)?.isCurrent != true) { GoRouter.maybeOf(context)?.pop(); } }, ); } } class _CardsView extends StatelessWidget { const _CardsView(); @override Widget build(BuildContext context) { final cardSize = (MediaQuery.sizeOf(context).height > 700) ? const GameCardSize.sm() : const GameCardSize.xs(); final bloc = context.watch<GameBloc>(); final state = bloc.state as MatchLoadedState; final hostCardsOrdered = state.matchState.hostPlayedCards.map( (id) => state.match.hostDeck.cards.firstWhere((card) => card.id == id), ); final guestCardsOrdered = state.matchState.guestPlayedCards.map( (id) => state.match.guestDeck.cards.firstWhere((card) => card.id == id), ); final playerCards = (bloc.isHost ? hostCardsOrdered : guestCardsOrdered) .map( (card) => GameCard( size: cardSize, image: card.image, name: card.name, description: card.description, power: card.power, suitName: card.suit.name, overlay: bloc.isWinningCard(card, isPlayer: true), isRare: card.rarity, ), ) .toList(); final opponentCards = (bloc.isHost ? guestCardsOrdered : hostCardsOrdered) .map( (card) => GameCard( size: cardSize, image: card.image, name: card.name, description: card.description, power: card.power, suitName: card.suit.name, overlay: bloc.isWinningCard(card, isPlayer: false), isRare: card.rarity, ), ) .toList(); final cards = bloc.isHost ? [...hostCardsOrdered, ...guestCardsOrdered] : [...guestCardsOrdered, ...hostCardsOrdered]; final playerCardIds = bloc.isHost ? state.matchState.hostPlayedCards : state.matchState.guestPlayedCards; return Row( crossAxisAlignment: CrossAxisAlignment.start, mainAxisSize: MainAxisSize.min, children: List.generate( 3, (index) => _RoundSummary( playerCard: playerCards[index], opponentCard: opponentCards[index], onTap: (card) => IoFlipDialog.show( context, isTransparent: true, child: CardInspectorDialog( playerCardIds: playerCardIds, cards: cards, startingIndex: index + card, ), ), ), ), ); } } class _RoundSummary extends StatelessWidget { const _RoundSummary({ required this.playerCard, required this.opponentCard, required this.onTap, }); final GameCard playerCard; final GameCard opponentCard; final void Function(int index) onTap; @override Widget build(BuildContext context) { String result; final score = '${playerCard.power} - ${opponentCard.power}'; switch (playerCard.overlay) { case CardOverlayType.win: result = 'W $score'; break; case CardOverlayType.lose: result = 'L $score'; break; case CardOverlayType.draw: result = 'D $score'; break; case null: result = score; break; } return Padding( padding: const EdgeInsets.symmetric( horizontal: IoFlipSpacing.sm, vertical: IoFlipSpacing.md, ), child: Column( mainAxisSize: MainAxisSize.min, children: [ GestureDetector(onTap: () => onTap(0), child: playerCard), const SizedBox(height: IoFlipSpacing.md), GestureDetector(onTap: () => onTap(3), child: opponentCard), const SizedBox(height: IoFlipSpacing.md), Text( result, style: IoFlipTextStyles.bodyLG.copyWith( color: IoFlipColors.seedWhite, ), ) ], ), ); } } class GameSummaryFooter extends StatelessWidget { const GameSummaryFooter({ RouterNeglectCall routerNeglectCall = Router.neglect, super.key, }) : _routerNeglectCall = routerNeglectCall; final RouterNeglectCall _routerNeglectCall; @override Widget build(BuildContext context) { final l10n = context.l10n; final bloc = context.watch<GameBloc>(); final state = bloc.state as MatchLoadedState; final playerDeck = bloc.isHost ? state.match.hostDeck : state.match.guestDeck; final result = state.matchState.result; final showNextMatch = (result == MatchResult.host && bloc.isHost) || (result == MatchResult.guest && !bloc.isHost) || result == MatchResult.draw; return Wrap( spacing: IoFlipSpacing.sm, runSpacing: IoFlipSpacing.sm, alignment: WrapAlignment.center, runAlignment: WrapAlignment.center, children: [ if (showNextMatch) RoundedButton.text( l10n.nextMatch, onPressed: () => _routerNeglectCall( context, () => GoRouter.of(context).goNamed( 'match_making', extra: MatchMakingPageData(deck: bloc.playerDeck), ), ), ), RoundedButton.text( l10n.submitScore, backgroundColor: IoFlipColors.seedBlack, foregroundColor: IoFlipColors.seedWhite, borderColor: IoFlipColors.seedPaletteNeutral40, onPressed: () { final router = GoRouter.of(context); final event = LeaderboardEntryRequested( shareHandPageData: ShareHandPageData( initials: '', wins: state.playerScoreCard.latestStreak, deck: playerDeck, ), ); if (showNextMatch) { IoFlipDialog.show( context, child: QuitGameDialog( onConfirm: () => _routerNeglectCall( context, () { router.pop(); bloc.add(event); }, ), onCancel: router.pop, ), ); } else { bloc.add(event); } }, ), ], ); } }
io_flip/lib/game/views/game_summary.dart/0
{ "file_path": "io_flip/lib/game/views/game_summary.dart", "repo_id": "io_flip", "token_count": 5973 }
902
import 'package:flutter/material.dart'; class FadeAnimatedSwitcher extends StatelessWidget { const FadeAnimatedSwitcher({ required this.duration, required this.child, super.key, }); final Duration duration; final Widget child; @override Widget build(BuildContext context) { return AnimatedSwitcher( transitionBuilder: (child, animation) { return FadeTransition( opacity: animation, child: child, ); }, switchOutCurve: Curves.easeInCubic, switchInCurve: Curves.easeInCubic, duration: duration, child: child, ); } }
io_flip/lib/how_to_play/widgets/fade_animated_switcher.dart/0
{ "file_path": "io_flip/lib/how_to_play/widgets/fade_animated_switcher.dart", "repo_id": "io_flip", "token_count": 247 }
903
export 'bloc/initials_form_bloc.dart'; export 'view/initials_form.dart'; export 'view/initials_form_view.dart';
io_flip/lib/leaderboard/initials_form/initials_form.dart/0
{ "file_path": "io_flip/lib/leaderboard/initials_form/initials_form.dart", "repo_id": "io_flip", "token_count": 45 }
904
part of 'match_making_bloc.dart'; enum MatchMakingStatus { initial, processing, timeout, failed, completed, } class MatchMakingState extends Equatable { const MatchMakingState({ required this.status, this.isHost = false, this.match, }); const MatchMakingState.initial() : this( status: MatchMakingStatus.initial, ); final DraftMatch? match; final MatchMakingStatus status; final bool isHost; MatchMakingState copyWith({ DraftMatch? match, MatchMakingStatus? status, bool? isHost, }) { return MatchMakingState( match: match ?? this.match, status: status ?? this.status, isHost: isHost ?? this.isHost, ); } @override List<Object?> get props => [ status, match, isHost, ]; }
io_flip/lib/match_making/bloc/match_making_state.dart/0
{ "file_path": "io_flip/lib/match_making/bloc/match_making_state.dart", "repo_id": "io_flip", "token_count": 317 }
905
import 'package:flutter/material.dart'; class SnapItemScrollPhysics extends ScrollPhysics { /// Creates physics that snaps an item into place. const SnapItemScrollPhysics({ required this.itemExtent, super.parent, }); final double itemExtent; @override SnapItemScrollPhysics applyTo(ScrollPhysics? ancestor) { return SnapItemScrollPhysics( itemExtent: itemExtent, parent: buildParent(ancestor), ); } double _getPage(ScrollMetrics position) { return position.pixels / itemExtent; } double _getPixels(ScrollMetrics position, double page) { return page * itemExtent; } double _getTargetPixels( ScrollMetrics position, Tolerance tolerance, double velocity, ) { final page = _getPage(position); return _getPixels(position, page.roundToDouble()); } @override Simulation? createBallisticSimulation( ScrollMetrics position, double velocity, ) { // If we're out of range and not headed back in range, defer to the parent // ballistics, which should put us back in range at a page boundary. if ((velocity <= 0.0 && position.pixels <= position.minScrollExtent) || (velocity >= 0.0 && position.pixels >= position.maxScrollExtent)) { return super.createBallisticSimulation(position, velocity); } final tolerance = toleranceFor(position); final target = _getTargetPixels(position, tolerance, velocity); if (target != position.pixels) { return ScrollSpringSimulation( spring, position.pixels, target, velocity, tolerance: tolerance, ); } return null; } @override bool get allowImplicitScrolling => false; }
io_flip/lib/prompt/widgets/snap_item_scroll_physics.dart/0
{ "file_path": "io_flip/lib/prompt/widgets/snap_item_scroll_physics.dart", "repo_id": "io_flip", "token_count": 589 }
906
part of 'download_bloc.dart'; abstract class DownloadEvent extends Equatable { const DownloadEvent(); } class DownloadCardsRequested extends DownloadEvent { const DownloadCardsRequested({required this.cards}); final List<Card> cards; @override List<Object> get props => [cards]; } class DownloadDeckRequested extends DownloadEvent { const DownloadDeckRequested({required this.deck}); final Deck deck; @override List<Object> get props => [deck]; }
io_flip/lib/share/bloc/download_event.dart/0
{ "file_path": "io_flip/lib/share/bloc/download_event.dart", "repo_id": "io_flip", "token_count": 136 }
907
import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:io_flip/l10n/l10n.dart'; import 'package:io_flip/terms_of_use/terms_of_use.dart'; import 'package:io_flip/utils/utils.dart'; import 'package:io_flip_ui/io_flip_ui.dart'; class TermsOfUseView extends StatelessWidget { const TermsOfUseView({super.key}); @override Widget build(BuildContext context) { final l10n = context.l10n; final linkStyle = IoFlipTextStyles.linkLG.copyWith( color: IoFlipColors.seedYellow, ); return Column( mainAxisSize: MainAxisSize.min, children: [ Text( l10n.termsOfUseTitle, style: IoFlipTextStyles.mobileH4Light, ), const SizedBox(height: IoFlipSpacing.sm), RichText( textAlign: TextAlign.center, text: TextSpan( text: l10n.termsOfUseDescriptionPrefix, style: IoFlipTextStyles.bodyLG.copyWith( color: IoFlipColors.seedWhite, ), children: [ const TextSpan(text: ' '), TextSpan( text: l10n.termsOfUseDescriptionInfixOne, recognizer: TapGestureRecognizer() ..onTap = () => openLink(ExternalLinks.termsOfService), style: linkStyle, ), const TextSpan(text: ' '), TextSpan(text: l10n.termsOfUseDescriptionInfixTwo), const TextSpan(text: ' '), TextSpan( text: l10n.termsOfUseDescriptionSuffix, recognizer: TapGestureRecognizer() ..onTap = () => openLink(ExternalLinks.privacyPolicy), style: linkStyle, ), ], ), ), const SizedBox(height: IoFlipSpacing.xxlg), RoundedButton.text( l10n.termsOfUseContinueLabel, onPressed: () { context.read<TermsOfUseCubit>().acceptTermsOfUse(); context.maybePop(); }, ), ], ); } }
io_flip/lib/terms_of_use/view/terms_of_use_view.dart/0
{ "file_path": "io_flip/lib/terms_of_use/view/terms_of_use_view.dart", "repo_id": "io_flip", "token_count": 1087 }
908
import 'dart:convert'; import 'dart:io'; import 'package:api_client/api_client.dart'; import 'package:game_domain/game_domain.dart'; /// {@template prompt_resource} /// An api resource to get the prompt terms. /// {@endtemplate} class PromptResource { /// {@macro prompt_resource} PromptResource({ required ApiClient apiClient, }) : _apiClient = apiClient; final ApiClient _apiClient; /// Get /game/prompt/terms /// /// Returns a [List<String>]. Future<List<String>> getPromptTerms(PromptTermType termType) async { final response = await _apiClient.get( '/game/prompt/terms', queryParameters: {'type': termType.name}, ); if (response.statusCode == HttpStatus.notFound) { return []; } if (response.statusCode != HttpStatus.ok) { throw ApiClientError( 'GET /prompt/terms returned status ${response.statusCode} with the following response: "${response.body}"', StackTrace.current, ); } try { final json = jsonDecode(response.body) as Map<String, dynamic>; return (json['list'] as List).cast<String>(); } catch (e) { throw ApiClientError( 'GET /prompt/terms returned invalid response "${response.body}"', StackTrace.current, ); } } }
io_flip/packages/api_client/lib/src/resources/prompt_resource.dart/0
{ "file_path": "io_flip/packages/api_client/lib/src/resources/prompt_resource.dart", "repo_id": "io_flip", "token_count": 482 }
909
import 'dart:async'; import 'package:authentication_repository/authentication_repository.dart'; import 'package:firebase_auth/firebase_auth.dart' as fb; /// {@template authentication_exception} /// Exception thrown when an authentication process fails. /// {@endtemplate} class AuthenticationException implements Exception { /// {@macro authentication_exception} const AuthenticationException(this.error, this.stackTrace); /// The error that was caught. final Object error; /// The stack trace associated with the error. final StackTrace stackTrace; } /// {@template authentication_repository} /// Repository to manage authentication. /// {@endtemplate} class AuthenticationRepository { /// {@macro authentication_repository} AuthenticationRepository({ fb.FirebaseAuth? firebaseAuth, }) : _firebaseAuth = firebaseAuth ?? fb.FirebaseAuth.instance, _userController = StreamController<User>.broadcast(); final fb.FirebaseAuth _firebaseAuth; final StreamController<User> _userController; StreamSubscription<fb.User?>? _firebaseUserSubscription; /// Stream of [User] which will emit the current user when /// the authentication state changes. /// /// Emits [User.unauthenticated] if the user is not authenticated. Stream<User> get user { _firebaseUserSubscription ??= _firebaseAuth.authStateChanges().listen((firebaseUser) { _userController.add( firebaseUser?.toUser ?? User.unauthenticated, ); }); return _userController.stream; } /// Stream of id tokens that can be used to authenticate with Firebase. Stream<String?> get idToken { return _firebaseAuth .idTokenChanges() .asyncMap((user) => user?.getIdToken()); } /// Refreshes the id token. Future<String?> refreshIdToken() async { final user = _firebaseAuth.currentUser; return user?.getIdToken(true); } /// Sign in the user anonymously. /// /// If the sign in fails, an [AuthenticationException] is thrown. Future<void> signInAnonymously() async { try { final userCredential = await _firebaseAuth.signInAnonymously(); _userController.add(userCredential.toUser); } on Exception catch (error, stackTrace) { throw AuthenticationException(error, stackTrace); } } /// Disposes any internal resources. void dispose() { _firebaseUserSubscription?.cancel(); _userController.close(); } } extension on fb.User { User get toUser => User(id: uid); } extension on fb.UserCredential { User get toUser => user?.toUser ?? User.unauthenticated; }
io_flip/packages/authentication_repository/lib/src/authentication_repository.dart/0
{ "file_path": "io_flip/packages/authentication_repository/lib/src/authentication_repository.dart", "repo_id": "io_flip", "token_count": 832 }
910
include: package:very_good_analysis/analysis_options.4.0.0.yaml
io_flip/packages/connection_repository/analysis_options.yaml/0
{ "file_path": "io_flip/packages/connection_repository/analysis_options.yaml", "repo_id": "io_flip", "token_count": 23 }
911
include: package:very_good_analysis/analysis_options.3.1.0.yaml linter: rules: public_member_api_docs: false
io_flip/packages/io_flip_ui/gallery/analysis_options.yaml/0
{ "file_path": "io_flip/packages/io_flip_ui/gallery/analysis_options.yaml", "repo_id": "io_flip", "token_count": 44 }
912
import 'package:flutter/material.dart'; import 'package:gallery/story_scaffold.dart'; import 'package:io_flip_ui/io_flip_ui.dart'; class GameCardOverlayStory extends StatelessWidget { const GameCardOverlayStory({super.key}); @override Widget build(BuildContext context) { return const StoryScaffold( title: 'Game Card Overlay', body: Center( child: SingleChildScrollView( child: Wrap( children: [ Column( mainAxisSize: MainAxisSize.min, children: [ Text('Win'), GameCard( size: GameCardSize.sm(), image: 'https://firebasestorage.googleapis.com/v0/b/top-dash-dev.appspot.com/o/public%2Fdash_3.png?alt=media', name: 'Dash the Great', description: 'The best Dash in all the Dashland', suitName: 'earth', power: 57, overlay: CardOverlayType.win, isRare: false, isDimmed: true, ), ], ), SizedBox(width: IoFlipSpacing.lg), Column( mainAxisSize: MainAxisSize.min, children: [ Text('Draw'), GameCard( size: GameCardSize.sm(), image: 'https://firebasestorage.googleapis.com/v0/b/top-dash-dev.appspot.com/o/public%2Fdash_3.png?alt=media', name: 'Dash the Great', description: 'The best Dash in all the Dashland', suitName: 'earth', power: 57, overlay: CardOverlayType.draw, isRare: false, ), ], ), SizedBox(width: IoFlipSpacing.lg), Column( mainAxisSize: MainAxisSize.min, children: [ Text('Lose'), GameCard( size: GameCardSize.sm(), image: 'https://firebasestorage.googleapis.com/v0/b/top-dash-dev.appspot.com/o/public%2Fdash_3.png?alt=media', name: 'Dash the Great', description: 'The best Dash in all the Dashland', suitName: 'earth', power: 57, overlay: CardOverlayType.lose, isRare: false, ), ], ), ], ), ), ), ); } }
io_flip/packages/io_flip_ui/gallery/lib/widgets/game_card_overlay_story.dart/0
{ "file_path": "io_flip/packages/io_flip_ui/gallery/lib/widgets/game_card_overlay_story.dart", "repo_id": "io_flip", "token_count": 1628 }
913
/// GENERATED CODE - DO NOT MODIFY BY HAND /// ***************************************************** /// FlutterGen /// ***************************************************** // coverage:ignore-file // ignore_for_file: type=lint // ignore_for_file: directives_ordering,unnecessary_import,implicit_dynamic_list_literal,deprecated_member_use class FontFamily { FontFamily._(); /// Font family: Google Sans static const String googleSans = 'Google Sans'; /// Font family: Roboto Serif static const String robotoSerif = 'Roboto Serif'; /// Font family: Saira static const String saira = 'Saira'; }
io_flip/packages/io_flip_ui/lib/gen/fonts.gen.dart/0
{ "file_path": "io_flip/packages/io_flip_ui/lib/gen/fonts.gen.dart", "repo_id": "io_flip", "token_count": 168 }
914
import 'package:flutter/animation.dart'; import 'package:flutter/rendering.dart'; /// {@template transform_tween} /// A [Tween] that interpolates between [Matrix4]s, but /// constructed using arguments for translation, rotation and scale. /// {@endtemplate} class TransformTween extends Tween<Matrix4> { /// {@macro transform_tween} TransformTween({ this.beginRotateX = 0, this.endRotateX = 0, this.beginRotateY = 0, this.endRotateY = 0, this.beginRotateZ = 0, this.endRotateZ = 0, this.beginScale = 1, this.endScale = 1, this.beginTranslateX = 0, this.endTranslateX = 0, this.beginTranslateY = 0, this.endTranslateY = 0, this.beginTranslateZ = 0, this.endTranslateZ = 0, }); /// The rotation around the x-axis at the beginning of the animation. final double beginRotateX; /// The rotation around the x-axis at the end of the animation. final double endRotateX; /// The rotation around the y-axis at the beginning of the animation. final double beginRotateY; /// The rotation around the y-axis at the end of the animation. final double endRotateY; /// The rotation around the z-axis at the beginning of the animation. final double beginRotateZ; /// The rotation around the z-axis at the end of the animation. final double endRotateZ; /// The scale at the beginning of the animation. final double beginScale; /// The scale at the end of the animation. final double endScale; /// The translation along the x-axis at the beginning of the animation. final double beginTranslateX; /// The translation along the x-axis at the end of the animation. final double endTranslateX; /// The translation along the y-axis at the beginning of the animation. final double beginTranslateY; /// The translation along the y-axis at the end of the animation. final double endTranslateY; /// The translation along the z-axis at the beginning of the animation. final double beginTranslateZ; /// The translation along the z-axis at the end of the animation. final double endTranslateZ; /// A [Tween] that gives the translation along the x-axis. Tween<double> get translateX => Tween( begin: beginTranslateX, end: endTranslateX, ); /// A [Tween] that gives the translation along the y-axis. Tween<double> get translateY => Tween( begin: beginTranslateY, end: endTranslateY, ); /// A [Tween] that gives the translation along the z-axis. Tween<double> get translateZ => Tween( begin: beginTranslateZ, end: endTranslateZ, ); /// A [Tween] that gives the rotation around the x-axis. Tween<double> get rotateX => Tween( begin: beginRotateX, end: endRotateX, ); /// A [Tween] that gives the rotation around the y-axis. Tween<double> get rotateY => Tween( begin: beginRotateY, end: endRotateY, ); /// A [Tween] that gives the rotation around the z-axis. Tween<double> get rotateZ => Tween( begin: beginRotateZ, end: endRotateZ, ); /// A [Tween] that gives the scale. Tween<double> get scale => Tween( begin: beginScale, end: endScale, ); @override Matrix4? get begin => lerp(0); @override Matrix4? get end => lerp(1); @override Matrix4 lerp(double t) { return CardTransform( scale: scale.lerp(t), translateX: translateX.lerp(t), translateY: translateY.lerp(t), translateZ: translateZ.lerp(t), rotateX: rotateX.lerp(t), rotateY: rotateY.lerp(t), rotateZ: rotateZ.lerp(t), ); } } /// {@template card_transform} /// Wrapper around [Matrix4] that allows for easy construction of card /// transformations. /// {@endtemplate} class CardTransform extends Matrix4 { /// {@macro card_transform} factory CardTransform({ double rotateX = 0, double rotateY = 0, double rotateZ = 0, double scale = 1, double translateX = 0, double translateY = 0, double translateZ = 0, }) => CardTransform._zero() ..setIdentity() ..setEntry(3, 2, 0.001) ..scale(scale) ..translate(translateX, translateY, translateZ) ..rotateX(rotateX) ..rotateY(rotateY) ..rotateZ(rotateZ); CardTransform._zero() : super.zero(); }
io_flip/packages/io_flip_ui/lib/src/animations/transform_tween.dart/0
{ "file_path": "io_flip/packages/io_flip_ui/lib/src/animations/transform_tween.dart", "repo_id": "io_flip", "token_count": 1580 }
915
import 'package:flame/cache.dart'; import 'package:flame/extensions.dart'; import 'package:flame/widgets.dart'; import 'package:flutter/material.dart'; import 'package:io_flip_ui/io_flip_ui.dart'; import 'package:provider/provider.dart'; /// {@template charge_front} /// A widget that renders a [SpriteAnimation] for the charge effect in the back /// of the card. /// {@endtemplate} class ChargeFront extends StatelessWidget { /// {@macro charge_front} const ChargeFront( this.path, { required this.size, required this.assetSize, required this.animationColor, super.key, this.onComplete, }); /// The size of the card. final GameCardSize size; /// Optional callback to be called when the animation is complete. final VoidCallback? onComplete; /// Path of the asset containing the sprite sheet. final String path; /// Size of the assets to use, large or small final AssetSize assetSize; /// The color of the animation, used on mobile animation. final Color animationColor; @override Widget build(BuildContext context) { final images = context.read<Images>(); final width = 1.64 * size.width; final height = 1.53 * size.height; final textureSize = Vector2(658, 860); if (assetSize == AssetSize.large) { return SizedBox( width: width, height: height, child: FittedBox( fit: BoxFit.fill, child: SizedBox( width: textureSize.x, height: textureSize.y, child: SpriteAnimationWidget.asset( path: path, images: images, anchor: Anchor.center, onComplete: onComplete, data: SpriteAnimationData.sequenced( amount: 20, amountPerRow: 5, textureSize: textureSize, stepTime: 0.04, loop: false, ), ), ), ), ); } else { return _MobileAnimation( onComplete: onComplete, animationColor: animationColor, cardSize: size, width: width, height: height, ); } } } class _MobileAnimation extends StatefulWidget { const _MobileAnimation({ required this.onComplete, required this.animationColor, required this.cardSize, required this.width, required this.height, }); final VoidCallback? onComplete; final Color animationColor; final GameCardSize cardSize; final double width; final double height; @override State<_MobileAnimation> createState() => _MobileAnimationState(); } class _MobileAnimationState extends State<_MobileAnimation> { var _scale = 0.0; var _step = 0; @override void initState() { super.initState(); WidgetsBinding.instance.addPostFrameCallback((_) { setState(() { _scale = .8; }); }); } void _onComplete() { if (_step == 0) { setState(() { _scale = 1; _step = 1; }); } else if (_step == 1) { setState(() { _scale = 0; _step = 2; }); } else { widget.onComplete?.call(); } } @override Widget build(BuildContext context) { return Align( alignment: const Alignment(0, 5), child: AnimatedOpacity( duration: const Duration(milliseconds: 400), opacity: .8 * _scale, child: AnimatedContainer( curve: Curves.easeOutQuad, duration: const Duration(milliseconds: 400), width: widget.cardSize.width * _scale, height: widget.cardSize.height * _scale, decoration: BoxDecoration( color: widget.animationColor, borderRadius: BorderRadius.circular(widget.cardSize.width / 2), boxShadow: [ BoxShadow( color: widget.animationColor, blurRadius: 23 * _scale, spreadRadius: 23 * _scale, ), ], ), onEnd: _onComplete, ), ), ); } }
io_flip/packages/io_flip_ui/lib/src/widgets/damages/charge_front.dart/0
{ "file_path": "io_flip/packages/io_flip_ui/lib/src/widgets/damages/charge_front.dart", "repo_id": "io_flip", "token_count": 1746 }
916
import 'package:flutter/material.dart'; import 'package:io_flip_ui/gen/assets.gen.dart'; /// {@template io_flip_scaffold} /// IO Flip scaffold that adds the background pattern. /// {@endtemplate} class IoFlipScaffold extends StatelessWidget { /// {@macro io_flip_scaffold} const IoFlipScaffold({ super.key, this.body, this.bottomBar, }); /// The primary content of the scaffold. final Widget? body; /// The bottom bar of the scaffold. final Widget? bottomBar; @override Widget build(BuildContext context) { return Scaffold( body: DecoratedBox( decoration: BoxDecoration( image: DecorationImage( fit: BoxFit.none, image: AssetImage( Assets.images.backgroundPattern.path, package: 'io_flip_ui', ), ), ), child: Column( children: [ if (body != null) Expanded(child: body!), if (bottomBar != null) bottomBar!, ], ), ), ); } }
io_flip/packages/io_flip_ui/lib/src/widgets/io_flip_scaffold.dart/0
{ "file_path": "io_flip/packages/io_flip_ui/lib/src/widgets/io_flip_scaffold.dart", "repo_id": "io_flip", "token_count": 467 }
917
import 'dart:async'; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:io_flip_ui/io_flip_ui.dart'; void main() { group('AnimatedCard', () { late AnimatedCardController controller; const front = Text('front'); const back = Text('back'); setUp(() { controller = AnimatedCardController(); }); tearDown(() { controller.dispose(); }); Widget buildSubject() => MaterialApp( home: Scaffold( body: Center( child: AnimatedCard( front: front, back: back, controller: controller, ), ), ), ); testWidgets('displays front by default', (tester) async { await tester.pumpWidget(buildSubject()); expect(find.byWidget(front), findsOneWidget); expect(find.byWidget(back), findsNothing); }); testWidgets('displays back when flipped', (tester) async { await tester.pumpWidget(buildSubject()); unawaited(controller.run(smallFlipAnimation)); await tester.pumpAndSettle(); expect(find.byWidget(front), findsNothing); expect(find.byWidget(back), findsOneWidget); }); testWidgets('displays front when flipped back', (tester) async { await tester.pumpWidget(buildSubject()); unawaited(controller.run(smallFlipAnimation)); await tester.pumpAndSettle(); unawaited(controller.run(smallFlipAnimation)); await tester.pumpAndSettle(); expect(find.byWidget(front), findsOneWidget); expect(find.byWidget(back), findsNothing); }); testWidgets( 'displays front when flipped back partially through', (tester) async { await tester.pumpWidget(buildSubject()); unawaited(controller.run(smallFlipAnimation)); await tester.pump(smallFlipAnimation.duration ~/ 2); unawaited(controller.run(smallFlipAnimation)); await tester.pumpAndSettle(); expect(find.byWidget(front), findsOneWidget); expect(find.byWidget(back), findsNothing); }, ); group('card animations', () { testWidgets('can run smallFlipAnimation', (tester) async { await tester.pumpWidget(buildSubject()); unawaited(controller.run(smallFlipAnimation)); await tester.pumpAndSettle(); expect(find.byWidget(front), findsNothing); expect(find.byWidget(back), findsOneWidget); }); testWidgets('can run bigFlipAnimation', (tester) async { await tester.pumpWidget(buildSubject()); unawaited(controller.run(bigFlipAnimation)); await tester.pumpAndSettle(); expect(find.byWidget(front), findsNothing); expect(find.byWidget(back), findsOneWidget); }); testWidgets('can run jumpAnimation', (tester) async { await tester.pumpWidget(buildSubject()); unawaited(controller.run(jumpAnimation)); await tester.pumpAndSettle(); expect(find.byWidget(front), findsOneWidget); expect(find.byWidget(back), findsNothing); }); testWidgets('can run opponentKnockOutAnimation', (tester) async { await tester.pumpWidget(buildSubject()); unawaited(controller.run(opponentKnockOutAnimation)); await tester.pumpAndSettle(); expect(find.byWidget(front), findsOneWidget); expect(find.byWidget(back), findsNothing); }); testWidgets('can run playerKnockOutAnimation', (tester) async { await tester.pumpWidget(buildSubject()); unawaited(controller.run(playerKnockOutAnimation)); await tester.pumpAndSettle(); expect(find.byWidget(front), findsOneWidget); expect(find.byWidget(back), findsNothing); }); testWidgets('can run playerAttackForwardAnimation', (tester) async { await tester.pumpWidget(buildSubject()); unawaited(controller.run(playerAttackForwardAnimation)); await tester.pumpAndSettle(); expect(find.byWidget(front), findsOneWidget); expect(find.byWidget(back), findsNothing); }); testWidgets('can run playerAttackBackAnimation', (tester) async { await tester.pumpWidget(buildSubject()); unawaited(controller.run(playerAttackBackAnimation)); await tester.pumpAndSettle(); expect(find.byWidget(front), findsOneWidget); expect(find.byWidget(back), findsNothing); }); testWidgets('can run opponentAttackForwardAnimation', (tester) async { await tester.pumpWidget(buildSubject()); unawaited(controller.run(opponentAttackForwardAnimation)); await tester.pumpAndSettle(); expect(find.byWidget(front), findsOneWidget); expect(find.byWidget(back), findsNothing); }); testWidgets('can run opponentAttackBackAnimation', (tester) async { await tester.pumpWidget(buildSubject()); unawaited(controller.run(opponentAttackBackAnimation)); await tester.pumpAndSettle(); expect(find.byWidget(front), findsOneWidget); expect(find.byWidget(back), findsNothing); }); }); }); group('AnimatedCardController', () { test( 'run returns a complete future when the controller has no state attached', () async { final controller = AnimatedCardController(); var isComplete = false; unawaited( controller .run(smallFlipAnimation) .whenComplete(() => isComplete = true), ); await Future.microtask(() {}); expect(isComplete, isTrue); }, ); }); }
io_flip/packages/io_flip_ui/test/src/widgets/animated_card_test.dart/0
{ "file_path": "io_flip/packages/io_flip_ui/test/src/widgets/animated_card_test.dart", "repo_id": "io_flip", "token_count": 2254 }
918
// ignore_for_file: prefer_const_constructors import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:io_flip_ui/io_flip_ui.dart'; void main() { group('IoFlipBottomBar', () { testWidgets('renders correctly', (tester) async { await tester.pumpWidget(IoFlipBottomBar()); expect( find.byType(IoFlipBottomBar), findsOneWidget, ); }); testWidgets('renders size correctly', (tester) async { await tester.pumpWidget(IoFlipBottomBar(height: 120)); expect( tester.widget(find.byType(IoFlipBottomBar)), isA<IoFlipBottomBar>().having((i) => i.height, 'height', 120), ); }); testWidgets('renders leading correctly', (tester) async { await tester.pumpSubject( IoFlipBottomBar( leading: Icon(Icons.hiking), ), ); expect( find.byIcon(Icons.hiking), findsOneWidget, ); }); testWidgets('renders middle correctly', (tester) async { await tester.pumpSubject( IoFlipBottomBar( middle: Icon(Icons.android), ), ); expect( find.byIcon(Icons.android), findsOneWidget, ); }); testWidgets('renders trailing correctly', (tester) async { await tester.pumpSubject( IoFlipBottomBar( trailing: Icon(Icons.rocket), ), ); expect( find.byIcon(Icons.rocket), findsOneWidget, ); }); testWidgets('calculates width correctly for narrow space', (tester) async { await tester.pumpSubject( SizedBox( width: 10, child: IoFlipBottomBar( middle: Icon(Icons.functions), ), ), ); expect( find.byIcon(Icons.functions), findsOneWidget, ); }); }); group('ToolbarLayout', () { testWidgets('shouldRelayout method returns false', (tester) async { final delegate = ToolbarLayout(); final delegate2 = ToolbarLayout(); await tester.pumpWidget( CustomMultiChildLayout(delegate: delegate), ); expect(delegate.shouldRelayout(delegate2), isFalse); }); }); } extension BottomBarTest on WidgetTester { Future<void> pumpSubject(Widget child) async { return pumpWidget( MaterialApp( home: child, ), ); } }
io_flip/packages/io_flip_ui/test/src/widgets/io_flip_bottom_bar_test.dart/0
{ "file_path": "io_flip/packages/io_flip_ui/test/src/widgets/io_flip_bottom_bar_test.dart", "repo_id": "io_flip", "token_count": 1093 }
919
import 'dart:developer'; import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter/foundation.dart'; import 'package:game_domain/game_domain.dart'; import 'package:match_maker_repository/match_maker_repository.dart'; import 'package:uuid/uuid.dart'; const _inviteKey = 'INVITE'; /// Represents an error that occurs when a matchmaking process times out. class MatchMakingTimeout extends Error {} /// Throw when tried to join a match, but a race condition occurred /// and another user joined the match first. class MatchMakingRaceError extends Error {} /// {@template match_maker_repository} /// Repository for match making. /// {@endtemplate} class MatchMakerRepository { /// {@macro match_maker_repository} MatchMakerRepository({ required this.db, ValueGetter<String>? inviteCode, this.retryDelay = _defaultRetryDelay, }) : _inviteCode = inviteCode ?? defaultInviteCodeGenerator { collection = db.collection('matches'); matchStatesCollection = db.collection('match_states'); scoreCardCollection = db.collection('score_cards'); } static const _defaultRetryDelay = 2; static const _maxRetries = 3; final ValueGetter<String> _inviteCode; /// The delay between retries when finding a match. final int retryDelay; /// The [FirebaseFirestore] instance. final FirebaseFirestore db; /// The [CollectionReference] for the matches. late final CollectionReference<Map<String, dynamic>> collection; /// The [CollectionReference] for the match_states. late final CollectionReference<Map<String, dynamic>> matchStatesCollection; /// The [CollectionReference] for the score_cards. late final CollectionReference<Map<String, dynamic>> scoreCardCollection; /// Default generator of invite codes. static String defaultInviteCodeGenerator() => const Uuid().v4(); /// Watches a match. Stream<DraftMatch> watchMatch(String id) { return collection.doc(id).snapshots().map((snapshot) { final id = snapshot.id; final data = snapshot.data()!; final host = data['host'] as String; final guest = data['guest'] as String; final hostConnected = data['hostConnected'] as bool?; final guestConnected = data['guestConnected'] as bool?; return DraftMatch( id: id, host: host, guest: guest == emptyKey || guest == _inviteKey ? null : guest, hostConnected: hostConnected ?? false, guestConnected: guestConnected ?? false, ); }); } /// Watches a match state. Stream<MatchState> watchMatchState(String id) { return matchStatesCollection.doc(id).snapshots().map((snapshot) { final id = snapshot.id; final data = snapshot.data()!; final matchId = data['matchId'] as String; final hostCards = (data['hostPlayedCards'] as List).cast<String>(); final guestCards = (data['guestPlayedCards'] as List).cast<String>(); final result = MatchResult.valueOf(data['result'] as String?); return MatchState( id: id, matchId: matchId, hostPlayedCards: hostCards, guestPlayedCards: guestCards, result: result, ); }); } /// Watches a ScoreCard. Stream<ScoreCard> watchScoreCard(String id) { final ref = scoreCardCollection.doc(id); final docStream = ref.snapshots(); return docStream.map((snapshot) { final id = snapshot.id; final data = {...snapshot.data()!, 'id': id}; return ScoreCard.fromJson(data); }); } DraftMatch _mapMatchQueryElement( QueryDocumentSnapshot<Map<String, dynamic>> element, ) { final id = element.id; final data = element.data(); final host = data['host'] as String; final hostConnected = data['hostConnected'] as bool?; final guestConnected = data['guestConnected'] as bool?; final inviteCode = data['inviteCode'] as String?; return DraftMatch( id: id, host: host, hostConnected: hostConnected ?? false, guestConnected: guestConnected ?? false, inviteCode: inviteCode, ); } /// Gets the user's ScoreCard. Future<ScoreCard> getScoreCard(String id) async { final snapshot = await scoreCardCollection.doc(id).get(); if (!snapshot.exists || snapshot.data() == null) { return _createScoreCard(id); } final data = {...snapshot.data()!, 'id': id}; return ScoreCard.fromJson(data); } /// Finds a match. Future<DraftMatch> findMatch( String id, { int retryNumber = 0, bool forcedCpu = false, }) async { if (forcedCpu) { return _createMatch(id, forcedCpu: true); } /// Find a match that is not full and has /// been updated in the last 4 seconds. final matchesResult = await collection .where( 'guest', isEqualTo: emptyKey, ) .where( 'hostConnected', isEqualTo: true, ) .limit(3) .get(); if (matchesResult.docs.isEmpty) { log('No match available, creating a new one.'); return _createMatch(id); } else { final matches = matchesResult.docs.map(_mapMatchQueryElement).toList(); for (final match in matches) { try { await db.runTransaction<Transaction>((transaction) async { final ref = collection.doc(match.id); final snapshot = await transaction.get(ref); if (snapshot.data()!['guest'] != emptyKey) { throw MatchMakingRaceError(); } return transaction.update(ref, {'guest': id}); }); return match.copyWithGuest(guest: id); } catch (e) { log('Match "${match.id}" already matched, trying next...'); } } if (retryNumber == _maxRetries) { log('Joining match failed, creating a new one.'); return _createMatch(id); } log('No match available, trying again in 2 seconds...'); return Future.delayed( Duration(seconds: retryDelay), () => findMatch(id, retryNumber: retryNumber + 1), ); } } /// Creates a private match that can only be joined with an invitation code. Future<DraftMatch> createPrivateMatch(String id) => _createMatch( id, inviteOnly: true, ); /// Searches for and join a private match. Returns null if none is found. Future<DraftMatch?> joinPrivateMatch({ required String guestId, required String inviteCode, }) async { final matchesResult = await collection .where('guest', isEqualTo: _inviteKey) .where('inviteCode', isEqualTo: inviteCode) .limit(3) .get(); final matches = matchesResult.docs.map(_mapMatchQueryElement).toList(); if (matches.isNotEmpty) { final match = matches.first; await db.runTransaction<Transaction>((transaction) async { final ref = collection.doc(match.id); return transaction.update(ref, { 'guest': guestId, }); }); return match.copyWithGuest(guest: guestId); } return null; } Future<DraftMatch> _createMatch( String id, { bool inviteOnly = false, bool forcedCpu = false, }) async { final inviteCode = inviteOnly ? _inviteCode() : null; final result = await collection.add({ 'host': id, if (inviteOnly) 'guest': _inviteKey else if (forcedCpu) 'guest': reservedKey else 'guest': emptyKey, if (inviteCode != null) 'inviteCode': inviteCode, }); await matchStatesCollection.add({ 'matchId': result.id, 'hostPlayedCards': const <String>[], 'guestPlayedCards': const <String>[], }); return DraftMatch( id: result.id, host: id, inviteCode: inviteCode, ); } Future<ScoreCard> _createScoreCard(String id) async { await scoreCardCollection.doc(id).set({ 'wins': 0, 'longestStreak': 0, 'currentStreak': 0, }); return ScoreCard( id: id, ); } }
io_flip/packages/match_maker_repository/lib/src/match_maker_repository.dart/0
{ "file_path": "io_flip/packages/match_maker_repository/lib/src/match_maker_repository.dart", "repo_id": "io_flip", "token_count": 3044 }
920
import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:io_flip/app_lifecycle/app_lifecycle.dart'; void main() { group('AppLifecycleObserver', () { testWidgets('renders correctly', (tester) async { await tester.pumpWidget( const MaterialApp( home: Scaffold( body: AppLifecycleObserver( child: Text('test'), ), ), ), ); expect(find.text('test'), findsOneWidget); }); testWidgets('listens to the app', (tester) async { final key = GlobalKey<AppLifecycleObserverState>(); await tester.pumpWidget( MaterialApp( home: Scaffold( body: AppLifecycleObserver( key: key, child: const Text('test'), ), ), ), ); final state = key.currentState!; var lifecycleState = state.lifecycleListenable.value; expect(lifecycleState, equals(AppLifecycleState.inactive)); state.lifecycleListenable.addListener(() { lifecycleState = state.lifecycleListenable.value; }); tester.binding.handleAppLifecycleStateChanged(AppLifecycleState.resumed); expect(lifecycleState, equals(AppLifecycleState.resumed)); }); }); }
io_flip/test/app_lifecycle/app_lifecycle_test.dart/0
{ "file_path": "io_flip/test/app_lifecycle/app_lifecycle_test.dart", "repo_id": "io_flip", "token_count": 586 }
921