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 '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/common.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/linux/native_assets.dart';
import 'package:flutter_tools/src/isolated/native_assets/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();
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 dryRunNativeAssetsLinux(
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 buildNativeAssetsLinux(
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('does not throw if clang not present but no native assets present', overrides: <Type, Generator>{
FeatureFlags: () => TestFeatureFlags(isNativeAssetsEnabled: true),
ProcessManager: () => FakeProcessManager.empty(),
}, () async {
final File packageConfig = environment.projectDir.childFile('.dart_tool/package_config.json');
await packageConfig.create(recursive: true);
await buildNativeAssetsLinux(
projectUri: projectUri,
buildMode: BuildMode.debug,
fileSystem: fileSystem,
buildRunner: _BuildRunnerWithoutClang(),
);
expect(
(globals.logger as BufferLogger).traceText,
isNot(contains('Building native assets for ')),
);
});
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.darwin,
TargetPlatform.ios,
],
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(
() => dryRunNativeAssetsLinux(
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 dryRunNativeAssetsLinux(
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.linuxX64,
path: AssetAbsolutePath(Uri.file('libbar.so')),
),
Asset(
id: 'package:bar/bar.dart',
linkMode: LinkMode.dynamic,
target: native_assets_cli.Target.linuxArm64,
path: AssetAbsolutePath(Uri.file('libbar.so')),
),
],
),
),
);
expect(
(globals.logger as BufferLogger).traceText,
stringContainsInOrder(<String>[
'Dry running native assets for linux.',
'Dry running native assets for linux done.',
]),
);
expect(
nativeAssetsYaml,
projectUri.resolve('build/native_assets/linux/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(
() => buildNativeAssetsLinux(
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 buildNativeAssetsLinux(
targetPlatform: TargetPlatform.linux_x64,
projectUri: projectUri,
buildMode: BuildMode.debug,
fileSystem: fileSystem,
buildRunner: FakeNativeAssetsBuildRunner(
packagesWithNativeAssetsResult: <Package>[
Package('bar', projectUri),
],
),
);
expect(
nativeAssetsYaml,
projectUri.resolve('build/native_assets/linux/native_assets.yaml'),
);
expect(
await fileSystem.file(nativeAssetsYaml).readAsString(),
isNot(contains('package:bar/bar.dart')),
);
expect(
environment.projectDir
.childDirectory('build')
.childDirectory('native_assets')
.childDirectory('linux'),
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('libbar.so');
// The mock doesn't create the file, so create it here.
await dylibAfterCompiling.create();
final (Uri? nativeAssetsYaml, _) = await buildNativeAssetsLinux(
targetPlatform: TargetPlatform.linux_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.linuxX64,
path: AssetAbsolutePath(dylibAfterCompiling.uri),
),
],
),
),
);
expect(
(globals.logger as BufferLogger).traceText,
stringContainsInOrder(<String>[
'Building native assets for linux_x64 debug.',
'Building native assets for linux_x64 done.',
]),
);
expect(
nativeAssetsYaml,
projectUri.resolve('build/native_assets/linux/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/linux/libbar.so').toFilePath()}'
else
// Apps are a bundle with the dylibs on their dlopen path.
'- libbar.so',
]),
);
});
}
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(
() => dryRunNativeAssetsLinux(
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.macOSArm64,
path: AssetAbsolutePath(Uri.file('bar.a')),
),
Asset(
id: 'package:bar/bar.dart',
linkMode: LinkMode.static,
target: native_assets_cli.Target.macOSX64,
path: AssetAbsolutePath(Uri.file('bar.a')),
),
],
),
),
),
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(
() => dryRunNativeAssetsLinux(
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(
() => buildNativeAssetsLinux(
targetPlatform: TargetPlatform.linux_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>[
const FakeCommand(
command: <Pattern>['which', 'clang++'],
stdout: '''
/some/path/to/clang++
''', // Newline at the end of the string.
)
],
),
FileSystem: () => fileSystem,
}, () async {
if (!const LocalPlatform().isLinux) {
return;
}
await fileSystem.directory('/some/path/to/').create(recursive: true);
await fileSystem.file('/some/path/to/clang++').create();
await fileSystem.file('/some/path/to/clang').create();
await fileSystem.file('/some/path/to/llvm-ar').create();
await fileSystem.file('/some/path/to/ld.lld').create();
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, Uri.file('/some/path/to/clang'));
});
}
class _BuildRunnerWithoutClang extends FakeNativeAssetsBuildRunner {
@override
Future<CCompilerConfig> get cCompilerConfig async => throwToolExit('Failed to find clang++ on the PATH.');
}
| flutter/packages/flutter_tools/test/general.shard/isolated/linux/native_assets_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/isolated/linux/native_assets_test.dart",
"repo_id": "flutter",
"token_count": 6676
} | 812 |
// 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/artifacts.dart';
import 'package:flutter_tools/src/base/io.dart' show ProcessException;
import 'package:flutter_tools/src/base/logger.dart';
import 'package:flutter_tools/src/base/platform.dart';
import 'package:flutter_tools/src/base/user_messages.dart';
import 'package:flutter_tools/src/base/version.dart';
import 'package:flutter_tools/src/build_info.dart';
import 'package:flutter_tools/src/cache.dart';
import 'package:flutter_tools/src/device.dart';
import 'package:flutter_tools/src/ios/core_devices.dart';
import 'package:flutter_tools/src/ios/devices.dart';
import 'package:flutter_tools/src/ios/iproxy.dart';
import 'package:flutter_tools/src/ios/xcode_debug.dart';
import 'package:flutter_tools/src/ios/xcodeproj.dart';
import 'package:flutter_tools/src/macos/xcdevice.dart';
import 'package:flutter_tools/src/macos/xcode.dart';
import 'package:test/fake.dart';
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';
void main() {
late BufferLogger logger;
setUp(() {
logger = BufferLogger.test();
});
group('FakeProcessManager', () {
late FakeProcessManager fakeProcessManager;
setUp(() {
fakeProcessManager = FakeProcessManager.empty();
});
group('Xcode', () {
late FakeXcodeProjectInterpreter xcodeProjectInterpreter;
setUp(() {
xcodeProjectInterpreter = FakeXcodeProjectInterpreter();
});
testWithoutContext('isInstalledAndMeetsVersionCheck is false when not macOS', () {
final Xcode xcode = Xcode.test(
platform: FakePlatform(operatingSystem: 'windows'),
processManager: fakeProcessManager,
xcodeProjectInterpreter: xcodeProjectInterpreter,
);
expect(xcode.isInstalledAndMeetsVersionCheck, isFalse);
});
testWithoutContext('isSimctlInstalled is true when simctl list succeeds', () {
fakeProcessManager.addCommand(
const FakeCommand(
command: <String>[
'xcrun',
'simctl',
'list',
'devices',
'booted',
],
),
);
final Xcode xcode = Xcode.test(
processManager: fakeProcessManager,
xcodeProjectInterpreter: xcodeProjectInterpreter,
);
expect(xcode.isSimctlInstalled, isTrue);
expect(fakeProcessManager, hasNoRemainingExpectations);
});
testWithoutContext('isSimctlInstalled is false when simctl list fails', () {
fakeProcessManager.addCommand(
const FakeCommand(
command: <String>[
'xcrun',
'simctl',
'list',
'devices',
'booted',
],
exitCode: 1,
),
);
final Xcode xcode = Xcode.test(
processManager: fakeProcessManager,
xcodeProjectInterpreter: xcodeProjectInterpreter,
);
expect(xcode.isSimctlInstalled, isFalse);
expect(fakeProcessManager, hasNoRemainingExpectations);
});
group('isDevicectlInstalled', () {
testWithoutContext('is true when Xcode is 15+ and devicectl succeeds', () {
fakeProcessManager.addCommand(
const FakeCommand(
command: <String>[
'xcrun',
'devicectl',
'--version',
],
),
);
xcodeProjectInterpreter.version = Version(15, 0, 0);
final Xcode xcode = Xcode.test(
processManager: fakeProcessManager,
xcodeProjectInterpreter: xcodeProjectInterpreter,
);
expect(xcode.isDevicectlInstalled, isTrue);
expect(fakeProcessManager, hasNoRemainingExpectations);
});
testWithoutContext('is false when devicectl fails', () {
fakeProcessManager.addCommand(
const FakeCommand(
command: <String>[
'xcrun',
'devicectl',
'--version',
],
exitCode: 1,
),
);
xcodeProjectInterpreter.version = Version(15, 0, 0);
final Xcode xcode = Xcode.test(
processManager: fakeProcessManager,
xcodeProjectInterpreter: xcodeProjectInterpreter,
);
expect(xcode.isDevicectlInstalled, isFalse);
expect(fakeProcessManager, hasNoRemainingExpectations);
});
testWithoutContext('is false when Xcode is less than 15', () {
xcodeProjectInterpreter.version = Version(14, 0, 0);
final Xcode xcode = Xcode.test(
processManager: fakeProcessManager,
xcodeProjectInterpreter: xcodeProjectInterpreter,
);
expect(xcode.isDevicectlInstalled, isFalse);
expect(fakeProcessManager, hasNoRemainingExpectations);
});
});
group('pathToXcodeApp', () {
late UserMessages userMessages;
setUp(() {
userMessages = UserMessages();
});
testWithoutContext('parses correctly', () {
final Xcode xcode = Xcode.test(
processManager: fakeProcessManager,
xcodeProjectInterpreter: xcodeProjectInterpreter,
);
fakeProcessManager.addCommand(const FakeCommand(
command: <String>['/usr/bin/xcode-select', '--print-path'],
stdout: '/Applications/Xcode.app/Contents/Developer',
));
expect(xcode.xcodeAppPath, '/Applications/Xcode.app');
expect(fakeProcessManager, hasNoRemainingExpectations);
});
testWithoutContext('throws error if not found', () {
final Xcode xcode = Xcode.test(
processManager: FakeProcessManager.any(),
xcodeProjectInterpreter: xcodeProjectInterpreter,
);
expect(
() => xcode.xcodeAppPath,
throwsToolExit(message: userMessages.xcodeMissing),
);
});
testWithoutContext('throws error with unexpected outcome', () {
final Xcode xcode = Xcode.test(
processManager: fakeProcessManager,
xcodeProjectInterpreter: xcodeProjectInterpreter,
);
fakeProcessManager.addCommand(const FakeCommand(
command: <String>[
'/usr/bin/xcode-select',
'--print-path',
],
stdout: '/Library/Developer/CommandLineTools',
));
expect(
() => xcode.xcodeAppPath,
throwsToolExit(message: userMessages.xcodeMissing),
);
expect(fakeProcessManager, hasNoRemainingExpectations);
});
});
group('pathToXcodeAutomationScript', () {
const String flutterRoot = '/path/to/flutter';
late MemoryFileSystem fileSystem;
setUp(() {
fileSystem = MemoryFileSystem.test();
});
testWithoutContext('returns path when file is found', () {
final Xcode xcode = Xcode.test(
processManager: fakeProcessManager,
xcodeProjectInterpreter: xcodeProjectInterpreter,
fileSystem: fileSystem,
flutterRoot: flutterRoot,
);
fileSystem.file('$flutterRoot/packages/flutter_tools/bin/xcode_debug.js').createSync(recursive: true);
expect(
xcode.xcodeAutomationScriptPath,
'$flutterRoot/packages/flutter_tools/bin/xcode_debug.js',
);
});
testWithoutContext('throws error when not found', () {
final Xcode xcode = Xcode.test(
processManager: fakeProcessManager,
xcodeProjectInterpreter: xcodeProjectInterpreter,
fileSystem: fileSystem,
flutterRoot: flutterRoot,
);
expect(() =>
xcode.xcodeAutomationScriptPath,
throwsToolExit()
);
});
});
group('macOS', () {
late Xcode xcode;
late BufferLogger logger;
setUp(() {
xcodeProjectInterpreter = FakeXcodeProjectInterpreter();
logger = BufferLogger.test();
xcode = Xcode.test(
processManager: fakeProcessManager,
xcodeProjectInterpreter: xcodeProjectInterpreter,
logger: logger,
);
});
testWithoutContext('xcodeSelectPath returns path when xcode-select is installed', () {
const String xcodePath = '/Applications/Xcode8.0.app/Contents/Developer';
fakeProcessManager.addCommand(const FakeCommand(
command: <String>['/usr/bin/xcode-select', '--print-path'],
stdout: xcodePath,
),
);
expect(xcode.xcodeSelectPath, xcodePath);
expect(fakeProcessManager, hasNoRemainingExpectations);
});
testWithoutContext('xcodeSelectPath returns null when xcode-select is not installed', () {
fakeProcessManager.addCommand(const FakeCommand(
command: <String>['/usr/bin/xcode-select', '--print-path'],
exception: ProcessException('/usr/bin/xcode-select', <String>['--print-path']),
));
expect(xcode.xcodeSelectPath, isNull);
expect(fakeProcessManager, hasNoRemainingExpectations);
fakeProcessManager.addCommand(FakeCommand(
command: const <String>['/usr/bin/xcode-select', '--print-path'],
exception: ArgumentError('Invalid argument(s): Cannot find executable for /usr/bin/xcode-select'),
));
expect(xcode.xcodeSelectPath, isNull);
expect(fakeProcessManager, hasNoRemainingExpectations);
});
testWithoutContext('version checks fail when version is less than minimum', () {
xcodeProjectInterpreter.isInstalled = true;
xcodeProjectInterpreter.version = Version(9, null, null);
expect(xcode.isRequiredVersionSatisfactory, isFalse);
expect(xcode.isRecommendedVersionSatisfactory, isFalse);
});
testWithoutContext('version checks fail when xcodebuild tools are not installed', () {
xcodeProjectInterpreter.isInstalled = false;
expect(xcode.isRequiredVersionSatisfactory, isFalse);
expect(xcode.isRecommendedVersionSatisfactory, isFalse);
});
testWithoutContext('version checks pass when version meets minimum', () {
xcodeProjectInterpreter.isInstalled = true;
xcodeProjectInterpreter.version = Version(14, null, null);
expect(xcode.isRequiredVersionSatisfactory, isTrue);
expect(xcode.isRecommendedVersionSatisfactory, isTrue);
});
testWithoutContext('version checks pass when major version exceeds minimum', () {
xcodeProjectInterpreter.isInstalled = true;
xcodeProjectInterpreter.version = Version(15, 0, 0);
expect(xcode.isRequiredVersionSatisfactory, isTrue);
expect(xcode.isRecommendedVersionSatisfactory, isTrue);
});
testWithoutContext('version checks pass when minor version exceeds minimum', () {
xcodeProjectInterpreter.isInstalled = true;
xcodeProjectInterpreter.version = Version(14, 3, 0);
expect(xcode.isRequiredVersionSatisfactory, isTrue);
expect(xcode.isRecommendedVersionSatisfactory, isTrue);
});
testWithoutContext('version checks pass when patch version exceeds minimum', () {
xcodeProjectInterpreter.isInstalled = true;
xcodeProjectInterpreter.version = Version(14, 0, 2);
expect(xcode.isRequiredVersionSatisfactory, isTrue);
expect(xcode.isRecommendedVersionSatisfactory, isTrue);
});
testWithoutContext('isInstalledAndMeetsVersionCheck is false when not installed', () {
xcodeProjectInterpreter.isInstalled = false;
expect(xcode.isInstalledAndMeetsVersionCheck, isFalse);
expect(fakeProcessManager, hasNoRemainingExpectations);
});
testWithoutContext('isInstalledAndMeetsVersionCheck is false when version not satisfied', () {
xcodeProjectInterpreter.isInstalled = true;
xcodeProjectInterpreter.version = Version(10, 2, 0);
expect(xcode.isInstalledAndMeetsVersionCheck, isFalse);
expect(fakeProcessManager, hasNoRemainingExpectations);
});
testWithoutContext('isInstalledAndMeetsVersionCheck is true when macOS and installed and version is satisfied', () {
xcodeProjectInterpreter.isInstalled = true;
xcodeProjectInterpreter.version = Version(14, null, null);
expect(xcode.isInstalledAndMeetsVersionCheck, isTrue);
expect(fakeProcessManager, hasNoRemainingExpectations);
});
testWithoutContext('eulaSigned is false when clang output indicates EULA not yet accepted', () {
fakeProcessManager.addCommands(const <FakeCommand>[
FakeCommand(
command: <String>['xcrun', 'clang'],
exitCode: 1,
stderr:
'Xcode EULA has not been accepted.\nLaunch Xcode and accept the license.',
),
]);
expect(xcode.eulaSigned, isFalse);
expect(fakeProcessManager, hasNoRemainingExpectations);
});
testWithoutContext('eulaSigned is false when clang is not installed', () {
fakeProcessManager.addCommand(
const FakeCommand(
command: <String>['xcrun', 'clang'],
exception: ProcessException('xcrun', <String>['clang']),
),
);
expect(xcode.eulaSigned, isFalse);
});
testWithoutContext('eulaSigned is true when clang output indicates EULA has been accepted', () {
fakeProcessManager.addCommands(
const <FakeCommand>[
FakeCommand(
command: <String>['xcrun', 'clang'],
exitCode: 1,
stderr: 'clang: error: no input files',
),
],
);
expect(xcode.eulaSigned, isTrue);
expect(fakeProcessManager, hasNoRemainingExpectations);
});
testWithoutContext('SDK name', () {
expect(getSDKNameForIOSEnvironmentType(EnvironmentType.physical), 'iphoneos');
expect(getSDKNameForIOSEnvironmentType(EnvironmentType.simulator), 'iphonesimulator');
});
group('SDK location', () {
const String sdkroot = 'Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk';
testWithoutContext('--show-sdk-path iphoneos', () async {
fakeProcessManager.addCommand(const FakeCommand(
command: <String>['xcrun', '--sdk', 'iphoneos', '--show-sdk-path'],
stdout: sdkroot,
));
expect(await xcode.sdkLocation(EnvironmentType.physical), sdkroot);
expect(fakeProcessManager, hasNoRemainingExpectations);
});
testWithoutContext('--show-sdk-path fails', () async {
fakeProcessManager.addCommand(const FakeCommand(
command: <String>['xcrun', '--sdk', 'iphoneos', '--show-sdk-path'],
exitCode: 1,
stderr: 'xcrun: error:',
));
expect(() async => xcode.sdkLocation(EnvironmentType.physical),
throwsToolExit(message: 'Could not find SDK location'));
expect(fakeProcessManager, hasNoRemainingExpectations);
});
});
group('SDK Platform Version', () {
testWithoutContext('--show-sdk-platform-version iphonesimulator', () async {
fakeProcessManager.addCommand(const FakeCommand(
command: <String>['xcrun', '--sdk', 'iphonesimulator', '--show-sdk-platform-version'],
stdout: '16.4',
));
expect(await xcode.sdkPlatformVersion(EnvironmentType.simulator), Version(16, 4, null));
expect(fakeProcessManager, hasNoRemainingExpectations);
});
testWithoutContext('--show-sdk-platform-version iphonesimulator with leading and trailing new line', () async {
fakeProcessManager.addCommand(const FakeCommand(
command: <String>['xcrun', '--sdk', 'iphonesimulator', '--show-sdk-platform-version'],
stdout: '\n16.4\n',
));
expect(await xcode.sdkPlatformVersion(EnvironmentType.simulator), Version(16, 4, null));
expect(fakeProcessManager, hasNoRemainingExpectations);
});
testWithoutContext('--show-sdk-platform-version returns version followed by text', () async {
fakeProcessManager.addCommand(const FakeCommand(
command: <String>['xcrun', '--sdk', 'iphonesimulator', '--show-sdk-platform-version'],
stdout: '13.2 (a) 12344',
));
expect(await xcode.sdkPlatformVersion(EnvironmentType.simulator), Version(13, 2, null, text: '13.2 (a) 12344'));
expect(fakeProcessManager, hasNoRemainingExpectations);
});
testWithoutContext('--show-sdk-platform-version returns something unexpected', () async {
fakeProcessManager.addCommand(const FakeCommand(
command: <String>['xcrun', '--sdk', 'iphonesimulator', '--show-sdk-platform-version'],
stdout: 'bogus',
));
expect(await xcode.sdkPlatformVersion(EnvironmentType.simulator), null);
expect(fakeProcessManager, hasNoRemainingExpectations);
});
testWithoutContext('--show-sdk-platform-version fails', () async {
fakeProcessManager.addCommand(const FakeCommand(
command: <String>['xcrun', '--sdk', 'iphonesimulator', '--show-sdk-platform-version'],
exitCode: 1,
stderr: 'xcrun: error:',
));
expect(await xcode.sdkPlatformVersion(EnvironmentType.simulator), null);
expect(fakeProcessManager, hasNoRemainingExpectations);
expect(logger.errorText, contains('Could not find SDK Platform Version'));
});
});
});
});
group('xcdevice not installed', () {
late XCDevice xcdevice;
late Xcode xcode;
late MemoryFileSystem fileSystem;
setUp(() {
xcode = Xcode.test(
processManager: FakeProcessManager.any(),
xcodeProjectInterpreter: XcodeProjectInterpreter.test(
processManager: FakeProcessManager.any(),
version: null, // Not installed.
),
);
fileSystem = MemoryFileSystem.test();
xcdevice = XCDevice(
processManager: fakeProcessManager,
logger: logger,
xcode: xcode,
platform: FakePlatform(operatingSystem: 'macos'),
artifacts: Artifacts.test(),
cache: Cache.test(processManager: FakeProcessManager.any()),
iproxy: IProxy.test(logger: logger, processManager: fakeProcessManager),
fileSystem: fileSystem,
coreDeviceControl: FakeIOSCoreDeviceControl(),
xcodeDebug: FakeXcodeDebug(),
analytics: const NoOpAnalytics(),
);
});
testWithoutContext('Xcode not installed', () async {
expect(xcode.isInstalled, false);
expect(xcdevice.isInstalled, false);
expect(xcdevice.observedDeviceEvents(), isNull);
expect(logger.traceText, contains("Xcode not found. Run 'flutter doctor' for more information."));
expect(await xcdevice.getAvailableIOSDevices(), isEmpty);
expect(await xcdevice.getDiagnostics(), isEmpty);
});
});
group('xcdevice', () {
late XCDevice xcdevice;
late Xcode xcode;
late MemoryFileSystem fileSystem;
late FakeAnalytics fakeAnalytics;
late FakeIOSCoreDeviceControl coreDeviceControl;
setUp(() {
xcode = Xcode.test(processManager: FakeProcessManager.any());
fileSystem = MemoryFileSystem.test();
coreDeviceControl = FakeIOSCoreDeviceControl();
fakeAnalytics = getInitializedFakeAnalyticsInstance(
fs: fileSystem,
fakeFlutterVersion: FakeFlutterVersion(),
);
xcdevice = XCDevice(
processManager: fakeProcessManager,
logger: logger,
xcode: xcode,
platform: FakePlatform(operatingSystem: 'macos'),
artifacts: Artifacts.test(),
cache: Cache.test(processManager: FakeProcessManager.any()),
iproxy: IProxy.test(logger: logger, processManager: fakeProcessManager),
fileSystem: fileSystem,
coreDeviceControl: coreDeviceControl,
xcodeDebug: FakeXcodeDebug(),
analytics: fakeAnalytics,
);
});
group('observe device events', () {
testUsingContext('relays events', () async {
fakeProcessManager.addCommand(const FakeCommand(
command: <String>[
'script',
'-t',
'0',
'/dev/null',
'xcrun',
'xcdevice',
'observe',
'--usb',
], stdout: 'Listening for all devices, on USB.\n'
'Attach: d83d5bc53967baa0ee18626ba87b6254b2ab5418\n'
'Attach: 00008027-00192736010F802E\n'
'Detach: d83d5bc53967baa0ee18626ba87b6254b2ab5418',
stderr: 'Some usb error',
));
fakeProcessManager.addCommand(const FakeCommand(
command: <String>[
'script',
'-t',
'0',
'/dev/null',
'xcrun',
'xcdevice',
'observe',
'--wifi',
], stdout: 'Listening for all devices, on WiFi.\n'
'Attach: 00000001-0000000000000000\n'
'Detach: 00000001-0000000000000000',
stderr: 'Some wifi error',
));
final Completer<void> attach1 = Completer<void>();
final Completer<void> attach2 = Completer<void>();
final Completer<void> detach1 = Completer<void>();
final Completer<void> attach3 = Completer<void>();
final Completer<void> detach2 = Completer<void>();
// Attach: d83d5bc53967baa0ee18626ba87b6254b2ab5418
// Attach: 00008027-00192736010F802E
// Detach: d83d5bc53967baa0ee18626ba87b6254b2ab5418
xcdevice.observedDeviceEvents()!.listen((XCDeviceEventNotification event) {
if (event.eventType == XCDeviceEvent.attach) {
if (event.deviceIdentifier == 'd83d5bc53967baa0ee18626ba87b6254b2ab5418') {
attach1.complete();
} else
if (event.deviceIdentifier == '00008027-00192736010F802E') {
attach2.complete();
}
if (event.deviceIdentifier == '00000001-0000000000000000') {
attach3.complete();
}
} else if (event.eventType == XCDeviceEvent.detach) {
if (event.deviceIdentifier == 'd83d5bc53967baa0ee18626ba87b6254b2ab5418') {
detach1.complete();
}
if (event.deviceIdentifier == '00000001-0000000000000000') {
detach2.complete();
}
} else {
fail('Unexpected event');
}
});
await attach1.future;
await attach2.future;
await detach1.future;
await attach3.future;
await detach2.future;
expect(logger.errorText, contains('xcdevice observe --usb: Some usb error'));
expect(logger.errorText, contains('xcdevice observe --wifi: Some wifi error'));
});
testUsingContext('handles exit code', () async {
fakeProcessManager.addCommand(const FakeCommand(
command: <String>[
'script',
'-t',
'0',
'/dev/null',
'xcrun',
'xcdevice',
'observe',
'--usb',
],
));
fakeProcessManager.addCommand(const FakeCommand(
command: <String>[
'script',
'-t',
'0',
'/dev/null',
'xcrun',
'xcdevice',
'observe',
'--wifi',
],
exitCode: 1,
));
final Completer<void> doneCompleter = Completer<void>();
xcdevice.observedDeviceEvents()!.listen(null, onDone: () {
doneCompleter.complete();
});
await doneCompleter.future;
expect(logger.traceText, contains('xcdevice observe --usb exited with code 0'));
expect(logger.traceText, contains('xcdevice observe --wifi exited with code 0'));
});
});
group('wait device events', () {
testUsingContext('relays events', () async {
const String deviceId = '00000001-0000000000000000';
fakeProcessManager.addCommand(const FakeCommand(
command: <String>[
'script',
'-t',
'0',
'/dev/null',
'xcrun',
'xcdevice',
'wait',
'--usb',
deviceId,
],
stdout: 'Waiting for $deviceId to appear, on USB.\n',
));
fakeProcessManager.addCommand(const FakeCommand(
command: <String>[
'script',
'-t',
'0',
'/dev/null',
'xcrun',
'xcdevice',
'wait',
'--wifi',
deviceId,
],
stdout:
'Waiting for $deviceId to appear, on WiFi.\n'
'Attach: 00000001-0000000000000000\n',
));
// Attach: 00000001-0000000000000000
final XCDeviceEventNotification? event = await xcdevice.waitForDeviceToConnect(deviceId);
expect(event?.deviceIdentifier, deviceId);
expect(event?.eventInterface, XCDeviceEventInterface.wifi);
expect(event?.eventType, XCDeviceEvent.attach);
});
testUsingContext('handles exit code', () async {
const String deviceId = '00000001-0000000000000000';
fakeProcessManager.addCommand(const FakeCommand(
command: <String>[
'script',
'-t',
'0',
'/dev/null',
'xcrun',
'xcdevice',
'wait',
'--usb',
deviceId,
],
exitCode: 1,
stderr: 'Some error',
));
fakeProcessManager.addCommand(const FakeCommand(
command: <String>[
'script',
'-t',
'0',
'/dev/null',
'xcrun',
'xcdevice',
'wait',
'--wifi',
deviceId,
],
));
final XCDeviceEventNotification? event = await xcdevice.waitForDeviceToConnect(deviceId);
expect(event, isNull);
expect(logger.errorText, contains('xcdevice wait --usb: Some error'));
expect(logger.traceText, contains('xcdevice wait --usb exited with code 0'));
expect(logger.traceText, contains('xcdevice wait --wifi exited with code 0'));
expect(xcdevice.waitStreamController?.isClosed, isTrue);
});
testUsingContext('handles cancel', () async {
const String deviceId = '00000001-0000000000000000';
fakeProcessManager.addCommand(const FakeCommand(
command: <String>[
'script',
'-t',
'0',
'/dev/null',
'xcrun',
'xcdevice',
'wait',
'--usb',
deviceId,
],
));
fakeProcessManager.addCommand(const FakeCommand(
command: <String>[
'script',
'-t',
'0',
'/dev/null',
'xcrun',
'xcdevice',
'wait',
'--wifi',
deviceId,
],
));
final Future<XCDeviceEventNotification?> futureEvent = xcdevice.waitForDeviceToConnect(deviceId);
xcdevice.cancelWaitForDeviceToConnect();
final XCDeviceEventNotification? event = await futureEvent;
expect(event, isNull);
expect(logger.traceText, contains('xcdevice wait --usb exited with code 0'));
expect(logger.traceText, contains('xcdevice wait --wifi exited with code 0'));
expect(xcdevice.waitStreamController?.isClosed, isTrue);
});
});
group('available devices', () {
final FakePlatform macPlatform = FakePlatform(operatingSystem: 'macos');
testUsingContext('returns devices', () async {
const String devicesOutput = '''
[
{
"simulator" : true,
"operatingSystemVersion" : "13.3 (17K446)",
"available" : true,
"platform" : "com.apple.platform.appletvsimulator",
"modelCode" : "AppleTV5,3",
"identifier" : "CBB5E1ED-2172-446E-B4E7-F2B5823DBBA6",
"architecture" : "x86_64",
"modelName" : "Apple TV",
"name" : "Apple TV"
},
{
"simulator" : false,
"operatingSystemVersion" : "13.3 (17C54)",
"interface" : "usb",
"available" : true,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPhone8,1",
"identifier" : "00008027-00192736010F802E",
"architecture" : "arm64",
"modelName" : "iPhone 6s",
"name" : "An iPhone (Space Gray)"
},
{
"simulator" : false,
"operatingSystemVersion" : "10.1 (14C54)",
"interface" : "usb",
"available" : true,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPad11,4",
"identifier" : "98206e7a4afd4aedaff06e687594e089dede3c44",
"architecture" : "armv7",
"modelName" : "iPad Air 3rd Gen",
"name" : "iPad 1"
},
{
"simulator" : false,
"operatingSystemVersion" : "10.1 (14C54)",
"interface" : "network",
"available" : true,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPad11,4",
"identifier" : "234234234234234234345445687594e089dede3c44",
"architecture" : "arm64",
"modelName" : "iPad Air 3rd Gen",
"name" : "A networked iPad"
},
{
"simulator" : false,
"operatingSystemVersion" : "10.1 (14C54)",
"interface" : "usb",
"available" : true,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPad11,4",
"identifier" : "f577a7903cc54959be2e34bc4f7f80b7009efcf4",
"architecture" : "BOGUS",
"modelName" : "iPad Air 3rd Gen",
"name" : "iPad 2"
},
{
"simulator" : true,
"operatingSystemVersion" : "6.1.1 (17S445)",
"available" : true,
"platform" : "com.apple.platform.watchsimulator",
"modelCode" : "Watch5,4",
"identifier" : "2D74FB11-88A0-44D0-B81E-C0C142B1C94A",
"architecture" : "i386",
"modelName" : "Apple Watch Series 5 - 44mm",
"name" : "Apple Watch Series 5 - 44mm"
},
{
"simulator" : false,
"operatingSystemVersion" : "13.3 (17C54)",
"interface" : "usb",
"available" : false,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPhone8,1",
"identifier" : "c4ca6f7a53027d1b7e4972e28478e7a28e2faee2",
"architecture" : "arm64",
"modelName" : "iPhone 6s",
"name" : "iPhone",
"error" : {
"code" : -9,
"failureReason" : "",
"description" : "iPhone is not paired with your computer.",
"domain" : "com.apple.platform.iphoneos"
}
}
]
''';
fakeProcessManager.addCommand(const FakeCommand(
command: <String>['xcrun', 'xcdevice', 'list', '--timeout', '2'],
stdout: devicesOutput,
));
final List<IOSDevice> devices = await xcdevice.getAvailableIOSDevices();
expect(devices, hasLength(5));
expect(devices[0].id, '00008027-00192736010F802E');
expect(devices[0].name, 'An iPhone (Space Gray)');
expect(await devices[0].sdkNameAndVersion, 'iOS 13.3 17C54');
expect(devices[0].cpuArchitecture, DarwinArch.arm64);
expect(devices[0].connectionInterface, DeviceConnectionInterface.attached);
expect(devices[0].isConnected, true);
expect(devices[1].id, '98206e7a4afd4aedaff06e687594e089dede3c44');
expect(devices[1].name, 'iPad 1');
expect(await devices[1].sdkNameAndVersion, 'iOS 10.1 14C54');
expect(devices[1].cpuArchitecture, DarwinArch.armv7);
expect(devices[1].connectionInterface, DeviceConnectionInterface.attached);
expect(devices[1].isConnected, true);
expect(devices[2].id, '234234234234234234345445687594e089dede3c44');
expect(devices[2].name, 'A networked iPad');
expect(await devices[2].sdkNameAndVersion, 'iOS 10.1 14C54');
expect(devices[2].cpuArchitecture, DarwinArch.arm64); // Defaults to arm64 for unknown architecture.
expect(devices[2].connectionInterface, DeviceConnectionInterface.wireless);
expect(devices[2].isConnected, true);
expect(devices[3].id, 'f577a7903cc54959be2e34bc4f7f80b7009efcf4');
expect(devices[3].name, 'iPad 2');
expect(await devices[3].sdkNameAndVersion, 'iOS 10.1 14C54');
expect(devices[3].cpuArchitecture, DarwinArch.arm64); // Defaults to arm64 for unknown architecture.
expect(devices[3].connectionInterface, DeviceConnectionInterface.attached);
expect(devices[3].isConnected, true);
expect(devices[4].id, 'c4ca6f7a53027d1b7e4972e28478e7a28e2faee2');
expect(devices[4].name, 'iPhone');
expect(await devices[4].sdkNameAndVersion, 'iOS 13.3 17C54');
expect(devices[4].cpuArchitecture, DarwinArch.arm64);
expect(devices[4].connectionInterface, DeviceConnectionInterface.attached);
expect(devices[4].isConnected, false);
expect(fakeProcessManager, hasNoRemainingExpectations);
}, overrides: <Type, Generator>{
Platform: () => macPlatform,
Artifacts: () => Artifacts.test(),
});
testWithoutContext('available devices xcdevice fails', () async {
fakeProcessManager.addCommand(const FakeCommand(
command: <String>['xcrun', 'xcdevice', 'list', '--timeout', '2'],
exception: ProcessException('xcrun', <String>['xcdevice', 'list', '--timeout', '2']),
));
expect(await xcdevice.getAvailableIOSDevices(), isEmpty);
});
testWithoutContext('uses timeout', () async {
fakeProcessManager.addCommand(const FakeCommand(
command: <String>['xcrun', 'xcdevice', 'list', '--timeout', '20'],
stdout: '[]',
));
await xcdevice.getAvailableIOSDevices(timeout: const Duration(seconds: 20));
expect(fakeProcessManager, hasNoRemainingExpectations);
});
testUsingContext('ignores "Preparing debugger support for iPhone" error', () async {
const String devicesOutput = '''
[
{
"simulator" : false,
"operatingSystemVersion" : "13.3 (17C54)",
"interface" : "usb",
"available" : false,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPhone8,1",
"identifier" : "43ad2fda7991b34fe1acbda82f9e2fd3d6ddc9f7",
"architecture" : "arm64",
"modelName" : "iPhone 6s",
"name" : "iPhone",
"error" : {
"code" : -10,
"failureReason" : "",
"description" : "iPhone is busy: Preparing debugger support for iPhone",
"recoverySuggestion" : "Xcode will continue when iPhone is finished.",
"domain" : "com.apple.platform.iphoneos"
}
}
]
''';
fakeProcessManager.addCommand(const FakeCommand(
command: <String>['xcrun', 'xcdevice', 'list', '--timeout', '2'],
stdout: devicesOutput,
));
final List<IOSDevice> devices = await xcdevice.getAvailableIOSDevices();
expect(devices, hasLength(1));
expect(devices[0].id, '43ad2fda7991b34fe1acbda82f9e2fd3d6ddc9f7');
expect(fakeProcessManager, hasNoRemainingExpectations);
}, overrides: <Type, Generator>{
Platform: () => macPlatform,
Artifacts: () => Artifacts.test(),
});
testUsingContext('handles unknown architectures', () async {
const String devicesOutput = '''
[
{
"simulator" : false,
"operatingSystemVersion" : "13.3 (17C54)",
"interface" : "usb",
"available" : true,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPhone8,1",
"identifier" : "d83d5bc53967baa0ee18626ba87b6254b2ab5418",
"architecture" : "armv7x",
"modelName" : "iPad 3 BOGUS",
"name" : "iPad"
},
{
"simulator" : false,
"operatingSystemVersion" : "13.3 (17C54)",
"interface" : "usb",
"available" : true,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPhone8,1",
"identifier" : "43ad2fda7991b34fe1acbda82f9e2fd3d6ddc9f7",
"architecture" : "BOGUS",
"modelName" : "Future iPad",
"name" : "iPad"
}
]
''';
fakeProcessManager.addCommand(const FakeCommand(
command: <String>['xcrun', 'xcdevice', 'list', '--timeout', '2'],
stdout: devicesOutput,
));
final List<IOSDevice> devices = await xcdevice.getAvailableIOSDevices();
expect(devices[0].cpuArchitecture, DarwinArch.armv7);
expect(devices[1].cpuArchitecture, DarwinArch.arm64);
expect(fakeProcessManager, hasNoRemainingExpectations);
}, overrides: <Type, Generator>{
Platform: () => macPlatform,
Artifacts: () => Artifacts.test(),
});
testUsingContext('Sdk Version is parsed correctly',() async {
const String devicesOutput = '''
[
{
"simulator" : false,
"operatingSystemVersion" : "13.3 (17C54)",
"interface" : "usb",
"available" : true,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPhone8,1",
"identifier" : "00008027-00192736010F802E",
"architecture" : "arm64",
"modelName" : "iPhone 6s",
"name" : "An iPhone (Space Gray)"
},
{
"simulator" : false,
"operatingSystemVersion" : "10.1",
"interface" : "usb",
"available" : true,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPad11,4",
"identifier" : "234234234234234234345445687594e089dede3c44",
"architecture" : "arm64",
"modelName" : "iPad Air 3rd Gen",
"name" : "A networked iPad"
},
{
"simulator" : false,
"interface" : "usb",
"available" : true,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPad11,4",
"identifier" : "f577a7903cc54959be2e34bc4f7f80b7009efcf4",
"architecture" : "BOGUS",
"modelName" : "iPad Air 3rd Gen",
"name" : "iPad 2"
}
]
''';
fakeProcessManager.addCommand(const FakeCommand(
command: <String>['xcrun', 'xcdevice', 'list', '--timeout', '2'],
stdout: devicesOutput,
));
final List<IOSDevice> devices = await xcdevice.getAvailableIOSDevices();
expect(await devices[0].sdkNameAndVersion,'iOS 13.3 17C54');
expect(await devices[1].sdkNameAndVersion,'iOS 10.1');
expect(await devices[2].sdkNameAndVersion,'iOS unknown version');
}, overrides: <Type, Generator>{
Platform: () => macPlatform,
});
testUsingContext('use connected entry when filtering out duplicates', () async {
const String devicesOutput = '''
[
{
"simulator" : false,
"operatingSystemVersion" : "13.3 (17C54)",
"interface" : "usb",
"available" : false,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPhone8,1",
"identifier" : "c4ca6f7a53027d1b7e4972e28478e7a28e2faee2",
"architecture" : "arm64",
"modelName" : "iPhone 6s",
"name" : "iPhone"
},
{
"simulator" : false,
"operatingSystemVersion" : "13.3 (17C54)",
"interface" : "usb",
"available" : false,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPhone8,1",
"identifier" : "c4ca6f7a53027d1b7e4972e28478e7a28e2faee2",
"architecture" : "arm64",
"modelName" : "iPhone 6s",
"name" : "iPhone",
"error" : {
"code" : -13,
"failureReason" : "",
"description" : "iPhone iPad is not connected",
"recoverySuggestion" : "Xcode will continue when iPhone is connected and unlocked.",
"domain" : "com.apple.platform.iphoneos"
}
}
]
''';
fakeProcessManager.addCommand(const FakeCommand(
command: <String>['xcrun', 'xcdevice', 'list', '--timeout', '2'],
stdout: devicesOutput,
));
final List<IOSDevice> devices = await xcdevice.getAvailableIOSDevices();
expect(devices, hasLength(1));
expect(devices[0].id, 'c4ca6f7a53027d1b7e4972e28478e7a28e2faee2');
expect(devices[0].name, 'iPhone');
expect(await devices[0].sdkNameAndVersion, 'iOS 13.3 17C54');
expect(devices[0].cpuArchitecture, DarwinArch.arm64);
expect(devices[0].connectionInterface, DeviceConnectionInterface.attached);
expect(devices[0].isConnected, true);
expect(fakeProcessManager, hasNoRemainingExpectations);
}, overrides: <Type, Generator>{
Platform: () => macPlatform,
Artifacts: () => Artifacts.test(),
});
testUsingContext('use entry with sdk when filtering out duplicates', () async {
const String devicesOutput = '''
[
{
"simulator" : false,
"interface" : "usb",
"available" : false,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPhone8,1",
"identifier" : "c4ca6f7a53027d1b7e4972e28478e7a28e2faee2",
"architecture" : "arm64",
"modelName" : "iPhone 6s",
"name" : "iPhone_1",
"error" : {
"code" : -13,
"failureReason" : "",
"description" : "iPhone iPad is not connected",
"recoverySuggestion" : "Xcode will continue when iPhone is connected and unlocked.",
"domain" : "com.apple.platform.iphoneos"
}
},
{
"simulator" : false,
"operatingSystemVersion" : "13.3 (17C54)",
"interface" : "usb",
"available" : false,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPhone8,1",
"identifier" : "c4ca6f7a53027d1b7e4972e28478e7a28e2faee2",
"architecture" : "arm64",
"modelName" : "iPhone 6s",
"name" : "iPhone_2",
"error" : {
"code" : -13,
"failureReason" : "",
"description" : "iPhone iPad is not connected",
"recoverySuggestion" : "Xcode will continue when iPhone is connected and unlocked.",
"domain" : "com.apple.platform.iphoneos"
}
}
]
''';
fakeProcessManager.addCommand(const FakeCommand(
command: <String>['xcrun', 'xcdevice', 'list', '--timeout', '2'],
stdout: devicesOutput,
));
final List<IOSDevice> devices = await xcdevice.getAvailableIOSDevices();
expect(devices, hasLength(1));
expect(devices[0].id, 'c4ca6f7a53027d1b7e4972e28478e7a28e2faee2');
expect(devices[0].name, 'iPhone_2');
expect(await devices[0].sdkNameAndVersion, 'iOS 13.3 17C54');
expect(devices[0].cpuArchitecture, DarwinArch.arm64);
expect(devices[0].connectionInterface, DeviceConnectionInterface.attached);
expect(devices[0].isConnected, false);
expect(fakeProcessManager, hasNoRemainingExpectations);
}, overrides: <Type, Generator>{
Platform: () => macPlatform,
Artifacts: () => Artifacts.test(),
});
testUsingContext('use entry with higher sdk when filtering out duplicates', () async {
const String devicesOutput = '''
[
{
"simulator" : false,
"operatingSystemVersion" : "14.3 (17C54)",
"interface" : "usb",
"available" : false,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPhone8,1",
"identifier" : "c4ca6f7a53027d1b7e4972e28478e7a28e2faee2",
"architecture" : "arm64",
"modelName" : "iPhone 6s",
"name" : "iPhone_1",
"error" : {
"code" : -13,
"failureReason" : "",
"description" : "iPhone iPad is not connected",
"recoverySuggestion" : "Xcode will continue when iPhone is connected and unlocked.",
"domain" : "com.apple.platform.iphoneos"
}
},
{
"simulator" : false,
"operatingSystemVersion" : "13.3 (17C54)",
"interface" : "usb",
"available" : false,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPhone8,1",
"identifier" : "c4ca6f7a53027d1b7e4972e28478e7a28e2faee2",
"architecture" : "arm64",
"modelName" : "iPhone 6s",
"name" : "iPhone_2",
"error" : {
"code" : -13,
"failureReason" : "",
"description" : "iPhone iPad is not connected",
"recoverySuggestion" : "Xcode will continue when iPhone is connected and unlocked.",
"domain" : "com.apple.platform.iphoneos"
}
}
]
''';
fakeProcessManager.addCommand(const FakeCommand(
command: <String>['xcrun', 'xcdevice', 'list', '--timeout', '2'],
stdout: devicesOutput,
));
final List<IOSDevice> devices = await xcdevice.getAvailableIOSDevices();
expect(devices, hasLength(1));
expect(devices[0].id, 'c4ca6f7a53027d1b7e4972e28478e7a28e2faee2');
expect(devices[0].name, 'iPhone_1');
expect(await devices[0].sdkNameAndVersion, 'iOS 14.3 17C54');
expect(devices[0].cpuArchitecture, DarwinArch.arm64);
expect(devices[0].connectionInterface, DeviceConnectionInterface.attached);
expect(devices[0].isConnected, false);
expect(fakeProcessManager, hasNoRemainingExpectations);
}, overrides: <Type, Generator>{
Platform: () => macPlatform,
Artifacts: () => Artifacts.test(),
});
testUsingContext('handles bad output',() async {
fakeProcessManager.addCommand(const FakeCommand(
command: <String>['xcrun', 'xcdevice', 'list', '--timeout', '2'],
stdout: 'Something bad happened, not JSON',
));
final List<IOSDevice> devices = await xcdevice.getAvailableIOSDevices();
expect(devices, isEmpty);
expect(logger.errorText, contains('xcdevice returned non-JSON response'));
}, overrides: <Type, Generator>{
Platform: () => macPlatform,
});
group('with CoreDevices', () {
testUsingContext('returns devices with corresponding CoreDevices', () async {
const String devicesOutput = '''
[
{
"simulator" : true,
"operatingSystemVersion" : "13.3 (17K446)",
"available" : true,
"platform" : "com.apple.platform.appletvsimulator",
"modelCode" : "AppleTV5,3",
"identifier" : "CBB5E1ED-2172-446E-B4E7-F2B5823DBBA6",
"architecture" : "x86_64",
"modelName" : "Apple TV",
"name" : "Apple TV"
},
{
"simulator" : false,
"operatingSystemVersion" : "13.3 (17C54)",
"interface" : "usb",
"available" : true,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPhone8,1",
"identifier" : "00008027-00192736010F802E",
"architecture" : "arm64",
"modelName" : "iPhone 6s",
"name" : "An iPhone (Space Gray)"
},
{
"simulator" : false,
"operatingSystemVersion" : "10.1 (14C54)",
"interface" : "usb",
"available" : true,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPad11,4",
"identifier" : "98206e7a4afd4aedaff06e687594e089dede3c44",
"architecture" : "armv7",
"modelName" : "iPad Air 3rd Gen",
"name" : "iPad 1"
},
{
"simulator" : false,
"operatingSystemVersion" : "10.1 (14C54)",
"interface" : "network",
"available" : true,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPad11,4",
"identifier" : "234234234234234234345445687594e089dede3c44",
"architecture" : "arm64",
"modelName" : "iPad Air 3rd Gen",
"name" : "A networked iPad"
},
{
"simulator" : false,
"operatingSystemVersion" : "10.1 (14C54)",
"interface" : "usb",
"available" : true,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPad11,4",
"identifier" : "f577a7903cc54959be2e34bc4f7f80b7009efcf4",
"architecture" : "BOGUS",
"modelName" : "iPad Air 3rd Gen",
"name" : "iPad 2"
},
{
"simulator" : true,
"operatingSystemVersion" : "6.1.1 (17S445)",
"available" : true,
"platform" : "com.apple.platform.watchsimulator",
"modelCode" : "Watch5,4",
"identifier" : "2D74FB11-88A0-44D0-B81E-C0C142B1C94A",
"architecture" : "i386",
"modelName" : "Apple Watch Series 5 - 44mm",
"name" : "Apple Watch Series 5 - 44mm"
},
{
"simulator" : false,
"operatingSystemVersion" : "13.3 (17C54)",
"interface" : "usb",
"available" : false,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPhone8,1",
"identifier" : "c4ca6f7a53027d1b7e4972e28478e7a28e2faee2",
"architecture" : "arm64",
"modelName" : "iPhone 6s",
"name" : "iPhone",
"error" : {
"code" : -9,
"failureReason" : "",
"description" : "iPhone is not paired with your computer.",
"domain" : "com.apple.platform.iphoneos"
}
}
]
''';
coreDeviceControl.devices.addAll(<FakeIOSCoreDevice>[
FakeIOSCoreDevice(
udid: '00008027-00192736010F802E',
connectionInterface: DeviceConnectionInterface.wireless,
developerModeStatus: 'enabled',
),
FakeIOSCoreDevice(
connectionInterface: DeviceConnectionInterface.wireless,
developerModeStatus: 'enabled',
),
FakeIOSCoreDevice(
udid: '234234234234234234345445687594e089dede3c44',
connectionInterface: DeviceConnectionInterface.attached,
),
FakeIOSCoreDevice(
udid: 'f577a7903cc54959be2e34bc4f7f80b7009efcf4',
connectionInterface: DeviceConnectionInterface.attached,
developerModeStatus: 'disabled',
),
]);
fakeProcessManager.addCommand(const FakeCommand(
command: <String>['xcrun', 'xcdevice', 'list', '--timeout', '2'],
stdout: devicesOutput,
));
final List<IOSDevice> devices = await xcdevice.getAvailableIOSDevices();
expect(devices, hasLength(5));
expect(devices[0].id, '00008027-00192736010F802E');
expect(devices[0].name, 'An iPhone (Space Gray)');
expect(await devices[0].sdkNameAndVersion, 'iOS 13.3 17C54');
expect(devices[0].cpuArchitecture, DarwinArch.arm64);
expect(devices[0].connectionInterface, DeviceConnectionInterface.wireless);
expect(devices[0].isConnected, true);
expect(devices[0].devModeEnabled, true);
expect(devices[1].id, '98206e7a4afd4aedaff06e687594e089dede3c44');
expect(devices[1].name, 'iPad 1');
expect(await devices[1].sdkNameAndVersion, 'iOS 10.1 14C54');
expect(devices[1].cpuArchitecture, DarwinArch.armv7);
expect(devices[1].connectionInterface, DeviceConnectionInterface.attached);
expect(devices[1].isConnected, true);
expect(devices[1].devModeEnabled, true);
expect(devices[2].id, '234234234234234234345445687594e089dede3c44');
expect(devices[2].name, 'A networked iPad');
expect(await devices[2].sdkNameAndVersion, 'iOS 10.1 14C54');
expect(devices[2].cpuArchitecture, DarwinArch.arm64); // Defaults to arm64 for unknown architecture.
expect(devices[2].connectionInterface, DeviceConnectionInterface.attached);
expect(devices[2].isConnected, true);
expect(devices[2].devModeEnabled, false);
expect(devices[3].id, 'f577a7903cc54959be2e34bc4f7f80b7009efcf4');
expect(devices[3].name, 'iPad 2');
expect(await devices[3].sdkNameAndVersion, 'iOS 10.1 14C54');
expect(devices[3].cpuArchitecture, DarwinArch.arm64); // Defaults to arm64 for unknown architecture.
expect(devices[3].connectionInterface, DeviceConnectionInterface.attached);
expect(devices[3].isConnected, true);
expect(devices[3].devModeEnabled, false);
expect(devices[4].id, 'c4ca6f7a53027d1b7e4972e28478e7a28e2faee2');
expect(devices[4].name, 'iPhone');
expect(await devices[4].sdkNameAndVersion, 'iOS 13.3 17C54');
expect(devices[4].cpuArchitecture, DarwinArch.arm64);
expect(devices[4].connectionInterface, DeviceConnectionInterface.attached);
expect(devices[4].isConnected, false);
expect(devices[4].devModeEnabled, true);
expect(fakeProcessManager, hasNoRemainingExpectations);
expect(fakeAnalytics.sentEvents, contains(
Event.appleUsageEvent(
workflow: 'device',
parameter: 'ios-trust-failure',
)
));
}, overrides: <Type, Generator>{
Platform: () => macPlatform,
Artifacts: () => Artifacts.test(),
});
});
});
group('diagnostics', () {
final FakePlatform macPlatform = FakePlatform(operatingSystem: 'macos');
testUsingContext('uses cache', () async {
const String devicesOutput = '''
[
{
"simulator" : false,
"operatingSystemVersion" : "13.3 (17C54)",
"interface" : "network",
"available" : false,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPhone8,1",
"identifier" : "d83d5bc53967baa0ee18626ba87b6254b2ab5418",
"architecture" : "arm64",
"modelName" : "iPhone 6s",
"error" : {
"code" : -13,
"failureReason" : "",
"domain" : "com.apple.platform.iphoneos"
}
}
]
''';
fakeProcessManager.addCommand(const FakeCommand(
command: <String>['xcrun', 'xcdevice', 'list', '--timeout', '2'],
stdout: devicesOutput,
));
await xcdevice.getAvailableIOSDevices();
final List<String> errors = await xcdevice.getDiagnostics();
expect(errors, hasLength(1));
expect(fakeProcessManager, hasNoRemainingExpectations);
}, overrides: <Type, Generator>{
Platform: () => macPlatform,
});
testWithoutContext('diagnostics xcdevice fails', () async {
fakeProcessManager.addCommand(const FakeCommand(
command: <String>['xcrun', 'xcdevice', 'list', '--timeout', '2'],
exception: ProcessException('xcrun', <String>['xcdevice', 'list', '--timeout', '2']),
));
expect(await xcdevice.getDiagnostics(), isEmpty);
});
testUsingContext('returns error message', () async {
const String devicesOutput = '''
[
{
"simulator" : false,
"operatingSystemVersion" : "13.3 (17C54)",
"interface" : "usb",
"available" : false,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPhone8,1",
"identifier" : "98206e7a4afd4aedaff06e687594e089dede3c44",
"architecture" : "arm64",
"modelName" : "iPhone 6s",
"name" : "An iPhone (Space Gray)",
"error" : {
"code" : -9,
"failureReason" : "",
"underlyingErrors" : [
{
"code" : 5,
"failureReason" : "allowsSecureServices: 1. isConnected: 0. Platform: <DVTPlatform:0x7f804ce32880:'com.apple.platform.iphoneos':<DVTFilePath:0x7f804ce32800:'/Users/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform'>>. DTDKDeviceIdentifierIsIDID: 0",
"description" : "📱<DVTiOSDevice (0x7f801f190450), iPhone, iPhone, 13.3 (17C54), d83d5bc53967baa0ee18626ba87b6254b2ab5418> -- Failed _shouldMakeReadyForDevelopment check even though device is not locked by passcode.",
"recoverySuggestion" : "",
"domain" : "com.apple.platform.iphoneos"
}
],
"description" : "iPhone is not paired with your computer.",
"recoverySuggestion" : "To use iPhone with Xcode, unlock it and choose to trust this computer when prompted.",
"domain" : "com.apple.platform.iphoneos"
}
},
{
"simulator" : false,
"operatingSystemVersion" : "13.3 (17C54)",
"interface" : "usb",
"available" : false,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPhone8,1",
"identifier" : "d83d5bc53967baa0ee18626ba87b6254b2ab5418",
"architecture" : "arm64",
"modelName" : "iPhone 6s",
"name" : "iPhone",
"error" : {
"failureReason" : "",
"description" : "iPhone is not paired with your computer",
"domain" : "com.apple.platform.iphoneos"
}
},
{
"simulator" : false,
"operatingSystemVersion" : "13.3 (17C54)",
"interface" : "network",
"available" : false,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPhone8,1",
"identifier" : "d83d5bc53967baa0ee18626ba87b6254b2ab5418",
"architecture" : "arm64",
"modelName" : "iPhone 6s",
"error" : {
"code" : -13,
"failureReason" : "",
"domain" : "com.apple.platform.iphoneos"
}
},
{
"simulator" : false,
"operatingSystemVersion" : "13.3 (17C54)",
"interface" : "usb",
"available" : false,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPhone8,1",
"identifier" : "43ad2fda7991b34fe1acbda82f9e2fd3d6ddc9f7",
"architecture" : "arm64",
"modelName" : "iPhone 6s",
"name" : "iPhone",
"error" : {
"code" : -10,
"failureReason" : "",
"description" : "iPhone is busy: Preparing debugger support for iPhone",
"recoverySuggestion" : "Xcode will continue when iPhone is finished.",
"domain" : "com.apple.platform.iphoneos"
}
},
{
"modelCode" : "iPad8,5",
"simulator" : false,
"modelName" : "iPad Pro (12.9-inch) (3rd generation)",
"error" : {
"code" : -13,
"failureReason" : "",
"underlyingErrors" : [
{
"code" : 4,
"failureReason" : "",
"description" : "iPad is locked.",
"recoverySuggestion" : "To use iPad with Xcode, unlock it.",
"domain" : "DVTDeviceIneligibilityErrorDomain"
}
],
"description" : "iPad is not connected",
"recoverySuggestion" : "Xcode will continue when iPad is connected.",
"domain" : "com.apple.platform.iphoneos"
},
"operatingSystemVersion" : "15.6 (19G5027e)",
"identifier" : "00008027-0019253601068123",
"platform" : "com.apple.platform.iphoneos",
"architecture" : "arm64e",
"interface" : "usb",
"available" : false,
"name" : "iPad",
"modelUTI" : "com.apple.ipad-pro-12point9-1"
}
]
''';
fakeProcessManager.addCommand(const FakeCommand(
command: <String>['xcrun', 'xcdevice', 'list', '--timeout', '2'],
stdout: devicesOutput,
));
final List<String> errors = await xcdevice.getDiagnostics();
expect(errors, hasLength(4));
expect(errors[0], 'Error: iPhone is not paired with your computer. To use iPhone with Xcode, unlock it and choose to trust this computer when prompted. (code -9)');
expect(errors[1], 'Error: iPhone is not paired with your computer.');
expect(errors[2], 'Error: Xcode pairing error. (code -13)');
expect(errors[3], 'Error: iPhone is busy: Preparing debugger support for iPhone. Xcode will continue when iPhone is finished. (code -10)');
expect(errors, isNot(contains('Xcode will continue')));
expect(fakeProcessManager, hasNoRemainingExpectations);
}, overrides: <Type, Generator>{
Platform: () => macPlatform,
});
});
});
});
}
class FakeXcodeProjectInterpreter extends Fake implements XcodeProjectInterpreter {
@override
Version version = Version(0, 0, 0);
@override
bool isInstalled = false;
@override
List<String> xcrunCommand() => <String>['xcrun'];
}
class FakeXcodeDebug extends Fake implements XcodeDebug {}
class FakeIOSCoreDeviceControl extends Fake implements IOSCoreDeviceControl {
List<FakeIOSCoreDevice> devices = <FakeIOSCoreDevice>[];
@override
Future<List<IOSCoreDevice>> getCoreDevices({Duration timeout = Duration.zero}) async {
return devices;
}
}
class FakeIOSCoreDevice extends Fake implements IOSCoreDevice {
FakeIOSCoreDevice({
this.udid,
this.connectionInterface,
this.developerModeStatus,
});
final String? developerModeStatus;
@override
final String? udid;
@override
final DeviceConnectionInterface? connectionInterface;
@override
IOSCoreDeviceProperties? get deviceProperties => FakeIOSCoreDeviceProperties(developerModeStatus: developerModeStatus);
}
class FakeIOSCoreDeviceProperties extends Fake implements IOSCoreDeviceProperties {
FakeIOSCoreDeviceProperties({required this.developerModeStatus});
@override
final String? developerModeStatus;
}
| flutter/packages/flutter_tools/test/general.shard/macos/xcode_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/macos/xcode_test.dart",
"repo_id": "flutter",
"token_count": 27963
} | 813 |
// 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/file_system.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';
void main() {
late FileSystem fileSystem;
group('PubDependenciesProjectValidator', () {
setUp(() {
fileSystem = MemoryFileSystem.test();
});
testWithoutContext('success when all dependencies are hosted', () async {
final ProcessManager processManager = FakeProcessManager.list(<FakeCommand>[
const FakeCommand(
command: <String>['dart', 'pub', 'deps', '--json'],
stdout: '{"packages": [{"dependencies": ["abc"], "source": "hosted"}]}',
),
]);
final PubDependenciesProjectValidator validator = PubDependenciesProjectValidator(processManager);
final List<ProjectValidatorResult> result = await validator.start(
FlutterProject.fromDirectoryTest(fileSystem.currentDirectory)
);
const String expected = 'All pub dependencies are hosted on https://pub.dartlang.org';
expect(result.length, 1);
expect(result[0].value, expected);
expect(result[0].status, StatusProjectValidator.info);
});
testWithoutContext('error when command dart pub deps fails', () async {
final ProcessManager processManager = FakeProcessManager.list(<FakeCommand>[
const FakeCommand(
command: <String>['dart', 'pub', 'deps', '--json'],
stderr: 'command fail',
),
]);
final PubDependenciesProjectValidator validator = PubDependenciesProjectValidator(processManager);
final List<ProjectValidatorResult> result = await validator.start(
FlutterProject.fromDirectoryTest(fileSystem.currentDirectory)
);
const String expected = 'command fail';
expect(result.length, 1);
expect(result[0].value, expected);
expect(result[0].status, StatusProjectValidator.error);
});
testWithoutContext('info on dependencies not hosted', () async {
final ProcessManager processManager = FakeProcessManager.list(<FakeCommand>[
const FakeCommand(
command: <String>['dart', 'pub', 'deps', '--json'],
stdout: '{"packages": [{"dependencies": ["dep1", "dep2"], "source": "other"}]}',
),
]);
final PubDependenciesProjectValidator validator = PubDependenciesProjectValidator(processManager);
final List<ProjectValidatorResult> result = await validator.start(
FlutterProject.fromDirectoryTest(fileSystem.currentDirectory)
);
const String expected = 'dep1, dep2 are not hosted';
expect(result.length, 1);
expect(result[0].value, expected);
expect(result[0].status, StatusProjectValidator.info);
});
});
}
| flutter/packages/flutter_tools/test/general.shard/pub_dependencies_project_validator_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/pub_dependencies_project_validator_test.dart",
"repo_id": "flutter",
"token_count": 1080
} | 814 |
// 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:file/memory.dart';
import 'package:file_testing/file_testing.dart';
import 'package:flutter_tools/src/base/io.dart';
import 'package:flutter_tools/src/base/logger.dart';
import 'package:flutter_tools/src/base/signals.dart';
import 'package:flutter_tools/src/base/terminal.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/convert.dart';
import 'package:flutter_tools/src/devfs.dart';
import 'package:flutter_tools/src/device.dart';
import 'package:flutter_tools/src/resident_devtools_handler.dart';
import 'package:flutter_tools/src/resident_runner.dart';
import 'package:flutter_tools/src/vmservice.dart';
import 'package:test/fake.dart';
import 'package:vm_service/vm_service.dart' as vm_service;
import '../src/common.dart';
import '../src/fake_vm_services.dart';
final vm_service.Isolate fakeUnpausedIsolate = vm_service.Isolate(
id: '1',
pauseEvent: vm_service.Event(
kind: vm_service.EventKind.kResume,
timestamp: 0
),
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 FlutterView fakeFlutterView = FlutterView(
id: 'a',
uiIsolate: fakeUnpausedIsolate,
);
final FakeVmServiceRequest listViews = FakeVmServiceRequest(
method: kListViewsMethod,
jsonResponse: <String, Object>{
'views': <Object>[
fakeFlutterView.toJson(),
],
},
);
void main() {
testWithoutContext('keyboard input handling single help character', () async {
final TestRunner testRunner = TestRunner();
final Logger logger = BufferLogger.test();
final Signals signals = Signals.test();
final Terminal terminal = Terminal.test();
final MemoryFileSystem fs = MemoryFileSystem.test();
final ProcessInfo processInfo = ProcessInfo.test(fs);
final TerminalHandler terminalHandler = TerminalHandler(
testRunner,
logger: logger,
signals: signals,
terminal: terminal,
processInfo: processInfo,
reportReady: false,
);
expect(testRunner.hasHelpBeenPrinted, false);
await terminalHandler.processTerminalInput('h');
expect(testRunner.hasHelpBeenPrinted, true);
});
testWithoutContext('keyboard input handling help character surrounded with newlines', () async {
final TestRunner testRunner = TestRunner();
final Logger logger = BufferLogger.test();
final Signals signals = Signals.test();
final Terminal terminal = Terminal.test();
final MemoryFileSystem fs = MemoryFileSystem.test();
final ProcessInfo processInfo = ProcessInfo.test(fs);
final TerminalHandler terminalHandler = TerminalHandler(
testRunner,
logger: logger,
signals: signals,
terminal: terminal,
processInfo: processInfo,
reportReady: false,
);
expect(testRunner.hasHelpBeenPrinted, false);
await terminalHandler.processTerminalInput('\nh\n');
expect(testRunner.hasHelpBeenPrinted, true);
});
group('keycode verification, brought to you by the letter', () {
testWithoutContext('a, can handle trailing newlines', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], supportsServiceProtocol: false);
await terminalHandler.processTerminalInput('a\n');
expect(terminalHandler.lastReceivedCommand, 'a');
});
testWithoutContext('n, can handle trailing only newlines', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[]);
await terminalHandler.processTerminalInput('\n\n');
expect(terminalHandler.lastReceivedCommand, '');
});
testWithoutContext('a - debugToggleProfileWidgetBuilds', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.profileWidgetBuilds',
args: <String, Object>{
'isolateId': '1',
},
jsonResponse: <String, Object>{
'enabled': 'false',
},
),
const FakeVmServiceRequest(
method: 'ext.flutter.profileWidgetBuilds',
args: <String, Object>{
'isolateId': '1',
'enabled': 'true',
},
jsonResponse: <String, Object>{
'enabled': 'true',
},
),
]);
await terminalHandler.processTerminalInput('a');
});
testWithoutContext('a - debugToggleProfileWidgetBuilds with web target', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.profileWidgetBuilds',
args: <String, Object>{
'isolateId': '1',
},
jsonResponse: <String, Object>{
'enabled': 'false',
},
),
const FakeVmServiceRequest(
method: 'ext.flutter.profileWidgetBuilds',
args: <String, Object>{
'isolateId': '1',
'enabled': 'true',
},
jsonResponse: <String, Object>{
'enabled': 'true',
},
),
], web: true);
await terminalHandler.processTerminalInput('a');
});
testWithoutContext('j unsupported jank metrics for web', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], web: true);
await terminalHandler.processTerminalInput('j');
expect(terminalHandler.logger.warningText.contains('Unable to get jank metrics for web'), true);
});
testWithoutContext('a - debugToggleProfileWidgetBuilds without service protocol is skipped', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], supportsServiceProtocol: false);
await terminalHandler.processTerminalInput('a');
});
testWithoutContext('b - debugToggleBrightness', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.brightnessOverride',
args: <String, Object>{
'isolateId': '1',
},
jsonResponse: <String, Object>{
'value': 'Brightness.light',
}
),
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.brightnessOverride',
args: <String, Object>{
'isolateId': '1',
'value': 'Brightness.dark',
},
jsonResponse: <String, Object>{
'value': 'Brightness.dark',
}
),
]);
await terminalHandler.processTerminalInput('b');
expect(terminalHandler.logger.statusText, contains('Changed brightness to Brightness.dark'));
});
testWithoutContext('b - debugToggleBrightness with web target', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.brightnessOverride',
args: <String, Object>{
'isolateId': '1',
},
jsonResponse: <String, Object>{
'value': 'Brightness.light',
}
),
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.brightnessOverride',
args: <String, Object>{
'isolateId': '1',
'value': 'Brightness.dark',
},
jsonResponse: <String, Object>{
'value': 'Brightness.dark',
}
),
], web: true);
await terminalHandler.processTerminalInput('b');
expect(terminalHandler.logger.statusText, contains('Changed brightness to Brightness.dark'));
});
testWithoutContext('b - debugToggleBrightness without service protocol is skipped', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], supportsServiceProtocol: false);
await terminalHandler.processTerminalInput('b');
});
testWithoutContext('d,D - detach', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[]);
final FakeResidentRunner runner = terminalHandler.residentRunner as FakeResidentRunner;
await terminalHandler.processTerminalInput('d');
expect(runner.calledDetach, true);
runner.calledDetach = false;
await terminalHandler.processTerminalInput('D');
expect(runner.calledDetach, true);
});
testWithoutContext('h,H,? - printHelp', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[]);
final FakeResidentRunner runner = terminalHandler.residentRunner as FakeResidentRunner;
await terminalHandler.processTerminalInput('h');
expect(runner.calledPrintWithDetails, true);
runner.calledPrintWithDetails = false;
await terminalHandler.processTerminalInput('H');
expect(runner.calledPrintWithDetails, true);
runner.calledPrintWithDetails = false;
await terminalHandler.processTerminalInput('?');
expect(runner.calledPrintWithDetails, true);
});
testWithoutContext('i - debugToggleWidgetInspector', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.inspector.show',
args: <String, Object>{
'isolateId': '1',
},
),
]);
await terminalHandler.processTerminalInput('i');
});
testWithoutContext('i - debugToggleWidgetInspector with web target', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.inspector.show',
args: <String, Object>{
'isolateId': '1',
},
),
], web: true);
await terminalHandler.processTerminalInput('i');
});
testWithoutContext('i - debugToggleWidgetInspector without service protocol is skipped', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], supportsServiceProtocol: false);
await terminalHandler.processTerminalInput('i');
});
testWithoutContext('I - debugToggleInvertOversizedImages', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.invertOversizedImages',
args: <String, Object>{
'isolateId': '1',
},
),
]);
await terminalHandler.processTerminalInput('I');
});
testWithoutContext('I - debugToggleInvertOversizedImages with web target', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.invertOversizedImages',
args: <String, Object>{
'isolateId': '1',
},
),
], web: true);
await terminalHandler.processTerminalInput('I');
});
testWithoutContext('I - debugToggleInvertOversizedImages without service protocol is skipped', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], supportsServiceProtocol: false);
await terminalHandler.processTerminalInput('I');
});
testWithoutContext('I - debugToggleInvertOversizedImages in profile mode is skipped', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], buildMode: BuildMode.profile);
await terminalHandler.processTerminalInput('I');
});
testWithoutContext('L - debugDumpLayerTree', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.debugDumpLayerTree',
args: <String, Object>{
'isolateId': '1',
},
jsonResponse: <String, Object>{
'data': 'LAYER TREE',
}
),
]);
await terminalHandler.processTerminalInput('L');
expect(terminalHandler.logger.statusText, contains('LAYER TREE'));
});
testWithoutContext('L - debugDumpLayerTree with web target', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.debugDumpLayerTree',
args: <String, Object>{
'isolateId': '1',
},
jsonResponse: <String, Object>{
'data': 'LAYER TREE',
}
),
], web: true);
await terminalHandler.processTerminalInput('L');
expect(terminalHandler.logger.statusText, contains('LAYER TREE'));
});
testWithoutContext('L - debugDumpLayerTree with service protocol and profile mode is skipped', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], buildMode: BuildMode.profile);
await terminalHandler.processTerminalInput('L');
});
testWithoutContext('L - debugDumpLayerTree without service protocol is skipped', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], supportsServiceProtocol: false);
await terminalHandler.processTerminalInput('L');
});
testWithoutContext('f - debugDumpFocusTree', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.debugDumpFocusTree',
args: <String, Object>{
'isolateId': '1',
},
jsonResponse: <String, Object>{
'data': 'FOCUS TREE',
}
),
]);
await terminalHandler.processTerminalInput('f');
expect(terminalHandler.logger.statusText, contains('FOCUS TREE'));
});
testWithoutContext('f - debugDumpLayerTree with web target', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.debugDumpFocusTree',
args: <String, Object>{
'isolateId': '1',
},
jsonResponse: <String, Object>{
'data': 'FOCUS TREE',
}
),
], web: true);
await terminalHandler.processTerminalInput('f');
expect(terminalHandler.logger.statusText, contains('FOCUS TREE'));
});
testWithoutContext('f - debugDumpFocusTree with service protocol and profile mode is skipped', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], buildMode: BuildMode.profile);
await terminalHandler.processTerminalInput('f');
});
testWithoutContext('f - debugDumpFocusTree without service protocol is skipped', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], supportsServiceProtocol: false);
await terminalHandler.processTerminalInput('f');
});
testWithoutContext('o,O - debugTogglePlatform', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
// Request 1.
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.platformOverride',
args: <String, Object>{
'isolateId': '1',
},
jsonResponse: <String, Object>{
'value': 'iOS',
},
),
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.platformOverride',
args: <String, Object>{
'isolateId': '1',
'value': 'windows',
},
jsonResponse: <String, Object>{
'value': 'windows',
},
),
// Request 2.
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.platformOverride',
args: <String, Object>{
'isolateId': '1',
},
jsonResponse: <String, Object>{
'value': 'android',
},
),
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.platformOverride',
args: <String, Object>{
'isolateId': '1',
'value': 'iOS',
},
jsonResponse: <String, Object>{
'value': 'iOS',
},
),
]);
await terminalHandler.processTerminalInput('o');
await terminalHandler.processTerminalInput('O');
expect(terminalHandler.logger.statusText, contains('Switched operating system to windows'));
expect(terminalHandler.logger.statusText, contains('Switched operating system to iOS'));
});
testWithoutContext('o,O - debugTogglePlatform with web target', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
// Request 1.
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.platformOverride',
args: <String, Object>{
'isolateId': '1',
},
jsonResponse: <String, Object>{
'value': 'iOS',
},
),
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.platformOverride',
args: <String, Object>{
'isolateId': '1',
'value': 'windows',
},
jsonResponse: <String, Object>{
'value': 'windows',
},
),
// Request 2.
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.platformOverride',
args: <String, Object>{
'isolateId': '1',
},
jsonResponse: <String, Object>{
'value': 'android',
},
),
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.platformOverride',
args: <String, Object>{
'isolateId': '1',
'value': 'iOS',
},
jsonResponse: <String, Object>{
'value': 'iOS',
},
),
], web: true);
await terminalHandler.processTerminalInput('o');
await terminalHandler.processTerminalInput('O');
expect(terminalHandler.logger.statusText, contains('Switched operating system to windows'));
expect(terminalHandler.logger.statusText, contains('Switched operating system to iOS'));
});
testWithoutContext('o,O - debugTogglePlatform without service protocol is skipped', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], supportsServiceProtocol: false);
await terminalHandler.processTerminalInput('o');
await terminalHandler.processTerminalInput('O');
});
testWithoutContext('p - debugToggleDebugPaintSizeEnabled', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.debugPaint',
args: <String, Object>{
'isolateId': '1',
},
),
]);
await terminalHandler.processTerminalInput('p');
});
testWithoutContext('p - debugToggleDebugPaintSizeEnabled with web target', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.debugPaint',
args: <String, Object>{
'isolateId': '1',
},
),
], web: true);
await terminalHandler.processTerminalInput('p');
});
testWithoutContext('p - debugToggleDebugPaintSizeEnabled without service protocol is skipped', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], supportsServiceProtocol: false);
await terminalHandler.processTerminalInput('p');
});
testWithoutContext('P - debugTogglePerformanceOverlayOverride', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.showPerformanceOverlay',
args: <String, Object>{
'isolateId': '1',
},
),
]);
await terminalHandler.processTerminalInput('P');
});
testWithoutContext('P - debugTogglePerformanceOverlayOverride with web target is skipped ', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], web: true);
await terminalHandler.processTerminalInput('P');
});
testWithoutContext('P - debugTogglePerformanceOverlayOverride without service protocol is skipped ', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], supportsServiceProtocol: false);
await terminalHandler.processTerminalInput('P');
});
testWithoutContext('S - debugDumpSemanticsTreeInTraversalOrder', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.debugDumpSemanticsTreeInTraversalOrder',
args: <String, Object>{
'isolateId': '1',
},
jsonResponse: <String, Object>{
'data': 'SEMANTICS DATA',
},
),
]);
await terminalHandler.processTerminalInput('S');
expect(terminalHandler.logger.statusText, contains('SEMANTICS DATA'));
});
testWithoutContext('S - debugDumpSemanticsTreeInTraversalOrder with web target', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.debugDumpSemanticsTreeInTraversalOrder',
args: <String, Object>{
'isolateId': '1',
},
jsonResponse: <String, Object>{
'data': 'SEMANTICS DATA',
},
),
], web: true);
await terminalHandler.processTerminalInput('S');
expect(terminalHandler.logger.statusText, contains('SEMANTICS DATA'));
});
testWithoutContext('S - debugDumpSemanticsTreeInTraversalOrder without service protocol is skipped', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], supportsServiceProtocol: false);
await terminalHandler.processTerminalInput('S');
});
testWithoutContext('U - debugDumpSemanticsTreeInInverseHitTestOrder', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.debugDumpSemanticsTreeInInverseHitTestOrder',
args: <String, Object>{
'isolateId': '1',
},
jsonResponse: <String, Object>{
'data': 'SEMANTICS DATA',
},
),
]);
await terminalHandler.processTerminalInput('U');
expect(terminalHandler.logger.statusText, contains('SEMANTICS DATA'));
});
testWithoutContext('U - debugDumpSemanticsTreeInInverseHitTestOrder with web target', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.debugDumpSemanticsTreeInInverseHitTestOrder',
args: <String, Object>{
'isolateId': '1',
},
jsonResponse: <String, Object>{
'data': 'SEMANTICS DATA',
},
),
], web: true);
await terminalHandler.processTerminalInput('U');
expect(terminalHandler.logger.statusText, contains('SEMANTICS DATA'));
});
testWithoutContext('U - debugDumpSemanticsTreeInInverseHitTestOrder without service protocol is skipped', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], supportsServiceProtocol: false);
await terminalHandler.processTerminalInput('U');
});
testWithoutContext('t,T - debugDumpRenderTree', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.debugDumpRenderTree',
args: <String, Object>{
'isolateId': '1',
},
jsonResponse: <String, Object>{
'data': 'RENDER DATA 1',
},
),
// Request 2.
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.debugDumpRenderTree',
args: <String, Object>{
'isolateId': '1',
},
jsonResponse: <String, Object>{
'data': 'RENDER DATA 2',
},
),
]);
await terminalHandler.processTerminalInput('t');
await terminalHandler.processTerminalInput('T');
expect(terminalHandler.logger.statusText, contains('RENDER DATA 1'));
expect(terminalHandler.logger.statusText, contains('RENDER DATA 2'));
});
testWithoutContext('t,T - debugDumpRenderTree with web target', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.debugDumpRenderTree',
args: <String, Object>{
'isolateId': '1',
},
jsonResponse: <String, Object>{
'data': 'RENDER DATA 1',
},
),
// Request 2.
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.debugDumpRenderTree',
args: <String, Object>{
'isolateId': '1',
},
jsonResponse: <String, Object>{
'data': 'RENDER DATA 2',
},
),
], web: true);
await terminalHandler.processTerminalInput('t');
await terminalHandler.processTerminalInput('T');
expect(terminalHandler.logger.statusText, contains('RENDER DATA 1'));
expect(terminalHandler.logger.statusText, contains('RENDER DATA 2'));
});
testWithoutContext('t,T - debugDumpRenderTree without service protocol is skipped', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], supportsServiceProtocol: false);
await terminalHandler.processTerminalInput('t');
await terminalHandler.processTerminalInput('T');
});
testWithoutContext('w,W - debugDumpApp', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.debugDumpApp',
args: <String, Object>{
'isolateId': '1',
},
jsonResponse: <String, Object>{
'data': 'WIDGET DATA 1',
},
),
// Request 2.
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.debugDumpApp',
args: <String, Object>{
'isolateId': '1',
},
jsonResponse: <String, Object>{
'data': 'WIDGET DATA 2',
},
),
]);
await terminalHandler.processTerminalInput('w');
await terminalHandler.processTerminalInput('W');
expect(terminalHandler.logger.statusText, contains('WIDGET DATA 1'));
expect(terminalHandler.logger.statusText, contains('WIDGET DATA 2'));
});
testWithoutContext('w,W - debugDumpApp with web target', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.debugDumpApp',
args: <String, Object>{
'isolateId': '1',
},
jsonResponse: <String, Object>{
'data': 'WIDGET DATA 1',
},
),
// Request 2.
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.debugDumpApp',
args: <String, Object>{
'isolateId': '1',
},
jsonResponse: <String, Object>{
'data': 'WIDGET DATA 2',
},
),
], web: true);
await terminalHandler.processTerminalInput('w');
await terminalHandler.processTerminalInput('W');
expect(terminalHandler.logger.statusText, contains('WIDGET DATA 1'));
expect(terminalHandler.logger.statusText, contains('WIDGET DATA 2'));
});
testWithoutContext('v - launchDevToolsInBrowser', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[]);
final FakeResidentRunner runner = terminalHandler.residentRunner as FakeResidentRunner;
final FakeResidentDevtoolsHandler devtoolsHandler = runner.residentDevtoolsHandler as FakeResidentDevtoolsHandler;
expect(devtoolsHandler.calledLaunchDevToolsInBrowser, isFalse);
await terminalHandler.processTerminalInput('v');
expect(devtoolsHandler.calledLaunchDevToolsInBrowser, isTrue);
});
testWithoutContext('w,W - debugDumpApp without service protocol is skipped', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], supportsServiceProtocol: false);
await terminalHandler.processTerminalInput('w');
await terminalHandler.processTerminalInput('W');
});
testWithoutContext('z,Z - debugToggleDebugCheckElevationsEnabled', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.debugCheckElevationsEnabled',
args: <String, Object>{
'isolateId': '1',
},
),
// Request 2.
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.debugCheckElevationsEnabled',
args: <String, Object>{
'isolateId': '1',
},
),
]);
await terminalHandler.processTerminalInput('z');
await terminalHandler.processTerminalInput('Z');
});
testWithoutContext('z,Z - debugToggleDebugCheckElevationsEnabled with web target', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.debugCheckElevationsEnabled',
args: <String, Object>{
'isolateId': '1',
},
),
// Request 2.
listViews,
const FakeVmServiceRequest(
method: 'ext.flutter.debugCheckElevationsEnabled',
args: <String, Object>{
'isolateId': '1',
},
),
], web: true);
await terminalHandler.processTerminalInput('z');
await terminalHandler.processTerminalInput('Z');
});
testWithoutContext('z,Z - debugToggleDebugCheckElevationsEnabled without service protocol is skipped', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], supportsServiceProtocol: false);
await terminalHandler.processTerminalInput('z');
await terminalHandler.processTerminalInput('Z');
});
testWithoutContext('q,Q - exit', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[]);
final FakeResidentRunner runner = terminalHandler.residentRunner as FakeResidentRunner;
await terminalHandler.processTerminalInput('q');
expect(runner.calledExit, true);
runner.calledExit = false;
await terminalHandler.processTerminalInput('Q');
expect(runner.calledExit, true);
});
testWithoutContext('r - hotReload unsupported', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], supportsHotReload: false);
await terminalHandler.processTerminalInput('r');
});
testWithoutContext('R - hotRestart unsupported', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], supportsRestart: false);
await terminalHandler.processTerminalInput('R');
});
testWithoutContext('r - hotReload', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[]);
final FakeResidentRunner runner = terminalHandler.residentRunner as FakeResidentRunner;
await terminalHandler.processTerminalInput('r');
expect(runner.calledReload, true);
expect(runner.calledRestart, false);
});
testWithoutContext('R - hotRestart', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[]);
final FakeResidentRunner runner = terminalHandler.residentRunner as FakeResidentRunner;
await terminalHandler.processTerminalInput('R');
expect(runner.calledReload, false);
expect(runner.calledRestart, true);
});
testWithoutContext('r - hotReload with non-fatal error', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], reloadExitCode: 1);
final FakeResidentRunner runner = terminalHandler.residentRunner as FakeResidentRunner;
await terminalHandler.processTerminalInput('r');
expect(runner.calledReload, true);
expect(runner.calledRestart, false);
expect(terminalHandler.logger.statusText, contains('Try again after fixing the above error(s).'));
});
testWithoutContext('R - hotRestart with non-fatal error', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], reloadExitCode: 1);
final FakeResidentRunner runner = terminalHandler.residentRunner as FakeResidentRunner;
await terminalHandler.processTerminalInput('R');
expect(runner.calledReload, false);
expect(runner.calledRestart, true);
expect(terminalHandler.logger.statusText, contains('Try again after fixing the above error(s).'));
});
testWithoutContext('r - hotReload with fatal error', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], reloadExitCode: 1, fatalReloadError: true);
final FakeResidentRunner runner = terminalHandler.residentRunner as FakeResidentRunner;
await expectLater(() => terminalHandler.processTerminalInput('r'), throwsToolExit());
expect(runner.calledReload, true);
expect(runner.calledRestart, false);
});
testWithoutContext('R - hotRestart with fatal error', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], reloadExitCode: 1, fatalReloadError: true);
final FakeResidentRunner runner = terminalHandler.residentRunner as FakeResidentRunner;
await expectLater(() => terminalHandler.processTerminalInput('R'), throwsToolExit());
expect(runner.calledReload, false);
expect(runner.calledRestart, true);
});
});
testWithoutContext('ResidentRunner clears the screen when it should', () async {
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], reloadExitCode: 1, fatalReloadError: true);
const String message = 'This should be cleared';
expect(terminalHandler.logger.statusText, equals(''));
terminalHandler.logger.printStatus(message);
expect(terminalHandler.logger.statusText, equals('$message\n')); // printStatus makes a newline
await terminalHandler.processTerminalInput('c');
expect(terminalHandler.logger.statusText, equals(''));
});
testWithoutContext('s, can take screenshot on debug device that supports screenshot', () async {
final BufferLogger logger = BufferLogger.test();
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
FakeVmServiceRequest(
method: 'ext.flutter.debugAllowBanner',
args: <String, Object?>{
'isolateId': fakeUnpausedIsolate.id,
'enabled': 'false',
},
),
FakeVmServiceRequest(
method: 'ext.flutter.debugAllowBanner',
args: <String, Object?>{
'isolateId': fakeUnpausedIsolate.id,
'enabled': 'true',
},
),
], logger: logger, supportsScreenshot: true);
await terminalHandler.processTerminalInput('s');
expect(logger.statusText, contains('Screenshot written to flutter_01.png (0kB)'));
});
testWithoutContext('s, will not take screenshot on non-web device without screenshot tooling support', () async {
final BufferLogger logger = BufferLogger.test();
final FileSystem fileSystem = MemoryFileSystem.test();
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[], logger: logger, fileSystem: fileSystem);
await terminalHandler.processTerminalInput('s');
expect(logger.statusText, isNot(contains('Screenshot written to')));
});
testWithoutContext('s, can take screenshot on debug web device that does not support screenshot', () async {
final BufferLogger logger = BufferLogger.test();
final FileSystem fileSystem = MemoryFileSystem.test();
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
listViews,
FakeVmServiceRequest(
method: 'ext.flutter.debugAllowBanner',
args: <String, Object?>{
'isolateId': fakeUnpausedIsolate.id,
'enabled': 'false',
},
),
FakeVmServiceRequest(
method: 'ext.dwds.screenshot',
args: <String, Object>{},
jsonResponse: <String, Object>{
'data': base64.encode(<int>[1, 2, 3, 4]),
},
),
FakeVmServiceRequest(
method: 'ext.flutter.debugAllowBanner',
args: <String, Object?>{
'isolateId': fakeUnpausedIsolate.id,
'enabled': 'true',
},
),
], logger: logger, web: true, fileSystem: fileSystem);
await terminalHandler.processTerminalInput('s');
expect(logger.statusText, contains('Screenshot written to flutter_01.png (0kB)'));
expect(fileSystem.currentDirectory.childFile('flutter_01.png').readAsBytesSync(), <int>[1, 2, 3, 4]);
});
testWithoutContext('s, can take screenshot on device that does not support service protocol', () async {
final BufferLogger logger = BufferLogger.test();
final FileSystem fileSystem = MemoryFileSystem.test();
final TerminalHandler terminalHandler = setUpTerminalHandler(
<FakeVmServiceRequest>[],
logger: logger,
supportsScreenshot: true,
supportsServiceProtocol: false,
fileSystem: fileSystem,
);
await terminalHandler.processTerminalInput('s');
expect(logger.statusText, contains('Screenshot written to flutter_01.png (0kB)'));
expect(fileSystem.currentDirectory.childFile('flutter_01.png').readAsBytesSync(), <int>[1, 2, 3, 4]);
});
testWithoutContext('s, does not take a screenshot on a device that does not support screenshot or the service protocol', () async {
final BufferLogger logger = BufferLogger.test();
final FileSystem fileSystem = MemoryFileSystem.test();
final TerminalHandler terminalHandler = setUpTerminalHandler(
<FakeVmServiceRequest>[],
logger: logger,
supportsServiceProtocol: false,
fileSystem: fileSystem,
);
await terminalHandler.processTerminalInput('s');
expect(logger.statusText, '\n');
expect(fileSystem.currentDirectory.childFile('flutter_01.png'), isNot(exists));
});
testWithoutContext('s, does not take a screenshot on a web device that does not support screenshot or the service protocol', () async {
final BufferLogger logger = BufferLogger.test();
final FileSystem fileSystem = MemoryFileSystem.test();
final TerminalHandler terminalHandler = setUpTerminalHandler(
<FakeVmServiceRequest>[],
logger: logger,
supportsServiceProtocol: false,
web: true,
fileSystem: fileSystem,
);
await terminalHandler.processTerminalInput('s');
expect(logger.statusText, '\n');
expect(fileSystem.currentDirectory.childFile('flutter_01.png'), isNot(exists));
});
testWithoutContext('s, bails taking screenshot on debug device if dwds.screenshot throws RpcError, restoring banner', () async {
final BufferLogger logger = BufferLogger.test();
final FileSystem fileSystem = MemoryFileSystem.test();
final TerminalHandler terminalHandler = setUpTerminalHandler(
<FakeVmServiceRequest>[
listViews,
FakeVmServiceRequest(
method: 'ext.flutter.debugAllowBanner',
args: <String, Object?>{
'isolateId': fakeUnpausedIsolate.id,
'enabled': 'false',
},
),
const FakeVmServiceRequest(
method: 'ext.dwds.screenshot',
// Failed response,
error: FakeRPCError(code: RPCErrorCodes.kInternalError),
),
FakeVmServiceRequest(
method: 'ext.flutter.debugAllowBanner',
args: <String, Object?>{
'isolateId': fakeUnpausedIsolate.id,
'enabled': 'true',
},
),
],
logger: logger,
web: true,
fileSystem: fileSystem,
);
await terminalHandler.processTerminalInput('s');
expect(logger.errorText, contains('Error'));
});
testWithoutContext('s, bails taking screenshot on debug device if debugAllowBanner during second request', () async {
final BufferLogger logger = BufferLogger.test();
final FileSystem fileSystem = MemoryFileSystem.test();
final TerminalHandler terminalHandler = setUpTerminalHandler(
<FakeVmServiceRequest>[
listViews,
FakeVmServiceRequest(
method: 'ext.flutter.debugAllowBanner',
args: <String, Object?>{
'isolateId': fakeUnpausedIsolate.id,
'enabled': 'false',
},
),
FakeVmServiceRequest(
method: 'ext.flutter.debugAllowBanner',
args: <String, Object?>{
'isolateId': fakeUnpausedIsolate.id,
'enabled': 'true',
},
// Failed response,
error: const FakeRPCError(code: RPCErrorCodes.kInternalError),
),
],
logger: logger,
supportsScreenshot: true,
fileSystem: fileSystem,
);
await terminalHandler.processTerminalInput('s');
expect(logger.errorText, contains('Error'));
});
testWithoutContext('pidfile creation', () {
final BufferLogger testLogger = BufferLogger.test();
final Signals signals = _TestSignals(Signals.defaultExitSignals);
final Terminal terminal = Terminal.test();
final MemoryFileSystem fs = MemoryFileSystem.test();
final ProcessInfo processInfo = ProcessInfo.test(fs);
final FakeResidentRunner residentRunner = FakeResidentRunner(
FlutterDevice(
FakeDevice(),
buildInfo: BuildInfo.debug,
generator: FakeResidentCompiler(),
developmentShaderCompiler: const FakeShaderCompiler(),
),
testLogger,
fs,
);
residentRunner
..supportsRestart = true
..supportsServiceProtocol = true
..stayResident = true;
const String filename = 'test.pid';
final TerminalHandler terminalHandler = TerminalHandler(
residentRunner,
logger: testLogger,
signals: signals,
terminal: terminal,
processInfo: processInfo,
reportReady: false,
pidFile: filename,
);
expect(fs.file(filename), isNot(exists));
terminalHandler.setupTerminal();
terminalHandler.registerSignalHandlers();
expect(fs.file(filename), exists);
terminalHandler.stop();
expect(fs.file(filename), isNot(exists));
});
}
class FakeResidentRunner extends ResidentHandlers {
FakeResidentRunner(FlutterDevice device, this.logger, this.fileSystem) : flutterDevices = <FlutterDevice>[device];
bool calledDetach = false;
bool calledPrint = false;
bool calledExit = false;
bool calledPrintWithDetails = false;
bool calledReload = false;
bool calledRestart = false;
int reloadExitCode = 0;
bool fatalReloadError = false;
@override
final Logger logger;
@override
final FileSystem fileSystem;
@override
final List<FlutterDevice> flutterDevices;
@override
bool canHotReload = true;
@override
bool hotMode = true;
@override
bool isRunningDebug = true;
@override
bool isRunningProfile = false;
@override
bool isRunningRelease = false;
@override
bool stayResident = true;
@override
bool supportsRestart = true;
@override
bool supportsServiceProtocol = true;
@override
bool supportsWriteSkSL = true;
@override
Future<void> cleanupAfterSignal() async { }
@override
Future<void> detach() async {
calledDetach = true;
}
@override
Future<void> exit() async {
calledExit = true;
}
@override
void printHelp({required bool details}) {
if (details) {
calledPrintWithDetails = true;
} else {
calledPrint = true;
}
}
@override
Future<void> runSourceGenerators() async { }
@override
Future<OperationResult> restart({bool fullRestart = false, bool pause = false, String? reason}) async {
if (fullRestart && !supportsRestart) {
throw StateError('illegal restart');
}
if (!fullRestart && !canHotReload) {
throw StateError('illegal reload');
}
if (fullRestart) {
calledRestart = true;
} else {
calledReload = true;
}
return OperationResult(reloadExitCode, '', fatal: fatalReloadError);
}
@override
ResidentDevtoolsHandler get residentDevtoolsHandler => _residentDevtoolsHandler;
final ResidentDevtoolsHandler _residentDevtoolsHandler = FakeResidentDevtoolsHandler();
}
class FakeResidentDevtoolsHandler extends Fake implements ResidentDevtoolsHandler {
bool calledLaunchDevToolsInBrowser = false;
@override
bool launchDevToolsInBrowser({List<FlutterDevice?>? flutterDevices}) {
return calledLaunchDevToolsInBrowser = true;
}
}
class FakeDevice extends Fake implements Device {
@override
bool isSupported() => true;
@override
bool supportsScreenshot = false;
@override
String get name => 'Fake Device';
@override
Future<void> takeScreenshot(File file) async {
if (!supportsScreenshot) {
throw StateError('illegal screenshot attempt');
}
file.writeAsBytesSync(<int>[1, 2, 3, 4]);
}
}
TerminalHandler setUpTerminalHandler(List<FakeVmServiceRequest> requests, {
bool supportsRestart = true,
bool supportsServiceProtocol = true,
bool supportsHotReload = true,
bool web = false,
bool fatalReloadError = false,
bool supportsScreenshot = false,
int reloadExitCode = 0,
BuildMode buildMode = BuildMode.debug,
Logger? logger,
FileSystem? fileSystem,
}) {
final Logger testLogger = logger ?? BufferLogger.test();
final Signals signals = Signals.test();
final Terminal terminal = Terminal.test();
final FileSystem localFileSystem = fileSystem ?? MemoryFileSystem.test();
final ProcessInfo processInfo = ProcessInfo.test(MemoryFileSystem.test());
final FlutterDevice device = FlutterDevice(
FakeDevice()..supportsScreenshot = supportsScreenshot,
buildInfo: BuildInfo(buildMode, '', treeShakeIcons: false),
generator: FakeResidentCompiler(),
developmentShaderCompiler: const FakeShaderCompiler(),
targetPlatform: web
? TargetPlatform.web_javascript
: TargetPlatform.android_arm,
);
device.vmService = FakeVmServiceHost(requests: requests).vmService;
final FakeResidentRunner residentRunner = FakeResidentRunner(device, testLogger, localFileSystem)
..supportsServiceProtocol = supportsServiceProtocol
..supportsRestart = supportsRestart
..canHotReload = supportsHotReload
..fatalReloadError = fatalReloadError
..reloadExitCode = reloadExitCode;
switch (buildMode) {
case BuildMode.debug:
residentRunner
..isRunningDebug = true
..isRunningProfile = false
..isRunningRelease = false;
case BuildMode.profile:
residentRunner
..isRunningDebug = false
..isRunningProfile = true
..isRunningRelease = false;
case BuildMode.release:
residentRunner
..isRunningDebug = false
..isRunningProfile = false
..isRunningRelease = true;
case _:
// NOOP
}
return TerminalHandler(
residentRunner,
logger: testLogger,
signals: signals,
terminal: terminal,
processInfo: processInfo,
reportReady: false,
);
}
class FakeResidentCompiler extends Fake implements ResidentCompiler { }
class TestRunner extends Fake implements ResidentRunner {
bool hasHelpBeenPrinted = false;
@override
Future<void> cleanupAfterSignal() async { }
@override
Future<void> cleanupAtFinish() async { }
@override
void printHelp({ bool? details }) {
hasHelpBeenPrinted = true;
}
@override
Future<int?> run({
Completer<DebugConnectionInfo>? connectionInfoCompleter,
Completer<void>? appStartedCompleter,
bool enableDevTools = false,
String? route,
}) async => null;
@override
Future<int?> attach({
Completer<DebugConnectionInfo>? connectionInfoCompleter,
Completer<void>? appStartedCompleter,
bool allowExistingDdsInstance = false,
bool enableDevTools = false,
bool needsFullRestart = true,
}) async => null;
}
class _TestSignals implements Signals {
_TestSignals(this.exitSignals);
final List<ProcessSignal> exitSignals;
final Map<ProcessSignal, Map<Object, SignalHandler>> _handlersTable =
<ProcessSignal, Map<Object, SignalHandler>>{};
@override
Object addHandler(ProcessSignal signal, SignalHandler handler) {
final Object token = Object();
_handlersTable.putIfAbsent(signal, () => <Object, SignalHandler>{})[token] = handler;
return token;
}
@override
Future<bool> removeHandler(ProcessSignal signal, Object token) async {
if (!_handlersTable.containsKey(signal)) {
return false;
}
if (!_handlersTable[signal]!.containsKey(token)) {
return false;
}
_handlersTable[signal]!.remove(token);
return true;
}
@override
Stream<Object> get errors => _errors.stream;
final StreamController<Object> _errors = StreamController<Object>();
}
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/terminal_handler_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/terminal_handler_test.dart",
"repo_id": "flutter",
"token_count": 19683
} | 815 |
// 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/web/bootstrap.dart';
import 'package:package_config/package_config.dart';
import '../../src/common.dart';
void main() {
test('generateBootstrapScript embeds urls correctly', () {
final String result = generateBootstrapScript(
requireUrl: 'require.js',
mapperUrl: 'mapper.js',
generateLoadingIndicator: true,
);
// require js source is interpolated correctly.
expect(result, contains('"requireJs": "require.js"'));
expect(result, contains('requireEl.src = getTTScriptUrl("requireJs");'));
// stack trace mapper source is interpolated correctly.
expect(result, contains('"mapper": "mapper.js"'));
expect(result, contains('mapperEl.src = getTTScriptUrl("mapper");'));
// data-main is set to correct bootstrap module.
expect(result, contains('requireEl.setAttribute("data-main", "main_module.bootstrap");'));
});
test('generateBootstrapScript includes loading indicator', () {
final String result = generateBootstrapScript(
requireUrl: 'require.js',
mapperUrl: 'mapper.js',
generateLoadingIndicator: true,
);
expect(result, contains('"flutter-loader"'));
expect(result, contains('"indeterminate"'));
});
test('generateBootstrapScript does not include loading indicator', () {
final String result = generateBootstrapScript(
requireUrl: 'require.js',
mapperUrl: 'mapper.js',
generateLoadingIndicator: false,
);
expect(result, isNot(contains('"flutter-loader"')));
expect(result, isNot(contains('"indeterminate"')));
});
// https://github.com/flutter/flutter/issues/107742
test('generateBootstrapScript loading indicator does not trigger scrollbars', () {
final String result = generateBootstrapScript(
requireUrl: 'require.js',
mapperUrl: 'mapper.js',
generateLoadingIndicator: true,
);
// See: https://regexr.com/6q0ft
final RegExp regex = RegExp(r'(?:\.flutter-loader\s*\{)[^}]+(?:overflow\:\s*hidden;)[^}]+}');
expect(result, matches(regex), reason: '.flutter-loader must have overflow: hidden');
});
// https://github.com/flutter/flutter/issues/82524
test('generateMainModule removes timeout from requireJS', () {
final String result = generateMainModule(
entrypoint: 'foo/bar/main.js',
nullAssertions: false,
nativeNullAssertions: false,
);
// See: https://regexr.com/6q0kp
final RegExp regex = RegExp(
r'(?:require\.config\(\{)(?:.|\s(?!\}\);))*'
r'(?:waitSeconds\:\s*0[,]?)'
r'(?:(?!\}\);).|\s)*\}\);');
expect(result, matches(regex), reason: 'require.config must have a waitSeconds: 0 config entry');
});
test('generateMainModule hides requireJS injected by DDC', () {
final String result = generateMainModule(
entrypoint: 'foo/bar/main.js',
nullAssertions: false,
nativeNullAssertions: false,
);
expect(result, contains('''define._amd = define.amd;'''),
reason: 'define.amd must be preserved as _amd so users may restore it if needed.');
expect(result, contains('''delete define.amd;'''),
reason: "define.amd must be removed so packages don't attempt to use Dart's instance.");
});
test('generateMainModule embeds urls correctly', () {
final String result = generateMainModule(
entrypoint: 'foo/bar/main.js',
nullAssertions: false,
nativeNullAssertions: false,
);
// bootstrap main module has correct defined module.
expect(result, contains('define("main_module.bootstrap", ["foo/bar/main.js", "dart_sdk"], '
'function(app, dart_sdk) {'));
});
test('generateMainModule can set bootstrap name', () {
final String result = generateMainModule(
entrypoint: 'foo/bar/main.js',
nullAssertions: false,
nativeNullAssertions: false,
bootstrapModule: 'foo_module.bootstrap',
);
// bootstrap main module has correct defined module.
expect(result, contains('define("foo_module.bootstrap", ["foo/bar/main.js", "dart_sdk"], '
'function(app, dart_sdk) {'));
});
test('generateMainModule includes null safety switches', () {
final String result = generateMainModule(
entrypoint: 'foo/bar/main.js',
nullAssertions: true,
nativeNullAssertions: true,
);
expect(result, contains('''dart_sdk.dart.nonNullAsserts(true);'''));
expect(result, contains('''dart_sdk.dart.nativeNonNullAsserts(true);'''));
});
test('generateMainModule can disable null safety switches', () {
final String result = generateMainModule(
entrypoint: 'foo/bar/main.js',
nullAssertions: false,
nativeNullAssertions: false,
);
expect(result, contains('''dart_sdk.dart.nonNullAsserts(false);'''));
expect(result, contains('''dart_sdk.dart.nativeNonNullAsserts(false);'''));
});
test('generateTestBootstrapFileContents embeds urls correctly', () {
final String result = generateTestBootstrapFileContents('foo.dart.js', 'require.js', 'mapper.js');
expect(result, contains('el.setAttribute("data-main", \'foo.dart.js\');'));
});
test('generateTestEntrypoint does not generate test config wrappers when testConfigPath is not passed', () {
final String result = generateTestEntrypoint(
relativeTestPath: 'relative_path.dart',
absolutePath: 'absolute_path.dart',
testConfigPath: null,
languageVersion: LanguageVersion(2, 8),
);
expect(result, isNot(contains('test_config.testExecutable')));
});
test('generateTestEntrypoint generates test config wrappers when testConfigPath is passed', () {
final String result = generateTestEntrypoint(
relativeTestPath: 'relative_path.dart',
absolutePath: 'absolute_path.dart',
testConfigPath: 'test_config_path.dart',
languageVersion: LanguageVersion(2, 8),
);
expect(result, contains('test_config.testExecutable'));
});
test('generateTestEntrypoint embeds urls correctly', () {
final String result = generateTestEntrypoint(
relativeTestPath: 'relative_path.dart',
absolutePath: '/test/absolute_path.dart',
testConfigPath: null,
languageVersion: LanguageVersion(2, 8),
);
expect(result, contains("Uri.parse('file:///test/absolute_path.dart')"));
});
group('Using the DDC module system', () {
test('generateDDCBootstrapScript embeds urls correctly', () {
final String result = generateDDCBootstrapScript(
entrypoint: 'foo/bar/main.js',
ddcModuleLoaderUrl: 'ddc_module_loader.js',
mapperUrl: 'mapper.js',
generateLoadingIndicator: true,
);
// ddc module loader js source is interpolated correctly.
expect(result, contains('"moduleLoader": "ddc_module_loader.js"'));
expect(result, contains('"src": "ddc_module_loader.js"'));
// stack trace mapper source is interpolated correctly.
expect(result, contains('"mapper": "mapper.js"'));
expect(result, contains('"src": "mapper.js"'));
// data-main is set to correct bootstrap module.
expect(result, contains('"src": "main_module.bootstrap.js"'));
expect(result, contains('"id": "data-main"'));
});
test('generateDDCBootstrapScript initializes configuration objects', () {
final String result = generateDDCBootstrapScript(
entrypoint: 'foo/bar/main.js',
ddcModuleLoaderUrl: 'ddc_module_loader.js',
mapperUrl: 'mapper.js',
generateLoadingIndicator: true,
);
// LoadConfiguration and DDCLoader objects must be constructed.
expect(result, contains(r'new window.$dartLoader.LoadConfiguration('));
expect(result, contains(r'new window.$dartLoader.DDCLoader('));
// Specific fields must be set on the LoadConfiguration.
expect(result, contains('.bootstrapScript ='));
expect(result, contains('.loadScriptFn ='));
// DDCLoader.nextAttempt must be invoked to begin loading.
expect(result, contains('nextAttempt()'));
// Proper window objects are initialized.
expect(result, contains(r'window.$dartLoader.loadConfig ='));
expect(result, contains(r'window.$dartLoader.loader ='));
});
test('generateDDCBootstrapScript includes loading indicator', () {
final String result = generateDDCBootstrapScript(
entrypoint: 'foo/bar/main.js',
ddcModuleLoaderUrl: 'ddc_module_loader.js',
mapperUrl: 'mapper.js',
generateLoadingIndicator: true,
);
expect(result, contains('"flutter-loader"'));
expect(result, contains('"indeterminate"'));
});
test('generateDDCBootstrapScript does not include loading indicator', () {
final String result = generateDDCBootstrapScript(
entrypoint: 'foo/bar/main.js',
ddcModuleLoaderUrl: 'ddc_module_loader.js',
mapperUrl: 'mapper.js',
generateLoadingIndicator: false,
);
expect(result, isNot(contains('"flutter-loader"')));
expect(result, isNot(contains('"indeterminate"')));
});
// https://github.com/flutter/flutter/issues/107742
test('generateDDCBootstrapScript loading indicator does not trigger scrollbars', () {
final String result = generateDDCBootstrapScript(
entrypoint: 'foo/bar/main.js',
ddcModuleLoaderUrl: 'ddc_module_loader.js',
mapperUrl: 'mapper.js',
generateLoadingIndicator: true,
);
// See: https://regexr.com/6q0ft
final RegExp regex = RegExp(r'(?:\.flutter-loader\s*\{)[^}]+(?:overflow\:\s*hidden;)[^}]+}');
expect(result, matches(regex), reason: '.flutter-loader must have overflow: hidden');
});
test('generateDDCMainModule embeds the entrypoint correctly', () {
final String result = generateDDCMainModule(
entrypoint: 'main.js',
nullAssertions: false,
nativeNullAssertions: false,
);
// bootstrap main module has correct defined module.
expect(result, contains('let appName = "main.js"'));
expect(result, contains('let moduleName = "main.js"'));
expect(result, contains('dart_library.start(appName, uuid, moduleName, "main");'));
});
test('generateDDCMainModule embeds its exported main correctly', () {
final String result = generateDDCMainModule(
entrypoint: 'foo/bar/main.js',
nullAssertions: false,
nativeNullAssertions: false,
exportedMain: 'foo__bar__main'
);
// bootstrap main module has correct defined module.
expect(result, contains('let appName = "foo/bar/main.js"'));
expect(result, contains('let moduleName = "foo/bar/main.js"'));
expect(result, contains('dart_library.start(appName, uuid, moduleName, "foo__bar__main");'));
});
test('generateDDCMainModule includes null safety switches', () {
final String result = generateDDCMainModule(
entrypoint: 'main.js',
nullAssertions: true,
nativeNullAssertions: true,
);
expect(result, contains('''dart.nonNullAsserts(true);'''));
expect(result, contains('''dart.nativeNonNullAsserts(true);'''));
});
test('generateDDCMainModule can disable null safety switches', () {
final String result = generateDDCMainModule(
entrypoint: 'main.js',
nullAssertions: false,
nativeNullAssertions: false,
);
expect(result, contains('''dart.nonNullAsserts(false);'''));
expect(result, contains('''dart.nativeNonNullAsserts(false);'''));
});
test('generateTestBootstrapFileContents embeds urls correctly', () {
final String result = generateTestBootstrapFileContents('foo.dart.js', 'require.js', 'mapper.js');
expect(result, contains('el.setAttribute("data-main", \'foo.dart.js\');'));
});
test('generateTestEntrypoint does not generate test config wrappers when testConfigPath is not passed', () {
final String result = generateTestEntrypoint(
relativeTestPath: 'relative_path.dart',
absolutePath: 'absolute_path.dart',
testConfigPath: null,
languageVersion: LanguageVersion(2, 8),
);
expect(result, isNot(contains('test_config.testExecutable')));
});
test('generateTestEntrypoint generates test config wrappers when testConfigPath is passed', () {
final String result = generateTestEntrypoint(
relativeTestPath: 'relative_path.dart',
absolutePath: 'absolute_path.dart',
testConfigPath: 'test_config_path.dart',
languageVersion: LanguageVersion(2, 8),
);
expect(result, contains('test_config.testExecutable'));
});
test('generateTestEntrypoint embeds urls correctly', () {
final String result = generateTestEntrypoint(
relativeTestPath: 'relative_path.dart',
absolutePath: '/test/absolute_path.dart',
testConfigPath: null,
languageVersion: LanguageVersion(2, 8),
);
expect(result, contains("Uri.parse('file:///test/absolute_path.dart')"));
});
});
}
| flutter/packages/flutter_tools/test/general.shard/web/bootstrap_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/web/bootstrap_test.dart",
"repo_id": "flutter",
"token_count": 4847
} | 816 |
// 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/windows/migrations/show_window_migration.dart';
import 'package:test/fake.dart';
import '../../../src/common.dart';
void main () {
group('Windows Flutter show window migration', () {
late MemoryFileSystem memoryFileSystem;
late BufferLogger testLogger;
late FakeWindowsProject mockProject;
late File flutterWindowFile;
setUp(() {
memoryFileSystem = MemoryFileSystem.test();
flutterWindowFile = memoryFileSystem.file('flutter_window.cpp');
testLogger = BufferLogger(
terminal: Terminal.test(),
outputPreferences: OutputPreferences.test(),
);
mockProject = FakeWindowsProject(flutterWindowFile);
});
testWithoutContext('skipped if Flutter window file is missing', () {
final ShowWindowMigration migration = ShowWindowMigration(
mockProject,
testLogger,
);
migration.migrate();
expect(flutterWindowFile.existsSync(), isFalse);
expect(
testLogger.traceText,
contains(
'windows/runner/flutter_window.cpp file not found, '
'skipping show window migration'
),
);
expect(testLogger.statusText, isEmpty);
});
testWithoutContext('skipped if nothing to migrate', () {
const String flutterWindowContents = 'Nothing to migrate';
flutterWindowFile.writeAsStringSync(flutterWindowContents);
final DateTime updatedAt = flutterWindowFile.lastModifiedSync();
final ShowWindowMigration migration = ShowWindowMigration(
mockProject,
testLogger,
);
migration.migrate();
expect(flutterWindowFile.lastModifiedSync(), updatedAt);
expect(flutterWindowFile.readAsStringSync(), flutterWindowContents);
expect(testLogger.statusText, isEmpty);
});
testWithoutContext('skipped if already migrated', () {
const String flutterWindowContents =
' flutter_controller_->engine()->SetNextFrameCallback([&]() {\n'
' this->Show();\n'
' });\n'
'\n'
' // Flutter can complete the first frame before the "show window" callback is\n'
' // registered. The following call ensures a frame is pending to ensure the\n'
" // window is shown. It is a no-op if the first frame hasn't completed yet.\n"
' flutter_controller_->ForceRedraw();\n'
'\n'
' return true;\n';
flutterWindowFile.writeAsStringSync(flutterWindowContents);
final DateTime updatedAt = flutterWindowFile.lastModifiedSync();
final ShowWindowMigration migration = ShowWindowMigration(
mockProject,
testLogger,
);
migration.migrate();
expect(flutterWindowFile.lastModifiedSync(), updatedAt);
expect(flutterWindowFile.readAsStringSync(), flutterWindowContents);
expect(testLogger.statusText, isEmpty);
});
testWithoutContext('skipped if already migrated (CRLF)', () {
const String flutterWindowContents =
' flutter_controller_->engine()->SetNextFrameCallback([&]() {\r\n'
' this->Show();\r\n'
' });\r\n'
'\r\n'
' // Flutter can complete the first frame before the "show window" callback is\r\n'
' // registered. The following call ensures a frame is pending to ensure the\r\n'
" // window is shown. It is a no-op if the first frame hasn't completed yet.\r\n"
' flutter_controller_->ForceRedraw();\r\n'
'\r\n'
' return true;\r\n';
flutterWindowFile.writeAsStringSync(flutterWindowContents);
final DateTime updatedAt = flutterWindowFile.lastModifiedSync();
final ShowWindowMigration migration = ShowWindowMigration(
mockProject,
testLogger,
);
migration.migrate();
expect(flutterWindowFile.lastModifiedSync(), updatedAt);
expect(flutterWindowFile.readAsStringSync(), flutterWindowContents);
expect(testLogger.statusText, isEmpty);
});
testWithoutContext('migrates project to ensure window is shown', () {
flutterWindowFile.writeAsStringSync(
' flutter_controller_->engine()->SetNextFrameCallback([&]() {\n'
' this->Show();\n'
' });\n'
'\n'
' return true;\n'
);
final ShowWindowMigration migration = ShowWindowMigration(
mockProject,
testLogger,
);
migration.migrate();
expect(flutterWindowFile.readAsStringSync(),
' flutter_controller_->engine()->SetNextFrameCallback([&]() {\n'
' this->Show();\n'
' });\n'
'\n'
' // Flutter can complete the first frame before the "show window" callback is\n'
' // registered. The following call ensures a frame is pending to ensure the\n'
" // window is shown. It is a no-op if the first frame hasn't completed yet.\n"
' flutter_controller_->ForceRedraw();\n'
'\n'
' return true;\n'
);
expect(testLogger.statusText, contains('windows/runner/flutter_window.cpp does not ensure the show window callback is called, updating.'));
});
testWithoutContext('migrates project to ensure window is shown (CRLF)', () {
flutterWindowFile.writeAsStringSync(
' flutter_controller_->engine()->SetNextFrameCallback([&]() {\r\n'
' this->Show();\r\n'
' });\r\n'
'\r\n'
' return true;\r\n'
);
final ShowWindowMigration migration = ShowWindowMigration(
mockProject,
testLogger,
);
migration.migrate();
expect(flutterWindowFile.readAsStringSync(),
' flutter_controller_->engine()->SetNextFrameCallback([&]() {\r\n'
' this->Show();\r\n'
' });\r\n'
'\r\n'
' // Flutter can complete the first frame before the "show window" callback is\r\n'
' // registered. The following call ensures a frame is pending to ensure the\r\n'
" // window is shown. It is a no-op if the first frame hasn't completed yet.\r\n"
' flutter_controller_->ForceRedraw();\r\n'
'\r\n'
' return true;\r\n'
);
expect(testLogger.statusText, contains('windows/runner/flutter_window.cpp does not ensure the show window callback is called, updating.'));
});
});
}
class FakeWindowsProject extends Fake implements WindowsProject {
FakeWindowsProject(this.runnerFlutterWindowFile);
@override
final File runnerFlutterWindowFile;
}
| flutter/packages/flutter_tools/test/general.shard/windows/migrations/show_window_migration_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/windows/migrations/show_window_migration_test.dart",
"repo_id": "flutter",
"token_count": 2678
} | 817 |
// 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:args/command_runner.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/platform.dart';
import 'package:flutter_tools/src/commands/analyze.dart';
import 'package:flutter_tools/src/globals.dart' as globals;
import 'package:flutter_tools/src/project.dart';
import 'package:flutter_tools/src/project_validator.dart';
import '../src/common.dart';
import '../src/context.dart';
import '../src/test_flutter_command_runner.dart';
import 'test_utils.dart';
void main() {
late FileSystem fileSystem;
group('analyze --suggestions command integration', () {
setUp(() {
fileSystem = globals.localFileSystem;
});
testUsingContext('General Info Project Validator', () async {
final BufferLogger loggerTest = BufferLogger.test();
final AnalyzeCommand command = AnalyzeCommand(
artifacts: globals.artifacts!,
fileSystem: fileSystem,
logger: loggerTest,
platform: globals.platform,
terminal: globals.terminal,
processManager: globals.processManager,
allProjectValidators: <ProjectValidator>[GeneralInfoProjectValidator()],
suppressAnalytics: true,
);
final CommandRunner<void> runner = createTestCommandRunner(command);
await runner.run(<String>[
'analyze',
'--no-pub',
'--no-current-package',
'--suggestions',
'../../dev/integration_tests/flutter_gallery',
]);
const String expected = '\n'
'┌───────────────────────────────────────────────────────────────────┐\n'
'│ General Info │\n'
'│ [✓] App Name: flutter_gallery │\n'
'│ [✓] Supported Platforms: android, ios, web, macos, linux, windows │\n'
'│ [✓] Is Flutter Package: yes │\n'
'│ [✓] Uses Material Design: yes │\n'
'│ [✓] Is Plugin: no │\n'
'│ [✓] Java/Gradle/Android Gradle Plugin: ${AndroidProject.validJavaGradleAgpString} │\n'
'└───────────────────────────────────────────────────────────────────┘\n';
expect(loggerTest.statusText, contains(expected));
});
testUsingContext('PubDependenciesProjectValidator success ', () async {
final BufferLogger loggerTest = BufferLogger.test();
final AnalyzeCommand command = AnalyzeCommand(
artifacts: globals.artifacts!,
fileSystem: fileSystem,
logger: loggerTest,
platform: globals.platform,
terminal: globals.terminal,
processManager: globals.processManager,
allProjectValidators: <ProjectValidator>[
PubDependenciesProjectValidator(globals.processManager),
],
suppressAnalytics: true,
);
final CommandRunner<void> runner = createTestCommandRunner(command);
await runner.run(<String>[
'analyze',
'--no-pub',
'--no-current-package',
'--suggestions',
'../../dev/integration_tests/flutter_gallery',
]);
const String expected = '\n'
'┌────────────────────────────────────────────────────────────────────────────────────┐\n'
'│ Pub dependencies │\n'
'│ [✓] Dart dependencies: All pub dependencies are hosted on https://pub.dartlang.org │\n'
'└────────────────────────────────────────────────────────────────────────────────────┘\n';
expect(loggerTest.statusText, contains(expected));
});
});
group('analyze --suggestions --machine command integration', () {
late Directory tempDir;
late Platform platform;
setUpAll(() async {
platform = const LocalPlatform();
tempDir = createResolvedTempDirectorySync('run_test.');
await globals.processManager.run(<String>['flutter', 'create', 'test_project'], workingDirectory: tempDir.path);
});
tearDown(() async {
tryToDelete(tempDir);
});
testUsingContext('analyze --suggestions --machine produces expected values', () async {
final ProcessResult result = await globals.processManager.run(<String>['flutter', 'analyze', '--suggestions', '--machine'], workingDirectory: tempDir.childDirectory('test_project').path);
expect(result.stdout is String, true);
expect((result.stdout as String).startsWith('{\n'), true);
expect(result.stdout, isNot(contains(',\n}'))); // No trailing commas allowed in JSON
expect((result.stdout as String).endsWith('}\n'), true);
final Map<String, dynamic> decoded = jsonDecode(result.stdout as String) as Map<String, dynamic>;
expect(decoded.containsKey('FlutterProject.android.exists'), true);
expect(decoded.containsKey('FlutterProject.ios.exists'), true);
expect(decoded.containsKey('FlutterProject.web.exists'), true);
expect(decoded.containsKey('FlutterProject.macos.exists'), true);
expect(decoded.containsKey('FlutterProject.linux.exists'), true);
expect(decoded.containsKey('FlutterProject.windows.exists'), true);
expect(decoded.containsKey('FlutterProject.fuchsia.exists'), true);
expect(decoded.containsKey('FlutterProject.android.isKotlin'), true);
expect(decoded.containsKey('FlutterProject.ios.isSwift'), true);
expect(decoded.containsKey('FlutterProject.isModule'), true);
expect(decoded.containsKey('FlutterProject.isPlugin'), true);
expect(decoded.containsKey('FlutterProject.manifest.appname'), true);
expect(decoded.containsKey('FlutterVersion.frameworkRevision'), true);
expect(decoded.containsKey('FlutterProject.directory'), true);
expect(decoded.containsKey('FlutterProject.metadataFile'), true);
expect(decoded.containsKey('Platform.operatingSystem'), true);
expect(decoded.containsKey('Platform.isAndroid'), true);
expect(decoded.containsKey('Platform.isIOS'), true);
expect(decoded.containsKey('Platform.isWindows'), true);
expect(decoded.containsKey('Platform.isMacOS'), true);
expect(decoded.containsKey('Platform.isFuchsia'), true);
expect(decoded.containsKey('Platform.pathSeparator'), true);
expect(decoded.containsKey('Cache.flutterRoot'), true);
expect(decoded['FlutterProject.android.exists'], true);
expect(decoded['FlutterProject.ios.exists'], true);
expect(decoded['FlutterProject.web.exists'], true);
expect(decoded['FlutterProject.macos.exists'], true);
expect(decoded['FlutterProject.linux.exists'], true);
expect(decoded['FlutterProject.windows.exists'], true);
expect(decoded['FlutterProject.fuchsia.exists'], false);
expect(decoded['FlutterProject.android.isKotlin'], true);
expect(decoded['FlutterProject.ios.isSwift'], true);
expect(decoded['FlutterProject.isModule'], false);
expect(decoded['FlutterProject.isPlugin'], false);
expect(decoded['FlutterProject.manifest.appname'], 'test_project');
expect(decoded['Platform.isAndroid'], false);
expect(decoded['Platform.isIOS'], false);
expect(decoded['Platform.isWindows'], platform.isWindows);
expect(decoded['Platform.isMacOS'], platform.isMacOS);
expect(decoded['Platform.isFuchsia'], platform.isFuchsia);
expect(decoded['Platform.pathSeparator'], platform.pathSeparator);
}, overrides: <Type, Generator>{});
});
}
| flutter/packages/flutter_tools/test/integration.shard/analyze_suggestions_integration_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/analyze_suggestions_integration_test.dart",
"repo_id": "flutter",
"token_count": 3059
} | 818 |
// 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 'package:file/file.dart';
import '../src/common.dart';
import 'test_data/project.dart';
import 'test_driver.dart';
import 'test_utils.dart';
void main() {
late Directory tempDir;
setUp(() async {
tempDir = createResolvedTempDirectorySync('break_on_framework_exceptions.');
});
tearDown(() async {
tryToDelete(tempDir);
});
Future<void> expectException(TestProject project, String exceptionMessage) async {
await _timeoutAfter(
message: 'Timed out setting up project in $tempDir',
work: () => project.setUpIn(tempDir),
);
final FlutterTestTestDriver flutter = FlutterTestTestDriver(tempDir);
await _timeoutAfter(
message: 'Timed out launching `flutter test`',
work: () => flutter.test(withDebugger: true, pauseOnExceptions: true),
);
await _timeoutAfter(
message: 'Timed out waiting for VM service pause debug event',
work: flutter.waitForPause,
);
int? breakLine;
await _timeoutAfter(
message: 'Timed out getting source location of top stack frame',
work: () async => breakLine = (await flutter.getSourceLocation())?.line,
);
expect(breakLine, project.lineContaining(project.test, exceptionMessage));
}
testWithoutContext('breaks when AnimationController listener throws', () async {
final TestProject project = TestProject(
r'''
AnimationController(vsync: TestVSync(), duration: Duration.zero)
..addListener(() {
throw 'AnimationController listener';
})
..forward();
'''
);
await expectException(project, "throw 'AnimationController listener';");
});
testWithoutContext('breaks when AnimationController status listener throws', () async {
final TestProject project = TestProject(
r'''
AnimationController(vsync: TestVSync(), duration: Duration.zero)
..addStatusListener((AnimationStatus _) {
throw 'AnimationController status listener';
})
..forward();
'''
);
await expectException(project, "throw 'AnimationController status listener';");
});
testWithoutContext('breaks when ChangeNotifier listener throws', () async {
final TestProject project = TestProject(
r'''
ValueNotifier<int>(0)
..addListener(() {
throw 'ValueNotifier listener';
})
..value = 1;
'''
);
await expectException(project, "throw 'ValueNotifier listener';");
});
testWithoutContext('breaks when handling a gesture throws', () async {
final TestProject project = TestProject(
r'''
await tester.pumpWidget(
MaterialApp(
home: Center(
child: ElevatedButton(
child: const Text('foo'),
onPressed: () {
throw 'while handling a gesture';
},
),
),
)
);
await tester.tap(find.byType(ElevatedButton));
'''
);
await expectException(project, "throw 'while handling a gesture';");
});
testWithoutContext('breaks when platform message callback throws', () async {
final TestProject project = TestProject(
r'''
BasicMessageChannel<String>('foo', const StringCodec()).setMessageHandler((_) {
throw 'platform message callback';
});
tester.binding.defaultBinaryMessenger.handlePlatformMessage('foo', const StringCodec().encodeMessage('Hello'), (_) {});
'''
);
await expectException(project, "throw 'platform message callback';");
});
testWithoutContext('breaks when SliverChildBuilderDelegate.builder throws', () async {
final TestProject project = TestProject(
r'''
await tester.pumpWidget(MaterialApp(
home: ListView.builder(
itemBuilder: (BuildContext context, int index) {
throw 'cannot build child';
},
),
));
'''
);
await expectException(project, "throw 'cannot build child';");
});
testWithoutContext('breaks when EditableText.onChanged throws', () async {
final TestProject project = TestProject(
r'''
await tester.pumpWidget(MaterialApp(
home: Material(
child: TextField(
onChanged: (String t) {
throw 'onChanged';
},
),
),
));
await tester.enterText(find.byType(TextField), 'foo');
'''
);
await expectException(project, "throw 'onChanged';");
});
testWithoutContext('breaks when EditableText.onEditingComplete throws', () async {
final TestProject project = TestProject(
r'''
await tester.pumpWidget(MaterialApp(
home: Material(
child: TextField(
onEditingComplete: () {
throw 'onEditingComplete';
},
),
),
));
await tester.tap(find.byType(EditableText));
await tester.pump();
await tester.testTextInput.receiveAction(TextInputAction.done);
'''
);
await expectException(project, "throw 'onEditingComplete';");
});
testWithoutContext('breaks when EditableText.onSelectionChanged throws', () async {
final TestProject project = TestProject(
r'''
await tester.pumpWidget(MaterialApp(
home: SelectableText('hello',
onSelectionChanged: (TextSelection selection, SelectionChangedCause? cause) {
throw 'onSelectionChanged';
},
),
));
await tester.tap(find.byType(SelectableText));
'''
);
await expectException(project, "throw 'onSelectionChanged';");
});
testWithoutContext('breaks when Action listener throws', () async {
final TestProject project = TestProject(
r'''
CallbackAction<Intent>(onInvoke: (Intent _) { })
..addActionListener((_) {
throw 'action listener';
})
..notifyActionListeners();
'''
);
await expectException(project, "throw 'action listener';");
});
testWithoutContext('breaks when pointer route throws', () async {
final TestProject project = TestProject(
r'''
PointerRouter()
..addRoute(2, (PointerEvent event) {
throw 'pointer route';
})
..route(TestPointer(2).down(Offset.zero));
'''
);
await expectException(project, "throw 'pointer route';");
});
testWithoutContext('breaks when PointerSignalResolver callback throws', () async {
final TestProject project = TestProject(
r'''
const PointerScrollEvent originalEvent = PointerScrollEvent();
PointerSignalResolver()
..register(originalEvent, (PointerSignalEvent event) {
throw 'PointerSignalResolver callback';
})
..resolve(originalEvent);
'''
);
await expectException(project, "throw 'PointerSignalResolver callback';");
});
testWithoutContext('breaks when PointerSignalResolver callback throws', () async {
final TestProject project = TestProject(
r'''
FocusManager.instance
..addHighlightModeListener((_) {
throw 'highlight mode listener';
})
..highlightStrategy = FocusHighlightStrategy.alwaysTouch
..highlightStrategy = FocusHighlightStrategy.alwaysTraditional;
'''
);
await expectException(project, "throw 'highlight mode listener';");
});
testWithoutContext('breaks when GestureBinding.dispatchEvent throws', () async {
final TestProject project = TestProject(
r'''
await tester.pumpWidget(
MouseRegion(
onHover: (_) {
throw 'onHover';
},
)
);
final TestGesture gesture = await tester.createGesture(kind: PointerDeviceKind.mouse);
await gesture.addPointer(location: Offset.zero);
await tester.pump();
await gesture.moveTo(tester.getCenter(find.byType(MouseRegion)));
await tester.pump();
gesture.removePointer();
'''
);
await expectException(project, "throw 'onHover';");
});
testWithoutContext('breaks when ImageStreamListener.onImage throws', () async {
final TestProject project = TestProject(
r'''
final Completer<ImageInfo> completer = Completer<ImageInfo>();
OneFrameImageStreamCompleter(completer.future)
..addListener(ImageStreamListener((ImageInfo _, bool __) {
throw 'setImage';
}));
completer.complete(ImageInfo(image: image));
''',
setup: r'''
late ui.Image image;
setUp(() async {
image = await createTestImage();
});
'''
);
await expectException(project, "throw 'setImage';");
});
testWithoutContext('breaks when ImageStreamListener.onError throws', () async {
final TestProject project = TestProject(
r'''
final Completer<ImageInfo> completer = Completer<ImageInfo>();
OneFrameImageStreamCompleter(completer.future)
..addListener(ImageStreamListener(
(ImageInfo _, bool __) { },
onError: (Object _, StackTrace? __) {
throw 'onError';
},
));
completer.completeError('ERROR');
'''
);
await expectException(project, "throw 'onError';");
});
testWithoutContext('breaks when LayoutBuilder.builder throws', () async {
final TestProject project = TestProject(
r'''
await tester.pumpWidget(LayoutBuilder(
builder: (_, __) {
throw 'LayoutBuilder.builder';
},
));
'''
);
await expectException(project, "throw 'LayoutBuilder.builder';");
});
testWithoutContext('breaks when _CallbackHookProvider callback throws', () async {
final TestProject project = TestProject(
r'''
RootBackButtonDispatcher()
..addCallback(() {
throw '_CallbackHookProvider.callback';
})
..invokeCallback(Future.value(false));
'''
);
await expectException(project, "throw '_CallbackHookProvider.callback';");
});
testWithoutContext('breaks when TimingsCallback throws', () async {
final TestProject project = TestProject(
r'''
SchedulerBinding.instance!.addTimingsCallback((List<FrameTiming> timings) {
throw 'TimingsCallback';
});
ui.window.onReportTimings!(<FrameTiming>[]);
'''
);
await expectException(project, "throw 'TimingsCallback';");
});
testWithoutContext('breaks when TimingsCallback throws', () async {
final TestProject project = TestProject(
r'''
SchedulerBinding.instance!.scheduleTask(
() {
throw 'scheduled task';
},
Priority.touch,
);
await tester.pumpAndSettle();
'''
);
await expectException(project, "throw 'scheduled task';");
});
testWithoutContext('breaks when FrameCallback throws', () async {
final TestProject project = TestProject(
r'''
SchedulerBinding.instance!.addPostFrameCallback((_) {
throw 'FrameCallback';
});
await tester.pump();
'''
);
await expectException(project, "throw 'FrameCallback';");
});
testWithoutContext('breaks when attaching to render tree throws', () async {
final TestProject project = TestProject(
r'''
await tester.pumpWidget(TestWidget());
''',
classes: r'''
class TestWidget extends StatelessWidget {
@override
StatelessElement createElement() {
throw 'create element';
}
@override
Widget build(BuildContext context) => Container();
}
''',
);
await expectException(project, "throw 'create element';");
});
testWithoutContext('breaks when RenderObject.performLayout throws', () async {
final TestProject project = TestProject(
r'''
TestRender().layout(BoxConstraints());
''',
classes: r'''
class TestRender extends RenderBox {
@override
void performLayout() {
throw 'performLayout';
}
}
''',
);
await expectException(project, "throw 'performLayout';");
});
testWithoutContext('breaks when RenderObject.performResize throws', () async {
final TestProject project = TestProject(
r'''
TestRender().layout(BoxConstraints());
''',
classes: r'''
class TestRender extends RenderBox {
@override
bool get sizedByParent => true;
@override
void performResize() {
throw 'performResize';
}
}
''',
);
await expectException(project, "throw 'performResize';");
});
testWithoutContext('breaks when RenderObject.performLayout (without resize) throws', () async {
final TestProject project = TestProject(
r'''
await tester.pumpWidget(TestWidget());
tester.renderObject<TestRender>(find.byType(TestWidget)).layoutThrows = true;
await tester.pump();
''',
classes: r'''
class TestWidget extends LeafRenderObjectWidget {
@override
RenderObject createRenderObject(BuildContext context) => TestRender();
}
class TestRender extends RenderBox {
bool get layoutThrows => _layoutThrows;
bool _layoutThrows = false;
set layoutThrows(bool value) {
if (value == _layoutThrows) {
return;
}
_layoutThrows = value;
markNeedsLayout();
}
@override
void performLayout() {
if (layoutThrows) {
throw 'performLayout without resize';
}
size = constraints.biggest;
}
}
''',
);
await expectException(project, "throw 'performLayout without resize';");
});
testWithoutContext('breaks when StatelessWidget.build throws', () async {
final TestProject project = TestProject(
r'''
await tester.pumpWidget(TestWidget());
''',
classes: r'''
class TestWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
throw 'StatelessWidget.build';
}
}
''',
);
await expectException(project, "throw 'StatelessWidget.build';");
});
testWithoutContext('breaks when StatefulWidget.build throws', () async {
final TestProject project = TestProject(
r'''
await tester.pumpWidget(TestWidget());
''',
classes: r'''
class TestWidget extends StatefulWidget {
@override
_TestWidgetState createState() => _TestWidgetState();
}
class _TestWidgetState extends State<TestWidget> {
@override
Widget build(BuildContext context) {
throw 'StatefulWidget.build';
}
}
''',
);
await expectException(project, "throw 'StatefulWidget.build';");
});
testWithoutContext('breaks when finalizing the tree throws', () async {
final TestProject project = TestProject(
r'''
await tester.pumpWidget(TestWidget());
''',
classes: r'''
class TestWidget extends StatefulWidget {
@override
_TestWidgetState createState() => _TestWidgetState();
}
class _TestWidgetState extends State<TestWidget> {
@override
void dispose() {
super.dispose();
throw 'dispose';
}
@override
Widget build(BuildContext context) => Container();
}
''',
);
await expectException(project, "throw 'dispose';");
});
testWithoutContext('breaks when rebuilding dirty elements throws', () async {
final TestProject project = TestProject(
r'''
await tester.pumpWidget(TestWidget());
tester.element<TestElement>(find.byType(TestWidget)).throwOnRebuild = true;
await tester.pump();
''',
classes: r'''
class TestWidget extends StatelessWidget {
@override
StatelessElement createElement() => TestElement(this);
@override
Widget build(BuildContext context) => Container();
}
class TestElement extends StatelessElement {
TestElement(StatelessWidget widget) : super(widget);
bool get throwOnRebuild => _throwOnRebuild;
bool _throwOnRebuild = false;
set throwOnRebuild(bool value) {
if (value == _throwOnRebuild) {
return;
}
_throwOnRebuild = value;
markNeedsBuild();
}
@override
void rebuild({bool force = false}) {
if (_throwOnRebuild) {
throw 'rebuild';
}
super.rebuild(force: force);
}
}
''',
);
await expectException(project, "throw 'rebuild';");
});
}
/// A debugging wrapper to help diagnose tests that are already timing out.
///
/// When these tests are timed out by package:test (after 15 minutes), there
/// is no hint in logs as to where the test got stuck. By passing async calls
/// to this function with a [duration] less than that configured in
/// package:test can be set and a helpful message used to help debugging.
///
/// See https://github.com/flutter/flutter/issues/125241 for more context.
Future<void> _timeoutAfter({
required String message,
Duration duration = const Duration(minutes: 10),
required Future<void> Function() work,
}) async {
final Timer timer = Timer(
duration,
() => fail(message),
);
await work();
timer.cancel();
}
class TestProject extends Project {
TestProject(this.testBody, { this.setup, this.classes });
final String testBody;
final String? setup;
final String? classes;
@override
final String pubspec = '''
name: test
environment:
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
flutter:
sdk: flutter
dev_dependencies:
flutter_test:
sdk: flutter
''';
@override
final String main = '';
@override
String get test => _test.replaceFirst('// SETUP', setup ?? '').replaceFirst('// TEST_BODY', testBody).replaceFirst('// CLASSES', classes ?? '');
final String _test = r'''
import 'dart:async';
import 'dart:ui' as ui;
import 'package:flutter/animation.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart';
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
// SETUP
testWidgets('test', (WidgetTester tester) async {
// TEST_BODY
});
}
// CLASSES
''';
}
| flutter/packages/flutter_tools/test/integration.shard/break_on_framework_exceptions_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/break_on_framework_exceptions_test.dart",
"repo_id": "flutter",
"token_count": 7574
} | 819 |
// 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/file_system.dart';
import 'package:flutter_tools/src/base/io.dart';
import 'package:flutter_tools/src/convert.dart';
import '../src/common.dart';
import 'test_data/basic_project.dart';
import 'test_utils.dart';
void main() {
late Directory tempDir;
final BasicProject project = BasicProject();
setUp(() async {
tempDir = createResolvedTempDirectorySync('run_test.');
await project.setUpIn(tempDir);
});
tearDown(() async {
tryToDelete(tempDir);
});
// Regression test for https://github.com/flutter/flutter/issues/126691
testWithoutContext('flutter run --start-paused prints DevTools URI', () async {
final Completer<void> completer = Completer<void>();
const String matcher = 'The Flutter DevTools debugger and profiler on';
final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter');
final Process process = await processManager.start(<String>[
flutterBin,
'run',
'--start-paused',
'-d',
'flutter-tester',
], workingDirectory: tempDir.path);
final StreamSubscription<String> sub;
sub = process.stdout.transform(utf8.decoder).listen((String message) {
if (message.contains(matcher)) {
completer.complete();
}
});
await completer.future;
await sub.cancel();
process.kill();
await process.exitCode;
});
}
| flutter/packages/flutter_tools/test/integration.shard/devtools_uri_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/devtools_uri_test.dart",
"repo_id": "flutter",
"token_count": 563
} | 820 |
// 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_testing/file_testing.dart';
import 'package:flutter_tools/src/base/io.dart';
import '../src/common.dart';
import 'test_utils.dart';
void main() {
late Directory tempDir;
setUp(() {
tempDir = createResolvedTempDirectorySync('flutter_plugin_test.');
});
tearDown(() {
tryToDelete(tempDir);
});
testWithoutContext('Flutter app that depends on a non-Android plugin can still build for Android', () {
final String flutterRoot = getFlutterRoot();
final String flutterBin = fileSystem.path.join(
flutterRoot,
'bin',
'flutter',
);
processManager.runSync(<String>[
flutterBin,
...getLocalEngineArguments(),
'create',
'-t',
'plugin',
'--platforms=ios,android',
'ios_only',
], workingDirectory: tempDir.path);
// Delete plugin's Android folder
final Directory projectRoot = tempDir.childDirectory('ios_only');
projectRoot.childDirectory('android').deleteSync(recursive: true);
// Update pubspec.yaml to iOS only plugin
final File pubspecFile = projectRoot.childFile('pubspec.yaml');
final String pubspecString = pubspecFile.readAsStringSync();
final StringBuffer iosOnlyPubspec = StringBuffer();
bool inAndroidSection = false;
const String pluginPlatformIndentation = ' ';
for (final String line in pubspecString.split('\n')) {
// Skip everything in the Android section of the plugin platforms list.
if (line.startsWith('${pluginPlatformIndentation}android:')) {
inAndroidSection = true;
continue;
}
if (inAndroidSection) {
if (line.startsWith('$pluginPlatformIndentation ')) {
continue;
} else {
inAndroidSection = false;
}
}
iosOnlyPubspec.write('$line\n');
}
pubspecFile.writeAsStringSync(iosOnlyPubspec.toString());
// Build example APK
final Directory exampleDir = projectRoot.childDirectory('example');
final ProcessResult result = processManager.runSync(<String>[
flutterBin,
...getLocalEngineArguments(),
'build',
'apk',
'--target-platform',
'android-arm',
'--verbose',
], workingDirectory: exampleDir.path);
expect(result, const ProcessResultMatcher());
final String exampleAppApk = fileSystem.path.join(
exampleDir.path,
'build',
'app',
'outputs',
'apk',
'release',
'app-release.apk',
);
expect(fileSystem.file(exampleAppApk), exists);
});
}
| flutter/packages/flutter_tools/test/integration.shard/gradle_non_android_plugin_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/gradle_non_android_plugin_test.dart",
"repo_id": "flutter",
"token_count": 1026
} | 821 |
// 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 '../../src/common.dart';
import 'deferred_components_config.dart';
import 'project.dart';
class DeferredComponentsProject extends Project {
DeferredComponentsProject(this.deferredComponents);
@override
final String pubspec = '''
name: test
environment:
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
flutter:
sdk: flutter
flutter:
assets:
- test_assets/asset1.txt
deferred-components:
- name: component1
libraries:
- package:test/deferred_library.dart
assets:
- test_assets/asset2.txt
''';
@override
final String main = r'''
import 'dart:async';
import 'package:flutter/material.dart';
import 'deferred_library.dart' deferred as DeferredLibrary;
Future<void>? libFuture;
String deferredText = 'incomplete';
Future<void> main() async {
while (true) {
if (libFuture == null) {
libFuture = DeferredLibrary.loadLibrary();
libFuture?.whenComplete(() => deferredText = 'complete ${DeferredLibrary.add(10, 42)}');
}
runApp(MyApp());
await Future.delayed(const Duration(milliseconds: 50));
}
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
topLevelFunction();
return MaterialApp( // BUILD BREAKPOINT
title: 'Flutter Demo',
home: Container(),
);
}
}
topLevelFunction() {
print(deferredText); // TOP LEVEL BREAKPOINT
}
''';
@override
final DeferredComponentsConfig deferredComponents;
}
/// Contains the necessary files for a bare-bones deferred component release app.
class BasicDeferredComponentsConfig extends DeferredComponentsConfig {
@override
String get deferredLibrary => r'''
library DeferredLibrary;
int add(int i, int j) {
return i + j;
}
''';
@override
String? get deferredComponentsGolden => r'''
loading-units:
- id: 2
libraries:
- package:test/deferred_library.dart
''';
@override
String get androidSettings => r'''
include ':app', ':component1'
def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
def properties = new Properties()
assert localPropertiesFile.exists()
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
''';
@override
String get androidBuild => r'''
buildscript {
ext.kotlin_version = '1.7.10'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
''';
@override
String get appBuild => r'''
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
compileSdk flutter.compileSdkVersion
ndkVersion flutter.ndkVersion
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
lintOptions {
disable 'InvalidPackage'
}
defaultConfig {
// Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "ninja.qian.splitaottest1"
minSdkVersion flutter.minSdkVersion
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
// Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.release
}
}
}
flutter {
source '../..'
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "com.google.android.play:core:1.8.0"
}
''';
@override
String get androidLocalProperties => '''
flutter.sdk=${getFlutterRoot()}
flutter.buildMode=release
flutter.versionName=1.0.0
flutter.versionCode=22
''';
@override
String get androidGradleProperties => '''
org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError
android.useAndroidX=true
android.enableJetifier=true
android.enableR8=true
android.experimental.enableNewResourceShrinker=true
''';
@override
String get androidKeyProperties => '''
storePassword=123456
keyPassword=123456
keyAlias=test_release_key
storeFile=key.jks
''';
// This is a test jks keystore, generated for testing use only. Do not use this key in an actual
// application.
@override
final List<int> androidKey = <int>[
0xfe, 0xed, 0xfe, 0xed, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x01,
0x00, 0x10, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x6b,
0x65, 0x79, 0x00, 0x00, 0x01, 0x77, 0x87, 0xc9, 0x8c, 0x4f, 0x00, 0x00, 0x05, 0x00, 0x30, 0x82,
0x04, 0xfc, 0x30, 0x0e, 0x06, 0x0a, 0x2b, 0x06, 0x01, 0x04, 0x01, 0x2a, 0x02, 0x11, 0x01, 0x01,
0x05, 0x00, 0x04, 0x82, 0x04, 0xe8, 0xe2, 0xca, 0x1f, 0xd5, 0x47, 0xf1, 0x6a, 0x4a, 0xc5, 0xf8,
0x0b, 0xc1, 0x11, 0x36, 0xfc, 0xb3, 0x25, 0xb3, 0x54, 0x34, 0x53, 0x2c, 0x71, 0x81, 0xd6, 0x64,
0x54, 0xef, 0x5f, 0x85, 0x27, 0xbe, 0xe5, 0x0a, 0x08, 0xc0, 0x76, 0x2d, 0xec, 0xbf, 0x82, 0x9f,
0xf9, 0xf0, 0xb3, 0x20, 0x86, 0x9b, 0x25, 0x01, 0x02, 0x15, 0xa8, 0x78, 0x53, 0xd9, 0x97, 0xb8,
0x15, 0x84, 0xad, 0x21, 0xe7, 0x04, 0x01, 0x53, 0xc0, 0x8f, 0x14, 0x0c, 0x45, 0xe0, 0x7a, 0x4e,
0x95, 0x4e, 0xa9, 0xcd, 0x23, 0xbf, 0x78, 0xcd, 0x10, 0xd3, 0x09, 0xec, 0xfd, 0x64, 0x8d, 0xec,
0xe8, 0x02, 0x3e, 0x5a, 0x04, 0x0b, 0xd3, 0x57, 0x66, 0xb9, 0xd0, 0x28, 0xcf, 0x28, 0x04, 0x6e,
0x45, 0x67, 0x81, 0xb9, 0x1a, 0x64, 0xd6, 0x05, 0xf5, 0x3d, 0x90, 0x8e, 0x2d, 0x52, 0x95, 0x51,
0x5c, 0x26, 0xcc, 0x43, 0x86, 0x7f, 0x07, 0x8c, 0xf8, 0x06, 0x25, 0xff, 0x53, 0xb4, 0x2b, 0x87,
0xef, 0x93, 0xac, 0x99, 0xc3, 0x35, 0x6e, 0x1c, 0xf0, 0x9f, 0xb1, 0xda, 0x30, 0x88, 0x1a, 0x50,
0xa5, 0x53, 0x39, 0xef, 0x4b, 0x5c, 0xc7, 0x72, 0xc6, 0xe2, 0xf6, 0x2e, 0xf3, 0xcc, 0xc8, 0xd8,
0x80, 0xe5, 0x64, 0x45, 0xcb, 0xcc, 0x8c, 0x93, 0x7e, 0x00, 0x49, 0x3f, 0x27, 0xd8, 0xa1, 0xb2,
0xa4, 0x7c, 0xc7, 0x39, 0xc9, 0x27, 0x1a, 0x2e, 0xca, 0x88, 0x7f, 0xf1, 0xf1, 0xad, 0x68, 0xb9,
0x6b, 0xd8, 0xfe, 0xf1, 0xda, 0xad, 0x2d, 0xb2, 0x08, 0x33, 0x42, 0x12, 0x4b, 0x1f, 0x93, 0x17,
0x7d, 0x50, 0xba, 0x68, 0x86, 0xdd, 0x61, 0x74, 0x0c, 0xed, 0x55, 0x60, 0x90, 0x01, 0x93, 0x11,
0x13, 0xc2, 0x39, 0x78, 0xf6, 0xa4, 0x28, 0x8f, 0xa6, 0x63, 0x35, 0x28, 0xbd, 0xa1, 0x95, 0xc5,
0x31, 0xa2, 0xae, 0x59, 0x67, 0x58, 0x08, 0x57, 0x45, 0xf3, 0x27, 0xfe, 0x83, 0x6a, 0xb3, 0x56,
0x2c, 0x9b, 0xae, 0xf7, 0x78, 0x88, 0x88, 0xd4, 0xbe, 0x67, 0x11, 0x6a, 0x64, 0x39, 0x99, 0xaf,
0xad, 0xc5, 0xd6, 0x3e, 0x30, 0x91, 0xee, 0x94, 0xdc, 0x50, 0x33, 0x57, 0x80, 0x1c, 0x4d, 0x80,
0xda, 0x07, 0xea, 0x8c, 0x37, 0x26, 0x0e, 0xfe, 0xbc, 0x8c, 0x7a, 0xf7, 0x33, 0x3b, 0x85, 0x7c,
0xc9, 0xf6, 0x44, 0x15, 0xc1, 0xa6, 0x95, 0x1e, 0x3e, 0x4a, 0x70, 0xb1, 0x31, 0xae, 0x1f, 0x61,
0xad, 0x59, 0xc3, 0xc9, 0xa2, 0x0e, 0x11, 0xb8, 0x25, 0x84, 0x90, 0x66, 0x0c, 0x4b, 0x4a, 0xf4,
0xec, 0xc0, 0x6a, 0x95, 0x81, 0x22, 0xfc, 0xd1, 0xda, 0xd0, 0x4f, 0x8a, 0x39, 0x6f, 0x24, 0x49,
0xd7, 0xa6, 0x82, 0xbd, 0x8d, 0x5e, 0xbd, 0xe2, 0x69, 0x9b, 0xb4, 0xde, 0x37, 0x6a, 0x02, 0x7e,
0x40, 0x8c, 0x3c, 0x34, 0x97, 0xfd, 0xc9, 0xc5, 0x75, 0x74, 0xa5, 0x04, 0x93, 0xa4, 0x04, 0x64,
0x9f, 0xfd, 0xe2, 0x57, 0x63, 0x11, 0x5e, 0x51, 0x25, 0x36, 0xcc, 0x25, 0xe0, 0xda, 0x6d, 0x82,
0xfe, 0xd2, 0x7b, 0x40, 0x82, 0x33, 0x69, 0xb0, 0xe8, 0x91, 0xb7, 0x23, 0xac, 0x22, 0x85, 0x98,
0x3e, 0x02, 0x81, 0xa5, 0x4e, 0xaf, 0x99, 0xf1, 0x1b, 0x73, 0x38, 0xcd, 0x4c, 0xaa, 0x33, 0xdc,
0x49, 0xd6, 0xf7, 0xdc, 0xa6, 0x59, 0x38, 0x67, 0x89, 0x78, 0x26, 0x8e, 0x1c, 0xee, 0xbe, 0x8b,
0x6c, 0xae, 0xcf, 0x26, 0x67, 0x2a, 0xe6, 0xbe, 0x24, 0xc3, 0x6f, 0x2b, 0x1a, 0xcf, 0xb6, 0xd0,
0x82, 0x58, 0x05, 0x44, 0x19, 0x91, 0xfb, 0x9f, 0x53, 0x14, 0x4a, 0xf5, 0x84, 0x54, 0x57, 0x8e,
0xcc, 0xec, 0x6f, 0x29, 0xdd, 0xa6, 0x38, 0xa4, 0x17, 0x0e, 0x86, 0x63, 0x62, 0xd6, 0x43, 0x1c,
0xd5, 0xee, 0x93, 0x35, 0x2f, 0x66, 0x35, 0xc8, 0x33, 0x5c, 0x2b, 0xbe, 0xc7, 0xba, 0xf2, 0xd5,
0xe6, 0x51, 0xe1, 0xac, 0xac, 0x80, 0x71, 0x05, 0xed, 0x8a, 0x2f, 0x47, 0x30, 0xb5, 0x6b, 0x3d,
0x1d, 0x90, 0xe0, 0x82, 0x76, 0xba, 0x85, 0x7b, 0xb1, 0x78, 0xc1, 0x6f, 0x9c, 0xc1, 0x45, 0xfc,
0x31, 0x51, 0x04, 0xf3, 0x80, 0x98, 0x9d, 0xd7, 0xd3, 0xef, 0x4b, 0x1a, 0xeb, 0x59, 0x62, 0x97,
0x64, 0xcd, 0x4b, 0x7f, 0xaf, 0x07, 0x2a, 0xc1, 0x77, 0x4c, 0xa0, 0x29, 0x41, 0x80, 0x01, 0xca,
0xc5, 0xb2, 0xe0, 0x6e, 0x30, 0x70, 0xc4, 0xcf, 0xf7, 0xd6, 0x7f, 0x1d, 0x84, 0x9e, 0x31, 0x4b,
0xa8, 0xa8, 0x26, 0x60, 0x7f, 0x76, 0x4c, 0x75, 0x46, 0xcf, 0x86, 0x39, 0xbd, 0x5b, 0x99, 0x1b,
0x0f, 0xa2, 0x1a, 0x94, 0x62, 0xe7, 0x95, 0x9c, 0xcb, 0x4d, 0x13, 0xa4, 0x84, 0x79, 0xec, 0xd3,
0x7c, 0xbd, 0x3f, 0xb7, 0x22, 0xa9, 0x14, 0xf0, 0xd3, 0x66, 0xb0, 0xa9, 0xe7, 0xdf, 0x01, 0x47,
0x5c, 0xb0, 0x8e, 0x49, 0xfa, 0xfd, 0xa9, 0x9f, 0xf4, 0x29, 0x7e, 0x0c, 0x6a, 0x9f, 0x67, 0x7f,
0x38, 0xe0, 0xe6, 0x48, 0x0d, 0x51, 0x7d, 0x79, 0x0d, 0xb8, 0x27, 0xec, 0x6e, 0x99, 0x3e, 0x00,
0xb2, 0x18, 0x8e, 0x8d, 0xbf, 0x89, 0xd2, 0x4b, 0xce, 0xcc, 0x64, 0xb7, 0xae, 0x4a, 0x34, 0x8d,
0xe1, 0x73, 0x4e, 0x2c, 0x50, 0x7e, 0xc5, 0xc7, 0x14, 0xa6, 0x8c, 0x51, 0x5b, 0x4a, 0x94, 0xf2,
0x16, 0x58, 0x11, 0x1c, 0xc4, 0x81, 0x9d, 0xfc, 0x5d, 0x57, 0xe2, 0x8e, 0xdb, 0x51, 0x99, 0x5f,
0xd5, 0x71, 0x72, 0x3a, 0xa1, 0xe0, 0xc1, 0x6f, 0xdb, 0x0c, 0xf0, 0x91, 0x7c, 0xb7, 0xc0, 0xf5,
0x6f, 0x6c, 0x3c, 0xea, 0x0e, 0xd3, 0xab, 0x13, 0xed, 0x1e, 0x55, 0x9e, 0xdf, 0xf7, 0x37, 0x75,
0x38, 0xb5, 0x07, 0x97, 0x1d, 0x82, 0x5b, 0x28, 0x1f, 0xbd, 0xe3, 0x70, 0xdb, 0x18, 0x3f, 0x69,
0x95, 0x84, 0x8f, 0x99, 0xc4, 0xa6, 0xed, 0x60, 0xfc, 0x1e, 0x3b, 0x4d, 0x63, 0x34, 0xeb, 0xb8,
0xd6, 0x18, 0x24, 0xf5, 0xd9, 0x3b, 0xc3, 0xdd, 0x3e, 0x49, 0x55, 0x7a, 0xa3, 0x49, 0x2c, 0x58,
0x2a, 0x9c, 0x11, 0x21, 0xdc, 0x82, 0xa5, 0xc2, 0xf7, 0x87, 0x3a, 0xd8, 0xe8, 0x03, 0x3a, 0x5c,
0xdf, 0xac, 0xa7, 0xbe, 0x34, 0x7f, 0x1a, 0xaa, 0xe9, 0x27, 0x91, 0xd0, 0x7c, 0x23, 0x8d, 0x6e,
0x00, 0x86, 0x4f, 0x23, 0x87, 0xdc, 0x53, 0x99, 0x99, 0x9b, 0xc9, 0xae, 0x50, 0xf1, 0x55, 0xd0,
0x04, 0x89, 0xe2, 0x2d, 0x5a, 0x2a, 0x54, 0x89, 0xc7, 0x70, 0x48, 0x3e, 0xf1, 0xc8, 0x01, 0x87,
0x67, 0x35, 0xdb, 0x0f, 0x08, 0x82, 0x62, 0x53, 0xb5, 0x7b, 0xcb, 0xc5, 0x60, 0x85, 0x56, 0xc0,
0xda, 0xed, 0x1b, 0x06, 0x02, 0xfc, 0xa9, 0x55, 0x99, 0x71, 0x54, 0x88, 0xd7, 0x33, 0xb4, 0xce,
0x85, 0x2f, 0x24, 0x82, 0x80, 0xb3, 0xca, 0x56, 0x33, 0x3b, 0x5a, 0x2a, 0xd5, 0xed, 0xbb, 0x6b,
0xc9, 0xc1, 0x26, 0x93, 0x51, 0xe2, 0x01, 0x88, 0x39, 0xe4, 0xe7, 0x56, 0xd3, 0x0f, 0x5d, 0xe9,
0xfd, 0xcd, 0xeb, 0x13, 0xd6, 0xa0, 0xe3, 0x6c, 0x57, 0x50, 0x09, 0xe8, 0xb2, 0xd4, 0x47, 0xd9,
0x0c, 0x3e, 0xac, 0xee, 0x65, 0x53, 0x8d, 0x00, 0x95, 0x90, 0x58, 0x94, 0x32, 0x1a, 0x32, 0xe2,
0xe2, 0xc9, 0x66, 0x6d, 0xc8, 0xf2, 0x1e, 0x70, 0xe5, 0xaa, 0xa6, 0x48, 0xad, 0x4a, 0xaf, 0x2a,
0x97, 0x59, 0x5e, 0x79, 0xec, 0xdf, 0x1f, 0xe1, 0x37, 0xb5, 0x48, 0x6f, 0x0e, 0xab, 0xce, 0x29,
0x32, 0x99, 0x8d, 0xe0, 0xc9, 0x73, 0xba, 0x76, 0xa1, 0x25, 0xd8, 0x98, 0x19, 0x67, 0x87, 0x24,
0x00, 0xbb, 0x52, 0x15, 0x41, 0x28, 0x56, 0x1a, 0x6c, 0xb5, 0xbc, 0x4c, 0xcc, 0x17, 0x8a, 0xc7,
0x1b, 0xc9, 0xea, 0x31, 0xbb, 0x68, 0x16, 0x5a, 0x72, 0x04, 0xbf, 0x9d, 0x3a, 0xb1, 0xc6, 0xe0,
0x45, 0x51, 0x39, 0x03, 0x48, 0x82, 0xa6, 0x0c, 0x8a, 0xd2, 0x22, 0x30, 0xf3, 0x74, 0x4d, 0xd3,
0x5c, 0x6c, 0x3e, 0x36, 0x90, 0xc5, 0xe6, 0xcf, 0xd3, 0xde, 0x68, 0x6a, 0x43, 0x5b, 0x2b, 0x90,
0xbe, 0xa6, 0x23, 0xa0, 0x3b, 0x40, 0x6b, 0x99, 0x60, 0xdf, 0xff, 0x9f, 0x7c, 0x84, 0xc7, 0xf0,
0xc7, 0x99, 0x1b, 0x99, 0x50, 0x06, 0x9b, 0xe7, 0x78, 0x2a, 0x4e, 0x76, 0x81, 0xea, 0x06, 0x29,
0xab, 0xd8, 0xa6, 0x1e, 0x7f, 0x5a, 0x28, 0x0b, 0x90, 0x0e, 0x5d, 0x04, 0xf7, 0x57, 0x0a, 0x31,
0x14, 0x2c, 0x84, 0x56, 0x57, 0x17, 0x8a, 0xa0, 0xd7, 0x7c, 0x3a, 0xf7, 0xda, 0x8d, 0x8a, 0xcb,
0x47, 0xe8, 0xb2, 0xee, 0x32, 0x2a, 0xf8, 0x42, 0x42, 0xd8, 0x75, 0x8c, 0x47, 0x73, 0x2a, 0x87,
0xe0, 0x0a, 0xe8, 0x6f, 0xed, 0xf2, 0x1a, 0x14, 0x3a, 0x59, 0xc7, 0x8e, 0x21, 0x72, 0xf7, 0x05,
0x5b, 0xd1, 0x2b, 0x7d, 0x53, 0xfb, 0x22, 0xfb, 0x7e, 0xe7, 0x25, 0x0b, 0x1c, 0x15, 0xb2, 0xde,
0xdf, 0x66, 0xcc, 0xe9, 0x30, 0xfc, 0x75, 0x8c, 0xa3, 0x09, 0xab, 0x42, 0x27, 0x6b, 0x33, 0xa0,
0xdf, 0x15, 0xa4, 0x00, 0x10, 0x18, 0xe5, 0x10, 0x97, 0x47, 0xe9, 0x2e, 0x65, 0xd3, 0x9e, 0x44,
0x1b, 0xaf, 0x36, 0x60, 0xcf, 0xe2, 0x1a, 0x6b, 0xbe, 0x7b, 0x1f, 0x80, 0xdd, 0x5c, 0x10, 0x5c,
0x89, 0x23, 0xba, 0xa1, 0x98, 0xcc, 0x88, 0x74, 0xbf, 0x26, 0x4c, 0x0c, 0xa5, 0xc7, 0x00, 0x00,
0x00, 0x01, 0x00, 0x05, 0x58, 0x2e, 0x35, 0x30, 0x39, 0x00, 0x00, 0x03, 0x7f, 0x30, 0x82, 0x03,
0x7b, 0x30, 0x82, 0x02, 0x63, 0xa0, 0x03, 0x02, 0x01, 0x02, 0x02, 0x04, 0x22, 0x12, 0x53, 0x46,
0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x0b, 0x05, 0x00, 0x30,
0x6d, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x55, 0x53, 0x31, 0x13,
0x30, 0x11, 0x06, 0x03, 0x55, 0x04, 0x08, 0x13, 0x0a, 0x43, 0x61, 0x6c, 0x69, 0x66, 0x6f, 0x72,
0x6e, 0x69, 0x61, 0x31, 0x16, 0x30, 0x14, 0x06, 0x03, 0x55, 0x04, 0x07, 0x13, 0x0d, 0x4d, 0x6f,
0x75, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x20, 0x56, 0x69, 0x65, 0x77, 0x31, 0x10, 0x30, 0x0e, 0x06,
0x03, 0x55, 0x04, 0x0a, 0x13, 0x07, 0x46, 0x6c, 0x75, 0x74, 0x74, 0x65, 0x72, 0x31, 0x10, 0x30,
0x0e, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x13, 0x07, 0x46, 0x6c, 0x75, 0x74, 0x74, 0x65, 0x72, 0x31,
0x0d, 0x30, 0x0b, 0x06, 0x03, 0x55, 0x04, 0x03, 0x13, 0x04, 0x44, 0x61, 0x73, 0x68, 0x30, 0x20,
0x17, 0x0d, 0x32, 0x31, 0x30, 0x32, 0x30, 0x39, 0x31, 0x37, 0x31, 0x34, 0x32, 0x37, 0x5a, 0x18,
0x0f, 0x32, 0x32, 0x39, 0x34, 0x31, 0x31, 0x32, 0x35, 0x31, 0x37, 0x31, 0x34, 0x32, 0x37, 0x5a,
0x30, 0x6d, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x55, 0x53, 0x31,
0x13, 0x30, 0x11, 0x06, 0x03, 0x55, 0x04, 0x08, 0x13, 0x0a, 0x43, 0x61, 0x6c, 0x69, 0x66, 0x6f,
0x72, 0x6e, 0x69, 0x61, 0x31, 0x16, 0x30, 0x14, 0x06, 0x03, 0x55, 0x04, 0x07, 0x13, 0x0d, 0x4d,
0x6f, 0x75, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x20, 0x56, 0x69, 0x65, 0x77, 0x31, 0x10, 0x30, 0x0e,
0x06, 0x03, 0x55, 0x04, 0x0a, 0x13, 0x07, 0x46, 0x6c, 0x75, 0x74, 0x74, 0x65, 0x72, 0x31, 0x10,
0x30, 0x0e, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x13, 0x07, 0x46, 0x6c, 0x75, 0x74, 0x74, 0x65, 0x72,
0x31, 0x0d, 0x30, 0x0b, 0x06, 0x03, 0x55, 0x04, 0x03, 0x13, 0x04, 0x44, 0x61, 0x73, 0x68, 0x30,
0x82, 0x01, 0x22, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x01,
0x05, 0x00, 0x03, 0x82, 0x01, 0x0f, 0x00, 0x30, 0x82, 0x01, 0x0a, 0x02, 0x82, 0x01, 0x01, 0x00,
0x94, 0x7d, 0x0d, 0x32, 0x57, 0xf8, 0x90, 0x9b, 0x5a, 0xc5, 0x61, 0x48, 0xa8, 0xbb, 0x5e, 0x9d,
0x4c, 0x4f, 0x53, 0xb9, 0x3b, 0x1f, 0x46, 0xc4, 0xd1, 0xba, 0x69, 0x7b, 0x71, 0x37, 0x20, 0xa1,
0x44, 0x4f, 0xd1, 0x87, 0x71, 0x88, 0xc9, 0xe4, 0x49, 0xe1, 0xf0, 0x3d, 0x18, 0xca, 0xf7, 0x56,
0xc4, 0x61, 0x4e, 0xa7, 0x9a, 0x93, 0x26, 0x8b, 0x03, 0x01, 0xa8, 0xef, 0x44, 0x89, 0xc6, 0x4d,
0xab, 0x63, 0x92, 0xb2, 0xb5, 0xcd, 0x51, 0xb4, 0x12, 0x98, 0x2b, 0x89, 0x73, 0x28, 0xfa, 0x73,
0xb2, 0xf4, 0xb7, 0xf2, 0x85, 0x3f, 0xe8, 0xf0, 0x38, 0x4f, 0x1d, 0xd0, 0x3b, 0xe7, 0xd3, 0xf0,
0x22, 0xfd, 0x50, 0x11, 0x6d, 0x20, 0xe4, 0x8d, 0x87, 0xd7, 0x99, 0xd4, 0x70, 0x4e, 0xb9, 0xcb,
0x5b, 0xbb, 0x4f, 0xd9, 0xa6, 0xf6, 0x51, 0x8b, 0x44, 0x5b, 0x9d, 0x68, 0x0b, 0x40, 0x2d, 0x11,
0x18, 0xdc, 0xb6, 0x29, 0x73, 0xdb, 0x6a, 0x00, 0x12, 0xa0, 0x9f, 0xf4, 0xed, 0xeb, 0xa3, 0x4b,
0x60, 0xdc, 0x51, 0xed, 0xbe, 0x6c, 0x70, 0x4b, 0x32, 0xda, 0xa0, 0x53, 0x15, 0xac, 0x5e, 0xfd,
0x4d, 0x14, 0xd7, 0x75, 0xc8, 0x6f, 0x02, 0x85, 0x33, 0x95, 0xbe, 0x86, 0xee, 0x6d, 0x4d, 0x75,
0x0f, 0x64, 0xfe, 0x9d, 0xa1, 0x3f, 0x53, 0x1b, 0xa1, 0xeb, 0x7b, 0xe6, 0xdd, 0xa1, 0x0a, 0x38,
0xad, 0xce, 0xa3, 0x66, 0xda, 0x51, 0x38, 0xf3, 0x33, 0x3d, 0x96, 0x06, 0xa5, 0x0e, 0xa7, 0xfd,
0xb2, 0x7b, 0xd5, 0x21, 0x1a, 0x35, 0x76, 0x25, 0x95, 0x97, 0xd6, 0xd2, 0xfe, 0xbd, 0x86, 0x22,
0x05, 0xa3, 0x7d, 0x67, 0x60, 0x86, 0x04, 0xc3, 0xa5, 0xd3, 0xb7, 0x40, 0x0c, 0x31, 0x30, 0xc8,
0x93, 0xb7, 0x61, 0xb3, 0x68, 0x90, 0x9d, 0xa0, 0x49, 0x79, 0x9b, 0xc1, 0x9c, 0x47, 0xa8, 0x81,
0x02, 0x03, 0x01, 0x00, 0x01, 0xa3, 0x21, 0x30, 0x1f, 0x30, 0x1d, 0x06, 0x03, 0x55, 0x1d, 0x0e,
0x04, 0x16, 0x04, 0x14, 0x71, 0x50, 0x13, 0x2c, 0x3e, 0xaa, 0xfc, 0x7e, 0x6d, 0x16, 0x18, 0xc0,
0x6f, 0x32, 0x2e, 0xf0, 0xe1, 0x03, 0x46, 0x94, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86,
0xf7, 0x0d, 0x01, 0x01, 0x0b, 0x05, 0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x24, 0x98, 0xc6, 0xd6,
0xab, 0xb3, 0x94, 0xa1, 0x5d, 0x50, 0x0a, 0x82, 0xf7, 0x1d, 0xf5, 0xdf, 0x93, 0xf2, 0xf2, 0xf2,
0xe6, 0x2a, 0x28, 0x67, 0x06, 0x36, 0xf6, 0x1f, 0x8c, 0xa3, 0x41, 0x43, 0x98, 0xc4, 0x6a, 0xd0,
0x14, 0x0b, 0x1b, 0x89, 0x75, 0xb1, 0xe5, 0x79, 0x2c, 0xe8, 0xfd, 0x6d, 0x77, 0x72, 0xaa, 0x06,
0x15, 0xd3, 0xca, 0x95, 0xca, 0x7d, 0xd5, 0xce, 0xca, 0x5f, 0x88, 0xd2, 0x3c, 0x08, 0xd2, 0x83,
0xed, 0x7a, 0x0d, 0x2f, 0x34, 0x37, 0x97, 0x75, 0xd1, 0x2c, 0xa6, 0x30, 0x68, 0x8e, 0x19, 0x23,
0x3d, 0x22, 0x62, 0x73, 0x4e, 0xd5, 0x42, 0x09, 0x82, 0xb6, 0x06, 0x17, 0xb8, 0xb6, 0x08, 0x64,
0x73, 0x93, 0x02, 0x87, 0xd4, 0xf6, 0xa6, 0xce, 0xad, 0xfd, 0xcc, 0x9f, 0x69, 0x8b, 0xa8, 0xb3,
0x4a, 0x45, 0x9e, 0xad, 0xa7, 0xf2, 0xb5, 0x91, 0xc8, 0x61, 0x48, 0x95, 0x8b, 0x36, 0x3e, 0x2f,
0x40, 0x80, 0x69, 0xab, 0x3d, 0x45, 0xe1, 0x60, 0x3a, 0xe8, 0x33, 0x06, 0x12, 0x1a, 0x7e, 0x6e,
0x11, 0x01, 0xb9, 0x66, 0x1b, 0x61, 0xbf, 0x01, 0x6d, 0x1d, 0x33, 0x58, 0x9a, 0xdd, 0x12, 0xf8,
0xc1, 0xa3, 0x71, 0x89, 0x72, 0xed, 0xf4, 0xb2, 0xf3, 0x39, 0xc3, 0xf1, 0xf1, 0xe3, 0xe1, 0x9b,
0xce, 0xc7, 0x83, 0x80, 0x32, 0x76, 0x16, 0x8c, 0x95, 0x35, 0xc0, 0xe8, 0xae, 0x02, 0x1b, 0x05,
0x21, 0x36, 0xed, 0x4a, 0x71, 0xe0, 0x18, 0x76, 0xaa, 0xb9, 0x98, 0x07, 0x35, 0x27, 0x9b, 0xf2,
0x5d, 0xdc, 0x79, 0xe6, 0xaa, 0x4a, 0x01, 0x23, 0x7d, 0x6d, 0x21, 0xbd, 0x97, 0x1b, 0x41, 0x60,
0x7c, 0xb7, 0xfa, 0x21, 0x48, 0x52, 0x22, 0x94, 0x2d, 0xb0, 0xef, 0x2d, 0xc3, 0xe2, 0xe6, 0x37,
0x55, 0x9d, 0xd9, 0x4d, 0xdd, 0xdd, 0x25, 0x25, 0x6b, 0x13, 0xb6, 0xb0, 0x00, 0x00, 0x00, 0x01,
0x00, 0x08, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x00, 0x00, 0x01, 0x77, 0x87, 0xc7,
0x7b, 0x73, 0x00, 0x00, 0x02, 0xba, 0x30, 0x82, 0x02, 0xb6, 0x30, 0x0e, 0x06, 0x0a, 0x2b, 0x06,
0x01, 0x04, 0x01, 0x2a, 0x02, 0x11, 0x01, 0x01, 0x05, 0x00, 0x04, 0x82, 0x02, 0xa2, 0x23, 0xce,
0x04, 0x35, 0x63, 0x08, 0xa7, 0x0b, 0x42, 0x93, 0x53, 0x16, 0xa6, 0xbe, 0x54, 0xf2, 0xe4, 0x27,
0x8d, 0xbb, 0x64, 0xe4, 0x23, 0xeb, 0x70, 0x6c, 0xd5, 0x28, 0xe7, 0x8b, 0x73, 0x68, 0xd0, 0x03,
0xc5, 0x32, 0xfe, 0x4d, 0x80, 0xa5, 0xff, 0xcd, 0xf0, 0x5c, 0x31, 0xd1, 0xf0, 0xf1, 0xc7, 0x53,
0xeb, 0xea, 0xa3, 0xb1, 0x07, 0xdc, 0x6b, 0x9a, 0xff, 0xcd, 0x36, 0x88, 0x83, 0x6c, 0x0a, 0xbf,
0x85, 0x3a, 0x5d, 0xc4, 0x54, 0x0a, 0x63, 0xd6, 0xf1, 0x30, 0xa8, 0x18, 0x89, 0x6d, 0xba, 0x27,
0x7f, 0xdc, 0xe1, 0x38, 0x6b, 0xa7, 0xc4, 0x2e, 0xdc, 0x21, 0x01, 0xf6, 0xdc, 0xc9, 0x36, 0x2a,
0x6e, 0xb7, 0xbc, 0xdd, 0xe2, 0xd8, 0x44, 0x16, 0x9e, 0x28, 0x34, 0x9d, 0x59, 0x43, 0xc3, 0xe9,
0x21, 0xb1, 0x46, 0x6b, 0x08, 0x81, 0x51, 0xa8, 0xa6, 0x84, 0xe1, 0xe3, 0x7d, 0x60, 0x6c, 0x3d,
0xbc, 0x28, 0xea, 0xe7, 0x10, 0xd4, 0x07, 0xcc, 0x2e, 0xa4, 0xed, 0x66, 0xe6, 0xaa, 0xbf, 0xf5,
0x95, 0xd9, 0xc9, 0xcd, 0x69, 0x44, 0xc6, 0x46, 0x66, 0xab, 0x99, 0xdb, 0x74, 0x9f, 0x7f, 0x4e,
0x02, 0x37, 0x1e, 0x23, 0x52, 0x58, 0x10, 0x8c, 0x41, 0x6f, 0xe4, 0xc1, 0xca, 0x1e, 0xd0, 0xd3,
0x8e, 0xd0, 0x36, 0xc6, 0xea, 0x61, 0x3d, 0x97, 0x35, 0x54, 0x81, 0xc4, 0x0e, 0x1a, 0x05, 0xa3,
0x2b, 0x0b, 0x9e, 0xb2, 0x0d, 0xe9, 0xfc, 0x3a, 0xd9, 0x02, 0xce, 0x1b, 0x56, 0x92, 0x1a, 0x97,
0x78, 0xda, 0xba, 0x40, 0x2c, 0x7c, 0x96, 0xe1, 0x94, 0x88, 0x1a, 0x7b, 0x47, 0x77, 0x59, 0xcf,
0x98, 0x52, 0xb0, 0xfb, 0xcb, 0xb5, 0xf5, 0xe4, 0x16, 0x38, 0xb6, 0x05, 0x20, 0x5c, 0x36, 0x19,
0xc5, 0xa9, 0x70, 0xe6, 0x89, 0x9f, 0x76, 0x3d, 0x88, 0x78, 0x56, 0xf2, 0x85, 0xff, 0x89, 0xc3,
0xc5, 0x32, 0xd3, 0xb0, 0x8f, 0x1c, 0xc3, 0x23, 0xb4, 0x70, 0xd4, 0x8b, 0xd3, 0x6c, 0x27, 0xd1,
0xc4, 0xe9, 0x0a, 0xaa, 0x06, 0x3a, 0xd3, 0xd6, 0x20, 0xe1, 0x08, 0x65, 0x10, 0x50, 0x45, 0x59,
0xa5, 0xd4, 0xb2, 0xd5, 0xcb, 0x74, 0x52, 0x05, 0x95, 0x08, 0xe4, 0xb9, 0xe9, 0xc9, 0x7f, 0xbc,
0x4b, 0x3f, 0xfa, 0x00, 0x5c, 0x20, 0xda, 0x8e, 0xb2, 0xe0, 0x4e, 0x51, 0x0e, 0xfe, 0x98, 0xd8,
0xe9, 0xd5, 0x44, 0x0b, 0x1c, 0x1f, 0xe3, 0xa6, 0xc5, 0x03, 0xb1, 0x5e, 0x23, 0x7a, 0x0a, 0x1e,
0xa1, 0x49, 0xaf, 0xea, 0xb8, 0xea, 0x74, 0x64, 0x05, 0xda, 0xad, 0xb3, 0x5f, 0x17, 0xa9, 0x9a,
0x89, 0x16, 0x6d, 0xd2, 0xef, 0xa1, 0x35, 0x40, 0x43, 0x71, 0xee, 0x6c, 0x0c, 0x99, 0xbf, 0xcf,
0xd5, 0xae, 0xad, 0x83, 0xeb, 0x60, 0x8d, 0x4e, 0xae, 0xe2, 0x01, 0xcb, 0xbe, 0x18, 0x94, 0x39,
0xdf, 0xcb, 0xae, 0x47, 0xf7, 0x89, 0x9c, 0x37, 0x35, 0x43, 0x9b, 0xb4, 0x6c, 0xb9, 0x86, 0xc5,
0xd6, 0x39, 0xd3, 0x47, 0x1f, 0x91, 0x8d, 0xe8, 0xd3, 0x13, 0xe7, 0xe2, 0x2c, 0x27, 0x36, 0xd9,
0xc8, 0xf4, 0xc6, 0x25, 0x78, 0x02, 0x78, 0x31, 0x7f, 0x8a, 0xa1, 0x32, 0x50, 0x4d, 0xc1, 0x49,
0x23, 0x8c, 0x72, 0x09, 0xc8, 0xe3, 0x7e, 0xa0, 0xdd, 0x1b, 0x96, 0x47, 0x24, 0xab, 0xb4, 0x14,
0x6d, 0x07, 0x8e, 0x90, 0x29, 0x6c, 0xb2, 0x13, 0xe4, 0xe1, 0x69, 0x17, 0xfd, 0xb8, 0x9e, 0x52,
0x90, 0x19, 0xbe, 0xf6, 0xd7, 0x60, 0x0e, 0x22, 0xb5, 0x01, 0x45, 0xab, 0xf5, 0xe4, 0x2e, 0x53,
0x3f, 0xf0, 0x58, 0xbb, 0x2c, 0xa5, 0x31, 0x59, 0x4e, 0x4b, 0xf0, 0x3e, 0x36, 0x77, 0xe0, 0x05,
0x38, 0x81, 0x07, 0xf6, 0x53, 0xf3, 0xff, 0x0c, 0x8d, 0x6d, 0xbc, 0xa9, 0x6f, 0x6a, 0x75, 0xef,
0x99, 0x01, 0xc9, 0xd6, 0x4d, 0xa4, 0x9b, 0x35, 0x95, 0xe3, 0x20, 0xfd, 0x13, 0x51, 0x71, 0xbb,
0xbd, 0x93, 0xc4, 0x8b, 0x98, 0x6c, 0x8c, 0x6a, 0x30, 0xea, 0x3e, 0xe7, 0x9b, 0x98, 0x10, 0xab,
0x03, 0x3a, 0x90, 0xf4, 0x98, 0xf1, 0x30, 0xa5, 0xd6, 0x3a, 0x06, 0x62, 0xc0, 0x39, 0xf7, 0x36,
0xa5, 0x66, 0xfd, 0x3d, 0x30, 0x51, 0x7a, 0x4d, 0x06, 0xf9, 0xfe, 0xa5, 0xda, 0xa8, 0x80, 0xaa,
0x50, 0x5d, 0xff, 0xf2, 0x23, 0x6f, 0x1a, 0x7d, 0x63, 0xa6, 0x6a, 0x64, 0x5c, 0x2a, 0xeb, 0x83,
0x42, 0x29, 0x5e, 0x26, 0x9d, 0x25, 0x0f, 0x58, 0xb6, 0x3b, 0x48, 0x66, 0xb0, 0x1f, 0x40, 0x07,
0x85, 0xd4, 0xc3, 0x61, 0x7a, 0xa5, 0x6b, 0xa1, 0x61, 0x09, 0x78, 0x03, 0x58, 0xfa, 0x52, 0xde,
0xb4, 0xf2, 0xc7, 0x40, 0x94, 0x7b, 0x6c, 0x4f, 0xec, 0x5f, 0x17, 0xdf, 0x97, 0xd2, 0x95, 0xa6,
0x94, 0x8b, 0xb7, 0xcf, 0x05, 0x3d, 0x9d, 0xcc, 0x55, 0x1e, 0x83, 0x79, 0xf9, 0xe6, 0x22, 0x8e,
0xdd, 0x20, 0x22, 0x87, 0x3b, 0xb6, 0x79, 0xc9, 0xcf, 0x4c, 0x8f, 0xbb, 0x4e, 0x1f, 0xd6, 0xa5,
0x00, 0x00, 0x00, 0x01, 0x00, 0x05, 0x58, 0x2e, 0x35, 0x30, 0x39, 0x00, 0x00, 0x02, 0x7a, 0x30,
0x82, 0x02, 0x76, 0x30, 0x82, 0x01, 0xdf, 0xa0, 0x03, 0x02, 0x01, 0x02, 0x02, 0x04, 0x44, 0xbb,
0xd2, 0x52, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x0b, 0x05,
0x00, 0x30, 0x6d, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x55, 0x53,
0x31, 0x13, 0x30, 0x11, 0x06, 0x03, 0x55, 0x04, 0x08, 0x13, 0x0a, 0x43, 0x61, 0x6c, 0x69, 0x66,
0x6f, 0x72, 0x6e, 0x69, 0x61, 0x31, 0x16, 0x30, 0x14, 0x06, 0x03, 0x55, 0x04, 0x07, 0x13, 0x0d,
0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x20, 0x56, 0x69, 0x65, 0x77, 0x31, 0x10, 0x30,
0x0e, 0x06, 0x03, 0x55, 0x04, 0x0a, 0x13, 0x07, 0x46, 0x6c, 0x75, 0x74, 0x74, 0x65, 0x72, 0x31,
0x10, 0x30, 0x0e, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x13, 0x07, 0x46, 0x6c, 0x75, 0x74, 0x74, 0x65,
0x72, 0x31, 0x0d, 0x30, 0x0b, 0x06, 0x03, 0x55, 0x04, 0x03, 0x13, 0x04, 0x44, 0x61, 0x73, 0x68,
0x30, 0x20, 0x17, 0x0d, 0x32, 0x31, 0x30, 0x32, 0x30, 0x39, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30,
0x5a, 0x18, 0x0f, 0x34, 0x37, 0x35, 0x39, 0x30, 0x31, 0x30, 0x37, 0x31, 0x37, 0x31, 0x32, 0x31,
0x30, 0x5a, 0x30, 0x6d, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x55,
0x53, 0x31, 0x13, 0x30, 0x11, 0x06, 0x03, 0x55, 0x04, 0x08, 0x13, 0x0a, 0x43, 0x61, 0x6c, 0x69,
0x66, 0x6f, 0x72, 0x6e, 0x69, 0x61, 0x31, 0x16, 0x30, 0x14, 0x06, 0x03, 0x55, 0x04, 0x07, 0x13,
0x0d, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x20, 0x56, 0x69, 0x65, 0x77, 0x31, 0x10,
0x30, 0x0e, 0x06, 0x03, 0x55, 0x04, 0x0a, 0x13, 0x07, 0x46, 0x6c, 0x75, 0x74, 0x74, 0x65, 0x72,
0x31, 0x10, 0x30, 0x0e, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x13, 0x07, 0x46, 0x6c, 0x75, 0x74, 0x74,
0x65, 0x72, 0x31, 0x0d, 0x30, 0x0b, 0x06, 0x03, 0x55, 0x04, 0x03, 0x13, 0x04, 0x44, 0x61, 0x73,
0x68, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01,
0x01, 0x05, 0x00, 0x03, 0x81, 0x8d, 0x00, 0x30, 0x81, 0x89, 0x02, 0x81, 0x81, 0x00, 0xce, 0x0c,
0xe2, 0x0c, 0xc5, 0xb8, 0x20, 0x93, 0xf7, 0x7a, 0x38, 0x3c, 0xb5, 0x52, 0x1c, 0x48, 0x1a, 0x44,
0xba, 0xca, 0x88, 0xa0, 0xf0, 0xd6, 0xad, 0x91, 0x9e, 0x0c, 0x09, 0x64, 0xdd, 0x2d, 0x84, 0x0f,
0x9e, 0xcb, 0xbb, 0xd9, 0x24, 0xd6, 0xd6, 0xaa, 0x63, 0x1c, 0xfa, 0xb6, 0x45, 0x88, 0xf4, 0x8e,
0xb9, 0x2e, 0xe9, 0xa9, 0xed, 0x6b, 0xda, 0xc6, 0x6b, 0x91, 0x06, 0xf9, 0x0a, 0x71, 0x42, 0x2e,
0x18, 0x97, 0x80, 0x0c, 0x84, 0xea, 0x69, 0x8f, 0xc0, 0xb0, 0xa8, 0x76, 0xfc, 0x31, 0x86, 0xf9,
0x09, 0x7e, 0xa4, 0xff, 0x24, 0x94, 0x79, 0x29, 0xca, 0xd0, 0x9a, 0x07, 0xf3, 0x25, 0x21, 0xa7,
0x61, 0x6e, 0x81, 0x1c, 0x13, 0x02, 0xc9, 0xec, 0xa4, 0x42, 0xcc, 0x6c, 0x95, 0x01, 0xe5, 0x51,
0x8e, 0x4a, 0xb3, 0x0b, 0x29, 0xf1, 0x8a, 0x1c, 0xb5, 0xe1, 0x41, 0xb6, 0xe3, 0x3d, 0x02, 0x03,
0x01, 0x00, 0x01, 0xa3, 0x21, 0x30, 0x1f, 0x30, 0x1d, 0x06, 0x03, 0x55, 0x1d, 0x0e, 0x04, 0x16,
0x04, 0x14, 0x5f, 0xf5, 0x0a, 0x1f, 0xe7, 0xf5, 0xde, 0xbd, 0x7c, 0x59, 0xdd, 0x94, 0x26, 0x39,
0xf5, 0xc9, 0x21, 0x88, 0xbf, 0x22, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d,
0x01, 0x01, 0x0b, 0x05, 0x00, 0x03, 0x81, 0x81, 0x00, 0x17, 0x3d, 0x26, 0x25, 0xfb, 0xd1, 0x5b,
0x9b, 0xd5, 0xed, 0x84, 0x4f, 0x06, 0xa3, 0x4c, 0x17, 0x6d, 0x91, 0xa9, 0x19, 0xc8, 0xa2, 0x1a,
0x65, 0x4f, 0xf3, 0x23, 0x28, 0x18, 0x46, 0xe3, 0x77, 0x78, 0xae, 0x2c, 0x5a, 0xfa, 0x1a, 0x01,
0x3b, 0x92, 0xa6, 0x7c, 0xee, 0x3c, 0xa0, 0x4c, 0x9e, 0xb1, 0x26, 0xed, 0x9e, 0x1b, 0x81, 0x40,
0xa5, 0xce, 0xa8, 0xad, 0x09, 0xdd, 0x7c, 0x83, 0xc8, 0x1d, 0x1e, 0x6a, 0x3e, 0x60, 0x2e, 0x95,
0xc6, 0x17, 0x5b, 0x88, 0x0b, 0x54, 0x48, 0x80, 0x95, 0x77, 0x78, 0xcc, 0x5e, 0x09, 0x9e, 0x66,
0xe5, 0x87, 0x64, 0x4d, 0x36, 0x12, 0x40, 0xc4, 0x67, 0x78, 0xce, 0x38, 0x60, 0x24, 0xdf, 0x3c,
0xc0, 0xbb, 0xf7, 0x7d, 0x2f, 0x66, 0x56, 0xfb, 0xfa, 0x75, 0x2a, 0xe5, 0x23, 0x7a, 0xad, 0x5c,
0xef, 0x2d, 0xa1, 0xb6, 0x7c, 0xbd, 0xfa, 0xb3, 0xdc, 0x68, 0x55, 0xd1, 0xa0, 0xac, 0x8c, 0x06,
0x62, 0x21, 0xe9, 0x7d, 0x64, 0xd0, 0x60, 0xb3, 0x12, 0x2e, 0x6a, 0x50, 0xf4,
];
@override
String get appManifest => r'''
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.splitaot">
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
calls FlutterMain.startInitialization(this); in its onCreate method.
In most cases you can leave this as-is, but you if you want to provide
additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. -->
<application
android:name="io.flutter.app.FlutterPlayStoreSplitApplication"
android:label="splitaot"
android:extractNativeLibs="false">
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<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" />
<meta-data
android:name="io.flutter.embedding.engine.deferredcomponents.DeferredComponentManager.loadingUnitMapping"
android:value="2:component1" />
</application>
</manifest>
''';
@override
String get appStrings => r'''
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="component1Name">component1</string>
</resources>
''';
@override
String get appStyles => r'''
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting -->
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">@android:color/white</item>
</style>
</resources>
''';
@override
String get appLaunchBackground => r'''
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />
<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>
''';
@override
String get asset1 => r'''
asset 1 contents
''';
@override
String get asset2 => r'''
asset 2 contents
''';
@override
List<DeferredComponentModule> get deferredComponents => <DeferredComponentModule>[DeferredComponentModule('component1')];
}
/// Missing android dynamic feature module.
class NoAndroidDynamicFeatureModuleDeferredComponentsConfig extends BasicDeferredComponentsConfig {
@override
List<DeferredComponentModule> get deferredComponents => <DeferredComponentModule>[];
}
/// Missing golden
class NoGoldenDeferredComponentsConfig extends BasicDeferredComponentsConfig {
@override
String? get deferredComponentsGolden => null;
}
/// Missing golden
class MismatchedGoldenDeferredComponentsConfig extends BasicDeferredComponentsConfig {
@override
String get deferredComponentsGolden => r'''
loading-units:
- id: 2
libraries:
- package:test/invalid_lib_name.dart
''';
}
| flutter/packages/flutter_tools/test/integration.shard/test_data/deferred_components_project.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/test_data/deferred_components_project.dart",
"repo_id": "flutter",
"token_count": 20620
} | 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 'package:file/file.dart';
import 'package:flutter_tools/src/base/file_system.dart';
import '../test_utils.dart';
import 'project.dart';
class TestsProject extends Project {
@override
final String pubspec = '''
name: test
environment:
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
flutter:
sdk: flutter
dev_dependencies:
flutter_test:
sdk: flutter
''';
@override
String get main => '// Unused';
final String testContent = r'''
import 'package:flutter_test/flutter_test.dart';
void main() {
group('Flutter tests', () {
testWidgets('can pass', (WidgetTester tester) async {
expect(true, isTrue); // BREAKPOINT
});
testWidgets('can fail', (WidgetTester tester) async {
expect(true, isFalse);
});
});
}
''';
@override
Future<void> setUpIn(Directory dir) {
this.dir = dir;
writeFile(testFilePath, testContent);
return super.setUpIn(dir);
}
String get testFilePath => fileSystem.path.join(dir.path, 'test', 'test.dart');
Uri get breakpointUri => Uri.file(testFilePath);
Uri get breakpointAppUri => Uri.parse('org-dartlang-app:///test.dart');
int get breakpointLine => lineContaining(testContent, '// BREAKPOINT');
}
| flutter/packages/flutter_tools/test/integration.shard/test_data/tests_project.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/test_data/tests_project.dart",
"repo_id": "flutter",
"token_count": 529
} | 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:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/src/convert.dart';
import 'package:flutter_tools/src/custom_devices/custom_device_config.dart';
void writeCustomDevicesConfigFile(
Directory dir, {
List<CustomDeviceConfig>? configs,
dynamic json
}) {
dir.createSync(recursive: true);
final File file = dir.childFile('.flutter_custom_devices.json');
file.writeAsStringSync(jsonEncode(
<String, dynamic>{
'custom-devices': configs != null ?
configs.map<dynamic>((CustomDeviceConfig c) => c.toJson()).toList() :
json,
},
));
}
final CustomDeviceConfig testConfig = CustomDeviceConfig(
id: 'testid',
label: 'testlabel',
sdkNameAndVersion: 'testsdknameandversion',
enabled: true,
pingCommand: const <String>['testping'],
pingSuccessRegex: RegExp('testpingsuccess'),
postBuildCommand: const <String>['testpostbuild'],
installCommand: const <String>['testinstall'],
uninstallCommand: const <String>['testuninstall'],
runDebugCommand: const <String>['testrundebug'],
forwardPortCommand: const <String>['testforwardport'],
forwardPortSuccessRegex: RegExp('testforwardportsuccess')
);
const Map<String, dynamic> testConfigJson = <String, dynamic>{
'id': 'testid',
'label': 'testlabel',
'sdkNameAndVersion': 'testsdknameandversion',
'enabled': true,
'ping': <String>['testping'],
'pingSuccessRegex': 'testpingsuccess',
'postBuild': <String>['testpostbuild'],
'install': <String>['testinstall'],
'uninstall': <String>['testuninstall'],
'runDebug': <String>['testrundebug'],
'forwardPort': <String>['testforwardport'],
'forwardPortSuccessRegex': 'testforwardportsuccess',
};
| flutter/packages/flutter_tools/test/src/custom_devices_common.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/src/custom_devices_common.dart",
"repo_id": "flutter",
"token_count": 625
} | 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 'package:file/file.dart';
import '../integration.shard/test_data/stepping_project.dart';
import '../integration.shard/test_driver.dart';
import '../integration.shard/test_utils.dart';
import '../src/common.dart';
void main() {
late Directory tempDirectory;
late FlutterRunTestDriver flutter;
setUp(() {
tempDirectory = createResolvedTempDirectorySync('debugger_stepping_test.');
});
testWithoutContext('Web debugger can step over statements', () async {
final WebSteppingProject project = WebSteppingProject();
await project.setUpIn(tempDirectory);
flutter = FlutterRunTestDriver(tempDirectory);
await flutter.run(
withDebugger: true, startPaused: true, chrome: true,
additionalCommandArgs: <String>['--verbose', '--web-renderer=html']);
await flutter.addBreakpoint(project.breakpointUri, project.breakpointLine);
await flutter.resume(waitForNextPause: true); // Now we should be on the breakpoint.
expect((await flutter.getSourceLocation())!.line, equals(project.breakpointLine));
// Issue 5 steps, ensuring that we end up on the annotated lines each time.
for (int i = 1; i <= project.numberOfSteps; i += 1) {
await flutter.stepOverOrOverAsyncSuspension();
final SourcePosition? location = await flutter.getSourceLocation();
final int actualLine = location!.line;
// Get the line we're expected to stop at by searching for the comment
// within the source code.
final int expectedLine = project.lineForStep(i);
expect(actualLine, equals(expectedLine),
reason: 'After $i steps, debugger should stop at $expectedLine but stopped at $actualLine'
);
}
});
tearDown(() async {
await flutter.stop();
tryToDelete(tempDirectory);
});
}
| flutter/packages/flutter_tools/test/web.shard/debugger_stepping_web_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/web.shard/debugger_stepping_web_test.dart",
"repo_id": "flutter",
"token_count": 628
} | 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 'dart:async';
import 'dart:ui' as ui;
import 'platform_location.dart';
export 'platform_location.dart';
/// Callback that receives the new state of the browser history entry.
typedef PopStateListener = void Function(Object? state);
/// Represents and reads route state from the browser's URL.
///
/// By default, the [HashUrlStrategy] subclass is used if the app doesn't
/// specify one.
abstract class UrlStrategy {
/// Abstract const constructor. This constructor enables subclasses to provide
/// const constructors so that they can be used in const expressions.
const UrlStrategy();
/// Adds a listener to the `popstate` event and returns a function that, when
/// invoked, removes the listener.
ui.VoidCallback addPopStateListener(PopStateListener fn) {
// No-op.
return () {};
}
/// Returns the active path in the browser.
String getPath() => '';
/// The state of the current browser history entry.
///
/// See: https://developer.mozilla.org/en-US/docs/Web/API/History/state
Object? getState() => null;
/// Given a path that's internal to the app, create the external url that
/// will be used in the browser.
String prepareExternalUrl(String internalUrl) => '';
/// Push a new history entry.
///
/// See: https://developer.mozilla.org/en-US/docs/Web/API/History/pushState
void pushState(Object? state, String title, String url) {
// No-op.
}
/// Replace the currently active history entry.
///
/// See: https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState
void replaceState(Object? state, String title, String url) {
// No-op.
}
/// Moves forwards or backwards through the history stack.
///
/// A negative [count] value causes a backward move in the history stack. And
/// a positive [count] value causes a forward move.
///
/// Examples:
///
/// * `go(-2)` moves back 2 steps in history.
/// * `go(3)` moves forward 3 steps in history.
///
/// See: https://developer.mozilla.org/en-US/docs/Web/API/History/go
Future<void> go(int count) async {
// No-op.
}
}
/// Returns the present [UrlStrategy] for handling the browser URL.
///
/// In case null is returned, the browser integration has been manually
/// disabled by [setUrlStrategy].
UrlStrategy? get urlStrategy => null;
/// Change the strategy to use for handling browser URL.
///
/// Setting this to null disables all integration with the browser history.
void setUrlStrategy(UrlStrategy? strategy) {
// No-op in non-web platforms.
}
/// Use the [PathUrlStrategy] to handle the browser URL.
void usePathUrlStrategy() {
// No-op in non-web platforms.
}
/// Uses the browser URL's [hash fragments](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax)
/// to represent its state.
///
/// By default, this class is used as the URL strategy for the app. However,
/// this class is still useful for apps that want to extend it.
///
/// In order to use [HashUrlStrategy] for an app, it needs to be set like this:
///
/// ```dart
/// import 'package:flutter_web_plugins/flutter_web_plugins.dart';
///
/// void main() {
/// // Somewhere before calling `runApp()` do:
/// setUrlStrategy(const HashUrlStrategy());
/// }
/// ```
class HashUrlStrategy extends UrlStrategy {
/// Creates an instance of [HashUrlStrategy].
///
/// The [PlatformLocation] parameter is useful for testing to mock out browser
/// integrations.
const HashUrlStrategy([PlatformLocation? _]);
}
/// Uses the browser URL's pathname to represent Flutter's route name.
///
/// In order to use [PathUrlStrategy] for an app, it needs to be set like this:
///
/// ```dart
/// import 'package:flutter_web_plugins/flutter_web_plugins.dart';
///
/// void main() {
/// // Somewhere before calling `runApp()` do:
/// setUrlStrategy(PathUrlStrategy());
/// }
/// ```
class PathUrlStrategy extends HashUrlStrategy {
/// Creates an instance of [PathUrlStrategy].
///
/// The [PlatformLocation] parameter is useful for testing to mock out browser
/// integrations.
const PathUrlStrategy([PlatformLocation? _, bool __ = false,]);
}
| flutter/packages/flutter_web_plugins/lib/src/navigation_non_web/url_strategy.dart/0 | {
"file_path": "flutter/packages/flutter_web_plugins/lib/src/navigation_non_web/url_strategy.dart",
"repo_id": "flutter",
"token_count": 1270
} | 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 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:process/process.dart';
import 'common/logging.dart';
import 'common/network.dart';
import 'dart/dart_vm.dart';
import 'runners/ssh_command_runner.dart';
final String _ipv4Loopback = InternetAddress.loopbackIPv4.address;
final String _ipv6Loopback = InternetAddress.loopbackIPv6.address;
const ProcessManager _processManager = LocalProcessManager();
const Duration _kIsolateFindTimeout = Duration(minutes: 1);
const Duration _kDartVmConnectionTimeout = Duration(seconds: 9);
const Duration _kVmPollInterval = Duration(milliseconds: 1500);
final Logger _log = Logger('FuchsiaRemoteConnection');
/// A function for forwarding ports on the local machine to a remote device.
///
/// Takes a remote `address`, the target device's port, and an optional
/// `interface` and `configFile`. The config file is used primarily for the
/// default SSH port forwarding configuration.
typedef PortForwardingFunction = Future<PortForwarder> Function(
String address,
int remotePort, [
String? interface,
String? configFile,
]);
/// The function for forwarding the local machine's ports to a remote Fuchsia
/// device.
///
/// Can be overwritten in the event that a different method is required.
/// Defaults to using SSH port forwarding.
PortForwardingFunction fuchsiaPortForwardingFunction = _SshPortForwarder.start;
/// Sets [fuchsiaPortForwardingFunction] back to the default SSH port forwarding
/// implementation.
void restoreFuchsiaPortForwardingFunction() {
fuchsiaPortForwardingFunction = _SshPortForwarder.start;
}
/// A general error raised when something fails within a
/// [FuchsiaRemoteConnection].
class FuchsiaRemoteConnectionError extends Error {
/// Basic constructor outlining the reason for the failure in `message`.
FuchsiaRemoteConnectionError(this.message);
/// The reason for the failure.
final String message;
@override
String toString() {
return '$FuchsiaRemoteConnectionError: $message';
}
}
/// An enum specifying a Dart VM's state.
enum DartVmEventType {
/// The Dart VM has started.
started,
/// The Dart VM has stopped.
///
/// This can mean either the host machine cannot be connect to, the VM service
/// has shut down cleanly, or the VM service has crashed.
stopped,
}
/// An event regarding the Dart VM.
///
/// Specifies the type of the event (whether the VM has started or has stopped),
/// and contains the service port of the VM as well as a URL to connect to it.
class DartVmEvent {
DartVmEvent._({required this.eventType, required this.servicePort, required this.uri});
/// The URL used to connect to the Dart VM.
final Uri uri;
/// The type of event regarding this instance of the Dart VM.
final DartVmEventType eventType;
/// The port on the host machine that the Dart VM service is/was running on.
final int servicePort;
}
/// Manages a remote connection to a Fuchsia Device.
///
/// Provides affordances to observe and connect to Flutter views, isolates, and
/// perform actions on the Fuchsia device's various VM services.
///
/// This class can be connected to several instances of the Fuchsia device's
/// Dart VM at any given time.
class FuchsiaRemoteConnection {
FuchsiaRemoteConnection._(this._useIpV6, this._sshCommandRunner)
: _pollDartVms = false;
bool _pollDartVms;
final List<PortForwarder> _forwardedVmServicePorts = <PortForwarder>[];
final SshCommandRunner _sshCommandRunner;
final bool _useIpV6;
/// A mapping of Dart VM ports (as seen on the target machine), to
/// [PortForwarder] instances mapping from the local machine to the target
/// machine.
final Map<int, PortForwarder> _dartVmPortMap = <int, PortForwarder>{};
/// Tracks stale ports so as not to reconnect while polling.
final Set<int> _stalePorts = <int>{};
/// A broadcast stream that emits events relating to Dart VM's as they update.
Stream<DartVmEvent> get onDartVmEvent => _onDartVmEvent;
late Stream<DartVmEvent> _onDartVmEvent;
final StreamController<DartVmEvent> _dartVmEventController =
StreamController<DartVmEvent>();
/// VM service cache to avoid repeating handshakes across function
/// calls. Keys a URI to a DartVm connection instance.
final Map<Uri, DartVm?> _dartVmCache = <Uri, DartVm?>{};
/// Same as [FuchsiaRemoteConnection.connect] albeit with a provided
/// [SshCommandRunner] instance.
static Future<FuchsiaRemoteConnection> connectWithSshCommandRunner(SshCommandRunner commandRunner) async {
final FuchsiaRemoteConnection connection = FuchsiaRemoteConnection._(
isIpV6Address(commandRunner.address), commandRunner);
await connection._forwardOpenPortsToDeviceServicePorts();
Stream<DartVmEvent> dartVmStream() {
Future<void> listen() async {
while (connection._pollDartVms) {
await connection._pollVms();
await Future<void>.delayed(_kVmPollInterval);
}
connection._dartVmEventController.close();
}
connection._dartVmEventController.onListen = listen;
return connection._dartVmEventController.stream.asBroadcastStream();
}
connection._onDartVmEvent = dartVmStream();
return connection;
}
/// Opens a connection to a Fuchsia device.
///
/// Accepts an `address` to a Fuchsia device, and optionally a `sshConfigPath`
/// in order to open the associated ssh_config for port forwarding.
///
/// Will throw an [ArgumentError] if `address` is malformed.
///
/// Once this function is called, the instance of [FuchsiaRemoteConnection]
/// returned will keep all associated DartVM connections opened over the
/// lifetime of the object.
///
/// At its current state Dart VM connections will not be added or removed over
/// the lifetime of this object.
///
/// Throws an [ArgumentError] if the supplied `address` is not valid IPv6 or
/// IPv4.
///
/// If `address` is IPv6 link local (usually starts with `fe80::`), then
/// `interface` will probably need to be set in order to connect successfully
/// (that being the outgoing interface of your machine, not the interface on
/// the target machine).
///
/// Attempts to set `address` via the environment variable
/// `FUCHSIA_DEVICE_URL` in the event that the argument is not passed.
/// If `address` is not supplied, `interface` is also ignored, as the format
/// is expected to contain the interface as well (in the event that it is
/// link-local), like the following:
///
/// ```
/// fe80::1%eth0
/// ```
///
/// In the event that `FUCHSIA_SSH_CONFIG` is set in the environment, that
/// will be used when `sshConfigPath` isn't supplied.
static Future<FuchsiaRemoteConnection> connect([
String? address,
String interface = '',
String? sshConfigPath,
]) async {
address ??= Platform.environment['FUCHSIA_DEVICE_URL'];
sshConfigPath ??= Platform.environment['FUCHSIA_SSH_CONFIG'];
if (address == null) {
throw FuchsiaRemoteConnectionError(
r'No address supplied, and $FUCHSIA_DEVICE_URL not found.');
}
const String interfaceDelimiter = '%';
if (address.contains(interfaceDelimiter)) {
final List<String> addressAndInterface =
address.split(interfaceDelimiter);
address = addressAndInterface[0];
interface = addressAndInterface[1];
}
return FuchsiaRemoteConnection.connectWithSshCommandRunner(
SshCommandRunner(
address: address,
interface: interface,
sshConfigPath: sshConfigPath,
),
);
}
/// Closes all open connections.
///
/// Any objects that this class returns (including any child objects from
/// those objects) will subsequently have its connection closed as well, so
/// behavior for them will be undefined.
Future<void> stop() async {
for (final PortForwarder pf in _forwardedVmServicePorts) {
// Closes VM service first to ensure that the connection is closed cleanly
// on the target before shutting down the forwarding itself.
final Uri uri = _getDartVmUri(pf);
final DartVm? vmService = _dartVmCache[uri];
_dartVmCache[uri] = null;
await vmService?.stop();
await pf.stop();
}
for (final PortForwarder pf in _dartVmPortMap.values) {
final Uri uri = _getDartVmUri(pf);
final DartVm? vmService = _dartVmCache[uri];
_dartVmCache[uri] = null;
await vmService?.stop();
await pf.stop();
}
_dartVmCache.clear();
_forwardedVmServicePorts.clear();
_dartVmPortMap.clear();
_pollDartVms = false;
}
/// Helper method for [getMainIsolatesByPattern].
///
/// Called when either there are no Isolates that exist that match
/// `pattern`, or there are not yet any active Dart VM's on the system
/// (possible when the Isolate we're attempting to connect to is in the only
/// instance of the Dart VM and its service port has not yet opened).
Future<List<IsolateRef>> _waitForMainIsolatesByPattern([
Pattern? pattern,
Duration timeout = _kIsolateFindTimeout,
Duration vmConnectionTimeout = _kDartVmConnectionTimeout,
]) async {
final Completer<List<IsolateRef>> completer = Completer<List<IsolateRef>>();
_onDartVmEvent.listen(
(DartVmEvent event) async {
if (event.eventType == DartVmEventType.started) {
_log.fine('New VM found on port: ${event.servicePort}. Searching '
'for Isolate: $pattern');
final DartVm? vmService = await _getDartVm(event.uri);
// If the VM service is null, set the result to the empty list.
final List<IsolateRef> result = await vmService?.getMainIsolatesByPattern(pattern!) ?? <IsolateRef>[];
if (result.isNotEmpty) {
if (!completer.isCompleted) {
completer.complete(result);
} else {
_log.warning('Found more than one Dart VM containing Isolates '
'that match the pattern "$pattern".');
}
}
}
},
onDone: () {
if (!completer.isCompleted) {
_log.warning('Terminating isolate search for "$pattern"'
' before timeout reached.');
}
},
);
return completer.future.timeout(timeout);
}
/// Returns all Isolates running `main()` as matched by the [Pattern].
///
/// If there are no live Dart VM's or the Isolate cannot be found, waits until
/// either `timeout` is reached, or a Dart VM starts up with a name that
/// matches `pattern`.
Future<List<IsolateRef>> getMainIsolatesByPattern(
Pattern pattern, {
Duration timeout = _kIsolateFindTimeout,
Duration vmConnectionTimeout = _kDartVmConnectionTimeout,
}) async {
// If for some reason there are no Dart VM's that are alive, wait for one to
// start with the Isolate in question.
if (_dartVmPortMap.isEmpty) {
_log.fine('No live Dart VMs found. Awaiting new VM startup');
return _waitForMainIsolatesByPattern(
pattern, timeout, vmConnectionTimeout);
}
// Accumulate a list of eventual IsolateRef lists so that they can be loaded
// simultaneously via Future.wait.
final List<Future<List<IsolateRef>>> isolates =
<Future<List<IsolateRef>>>[];
for (final PortForwarder fp in _dartVmPortMap.values) {
final DartVm? vmService =
await _getDartVm(_getDartVmUri(fp), timeout: vmConnectionTimeout);
if (vmService == null) {
continue;
}
isolates.add(vmService.getMainIsolatesByPattern(pattern));
}
final List<IsolateRef> result =
await Future.wait<List<IsolateRef>>(isolates)
.timeout(timeout)
.then<List<IsolateRef>>((List<List<IsolateRef>> listOfLists) {
final List<List<IsolateRef>> mutableListOfLists =
List<List<IsolateRef>>.from(listOfLists)
..retainWhere((List<IsolateRef> list) => list.isNotEmpty);
// Folds the list of lists into one flat list.
return mutableListOfLists.fold<List<IsolateRef>>(
<IsolateRef>[],
(List<IsolateRef> accumulator, List<IsolateRef> element) {
accumulator.addAll(element);
return accumulator;
},
);
});
// If no VM instance anywhere has this, it's possible it hasn't spun up
// anywhere.
//
// For the time being one Flutter Isolate runs at a time in each VM, so for
// now this will wait until the timer runs out or a new Dart VM starts that
// contains the Isolate in question.
//
// TODO(awdavies): Set this up to handle multiple Isolates per Dart VM.
if (result.isEmpty) {
_log.fine('No instance of the Isolate found. Awaiting new VM startup');
return _waitForMainIsolatesByPattern(
pattern, timeout, vmConnectionTimeout);
}
return result;
}
/// Returns a list of [FlutterView] objects.
///
/// This is run across all connected Dart VM connections that this class is
/// managing.
Future<List<FlutterView>> getFlutterViews() async {
if (_dartVmPortMap.isEmpty) {
return <FlutterView>[];
}
final List<List<FlutterView>> flutterViewLists =
await _invokeForAllVms<List<FlutterView>>((DartVm vmService) async {
return vmService.getAllFlutterViews();
});
final List<FlutterView> results = flutterViewLists.fold<List<FlutterView>>(
<FlutterView>[], (List<FlutterView> acc, List<FlutterView> element) {
acc.addAll(element);
return acc;
});
return List<FlutterView>.unmodifiable(results);
}
// Calls all Dart VM's, returning a list of results.
//
// A side effect of this function is that internally tracked port forwarding
// will be updated in the event that ports are found to be broken/stale: they
// will be shut down and removed from tracking.
Future<List<E>> _invokeForAllVms<E>(
Future<E> Function(DartVm vmService) vmFunction, [
bool queueEvents = true,
]) async {
final List<E> result = <E>[];
// Helper function loop.
Future<void> shutDownPortForwarder(PortForwarder pf) async {
await pf.stop();
_stalePorts.add(pf.remotePort);
if (queueEvents) {
_dartVmEventController.add(DartVmEvent._(
eventType: DartVmEventType.stopped,
servicePort: pf.remotePort,
uri: _getDartVmUri(pf),
));
}
}
for (final PortForwarder pf in _dartVmPortMap.values) {
final DartVm? service = await _getDartVm(_getDartVmUri(pf));
if (service == null) {
await shutDownPortForwarder(pf);
} else {
result.add(await vmFunction(service));
}
}
_stalePorts.forEach(_dartVmPortMap.remove);
return result;
}
Uri _getDartVmUri(PortForwarder pf) {
String? addr;
if (pf.openPortAddress == null) {
addr = _useIpV6 ? '[$_ipv6Loopback]' : _ipv4Loopback;
} else {
addr = isIpV6Address(pf.openPortAddress!)
? '[${pf.openPortAddress}]'
: pf.openPortAddress;
}
final Uri uri = Uri.http('$addr:${pf.port}', '/');
return uri;
}
/// Attempts to create a connection to a Dart VM.
///
/// Returns null if either there is an [HttpException] or a
/// [TimeoutException], else a [DartVm] instance.
Future<DartVm?> _getDartVm(
Uri uri, {
Duration timeout = _kDartVmConnectionTimeout,
}) async {
if (!_dartVmCache.containsKey(uri)) {
// When raising an HttpException this means that there is no instance of
// the Dart VM to communicate with. The TimeoutException is raised when
// the Dart VM instance is shut down in the middle of communicating.
try {
final DartVm dartVm = await DartVm.connect(uri, timeout: timeout);
_dartVmCache[uri] = dartVm;
} on HttpException {
_log.warning('HTTP Exception encountered connecting to new VM');
return null;
} on TimeoutException {
_log.warning('TimeoutException encountered connecting to new VM');
return null;
}
}
return _dartVmCache[uri];
}
/// Checks for changes in the list of Dart VM instances.
///
/// If there are new instances of the Dart VM, then connections will be
/// attempted (after clearing out stale connections).
Future<void> _pollVms() async {
await _checkPorts();
final List<int> servicePorts = await getDeviceServicePorts();
for (final int servicePort in servicePorts) {
if (!_stalePorts.contains(servicePort) &&
!_dartVmPortMap.containsKey(servicePort)) {
_dartVmPortMap[servicePort] = await fuchsiaPortForwardingFunction(
_sshCommandRunner.address,
servicePort,
_sshCommandRunner.interface,
_sshCommandRunner.sshConfigPath);
_dartVmEventController.add(DartVmEvent._(
eventType: DartVmEventType.started,
servicePort: servicePort,
uri: _getDartVmUri(_dartVmPortMap[servicePort]!),
));
}
}
}
/// Runs a dummy heartbeat command on all Dart VM instances.
///
/// Removes any failing ports from the cache.
Future<void> _checkPorts([ bool queueEvents = true ]) async {
// Filters out stale ports after connecting. Ignores results.
await _invokeForAllVms<void>(
(DartVm vmService) async {
await vmService.ping();
},
queueEvents,
);
}
/// Forwards a series of open ports to the remote device.
///
/// When this function is run, all existing forwarded ports and connections
/// are reset by way of [stop].
Future<void> _forwardOpenPortsToDeviceServicePorts() async {
await stop();
final List<int> servicePorts = await getDeviceServicePorts();
final List<PortForwarder?> forwardedVmServicePorts =
await Future.wait<PortForwarder?>(
servicePorts.map<Future<PortForwarder?>>((int deviceServicePort) {
return fuchsiaPortForwardingFunction(
_sshCommandRunner.address,
deviceServicePort,
_sshCommandRunner.interface,
_sshCommandRunner.sshConfigPath);
}));
for (final PortForwarder? pf in forwardedVmServicePorts) {
// TODO(awdavies): Handle duplicates.
_dartVmPortMap[pf!.remotePort] = pf;
}
// Don't queue events, since this is the initial forwarding.
await _checkPorts(false);
_pollDartVms = true;
}
/// Helper for getDeviceServicePorts() to extract the vm_service_port from
/// json response.
List<int> getVmServicePortFromInspectSnapshot(dynamic inspectSnapshot) {
final List<Map<String, dynamic>> snapshot =
List<Map<String, dynamic>>.from(inspectSnapshot as List<dynamic>);
final List<int> ports = <int>[];
for (final Map<String, dynamic> item in snapshot) {
if (!item.containsKey('payload') || item['payload'] == null) {
continue;
}
final Map<String, dynamic> payload =
Map<String, dynamic>.from(item['payload'] as Map<String, dynamic>);
if (!payload.containsKey('root') || payload['root'] == null) {
continue;
}
final Map<String, dynamic> root =
Map<String, dynamic>.from(payload['root'] as Map<String, dynamic>);
if (!root.containsKey('vm_service_port') ||
root['vm_service_port'] == null) {
continue;
}
final int? port = int.tryParse(root['vm_service_port'] as String);
if (port != null) {
ports.add(port);
}
}
return ports;
}
/// Gets the open Dart VM service ports on a remote Fuchsia device.
///
/// The method attempts to get service ports through an SSH connection. Upon
/// successfully getting the VM service ports, returns them as a list of
/// integers. If an empty list is returned, then no Dart VM instances could be
/// found. An exception is thrown in the event of an actual error when
/// attempting to acquire the ports.
Future<List<int>> getDeviceServicePorts() async {
final List<String> inspectResult = await _sshCommandRunner
.run("iquery --format json show '**:root:vm_service_port'");
final dynamic inspectOutputJson = jsonDecode(inspectResult.join('\n'));
final List<int> ports =
getVmServicePortFromInspectSnapshot(inspectOutputJson);
if (ports.length > 1) {
throw StateError('More than one Flutter observatory port found');
}
return ports;
}
}
/// Defines an interface for port forwarding.
///
/// When a port forwarder is initialized, it is intended to save a port through
/// which a connection is persisted along the lifetime of this object.
///
/// To shut down a port forwarder you must call the [stop] function.
abstract class PortForwarder {
/// Determines the port which is being forwarded.
int get port;
/// The address on which the open port is accessible. Defaults to null to
/// indicate local loopback.
String? get openPortAddress => null;
/// The destination port on the other end of the port forwarding tunnel.
int get remotePort;
/// Shuts down and cleans up port forwarding.
Future<void> stop();
}
/// Instances of this class represent a running SSH tunnel.
///
/// The SSH tunnel is from the host to a VM service running on a Fuchsia device.
class _SshPortForwarder implements PortForwarder {
_SshPortForwarder._(
this._remoteAddress,
this._remotePort,
this._localSocket,
this._interface,
this._sshConfigPath,
this._ipV6,
);
final String _remoteAddress;
final int _remotePort;
final ServerSocket _localSocket;
final String? _sshConfigPath;
final String? _interface;
final bool _ipV6;
@override
int get port => _localSocket.port;
@override
String get openPortAddress => _ipV6 ? _ipv6Loopback : _ipv4Loopback;
@override
int get remotePort => _remotePort;
/// Starts SSH forwarding through a subprocess, and returns an instance of
/// [_SshPortForwarder].
static Future<_SshPortForwarder> start(
String address,
int remotePort, [
String? interface,
String? sshConfigPath,
]) async {
final bool isIpV6 = isIpV6Address(address);
final ServerSocket? localSocket = await _createLocalSocket();
if (localSocket == null || localSocket.port == 0) {
_log.warning('_SshPortForwarder failed to find a local port for '
'$address:$remotePort');
throw StateError('Unable to create a socket or no available ports.');
}
// TODO(awdavies): The square-bracket enclosure for using the IPv6 loopback
// didn't appear to work, but when assigning to the IPv4 loopback device,
// netstat shows that the local port is actually being used on the IPv6
// loopback (::1). Therefore, while the IPv4 loopback can be used for
// forwarding to the destination IPv6 interface, when connecting to the
// websocket, the IPV6 loopback should be used.
final String formattedForwardingUrl =
'${localSocket.port}:$_ipv4Loopback:$remotePort';
final String targetAddress =
isIpV6 && interface!.isNotEmpty ? '$address%$interface' : address;
const String dummyRemoteCommand = 'true';
final List<String> command = <String>[
'ssh',
if (isIpV6) '-6',
if (sshConfigPath != null)
...<String>['-F', sshConfigPath],
'-nNT',
'-f',
'-L',
formattedForwardingUrl,
targetAddress,
dummyRemoteCommand,
];
_log.fine("_SshPortForwarder running '${command.join(' ')}'");
// Must await for the port forwarding function to completer here, as
// forwarding must be completed before surfacing VM events (as the user may
// want to connect immediately after an event is surfaced).
final ProcessResult processResult = await _processManager.run(command);
_log.fine("'${command.join(' ')}' exited with exit code "
'${processResult.exitCode}');
if (processResult.exitCode != 0) {
throw StateError('Unable to start port forwarding');
}
final _SshPortForwarder result = _SshPortForwarder._(
address, remotePort, localSocket, interface, sshConfigPath, isIpV6);
_log.fine('Set up forwarding from ${localSocket.port} '
'to $address port $remotePort');
return result;
}
/// Kills the SSH forwarding command, then to ensure no ports are forwarded,
/// runs the SSH 'cancel' command to shut down port forwarding completely.
@override
Future<void> stop() async {
// Cancel the forwarding request. See [start] for commentary about why this
// uses the IPv4 loopback.
final String formattedForwardingUrl =
'${_localSocket.port}:$_ipv4Loopback:$_remotePort';
final String targetAddress = _ipV6 && _interface!.isNotEmpty
? '$_remoteAddress%$_interface'
: _remoteAddress;
final String? sshConfigPath = _sshConfigPath;
final List<String> command = <String>[
'ssh',
if (sshConfigPath != null)
...<String>['-F', sshConfigPath],
'-O',
'cancel',
'-L',
formattedForwardingUrl,
targetAddress,
];
_log.fine(
'Shutting down SSH forwarding with command: ${command.join(' ')}');
final ProcessResult result = await _processManager.run(command);
if (result.exitCode != 0) {
_log.warning('Command failed:\nstdout: ${result.stdout}'
'\nstderr: ${result.stderr}');
}
_localSocket.close();
}
/// Attempts to find an available port.
///
/// If successful returns a valid [ServerSocket] (which must be disconnected
/// later).
static Future<ServerSocket?> _createLocalSocket() async {
try {
return await ServerSocket.bind(_ipv4Loopback, 0);
} catch (e) {
// We should not be catching all errors arbitrarily here, this might hide real errors.
// TODO(ianh): Determine which exceptions to catch here.
_log.warning('_createLocalSocket failed: $e');
return null;
}
}
}
| flutter/packages/fuchsia_remote_debug_protocol/lib/src/fuchsia_remote_connection.dart/0 | {
"file_path": "flutter/packages/fuchsia_remote_debug_protocol/lib/src/fuchsia_remote_connection.dart",
"repo_id": "flutter",
"token_count": 9157
} | 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.
package dev.flutter.plugins.integration_test;
import android.annotation.TargetApi;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.os.Build;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
import android.view.Choreographer;
import android.view.PixelCopy;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
import io.flutter.embedding.android.FlutterActivity;
import io.flutter.embedding.android.FlutterFragment;
import io.flutter.embedding.android.FlutterFragmentActivity;
import io.flutter.embedding.android.FlutterSurfaceView;
import io.flutter.embedding.android.FlutterView;
import io.flutter.plugin.common.MethodChannel;
import io.flutter.plugin.common.MethodChannel.Result;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.lang.StringBuilder;
/**
* FlutterDeviceScreenshot is a utility class that allows to capture a screenshot
* that includes both Android views and the Flutter UI.
*
* To take screenshots, the rendering surface must be changed to {@code FlutterImageView},
* since surfaces like {@code FlutterSurfaceView} and {@code FlutterTextureView} are opaque
* when the view hierarchy is rendered to a bitmap.
*
* It's also necessary to ask the framework to schedule a frame, and then add a listener
* that waits for that frame to be presented by the Android framework.
*/
@TargetApi(19)
class FlutterDeviceScreenshot {
/**
* Finds the {@code FlutterView} added to the {@code activity} view hierarchy.
*
* <p> This assumes that there's only one {@code FlutterView} per activity, which
* is always the case.
*
* @param activity typically, {code FlutterActivity}.
* @return the Flutter view.
*/
@Nullable
@VisibleForTesting
public static FlutterView getFlutterView(@NonNull Activity activity) {
if (activity instanceof FlutterActivity) {
return (FlutterView)activity.findViewById(FlutterActivity.FLUTTER_VIEW_ID);
} else if (activity instanceof FlutterFragmentActivity) {
return (FlutterView)activity.findViewById(FlutterFragment.FLUTTER_VIEW_ID);
} else {
return null;
}
}
/**
* Whether the app is run with instrumentation.
*
* @return true if the app is running with instrumentation.
*/
static boolean hasInstrumentation() {
// TODO(egarciad): InstrumentationRegistry requires the uiautomator dependency.
// However, Flutter adds test dependencies to release builds.
// As a result, disable screenshots with instrumentation until the issue is fixed.
// https://github.com/flutter/flutter/issues/56591
return false;
}
/**
* Captures a screenshot using ui automation.
*
* @return byte array containing the screenshot.
*/
static byte[] captureWithUiAutomation() throws IOException {
return new byte[0];
}
// Whether the flutter surface is already converted to an image.
private static boolean flutterSurfaceConvertedToImage = false;
/**
* Converts the Flutter surface to an image view.
* This allows to render the view hierarchy to a bitmap since
* {@code FlutterSurfaceView} and {@code FlutterTextureView} cannot be rendered to a bitmap.
*
* @param activity typically {@code FlutterActivity}.
*/
static void convertFlutterSurfaceToImage(@NonNull Activity activity) {
final FlutterView flutterView = getFlutterView(activity);
if (flutterView != null && !flutterSurfaceConvertedToImage) {
flutterView.convertToImageView();
flutterSurfaceConvertedToImage = true;
}
}
/**
* Restores the original Flutter surface.
* The new surface will either be {@code FlutterSurfaceView} or {@code FlutterTextureView}.
*
* @param activity typically {@code FlutterActivity}.
*/
static void revertFlutterImage(@NonNull Activity activity) {
final FlutterView flutterView = getFlutterView(activity);
if (flutterView != null && flutterSurfaceConvertedToImage) {
flutterView.revertImageView(() -> {
flutterSurfaceConvertedToImage = false;
});
}
}
// Handlers used to capture a view.
private static Handler backgroundHandler;
private static Handler mainHandler;
/**
* Captures a screenshot by drawing the view to a Canvas.
*
* <p> {@code convertFlutterSurfaceToImage} must be called prior to capturing the view,
* otherwise the result is an error.
*
* @param activity this is {@link FlutterActivity}.
* @param methodChannel the method channel to call into Dart.
* @param result the result for the method channel that will contain the byte array.
*/
static void captureView(
@NonNull Activity activity, @NonNull MethodChannel methodChannel, @NonNull Result result) {
final FlutterView flutterView = getFlutterView(activity);
if (flutterView == null) {
result.error("Could not copy the pixels", "FlutterView is null", null);
return;
}
if (!flutterSurfaceConvertedToImage) {
result.error("Could not copy the pixels", "Flutter surface must be converted to image first", null);
return;
}
// Ask the framework to schedule a new frame.
methodChannel.invokeMethod("scheduleFrame", null);
if (backgroundHandler == null) {
final HandlerThread screenshotBackgroundThread = new HandlerThread("screenshot");
screenshotBackgroundThread.start();
backgroundHandler = new Handler(screenshotBackgroundThread.getLooper());
}
if (mainHandler == null) {
mainHandler = new Handler(Looper.getMainLooper());
}
takeScreenshot(backgroundHandler, mainHandler, flutterView, result);
}
/**
* Waits for the next Android frame.
*
* @param r a callback.
*/
private static void waitForAndroidFrame(Runnable r) {
Choreographer.getInstance()
.postFrameCallback(
new Choreographer.FrameCallback() {
@Override
public void doFrame(long frameTimeNanos) {
r.run();
}
});
}
/**
* Waits until a Flutter frame is rendered by the Android OS.
*
* @param backgroundHandler the handler associated to a background thread.
* @param mainHandler the handler associated to the platform thread.
* @param view the flutter view.
* @param result the result that contains the byte array.
*/
private static void takeScreenshot(
@NonNull Handler backgroundHandler,
@NonNull Handler mainHandler,
@NonNull FlutterView view,
@NonNull Result result) {
final boolean acquired = view.acquireLatestImageViewFrame();
// The next frame may already have already been committed.
// The next frame is guaranteed to have the Flutter image.
waitForAndroidFrame(
() -> {
waitForAndroidFrame(
() -> {
if (acquired) {
FlutterDeviceScreenshot.convertViewToBitmap(view, result, backgroundHandler);
} else {
takeScreenshot(backgroundHandler, mainHandler, view, result);
}
});
});
}
/**
* Renders {@code FlutterView} to a Bitmap.
*
* If successful, The byte array is provided in the result.
*
* @param flutterView the Flutter view.
* @param result the result that contains the byte array.
* @param backgroundHandler a background handler to avoid blocking the platform thread.
*/
private static void convertViewToBitmap(
@NonNull FlutterView flutterView, @NonNull Result result, @NonNull Handler backgroundHandler) {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
final Bitmap bitmap =
Bitmap.createBitmap(
flutterView.getWidth(), flutterView.getHeight(), Bitmap.Config.RGB_565);
final Canvas canvas = new Canvas(bitmap);
flutterView.draw(canvas);
final ByteArrayOutputStream output = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.PNG, /*quality=*/ 100, output);
result.success(output.toByteArray());
return;
}
final Bitmap bitmap =
Bitmap.createBitmap(
flutterView.getWidth(), flutterView.getHeight(), Bitmap.Config.ARGB_8888);
final int[] flutterViewLocation = new int[2];
flutterView.getLocationInWindow(flutterViewLocation);
final int flutterViewLeft = flutterViewLocation[0];
final int flutterViewTop = flutterViewLocation[1];
final Rect flutterViewRect =
new Rect(
flutterViewLeft,
flutterViewTop,
flutterViewLeft + flutterView.getWidth(),
flutterViewTop + flutterView.getHeight());
final Activity flutterActivity = (Activity) flutterView.getContext();
PixelCopy.request(
flutterActivity.getWindow(),
flutterViewRect,
bitmap,
(int copyResult) -> {
final Handler mainHandler = new Handler(Looper.getMainLooper());
if (copyResult == PixelCopy.SUCCESS) {
final ByteArrayOutputStream output = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.PNG, /*quality=*/ 100, output);
mainHandler.post(
() -> {
result.success(output.toByteArray());
});
} else {
mainHandler.post(
() -> {
result.error("Could not copy the pixels", "result was " + copyResult, null);
});
}
},
backgroundHandler);
}
}
| flutter/packages/integration_test/android/src/main/java/dev/flutter/plugins/integration_test/FlutterDeviceScreenshot.java/0 | {
"file_path": "flutter/packages/integration_test/android/src/main/java/dev/flutter/plugins/integration_test/FlutterDeviceScreenshot.java",
"repo_id": "flutter",
"token_count": 3402
} | 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.
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility that Flutter provides. 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.
import 'dart:html' as html;
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'package:integration_test_example/main.dart' as app;
void main() {
final IntegrationTestWidgetsFlutterBinding binding =
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
testWidgets('verify text', (WidgetTester tester) async {
// Build our app and trigger a frame.
app.main();
// Trigger a frame.
await tester.pumpAndSettle();
// Take a screenshot.
await binding.takeScreenshot(
'platform_name',
// The optional parameter 'args' can be used to pass values to the
// [integrationDriver.onScreenshot] handler
// (see test_driver/extended_integration_test.dart). For example, you
// could look up environment variables in this test that were passed to
// the run command via `--dart-define=`, and then pass the values to the
// [integrationDriver.onScreenshot] handler through this 'args' map.
<String, Object?>{
'someArgumentKey': 'someArgumentValue',
},
);
// Verify that platform is retrieved.
expect(
find.byWidgetPredicate(
(Widget widget) =>
widget is Text &&
widget.data!
.startsWith('Platform: ${html.window.navigator.platform}\n'),
),
findsOneWidget,
);
});
testWidgets('verify screenshot', (WidgetTester tester) async {
// Build our app and trigger a frame.
app.main();
// Trigger a frame.
await tester.pumpAndSettle();
// Multiple methods can take screenshots. Screenshots are taken with the
// same order the methods run. We pass an argument that can be looked up
// from the [onScreenshot] handler in
// [test_driver/extended_integration_test.dart].
await binding.takeScreenshot(
'platform_name_2',
// The optional parameter 'args' can be used to pass values to the
// [integrationDriver.onScreenshot] handler
// (see test_driver/extended_integration_test.dart). For example, you
// could look up environment variables in this test that were passed to
// the run command via `--dart-define=`, and then pass the values to the
// [integrationDriver.onScreenshot] handler through this 'args' map.
<String, Object?>{
'someArgumentKey': 'someArgumentValue',
},
);
});
}
| flutter/packages/integration_test/example/integration_test/_extended_test_web.dart/0 | {
"file_path": "flutter/packages/integration_test/example/integration_test/_extended_test_web.dart",
"repo_id": "flutter",
"token_count": 999
} | 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 Foundation;
@import ObjectiveC.runtime;
NS_ASSUME_NONNULL_BEGIN
DEPRECATED_MSG_ATTRIBUTE("Use FLTIntegrationTestRunner instead.")
@interface IntegrationTestIosTest : NSObject
/**
* Initiate dart tests and wait for results. @c testResult will be set to a string describing the results.
*
* @return @c YES if all tests succeeded.
*/
- (BOOL)testIntegrationTest:(NSString *_Nullable *_Nullable)testResult;
@end
// For every Flutter dart test, dynamically generate an Objective-C method mirroring the test results
// so it is reported as a native XCTest run result.
// If the Flutter dart tests have captured screenshots, add them to the XCTest bundle.
#define INTEGRATION_TEST_IOS_RUNNER(__test_class) \
@interface __test_class : XCTestCase \
@end \
\
@implementation __test_class \
\
+ (NSArray<NSInvocation *> *)testInvocations { \
FLTIntegrationTestRunner *integrationTestRunner = [[FLTIntegrationTestRunner alloc] init]; \
NSMutableArray<NSInvocation *> *testInvocations = [[NSMutableArray alloc] init]; \
[integrationTestRunner testIntegrationTestWithResults:^(SEL testSelector, BOOL success, NSString *failureMessage) { \
IMP assertImplementation = imp_implementationWithBlock(^(id _self) { \
XCTAssertTrue(success, @"%@", failureMessage); \
}); \
class_addMethod(self, testSelector, assertImplementation, "v@:"); \
NSMethodSignature *signature = [self instanceMethodSignatureForSelector:testSelector]; \
NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:signature]; \
invocation.selector = testSelector; \
[testInvocations addObject:invocation]; \
}]; \
NSDictionary<NSString *, UIImage *> *capturedScreenshotsByName = integrationTestRunner.capturedScreenshotsByName; \
if (capturedScreenshotsByName.count > 0) { \
IMP screenshotImplementation = imp_implementationWithBlock(^(id _self) { \
[capturedScreenshotsByName enumerateKeysAndObjectsUsingBlock:^(NSString *name, UIImage *screenshot, BOOL *stop) { \
XCTAttachment *attachment = [XCTAttachment attachmentWithImage:screenshot]; \
attachment.lifetime = XCTAttachmentLifetimeKeepAlways; \
if (name != nil) { \
attachment.name = name; \
} \
[_self addAttachment:attachment]; \
}]; \
}); \
SEL attachmentSelector = NSSelectorFromString(@"screenshotPlaceholder"); \
class_addMethod(self, attachmentSelector, screenshotImplementation, "v@:"); \
NSMethodSignature *attachmentSignature = [self instanceMethodSignatureForSelector:attachmentSelector]; \
NSInvocation *attachmentInvocation = [NSInvocation invocationWithMethodSignature:attachmentSignature]; \
attachmentInvocation.selector = attachmentSelector; \
[testInvocations addObject:attachmentInvocation]; \
} \
return testInvocations; \
} \
\
@end
NS_ASSUME_NONNULL_END
| flutter/packages/integration_test/ios/Classes/IntegrationTestIosTest.h/0 | {
"file_path": "flutter/packages/integration_test/ios/Classes/IntegrationTestIosTest.h",
"repo_id": "flutter",
"token_count": 2786
} | 830 |
name: analog_clock
description: Analog clock.
version: 1.0.0+1
environment:
sdk: ">=2.1.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
flutter_clock_helper:
path: ../flutter_clock_helper
cupertino_icons: ^0.1.2
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
| flutter_clock/analog_clock/pubspec.yaml/0 | {
"file_path": "flutter_clock/analog_clock/pubspec.yaml",
"repo_id": "flutter_clock",
"token_count": 141
} | 831 |
See https://github.com/flutter/gallery/releases. | gallery/CHANGELOG.md/0 | {
"file_path": "gallery/CHANGELOG.md",
"repo_id": "gallery",
"token_count": 15
} | 832 |
# ==============================================================================
# The contents of this file are automatically generated and it is not
# recommended to modify this file manually.
# ==============================================================================
#
# In order to prevent unexpected splitting of deferred apps, this file records
# the last generated set of loading units. It only possible to obtain the final
# configuration of loading units after compilation is complete. This means
# improperly setup deferred imports can only be detected after compilation.
#
# This file allows the build tool to detect any changes in the generated
# loading units. During the next build attempt, loading units in this file are
# compared against the newly generated loading units to check for any new or
# removed loading units. In the case where loading units do not match, the build
# will fail and ask the developer to verify that the `deferred-components`
# configuration in `pubspec.yaml` is correct. Developers should make any
# necessary changes to integrate new and changed loading units or remove no
# longer existing loading units from the configuration. The build command should
# then be re-run to continue the build process.
#
# Sometimes, changes to the generated loading units may be unintentional. If
# the list of loading units in this file is not what is expected, the app's
# deferred imports should be reviewed. Third party plugins and packages may
# also introduce deferred imports that result in unexpected loading units.
loading-units:
- id: 2
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_af.dart
- id: 3
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_am.dart
- id: 4
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_ar.dart
- id: 5
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_as.dart
- id: 6
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_az.dart
- id: 7
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_be.dart
- id: 8
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_bg.dart
- id: 9
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_bn.dart
- id: 10
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_bs.dart
- id: 11
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_ca.dart
- id: 12
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_cs.dart
- id: 13
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_cy.dart
- id: 14
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_da.dart
- id: 15
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_de.dart
- id: 16
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_el.dart
- id: 17
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_es.dart
- id: 18
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_et.dart
- id: 19
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_eu.dart
- id: 20
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_fa.dart
- id: 21
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_fi.dart
- id: 22
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_fil.dart
- id: 23
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_fr.dart
- id: 24
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_gl.dart
- id: 25
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_gsw.dart
- id: 26
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_gu.dart
- id: 27
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_he.dart
- id: 28
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_hi.dart
- id: 29
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_hr.dart
- id: 30
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_hu.dart
- id: 31
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_hy.dart
- id: 32
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_id.dart
- id: 33
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_is.dart
- id: 34
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_it.dart
- id: 35
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_ja.dart
- id: 36
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_ka.dart
- id: 37
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_kk.dart
- id: 38
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_km.dart
- id: 39
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_kn.dart
- id: 40
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_ko.dart
- id: 41
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_ky.dart
- id: 42
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_lo.dart
- id: 43
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_lt.dart
- id: 44
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_lv.dart
- id: 45
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_mk.dart
- id: 46
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_ml.dart
- id: 47
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_mn.dart
- id: 48
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_mr.dart
- id: 49
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_ms.dart
- id: 50
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_my.dart
- id: 51
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_nb.dart
- id: 52
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_ne.dart
- id: 53
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_nl.dart
- id: 54
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_or.dart
- id: 55
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_pa.dart
- id: 56
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_pl.dart
- id: 57
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_pt.dart
- id: 58
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_ro.dart
- id: 59
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_ru.dart
- id: 60
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_si.dart
- id: 61
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_sk.dart
- id: 62
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_sl.dart
- id: 63
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_sq.dart
- id: 64
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_sr.dart
- id: 65
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_sv.dart
- id: 66
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_sw.dart
- id: 67
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_ta.dart
- id: 68
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_te.dart
- id: 69
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_th.dart
- id: 70
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_tl.dart
- id: 71
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_tr.dart
- id: 72
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_uk.dart
- id: 73
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_ur.dart
- id: 74
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_uz.dart
- id: 75
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_vi.dart
- id: 76
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_zh.dart
- id: 77
libraries:
- package:flutter_gen/gen_l10n/gallery_localizations_zu.dart
- id: 78
libraries:
- package:gallery/studies/crane/app.dart
- package:gallery/studies/crane/backdrop.dart
- package:gallery/studies/crane/eat_form.dart
- package:gallery/studies/crane/fly_form.dart
- package:gallery/studies/crane/sleep_form.dart
- package:gallery/studies/crane/theme.dart
- package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart
- package:gallery/studies/crane/backlayer.dart
- package:gallery/studies/crane/border_tab_indicator.dart
- package:gallery/studies/crane/header_form.dart
- package:gallery/studies/crane/item_cards.dart
- package:gallery/studies/crane/model/data.dart
- package:gallery/studies/crane/model/destination.dart
- package:flutter_staggered_grid_view/src/layouts/quilted.dart
- package:flutter_staggered_grid_view/src/layouts/staired.dart
- package:flutter_staggered_grid_view/src/layouts/woven.dart
- package:flutter_staggered_grid_view/src/rendering/sliver_masonry_grid.dart
- package:flutter_staggered_grid_view/src/rendering/sliver_simple_grid_delegate.dart
- package:flutter_staggered_grid_view/src/widgets/aligned_grid_view.dart
- package:flutter_staggered_grid_view/src/widgets/masonry_grid_view.dart
- package:flutter_staggered_grid_view/src/widgets/sliver_aligned_grid.dart
- package:flutter_staggered_grid_view/src/widgets/sliver_masonry_grid.dart
- package:flutter_staggered_grid_view/src/widgets/staggered_grid.dart
- package:flutter_staggered_grid_view/src/widgets/staggered_grid_tile.dart
- package:gallery/layout/highlight_focus.dart
- package:gallery/studies/crane/model/formatters.dart
- package:flutter_staggered_grid_view/src/foundation/extensions.dart
- package:flutter_staggered_grid_view/src/foundation/constants.dart
- package:flutter_staggered_grid_view/src/layouts/sliver_patterned_grid_delegate.dart
- package:flutter_staggered_grid_view/src/widgets/uniform_track.dart
- package:flutter_staggered_grid_view/src/rendering/staggered_grid.dart
- package:flutter_staggered_grid_view/src/rendering/uniform_track.dart
- id: 79
libraries:
- package:gallery/studies/fortnightly/app.dart
- package:gallery/studies/fortnightly/shared.dart
- id: 80
libraries:
- package:gallery/studies/rally/app.dart
- package:gallery/studies/rally/home.dart
- package:gallery/studies/rally/login.dart
- package:gallery/studies/rally/tabs/accounts.dart
- package:gallery/studies/rally/tabs/bills.dart
- package:gallery/studies/rally/tabs/budgets.dart
- package:gallery/studies/rally/tabs/overview.dart
- package:gallery/studies/rally/tabs/settings.dart
- package:gallery/studies/rally/charts/pie_chart.dart
- package:gallery/studies/rally/data.dart
- package:gallery/studies/rally/finance.dart
- package:gallery/studies/rally/tabs/sidebar.dart
- package:gallery/studies/rally/formatters.dart
- package:gallery/studies/rally/charts/line_chart.dart
- package:gallery/studies/rally/charts/vertical_fraction_bar.dart
- id: 81
libraries:
- package:gallery/studies/shrine/app.dart
- package:gallery/studies/shrine/backdrop.dart
- package:gallery/studies/shrine/category_menu_page.dart
- package:gallery/studies/shrine/expanding_bottom_sheet.dart
- package:gallery/studies/shrine/home.dart
- package:gallery/studies/shrine/login.dart
- package:gallery/studies/shrine/model/app_state_model.dart
- package:gallery/studies/shrine/model/product.dart
- package:gallery/studies/shrine/page_status.dart
- package:gallery/studies/shrine/scrim.dart
- package:gallery/studies/shrine/supplemental/layout_cache.dart
- package:gallery/studies/shrine/theme.dart
- package:scoped_model/scoped_model.dart
- package:gallery/studies/shrine/triangle_category_indicator.dart
- package:gallery/studies/shrine/shopping_cart.dart
- package:gallery/studies/shrine/supplemental/asymmetric_view.dart
- package:gallery/studies/shrine/model/products_repository.dart
- package:gallery/studies/shrine/supplemental/cut_corners_border.dart
- package:gallery/studies/shrine/supplemental/balanced_layout.dart
- package:gallery/studies/shrine/supplemental/desktop_product_columns.dart
- package:gallery/studies/shrine/supplemental/product_card.dart
- package:gallery/studies/shrine/supplemental/product_columns.dart
- id: 82
libraries:
- package:gallery/demos/cupertino/cupertino_demos.dart
- package:gallery/demos/cupertino/cupertino_activity_indicator_demo.dart
- package:gallery/demos/cupertino/cupertino_alert_demo.dart
- package:gallery/demos/cupertino/cupertino_button_demo.dart
- package:gallery/demos/cupertino/cupertino_context_menu_demo.dart
- package:gallery/demos/cupertino/cupertino_navigation_bar_demo.dart
- package:gallery/demos/cupertino/cupertino_picker_demo.dart
- package:gallery/demos/cupertino/cupertino_scrollbar_demo.dart
- package:gallery/demos/cupertino/cupertino_search_text_field_demo.dart
- package:gallery/demos/cupertino/cupertino_segmented_control_demo.dart
- package:gallery/demos/cupertino/cupertino_slider_demo.dart
- package:gallery/demos/cupertino/cupertino_switch_demo.dart
- package:gallery/demos/cupertino/cupertino_tab_bar_demo.dart
- package:gallery/demos/cupertino/cupertino_text_field_demo.dart
- id: 83
libraries:
- package:gallery/demos/material/material_demos.dart
- package:gallery/demos/material/app_bar_demo.dart
- package:gallery/demos/material/banner_demo.dart
- package:gallery/demos/material/bottom_app_bar_demo.dart
- package:gallery/demos/material/bottom_navigation_demo.dart
- package:gallery/demos/material/bottom_sheet_demo.dart
- package:gallery/demos/material/button_demo.dart
- package:gallery/demos/material/cards_demo.dart
- package:gallery/demos/material/chip_demo.dart
- package:gallery/demos/material/data_table_demo.dart
- package:gallery/demos/material/dialog_demo.dart
- package:gallery/demos/material/divider_demo.dart
- package:gallery/demos/material/grid_list_demo.dart
- package:gallery/demos/material/list_demo.dart
- package:gallery/demos/material/menu_demo.dart
- package:gallery/demos/material/navigation_drawer.dart
- package:gallery/demos/material/navigation_rail_demo.dart
- package:gallery/demos/material/picker_demo.dart
- package:gallery/demos/material/progress_indicator_demo.dart
- package:gallery/demos/material/selection_controls_demo.dart
- package:gallery/demos/material/sliders_demo.dart
- package:gallery/demos/material/snackbar_demo.dart
- package:gallery/demos/material/tabs_demo.dart
- package:gallery/demos/material/text_field_demo.dart
- package:gallery/demos/material/tooltip_demo.dart
- id: 84
libraries:
- package:gallery/demos/reference/colors_demo.dart
- id: 85
libraries:
- package:gallery/demos/reference/motion_demo_container_transition.dart
- id: 86
libraries:
- package:gallery/demos/reference/transformations_demo.dart
- package:gallery/demos/reference/transformations_demo_board.dart
- package:gallery/demos/reference/transformations_demo_edit_board_point.dart
- package:gallery/demos/reference/transformations_demo_color_picker.dart
- id: 87
libraries:
- package:gallery/demos/reference/two_pane_demo.dart
- id: 88
libraries:
- package:gallery/demos/reference/typography_demo.dart
| gallery/deferred_components_loading_units.yaml/0 | {
"file_path": "gallery/deferred_components_loading_units.yaml",
"repo_id": "gallery",
"token_count": 6668
} | 833 |
// 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';
import 'package:flutter_gen/gen_l10n/gallery_localizations.dart';
// BEGIN bannerDemo
enum BannerDemoAction {
reset,
showMultipleActions,
showLeading,
}
class BannerDemo extends StatefulWidget {
const BannerDemo({super.key});
@override
State<BannerDemo> createState() => _BannerDemoState();
}
class _BannerDemoState extends State<BannerDemo> with RestorationMixin {
static const _itemCount = 20;
@override
String get restorationId => 'banner_demo';
@override
void restoreState(RestorationBucket? oldBucket, bool initialRestore) {
registerForRestoration(_displayBanner, 'display_banner');
registerForRestoration(_showMultipleActions, 'show_multiple_actions');
registerForRestoration(_showLeading, 'show_leading');
}
final RestorableBool _displayBanner = RestorableBool(true);
final RestorableBool _showMultipleActions = RestorableBool(true);
final RestorableBool _showLeading = RestorableBool(true);
@override
void dispose() {
_displayBanner.dispose();
_showMultipleActions.dispose();
_showLeading.dispose();
super.dispose();
}
void handleDemoAction(BannerDemoAction action) {
setState(() {
switch (action) {
case BannerDemoAction.reset:
_displayBanner.value = true;
_showMultipleActions.value = true;
_showLeading.value = true;
break;
case BannerDemoAction.showMultipleActions:
_showMultipleActions.value = !_showMultipleActions.value;
break;
case BannerDemoAction.showLeading:
_showLeading.value = !_showLeading.value;
break;
}
});
}
@override
Widget build(BuildContext context) {
final colorScheme = Theme.of(context).colorScheme;
final localizations = GalleryLocalizations.of(context)!;
final banner = MaterialBanner(
content: Text(localizations.bannerDemoText),
leading: _showLeading.value
? CircleAvatar(
backgroundColor: colorScheme.primary,
child: Icon(Icons.access_alarm, color: colorScheme.onPrimary),
)
: null,
actions: [
TextButton(
onPressed: () {
setState(() {
_displayBanner.value = false;
});
},
child: Text(localizations.signIn),
),
if (_showMultipleActions.value)
TextButton(
onPressed: () {
setState(() {
_displayBanner.value = false;
});
},
child: Text(localizations.dismiss),
),
],
backgroundColor: colorScheme.background,
);
return Scaffold(
appBar: AppBar(
automaticallyImplyLeading: false,
title: Text(localizations.demoBannerTitle),
actions: [
PopupMenuButton<BannerDemoAction>(
onSelected: handleDemoAction,
itemBuilder: (context) => <PopupMenuEntry<BannerDemoAction>>[
PopupMenuItem<BannerDemoAction>(
value: BannerDemoAction.reset,
child: Text(localizations.bannerDemoResetText),
),
const PopupMenuDivider(),
CheckedPopupMenuItem<BannerDemoAction>(
value: BannerDemoAction.showMultipleActions,
checked: _showMultipleActions.value,
child: Text(localizations.bannerDemoMultipleText),
),
CheckedPopupMenuItem<BannerDemoAction>(
value: BannerDemoAction.showLeading,
checked: _showLeading.value,
child: Text(localizations.bannerDemoLeadingText),
),
],
),
],
),
body: ListView.builder(
restorationId: 'banner_demo_list_view',
itemCount: _displayBanner.value ? _itemCount + 1 : _itemCount,
itemBuilder: (context, index) {
if (index == 0 && _displayBanner.value) {
return banner;
}
return ListTile(
title: Text(
localizations.starterAppDrawerItem(
_displayBanner.value ? index : index + 1),
),
);
},
),
);
}
}
// END
| gallery/lib/demos/material/banner_demo.dart/0 | {
"file_path": "gallery/lib/demos/material/banner_demo.dart",
"repo_id": "gallery",
"token_count": 1993
} | 834 |
// 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';
// BEGIN navRailDemo
class NavRailDemo extends StatefulWidget {
const NavRailDemo({super.key});
@override
State<NavRailDemo> createState() => _NavRailDemoState();
}
class _NavRailDemoState extends State<NavRailDemo> with RestorationMixin {
final RestorableInt _selectedIndex = RestorableInt(0);
@override
String get restorationId => 'nav_rail_demo';
@override
void restoreState(RestorationBucket? oldBucket, bool initialRestore) {
registerForRestoration(_selectedIndex, 'selected_index');
}
@override
void dispose() {
_selectedIndex.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
final localization = GalleryLocalizations.of(context)!;
final destinationFirst = localization.demoNavigationRailFirst;
final destinationSecond = localization.demoNavigationRailSecond;
final destinationThird = localization.demoNavigationRailThird;
final selectedItem = <String>[
destinationFirst,
destinationSecond,
destinationThird
];
return Scaffold(
appBar: AppBar(
title: Text(
localization.demoNavigationRailTitle,
),
),
body: Row(
children: [
NavigationRail(
leading: FloatingActionButton(
onPressed: () {},
tooltip: localization.buttonTextCreate,
child: const Icon(Icons.add),
),
selectedIndex: _selectedIndex.value,
onDestinationSelected: (index) {
setState(() {
_selectedIndex.value = index;
});
},
labelType: NavigationRailLabelType.selected,
destinations: [
NavigationRailDestination(
icon: const Icon(
Icons.favorite_border,
),
selectedIcon: const Icon(
Icons.favorite,
),
label: Text(
destinationFirst,
),
),
NavigationRailDestination(
icon: const Icon(
Icons.bookmark_border,
),
selectedIcon: const Icon(
Icons.book,
),
label: Text(
destinationSecond,
),
),
NavigationRailDestination(
icon: const Icon(
Icons.star_border,
),
selectedIcon: const Icon(
Icons.star,
),
label: Text(
destinationThird,
),
),
],
),
const VerticalDivider(thickness: 1, width: 1),
Expanded(
child: Center(
child: Text(
selectedItem[_selectedIndex.value],
),
),
),
],
),
);
}
}
// END
| gallery/lib/demos/material/navigation_rail_demo.dart/0 | {
"file_path": "gallery/lib/demos/material/navigation_rail_demo.dart",
"repo_id": "gallery",
"token_count": 1594
} | 835 |
{
"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": "کارتها، فهرستها، و دکمه کنش شناور",
"demoNavigationDrawerSubtitle": "کشویی در نوار برنامه نمایش میدهد",
"replyDescription": "برنامه ایمیلی کارآمد و تخصصی",
"demoNavigationDrawerDescription": "پانل «طراحی مواد» که از لبهٔ صفحه بهصورت افقی بهداخل میلغزد و پیوندهای پیمایش را در برنامه نشان میدهد.",
"replyDraftsLabel": "پیشنویسها",
"demoNavigationDrawerToPageOne": "مورد یک",
"replyInboxLabel": "صندوق ورودی",
"demoSharedXAxisDemoInstructions": "دکمههای بعدی و قبلی",
"replySpamLabel": "هرزنامه",
"replyTrashLabel": "حذفشدهها",
"replySentLabel": "ارسالشده",
"demoNavigationRailSecond": "دومین",
"demoNavigationDrawerToPageTwo": "مورد دو",
"demoFadeScaleDemoInstructions": "مودال و دکمه کنش شناور",
"demoFadeThroughDemoInstructions": "پیمایش پایین صفحه",
"demoSharedZAxisDemoInstructions": "دکمه نماد تنظیمات",
"demoSharedYAxisDemoInstructions": "مرتبسازی براساس «پخششدههای اخیر»",
"demoTextButtonTitle": "دکمه نوشتاری",
"demoSharedZAxisBeefSandwichRecipeTitle": "ساندویچ گوشت گاو",
"demoSharedZAxisDessertRecipeDescription": "دستور تهیه دسر",
"demoSharedYAxisAlbumTileSubtitle": "هنرمند",
"demoSharedYAxisAlbumTileTitle": "آلبوم",
"demoSharedYAxisRecentSortTitle": "پخششدههای اخیر",
"demoSharedYAxisAlphabeticalSortTitle": "بهترتیب الفبا",
"demoSharedYAxisAlbumCount": "۲۶۸ آلبوم",
"demoSharedYAxisTitle": "محور y مشترک",
"demoSharedXAxisCreateAccountButtonText": "ایجاد حساب",
"demoFadeScaleAlertDialogDiscardButton": "صرفنظر کردن",
"demoSharedXAxisSignInTextFieldLabel": "ایمیل یا شماره تلفن",
"demoSharedXAxisSignInSubtitleText": "با حساب خود وارد سیستم شوید",
"demoSharedXAxisSignInWelcomeText": "سلام دیوید پارک",
"demoSharedXAxisIndividualCourseSubtitle": "نمایش بهصورت جداگانه",
"demoSharedXAxisBundledCourseSubtitle": "دستهای",
"demoFadeThroughAlbumsDestination": "آلبومها",
"demoSharedXAxisDesignCourseTitle": "طراحی",
"demoSharedXAxisIllustrationCourseTitle": "مصورسازی",
"demoSharedXAxisBusinessCourseTitle": "کسبوکار",
"demoSharedXAxisArtsAndCraftsCourseTitle": "هنر و صنایعدستی",
"demoMotionPlaceholderSubtitle": "متن ثانویه",
"demoFadeScaleAlertDialogCancelButton": "لغو",
"demoFadeScaleAlertDialogHeader": "گفتگوی هشدار",
"demoFadeScaleHideFabButton": "پنهان کردن دکمه کنش شناور",
"demoFadeScaleShowFabButton": "نمایش دکمه کنش شناور",
"demoFadeScaleShowAlertDialogButton": "نمایش مودال",
"demoFadeScaleDescription": "الگوی محو کردن برای عناصر رابط کاربریای استفاده میشود که در محدوده صفحهنمایش وارد یا از آن خارج میشوند، مثل کادر گفتگویی که در مرکز صفحه محو میشود.",
"demoFadeScaleTitle": "محو کردن",
"demoFadeThroughTextPlaceholder": "۱۲۳ عکس",
"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": "دسر (برای ۱ نفر)",
"cardsDemoTravelDestinationLocation1": "تانجاوور، تامیل نادو",
"demoTimePickerDescription": "کادر گفتگویی حاوی انتخابگر زمان «طراحی مواد» را نمایش میدهد.",
"demoPickersShowPicker": "نمایش انتخابگر",
"demoTabsScrollingTitle": "پیمایش",
"demoTabsNonScrollingTitle": "غیرپیمایشی",
"craneHours": "{hours,plural,=1{۱ ساعت}other{{hours} ساعت}}",
"craneMinutes": "{minutes,plural,=1{۱ دقیقه}other{{minutes} دقیقه}}",
"craneFlightDuration": "{hoursShortForm} {minutesShortForm}",
"dataTableHeader": "تغذیه",
"demoDatePickerTitle": "انتخابگر تاریخ",
"demoPickersSubtitle": "انتخاب تاریخ و زمان",
"demoPickersTitle": "انتخابگر",
"demo2dTransformationsEditTooltip": "ویرایش کاشی",
"demoDataTableDescription": "جدول داده اطلاعات را در قالبی شبکهمانند نمایش میدهد و از ردیف و ستون تشکیل شده است. این جدول اطلاعات را به روشی آسان برای خواندن اجمالی سازماندهی میکند تا کاربران بتوانند الگوها و اطلاعات آماری را پیدا کنند.",
"demo2dTransformationsDescription": "برای ویرایش کاشیها ضربه بزنید و از اشارهها برای حرکت کردن در صحنه استفاده کنید. برای حرکت دادن بکشید، برای بزرگنمایی انگشتان را نزدیک یا دور کنید، و با دو انگشت بچرخانید. برای برگشتن به جهت ابتدایی، دکمه بازنشانی را فشار دهید.",
"demo2dTransformationsSubtitle": "حرکت دادن، بزرگنمایی کردن، چرخاندن",
"demo2dTransformationsTitle": "تبدیل دوبعدی",
"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": "۱۰ شهر برتر برای بازدید در تامیل نادو",
"cardsDemoTravelDestinationDescription1": "شماره ۱۰",
"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",
"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{سبد خرید، ۱ مورد}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": "آسمانخراش ۱۰۱ تایپه",
"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} با موعد پرداخت {date} بهمبلغ {amount}.",
"shrineTooltipCloseCart": "بستن سبد خرید",
"shrineTooltipCloseMenu": "بستن منو",
"shrineTooltipOpenMenu": "بازکردن منو",
"shrineTooltipSettings": "تنظیمات",
"shrineTooltipSearch": "جستجو",
"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": "تراشههای کنش مجموعهای از گزینهها هستند که کنشی مرتبط با محتوای اصلی را راهاندازی میکنند. تراشههای کنش باید بهصورت پویا و مرتبط با محتوا در واسط کاربر نشان داده شوند.",
"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": "بهره از ابتدای امسال تاکنون",
"shrineProductWhitneyBelt": "کمربند ویتنی",
"shrineProductGardenStrand": "کلاف گاردن",
"shrineProductStrutEarrings": "گوشوارههای استرات",
"shrineProductVarsitySocks": "جوراب وارسیتی",
"shrineProductWeaveKeyring": "حلقهکلید بافتی",
"shrineProductGatsbyHat": "کلاه گتسبی",
"shrineProductShrugBag": "کیف کیسهای",
"shrineProductGiltDeskTrio": "میز سهتایی گیلت",
"shrineProductCopperWireRack": "قفسه سیمی کاپر",
"shrineProductSootheCeramicSet": "مجموعه سرامیکی سوت",
"shrineProductHurrahsTeaSet": "ست چایخوری هوراهس",
"shrineProductBlueStoneMug": "لیوان دستهدار بلواِستون",
"shrineProductRainwaterTray": "سینی رینواتر",
"shrineProductChambrayNapkins": "دستمالسفره چمبری",
"shrineProductSucculentPlanters": "گلدانهای تزیینی ساکلنت",
"shrineProductQuartetTable": "میز کوارتت",
"shrineProductKitchenQuattro": "Kitchen quattro",
"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": "یافتن خودپردازها",
"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": "×{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": "فیلدهای نوشتاری به کاربران امکان میدهد نوشتار را در واسط کاربر وارد کنند. معمولاً بهصورت فرمها و کادرهای گفتگو ظاهر میشوند.",
"demoTextFieldShowPasswordLabel": "نمایش گذرواژه",
"demoTextFieldHidePasswordLabel": "پنهان کردن گذرواژه",
"demoTextFieldFormErrors": "لطفاً خطاهای قرمزرنگ را قبل از ارسال برطرف کنید.",
"demoTextFieldNameRequired": "نام لازم است.",
"demoTextFieldOnlyAlphabeticalChars": "لطفاً فقط نویسههای الفبایی را وارد کنید.",
"demoTextFieldEnterUSPhoneNumber": "(###) ###-#### - شمارهای مربوط به ایالات متحده وارد کنید.",
"demoTextFieldEnterPassword": "گذرواژهای وارد کنید.",
"demoTextFieldPasswordsDoNotMatch": "گذرواژه مطابقت ندارد",
"demoTextFieldWhatDoPeopleCallYou": "به چه نامی خطابتان میکنند؟",
"demoTextFieldNameField": "نام*",
"demoBottomSheetButtonText": "نشان دادن برگه پایانی",
"demoTextFieldPhoneNumber": "شماره تلفن*",
"demoBottomSheetTitle": "برگه پایانی",
"demoTextFieldEmail": "ایمیل",
"demoTextFieldTellUsAboutYourself": "درباره خودتان بگویید (مثلاً بنویسید چکار میکنید یا سرگرمیهای موردعلاقهتان چیست)",
"demoTextFieldKeepItShort": "خلاصهاش کنید، این فقط یک نسخه نمایشی است.",
"starterAppGenericButton": "دکمه",
"demoTextFieldLifeStory": "داستان زندگی",
"demoTextFieldSalary": "حقوق",
"demoTextFieldUSD": "دلار آمریکا",
"demoTextFieldNoMoreThan": "بیش از ۸ نویسه مجاز نیست.",
"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": "راست به چپ",
"settingsTextScalingHuge": "بسیار بزرگ",
"cupertinoButton": "دکمه",
"settingsTextScalingNormal": "عادی",
"settingsTextScalingSmall": "کوچک",
"settingsSystemDefault": "سیستم",
"settingsTitle": "تنظیمات",
"rallyDescription": "یک برنامه مالی شخصی",
"aboutDialogDescription": "برای دیدن کد منبع این برنامه ، لطفاً به {repoLink} بروید.",
"bottomNavigationCommentsTab": "نظرات",
"starterAppGenericBody": "متن اصلی",
"starterAppGenericHeadline": "عنوان",
"starterAppGenericSubtitle": "زیرنویس",
"starterAppGenericTitle": "عنوان",
"starterAppTooltipSearch": "جستجو",
"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": "نشانی وب نشان داده نشد:",
"demoOptionsTooltip": "گزینهها",
"demoInfoTooltip": "اطلاعات",
"demoCodeTooltip": "کد نمونه",
"demoDocumentationTooltip": "اسناد میانای برنامهسازی کاربردی",
"demoFullscreenTooltip": "تمام صفحه",
"settingsTextScaling": "مقیاسگذاری نوشتار",
"settingsTextDirection": "جهت نوشتار",
"settingsLocale": "محلی",
"settingsPlatformMechanics": "مکانیک پلتفورم",
"settingsDarkTheme": "تیره",
"settingsSlowMotion": "حرکت آهسته",
"settingsAbout": "درباره گالری فلاتر",
"settingsFeedback": "ارسال بازخورد",
"settingsAttribution": "طراحی توسط تُستر لندن",
"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": "مکان فعلیتان روی نقشه نشان داده میشود و از آن برای تعیین مسیرها، نتایج جستجوی اطراف، و زمانهای سفر تخمینی استفاده میشود.",
"cupertinoAlertAllow": "اجازه دادن",
"cupertinoAlertDontAllow": "مجاز نیست",
"cupertinoAlertFavoriteDessert": "انتخاب دسر موردعلاقه",
"cupertinoAlertDessertDescription": "لطفاً نوع دسر موردعلاقهتان را از فهرست زیر انتخاب کنید. از انتخاب شما برای سفارشی کردن فهرست پیشنهادی رستورانهای منطقهتان استفاده میشود.",
"cupertinoAlertCheesecake": "کیک پنیر",
"cupertinoAlertTiramisu": "تیرامیسو",
"cupertinoAlertApplePie": "Apple Pie",
"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_fa.arb/0 | {
"file_path": "gallery/lib/l10n/intl_fa.arb",
"repo_id": "gallery",
"token_count": 35623
} | 836 |
{
"loading": "Caricamento in corso…",
"deselect": "Deseleziona",
"select": "Seleziona",
"selectable": "Selezionabile (pressione prolungata)",
"selected": "Elemento selezionato",
"demo": "Demo",
"bottomAppBar": "Barra dell'app in basso",
"notSelected": "Elemento non selezionato",
"demoCupertinoSearchTextFieldTitle": "Campo di testo della ricerca",
"demoCupertinoPicker": "Selettore",
"demoCupertinoSearchTextFieldSubtitle": "Campo di testo della ricerca in stile iOS",
"demoCupertinoSearchTextFieldDescription": "Un campo di testo della ricerca che consente all'utente di effettuare una ricerca inserendo del testo e che può offrire e filtrare suggerimenti.",
"demoCupertinoSearchTextFieldPlaceholder": "Inserisci del testo",
"demoCupertinoScrollbarTitle": "Barra di scorrimento",
"demoCupertinoScrollbarSubtitle": "Barra di scorrimento in stile iOS",
"demoCupertinoScrollbarDescription": "Una barra di scorrimento che aggrega la risorsa secondaria specificata",
"demoTwoPaneItem": "Elemento {value}",
"demoTwoPaneList": "Elenco",
"demoTwoPaneFoldableLabel": "Pieghevoli",
"demoTwoPaneSmallScreenLabel": "Schermo piccolo",
"demoTwoPaneSmallScreenDescription": "TwoPane si comporta in questo modo su un dispositivo con uno schermo piccolo.",
"demoTwoPaneTabletLabel": "Tablet/Desktop",
"demoTwoPaneTabletDescription": "TwoPane si comporta in questo modo su un dispositivo con uno schermo più grande, come un tablet o un computer.",
"demoTwoPaneTitle": "TwoPane",
"demoTwoPaneSubtitle": "Layout adattabili su dispositivi con schermi pieghevoli, grandi e piccoli",
"splashSelectDemo": "Seleziona una demo",
"demoTwoPaneFoldableDescription": "TwoPane si comporta in questo modo su un dispositivo pieghevole.",
"demoTwoPaneDetails": "Dettagli",
"demoTwoPaneSelectItem": "Seleziona un elemento",
"demoTwoPaneItemDetails": "Dettagli elemento {value}",
"demoCupertinoContextMenuActionText": "Tocca e tieni premuto il logo di Flutter per vedere il menu contestuale.",
"demoCupertinoContextMenuDescription": "Un menu contestuale a schermo intero in stile iOS che viene visualizzato quando si esercita una pressione prolungata su un elemento.",
"demoAppBarTitle": "Barra dell'app",
"demoAppBarDescription": "La barra dell'app fornisce contenuti e azioni relativi alla schermata corrente. Viene utilizzata per branding, titoli delle schermate, navigazione e azioni",
"demoDividerTitle": "Divisore",
"demoDividerSubtitle": "Un divisore è una linea sottile che raggruppa contenuti in elenchi e layout.",
"demoDividerDescription": "I divisori possono essere utilizzati in elenchi, riquadri a scomparsa e altrove per separare i contenuti.",
"demoVerticalDividerTitle": "Divisore verticale",
"demoCupertinoContextMenuTitle": "Menu contestuale",
"demoCupertinoContextMenuSubtitle": "Menu contestuale in stile iOS",
"demoAppBarSubtitle": "Mostra azioni e informazioni relative alla schermata corrente",
"demoCupertinoContextMenuActionOne": "Azione uno",
"demoCupertinoContextMenuActionTwo": "Azione due",
"demoDateRangePickerDescription": "Viene mostrata una finestra di dialogo contenente un selettore di intervallo di date di Material Design.",
"demoDateRangePickerTitle": "Selettore intervallo di date",
"demoNavigationDrawerUserName": "Nome utente",
"demoNavigationDrawerUserEmail": "[email protected]",
"demoNavigationDrawerText": "Per visualizzare il riquadro a scomparsa, scorri dal bordo o tocca l'icona in alto a sinistra",
"demoNavigationRailTitle": "Barra di spostamento",
"demoNavigationRailSubtitle": "Visualizzare una barra di spostamento all'interno di un'app",
"demoNavigationRailDescription": "Un widget material che dovrebbe essere visualizzato nella parte a sinistra o destra di un'app per spostarsi tra un numero limitato di visualizzazioni, generalmente da tre a cinque.",
"demoNavigationRailFirst": "Prima etichetta",
"demoNavigationDrawerTitle": "Riquadro di navigazione a scomparsa",
"demoNavigationRailThird": "Terza etichetta",
"replyStarredLabel": "Speciali",
"demoTextButtonDescription": "Un pulsante di testo mostra una macchia di inchiostro quando viene premuto, ma non si solleva. Usa pulsanti di testo nelle barre degli strumenti, nelle finestre di dialogo e in linea con la spaziatura interna.",
"demoElevatedButtonTitle": "Pulsante sollevato",
"demoElevatedButtonDescription": "I pulsanti sollevati aggiungono dimensione a layout prevalentemente piatti. Mettono in risalto le funzioni in spazi ampi o densi di contenuti.",
"demoOutlinedButtonTitle": "Pulsante con contorni",
"demoOutlinedButtonDescription": "I pulsanti con contorni diventano opachi e sollevati quando vengono premuti. Sono spesso associati a pulsanti in rilievo per indicare azioni secondarie alternative.",
"demoContainerTransformDemoInstructions": "Schede, elenchi e FAB",
"demoNavigationDrawerSubtitle": "Visualizzare un riquadro a scomparsa all'interno della barra delle applicazioni",
"replyDescription": "Un'app email efficiente e mirata",
"demoNavigationDrawerDescription": "Un riquadro di Material Design che scorre in orizzontale dal bordo dello schermo per mostrare link di navigazione in un'applicazione.",
"replyDraftsLabel": "Bozze",
"demoNavigationDrawerToPageOne": "Elemento uno",
"replyInboxLabel": "Posta in arrivo",
"demoSharedXAxisDemoInstructions": "Pulsanti Avanti e Indietro",
"replySpamLabel": "Spam",
"replyTrashLabel": "Cestino",
"replySentLabel": "Inviati",
"demoNavigationRailSecond": "Seconda etichetta",
"demoNavigationDrawerToPageTwo": "Elemento due",
"demoFadeScaleDemoInstructions": "Modale e FAB",
"demoFadeThroughDemoInstructions": "Navigazione in basso",
"demoSharedZAxisDemoInstructions": "Pulsante dell'icona Impostazioni",
"demoSharedYAxisDemoInstructions": "Ordina per \"Riproduzioni recenti\"",
"demoTextButtonTitle": "Pulsante di testo",
"demoSharedZAxisBeefSandwichRecipeTitle": "Panino con la carne",
"demoSharedZAxisDessertRecipeDescription": "Ricetta dessert",
"demoSharedYAxisAlbumTileSubtitle": "Artista",
"demoSharedYAxisAlbumTileTitle": "Album",
"demoSharedYAxisRecentSortTitle": "Ascoltati di recente",
"demoSharedYAxisAlphabeticalSortTitle": "A-Z",
"demoSharedYAxisAlbumCount": "268 album",
"demoSharedYAxisTitle": "Asse y condiviso",
"demoSharedXAxisCreateAccountButtonText": "CREA ACCOUNT",
"demoFadeScaleAlertDialogDiscardButton": "IGNORA",
"demoSharedXAxisSignInTextFieldLabel": "Indirizzo email o numero di telefono",
"demoSharedXAxisSignInSubtitleText": "Accedi all'account",
"demoSharedXAxisSignInWelcomeText": "Ciao, David Park",
"demoSharedXAxisIndividualCourseSubtitle": "Mostrato singolarmente",
"demoSharedXAxisBundledCourseSubtitle": "Integrato",
"demoFadeThroughAlbumsDestination": "Album",
"demoSharedXAxisDesignCourseTitle": "Design",
"demoSharedXAxisIllustrationCourseTitle": "Illustrazione",
"demoSharedXAxisBusinessCourseTitle": "Aziende",
"demoSharedXAxisArtsAndCraftsCourseTitle": "Arti e artigianato",
"demoMotionPlaceholderSubtitle": "Testo secondario",
"demoFadeScaleAlertDialogCancelButton": "ANNULLA",
"demoFadeScaleAlertDialogHeader": "Finestra di avviso",
"demoFadeScaleHideFabButton": "NASCONDI FAB",
"demoFadeScaleShowFabButton": "MOSTRA FAB",
"demoFadeScaleShowAlertDialogButton": "MOSTRA MODALITÀ",
"demoFadeScaleDescription": "Il pattern di dissolvenza viene utilizzato per gli elementi UI che entrano o escono dalle estremità della schermata, ad esempio una finestra di dialogo che si dissolve nel centro dello schermo.",
"demoFadeScaleTitle": "Dissolvenza",
"demoFadeThroughTextPlaceholder": "123 foto",
"demoFadeThroughSearchDestination": "Cerca",
"demoFadeThroughPhotosDestination": "Foto",
"demoSharedXAxisCoursePageSubtitle": "Le categorie raggruppate vengono visualizzate come gruppi nel tuo feed. Potrai sempre modificare questa scelta in un secondo momento.",
"demoFadeThroughDescription": "Il pattern di dissolvenza tramite viene utilizzato per le transizioni tra elementi UI che non hanno una forte correlazione.",
"demoFadeThroughTitle": "Dissolvenza tramite",
"demoSharedZAxisHelpSettingLabel": "Guida",
"demoMotionSubtitle": "Tutti i pattern di transizione predefiniti",
"demoSharedZAxisNotificationSettingLabel": "Notifiche",
"demoSharedZAxisProfileSettingLabel": "Profilo",
"demoSharedZAxisSavedRecipesListTitle": "Ricette salvate",
"demoSharedZAxisBeefSandwichRecipeDescription": "Ricetta panino con la carne",
"demoSharedZAxisCrabPlateRecipeDescription": "Ricetta a base di granchio",
"demoSharedXAxisCoursePageTitle": "Ottimizza i corsi",
"demoSharedZAxisCrabPlateRecipeTitle": "Granchio",
"demoSharedZAxisShrimpPlateRecipeDescription": "Ricetta a base di gamberi",
"demoSharedZAxisShrimpPlateRecipeTitle": "Gambero",
"demoContainerTransformTypeFadeThrough": "DISSOLVENZA TRAMITE",
"demoSharedZAxisDessertRecipeTitle": "Dessert",
"demoSharedZAxisSandwichRecipeDescription": "Ricetta panino",
"demoSharedZAxisSandwichRecipeTitle": "Panino",
"demoSharedZAxisBurgerRecipeDescription": "Ricetta hamburger",
"demoSharedZAxisBurgerRecipeTitle": "Hamburger",
"demoSharedZAxisSettingsPageTitle": "Impostazioni",
"demoSharedZAxisTitle": "Asse z condiviso",
"demoSharedZAxisPrivacySettingLabel": "Privacy",
"demoMotionTitle": "Movimento",
"demoContainerTransformTitle": "Trasformazione del contenitore",
"demoContainerTransformDescription": "Il pattern di trasformazione del contenitore è progettato per le transizioni tra elementi UI che includono un contenitore. Questo pattern crea un collegamento visibile tra due elementi UI",
"demoContainerTransformModalBottomSheetTitle": "Modalità Dissolvenza",
"demoContainerTransformTypeFade": "DISSOLVENZA",
"demoSharedYAxisAlbumTileDurationUnit": "min",
"demoMotionPlaceholderTitle": "Titolo",
"demoSharedXAxisForgotEmailButtonText": "NON RICORDI L'INDIRIZZO EMAIL?",
"demoMotionSmallPlaceholderSubtitle": "Secondario",
"demoMotionDetailsPageTitle": "Pagina dei dettagli",
"demoMotionListTileTitle": "Voce elenco",
"demoSharedAxisDescription": "Il pattern di assi condivisi per le transizioni tra gli elementi UI che hanno una relazione di spazio o di navigazione. Questo pattern utilizza una trasformazione condivisa sugli assi x, y o z per rafforzare la relazione tra gli elementi.",
"demoSharedXAxisTitle": "Asse x condiviso",
"demoSharedXAxisBackButtonText": "INDIETRO",
"demoSharedXAxisNextButtonText": "AVANTI",
"demoSharedXAxisCulinaryCourseTitle": "Arte culinaria",
"githubRepo": "repository GitHub {repoName}",
"fortnightlyMenuUS": "Stati Uniti",
"fortnightlyMenuBusiness": "Economia",
"fortnightlyMenuScience": "Scienza",
"fortnightlyMenuSports": "Sport",
"fortnightlyMenuTravel": "Viaggi",
"fortnightlyMenuCulture": "Cultura",
"fortnightlyTrendingTechDesign": "ProgettazioneTecnologica",
"rallyBudgetDetailAmountLeft": "Importo rimanente",
"fortnightlyHeadlineArmy": "Riformare Green Army dall'interno",
"fortnightlyDescription": "Un'app di notizie incentrata sui contenuti",
"rallyBillDetailAmountDue": "Importo dovuto",
"rallyBudgetDetailTotalCap": "Limite totale",
"rallyBudgetDetailAmountUsed": "Importo usato",
"fortnightlyTrendingHealthcareRevolution": "RivoluzioneSanitaria",
"fortnightlyMenuFrontPage": "Prima pagina",
"fortnightlyMenuWorld": "Dal mondo",
"rallyBillDetailAmountPaid": "Importo pagato",
"fortnightlyMenuPolitics": "Politica",
"fortnightlyHeadlineBees": "Le api scarseggiano",
"fortnightlyHeadlineGasoline": "Il futuro della benzina",
"fortnightlyTrendingGreenArmy": "GreenArmy",
"fortnightlyHeadlineFeminists": "Punto di vista delle femministe sulla partigianeria",
"fortnightlyHeadlineFabrics": "I designer usano la tecnologia per realizzare tessuti futuristici",
"fortnightlyHeadlineStocks": "Con il ristagno delle azioni, tanti guardano alla valuta",
"fortnightlyTrendingReform": "Riforma",
"fortnightlyMenuTech": "Tecnologia",
"fortnightlyHeadlineWar": "Vite di americani divise durante la guerra",
"fortnightlyHeadlineHealthcare": "La pacata ma potente rivoluzione sanitaria",
"fortnightlyLatestUpdates": "Ultimi aggiornamenti",
"fortnightlyTrendingStocks": "Azioni",
"rallyBillDetailTotalAmount": "Importo totale",
"demoCupertinoPickerDateTime": "Data e ora",
"signIn": "ACCEDI",
"dataTableRowWithSugar": "{value} con zucchero",
"dataTableRowApplePie": "Torta di mele",
"dataTableRowDonut": "Ciambella",
"dataTableRowHoneycomb": "Croccante a nido d'ape",
"dataTableRowLollipop": "Lecca lecca",
"dataTableRowJellyBean": "Jelly bean",
"dataTableRowGingerbread": "Pan di zenzero",
"dataTableRowCupcake": "Cupcake",
"dataTableRowEclair": "Eclair",
"dataTableRowIceCreamSandwich": "Gelato biscotto",
"dataTableRowFrozenYogurt": "Frozen yogurt",
"dataTableColumnIron": "Ferro (%)",
"dataTableColumnCalcium": "Calcio (%)",
"dataTableColumnSodium": "Sodio (mg)",
"demoTimePickerTitle": "Selettore ora",
"demo2dTransformationsResetTooltip": "Reimposta trasformazioni",
"dataTableColumnFat": "Grassi (g)",
"dataTableColumnCalories": "Calorie",
"dataTableColumnDessert": "Dessert (1 porzione)",
"cardsDemoTravelDestinationLocation1": "Thanjavur, Tamil Nadu",
"demoTimePickerDescription": "Viene mostrata una finestra di dialogo contenente un selettore dell'ora di Material Design.",
"demoPickersShowPicker": "MOSTRA SELETTORE",
"demoTabsScrollingTitle": "Scorre",
"demoTabsNonScrollingTitle": "Non scorre",
"craneHours": "{hours,plural,=1{1 h}other{{hours} h}}",
"craneMinutes": "{minutes,plural,=1{1 m}other{{minutes} m}}",
"craneFlightDuration": "{hoursShortForm} {minutesShortForm}",
"dataTableHeader": "Alimentazione",
"demoDatePickerTitle": "Selettore data",
"demoPickersSubtitle": "Selezione di data e ora",
"demoPickersTitle": "Selettori",
"demo2dTransformationsEditTooltip": "Modifica riquadro",
"demoDataTableDescription": "Le tabelle di dati mostrano le informazioni in un formato a griglia di righe e colonne. Le informazioni sono organizzate in modo da facilitare l'analisi e consentire agli utenti di cercare sequenze dati.",
"demo2dTransformationsDescription": "Tocca per modificare i riquadri e usa i gesti per spostarti nella scena. Trascina per la panoramica, pizzica per lo zoom e ruota con due dita. Premi il pulsante di ripristino per tornare all'orientamento iniziale.",
"demo2dTransformationsSubtitle": "Panoramica, zoom ruota,",
"demo2dTransformationsTitle": "Trasformazioni 2D",
"demoCupertinoTextFieldPIN": "PIN",
"demoCupertinoTextFieldDescription": "Un campo di testo consente all'utente di inserire testo, con una tastiera hardware o una tastiera sullo schermo.",
"demoCupertinoTextFieldSubtitle": "Campi di testo in stile iOS",
"demoCupertinoTextFieldTitle": "Campi di testo",
"demoDatePickerDescription": "Viene mostrata una finestra di dialogo contenente un selettore della data di Material Design.",
"demoCupertinoPickerTime": "Ora",
"demoCupertinoPickerDate": "Data",
"demoCupertinoPickerTimer": "Timer",
"demoCupertinoPickerDescription": "Un widget selettore in stile iOS che può essere usato per selezionare date, orari o entrambi oppure stringhe.",
"demoCupertinoPickerSubtitle": "Selettori in stile iOS",
"demoCupertinoPickerTitle": "Selettori",
"dataTableRowWithHoney": "{value} con miele",
"cardsDemoTravelDestinationCity2": "Chettinad",
"bannerDemoResetText": "Reimposta il banner",
"bannerDemoMultipleText": "Più azioni",
"bannerDemoLeadingText": "Icona iniziale",
"dismiss": "IGNORA",
"cardsDemoTappable": "Abilitato per il tocco",
"cardsDemoSelectable": "Selezionabile (pressione prolungata)",
"cardsDemoExplore": "Esplora",
"cardsDemoExploreSemantics": "Esplora {destinationName}",
"cardsDemoShareSemantics": "Condividi {destinationName}",
"cardsDemoTravelDestinationTitle1": "Le 10 città principali da visitare nel Tamil Nadu",
"cardsDemoTravelDestinationDescription1": "Numero 10",
"cardsDemoTravelDestinationCity1": "Thanjavur",
"dataTableColumnProtein": "Proteine (g)",
"cardsDemoTravelDestinationTitle2": "Artigiani dell'India meridionale",
"cardsDemoTravelDestinationDescription2": "Setaioli",
"bannerDemoText": "La tua password è stata aggiornata sull'altro dispositivo. Accedi nuovamente.",
"cardsDemoTravelDestinationLocation2": "Sivaganga, Tamil Nadu",
"cardsDemoTravelDestinationTitle3": "Tempio di Brihadishvara",
"cardsDemoTravelDestinationDescription3": "Templi",
"demoBannerTitle": "Banner",
"demoBannerSubtitle": "Viene visualizzato un banner in un elenco",
"demoBannerDescription": "Un banner mostra un messaggio importante e conciso e offre agli utenti azioni da compiere (o per ignorare il banner). È necessaria un'azione dell'utente per ignorare il banner.",
"demoCardTitle": "Schede",
"demoCardSubtitle": "Schede di riferimento con angoli arrotondati",
"demoCardDescription": "Una scheda è un foglio di Material usato per rappresentare alcune informazioni correlate, ad esempio un album, una posizione geografica, un pasto, dettagli di contatto e così via.",
"demoDataTableTitle": "Tabelle di dati",
"demoDataTableSubtitle": "Righe e colonne di informazioni",
"dataTableColumnCarbs": "Carboidrati (g)",
"placeTanjore": "Tanjore",
"demoGridListsTitle": "Elenchi in formato griglia",
"placeFlowerMarket": "Mercato dei fiori",
"placeBronzeWorks": "Fonderie bronzo",
"placeMarket": "Mercato",
"placeThanjavurTemple": "Tempio di Thanjavur",
"placeSaltFarm": "Salina",
"placeScooters": "Scooter",
"placeSilkMaker": "Produttore di seta",
"placeLunchPrep": "Preparazione del pranzo",
"placeBeach": "Spiaggia",
"placeFisherman": "Pescatore",
"demoMenuSelected": "Valore selezionato: {value}",
"demoMenuRemove": "Rimuovi",
"demoMenuGetLink": "Crea link",
"demoMenuShare": "Condividi",
"demoBottomAppBarSubtitle": "Consente di visualizzare la navigazione e le azioni in basso",
"demoMenuAnItemWithASectionedMenu": "Un elemento con un menu a sezioni",
"demoMenuADisabledMenuItem": "Voce di menu disattivata",
"demoLinearProgressIndicatorTitle": "Indicatore di avanzamento lineare",
"demoMenuContextMenuItemOne": "Voce uno del menu contestuale",
"demoMenuAnItemWithASimpleMenu": "Un elemento con un menu semplice",
"demoCustomSlidersTitle": "Cursori personalizzati",
"demoMenuAnItemWithAChecklistMenu": "Un elemento con un menu con elenco di controllo",
"demoCupertinoActivityIndicatorTitle": "Indicatore di attività",
"demoCupertinoActivityIndicatorSubtitle": "Indicatori di attività in stile iOS",
"demoCupertinoActivityIndicatorDescription": "Un indicatore di attività in stile iOS che ruota in senso orario.",
"demoCupertinoNavigationBarTitle": "Barra di navigazione",
"demoCupertinoNavigationBarSubtitle": "Barra di navigazione in stile iOS",
"demoCupertinoNavigationBarDescription": "Una barra di navigazione in stile iOS. La barra di navigazione è una barra degli strumenti che consiste almeno nel titolo di una pagina, al centro della barra degli strumenti.",
"demoCupertinoPullToRefreshTitle": "Trascina per aggiornare",
"demoCupertinoPullToRefreshSubtitle": "Controllo Trascina per aggiornare in stile iOS",
"demoCupertinoPullToRefreshDescription": "Un widget che implementa il controllo dei contenuti Trascina per aggiornare in stile iOS.",
"demoProgressIndicatorTitle": "Indicatori di avanzamento",
"demoProgressIndicatorSubtitle": "Lineari, circolari e indeterminati",
"demoCircularProgressIndicatorTitle": "Indicatore di avanzamento circolare",
"demoCircularProgressIndicatorDescription": "Un indicatore di avanzamento circolare Material Design che ruota per indicare che l'applicazione è occupata.",
"demoMenuFour": "Quattro",
"demoLinearProgressIndicatorDescription": "Un indicatore di avanzamento lineare Material Design, anche noto come barra di avanzamento.",
"demoTooltipTitle": "Descrizioni comandi",
"demoTooltipSubtitle": "Breve messaggio visualizzato in caso di pressione prolungata o di posizionamento del puntatore del mouse sopra un elemento",
"demoTooltipDescription": "Le descrizioni comandi forniscono etichette di testo che aiutano a spiegare la funzione di un pulsante o di un'altra azione dell'interfaccia utente. Le descrizioni comandi mostrano testo informativo quando gli utenti posizionano il puntatore sopra un elemento, impostano lo stato attivo su un elemento o premono a lungo un elemento.",
"demoTooltipInstructions": "Premi a lungo un elemento o posiziona sopra il puntatore per visualizzare la descrizione comando.",
"placeChennai": "Chennai",
"demoMenuChecked": "Valore selezionato: {value}",
"placeChettinad": "Chettinad",
"demoMenuPreview": "Anteprima",
"demoBottomAppBarTitle": "Barra dell'app in basso",
"demoBottomAppBarDescription": "Le barre dell'app in basso consentono di accedere a un riquadro di navigazione a scomparsa inferiore e a massimo quattro azioni, incluso il pulsante di azione mobile.",
"bottomAppBarNotch": "Notch",
"bottomAppBarPosition": "Posizione del pulsante di azione mobile",
"bottomAppBarPositionDockedEnd": "Ancorato: alla fine",
"bottomAppBarPositionDockedCenter": "Ancorato: al centro",
"bottomAppBarPositionFloatingEnd": "Mobile: alla fine",
"bottomAppBarPositionFloatingCenter": "Mobile: al centro",
"demoSlidersEditableNumericalValue": "Valore numerico modificabile",
"demoGridListsSubtitle": "Layout righe e colonne",
"demoGridListsDescription": "Gli elenchi in formato griglia sono più adatti per presentare dati omogenei, generalmente le immagini. Ogni elemento in un elenco in formato griglia è chiamato riquadro.",
"demoGridListsImageOnlyTitle": "Solo immagine",
"demoGridListsHeaderTitle": "Con intestazione",
"demoGridListsFooterTitle": "Con piè di pagina",
"demoSlidersTitle": "Cursori",
"demoSlidersSubtitle": "Widget per la selezione di un valore tramite scorrimento",
"demoSlidersDescription": "I cursori rappresentano un intervallo di valori lungo una barra, da cui gli utenti possono selezionare un singolo valore. Sono la soluzione ideale per regolare impostazioni quali volume e luminosità oppure per applicare filtri delle immagini.",
"demoRangeSlidersTitle": "Cursori intervalli",
"demoRangeSlidersDescription": "I cursori rappresentano un intervallo di valori lungo una barra, che può avere icone su entrambe le estremità per indicare un intervallo di valori. Sono la soluzione ideale per regolare impostazioni quali volume e luminosità oppure per applicare filtri delle immagini.",
"demoMenuAnItemWithAContextMenuButton": "Un elemento con un menu contestuale",
"demoCustomSlidersDescription": "I cursori rappresentano un intervallo di valori lungo una barra, da cui gli utenti possono selezionare un singolo valore o un intervallo di valori. È possibile personalizzare e applicare un tema ai cursori.",
"demoSlidersContinuousWithEditableNumericalValue": "Continuo con valore numerico modificabile",
"demoSlidersDiscrete": "Discreto",
"demoSlidersDiscreteSliderWithCustomTheme": "Cursore discreto con tema personalizzato",
"demoSlidersContinuousRangeSliderWithCustomTheme": "Cursore intervallo continuo con tema personalizzato",
"demoSlidersContinuous": "Continuo",
"placePondicherry": "Pondicherry",
"demoMenuTitle": "Menu",
"demoContextMenuTitle": "Menu contestuale",
"demoSectionedMenuTitle": "Menu a sezioni",
"demoSimpleMenuTitle": "Menu semplice",
"demoChecklistMenuTitle": "Menu con elenco di controllo",
"demoMenuSubtitle": "Pulsanti di menu e menu semplici",
"demoMenuDescription": "Un menu visualizza un elenco di opzioni su una superficie temporanea, che vengono mostrate quando gli utenti interagiscono con un pulsante, un'azione o un altro controllo.",
"demoMenuItemValueOne": "Voce di menu uno",
"demoMenuItemValueTwo": "Voce di menu due",
"demoMenuItemValueThree": "Voce di menu tre",
"demoMenuOne": "Uno",
"demoMenuTwo": "Due",
"demoMenuThree": "Tre",
"demoMenuContextMenuItemThree": "Voce tre del menu contestuale",
"demoCupertinoSwitchSubtitle": "Interruttore in stile iOS",
"demoSnackbarsText": "Questo è uno snackbar.",
"demoCupertinoSliderSubtitle": "Cursore in stile iOS",
"demoCupertinoSliderDescription": "Un cursore può essere utilizzato per selezionare valori da un insieme continuo o discreto.",
"demoCupertinoSliderContinuous": "Continuo: {value}",
"demoCupertinoSliderDiscrete": "Discreto: {value}",
"demoSnackbarsAction": "Hai premuto l'azione dello snackbar.",
"backToGallery": "Torna alla galleria",
"demoCupertinoTabBarTitle": "Barra delle schede",
"demoCupertinoSwitchDescription": "Un interruttore viene utilizzato per attivare o disattivare lo stato di una singola impostazione.",
"demoSnackbarsActionButtonLabel": "AZIONE",
"cupertinoTabBarProfileTab": "Profilo",
"demoSnackbarsButtonLabel": "MOSTRA UNO SNACKBAR",
"demoSnackbarsDescription": "Gli snackbar informano gli utenti di un processo che un'app ha eseguito o sta per eseguire. Vengono visualizzati temporaneamente in fondo allo schermo. Non dovrebbero interrompere l'esperienza utente e non richiedono interazioni per essere rimossi dallo schermo.",
"demoSnackbarsSubtitle": "Gli snackbar mostrano i messaggi in fondo allo schermo",
"demoSnackbarsTitle": "Snackbar",
"demoCupertinoSliderTitle": "Cursore",
"cupertinoTabBarChatTab": "Chat",
"cupertinoTabBarHomeTab": "Home",
"demoCupertinoTabBarDescription": "Una barra delle schede di navigazione in stile iOS. Mostra più schede, di cui una sola (per impostazione predefinita, la prima) è attiva.",
"demoCupertinoTabBarSubtitle": "Barra delle schede in stile iOS",
"demoOptionsFeatureTitle": "Visualizza opzioni",
"demoOptionsFeatureDescription": "Tocca qui per visualizzare le opzioni disponibili per questa demo.",
"demoCodeViewerCopyAll": "COPIA TUTTO",
"shrineScreenReaderRemoveProductButton": "Rimuovi {product}",
"shrineScreenReaderProductAddToCart": "Aggiungi al carrello",
"shrineScreenReaderCart": "{quantity,plural,=0{Carrello, nessun articolo}=1{Carrello, 1 articolo}other{Carrello, {quantity} articoli}}",
"demoCodeViewerFailedToCopyToClipboardMessage": "Impossibile copiare negli appunti: {error}",
"demoCodeViewerCopiedToClipboardMessage": "Copiato negli appunti.",
"craneSleep8SemanticLabel": "Rovine maya su una scogliera sopra una spiaggia",
"craneSleep4SemanticLabel": "Hotel sul lago di fronte alle montagne",
"craneSleep2SemanticLabel": "Cittadella di Machu Picchu",
"craneSleep1SemanticLabel": "Chalet in un paesaggio innevato con alberi sempreverdi",
"craneSleep0SemanticLabel": "Bungalow sull'acqua",
"craneFly13SemanticLabel": "Piscina sul mare con palme",
"craneFly12SemanticLabel": "Piscina con palme",
"craneFly11SemanticLabel": "Faro di mattoni sul mare",
"craneFly10SemanticLabel": "Torri della moschea di Al-Azhar al tramonto",
"craneFly9SemanticLabel": "Uomo appoggiato a un'auto blu antica",
"craneFly8SemanticLabel": "Supertree Grove",
"craneEat9SemanticLabel": "Bancone di un bar con dolci",
"craneEat2SemanticLabel": "Hamburger",
"craneFly5SemanticLabel": "Hotel sul lago di fronte alle montagne",
"demoSelectionControlsSubtitle": "Caselle di controllo, pulsanti di opzione e opzioni",
"craneEat10SemanticLabel": "Donna con un enorme pastrami sandwich in mano",
"craneFly4SemanticLabel": "Bungalow sull'acqua",
"craneEat7SemanticLabel": "Ingresso di una panetteria",
"craneEat6SemanticLabel": "Piatto di gamberi",
"craneEat5SemanticLabel": "Zona ristorante artistica",
"craneEat4SemanticLabel": "Dolce al cioccolato",
"craneEat3SemanticLabel": "Taco coreano",
"craneFly3SemanticLabel": "Cittadella di Machu Picchu",
"craneEat1SemanticLabel": "Locale vuoto con sgabelli in stile diner",
"craneEat0SemanticLabel": "Pizza in un forno a legna",
"craneSleep11SemanticLabel": "Grattacielo Taipei 101",
"craneSleep10SemanticLabel": "Torri della moschea di Al-Azhar al tramonto",
"craneSleep9SemanticLabel": "Faro di mattoni sul mare",
"craneEat8SemanticLabel": "Piatto di gamberi d'acqua dolce",
"craneSleep7SemanticLabel": "Appartamenti colorati a piazza Ribeira",
"craneSleep6SemanticLabel": "Piscina con palme",
"craneSleep5SemanticLabel": "Tenda in un campo",
"settingsButtonCloseLabel": "Chiudi impostazioni",
"demoSelectionControlsCheckboxDescription": "Le caselle di controllo consentono all'utente di selezionare diverse opzioni da un gruppo di opzioni. Il valore di una casella di controllo standard è true o false, mentre il valore di una casella di controllo a tre stati può essere anche null.",
"settingsButtonLabel": "Impostazioni",
"demoListsTitle": "Elenchi",
"demoListsSubtitle": "Layout elenchi scorrevoli",
"demoListsDescription": "Una singola riga con altezza fissa che generalmente contiene del testo e un'icona iniziale o finale.",
"demoOneLineListsTitle": "Una riga",
"demoTwoLineListsTitle": "Due righe",
"demoListsSecondary": "Testo secondario",
"demoSelectionControlsTitle": "Comandi di selezione",
"craneFly7SemanticLabel": "Monte Rushmore",
"demoSelectionControlsCheckboxTitle": "Casella di controllo",
"craneSleep3SemanticLabel": "Uomo appoggiato a un'auto blu antica",
"demoSelectionControlsRadioTitle": "Pulsante di opzione",
"demoSelectionControlsRadioDescription": "I pulsanti di opzione consentono all'utente di selezionare un'opzione da un gruppo di opzioni. Usa i pulsanti di opzione per la selezione esclusiva se ritieni che l'utente debba vedere tutte le opzioni disponibili affiancate.",
"demoSelectionControlsSwitchTitle": "Opzione",
"demoSelectionControlsSwitchDescription": "Le opzioni on/off consentono di attivare/disattivare lo stato di una singola opzione di impostazioni. La funzione e lo stato corrente dell'opzione devono essere chiariti dall'etichetta incorporata corrispondente.",
"craneFly0SemanticLabel": "Chalet in un paesaggio innevato con alberi sempreverdi",
"craneFly1SemanticLabel": "Tenda in un campo",
"craneFly2SemanticLabel": "Bandiere di preghiera di fronte a una montagna innevata",
"craneFly6SemanticLabel": "Veduta aerea del Palacio de Bellas Artes",
"rallySeeAllAccounts": "Visualizza tutti i conti",
"rallyBillAmount": "Fattura {billName} di {amount} in scadenza il giorno {date}.",
"shrineTooltipCloseCart": "Chiudi carrello",
"shrineTooltipCloseMenu": "Chiudi menu",
"shrineTooltipOpenMenu": "Apri menu",
"shrineTooltipSettings": "Impostazioni",
"shrineTooltipSearch": "Cerca",
"demoTabsDescription": "Le schede consentono di organizzare i contenuti in diversi set di dati, schermate e altre interazioni.",
"demoTabsSubtitle": "Schede con visualizzazioni scorrevoli in modo indipendente",
"demoTabsTitle": "Schede",
"rallyBudgetAmount": "Budget {budgetName} di cui è stato usato un importo pari a {amountUsed} su {amountTotal}; {amountLeft} ancora disponibile",
"shrineTooltipRemoveItem": "Rimuovi articolo",
"rallyAccountAmount": "Conto {accountName} {accountNumber} con {amount}.",
"rallySeeAllBudgets": "Visualizza tutti i budget",
"rallySeeAllBills": "Visualizza tutte le fatture",
"craneFormDate": "Seleziona data",
"craneFormOrigin": "Scegli origine",
"craneFly2": "Valle di Khumbu, Nepal",
"craneFly3": "Machu Picchu, Perù",
"craneFly4": "Malé, Maldive",
"craneFly5": "Vitznau, Svizzera",
"craneFly6": "Città del Messico, Messico",
"craneFly7": "Monte Rushmore, Stati Uniti",
"settingsTextDirectionLocaleBased": "In base alla lingua",
"craneFly9": "L'Avana, Cuba",
"craneFly10": "Il Cairo, Egitto",
"craneFly11": "Lisbona, Portogallo",
"craneFly12": "Napa, Stati Uniti",
"craneFly13": "Bali, Indonesia",
"craneSleep0": "Malé, Maldive",
"craneSleep1": "Aspen, Stati Uniti",
"craneSleep2": "Machu Picchu, Perù",
"demoCupertinoSegmentedControlTitle": "Controllo segmentato",
"craneSleep4": "Vitznau, Svizzera",
"craneSleep5": "Big Sur, Stati Uniti",
"craneSleep6": "Napa, Stati Uniti",
"craneSleep7": "Porto, Portogallo",
"craneSleep8": "Tulum, Messico",
"craneEat5": "Seul, Corea del Sud",
"demoChipTitle": "Chip",
"demoChipSubtitle": "Elementi compatti che rappresentano un valore, un attributo o un'azione",
"demoActionChipTitle": "Chip di azione",
"demoActionChipDescription": "I chip di azione sono un insieme di opzioni che attivano un'azione relativa ai contenuti principali. I chip di azione dovrebbero essere visualizzati in modo dinamico e in base al contesto in un'interfaccia utente.",
"demoChoiceChipTitle": "Chip di scelta",
"demoChoiceChipDescription": "I chip di scelta rappresentano una singola scelta di un insieme di scelte. I chip di scelta contengono categorie o testi descrittivi correlati.",
"demoFilterChipTitle": "Chip di filtro",
"demoFilterChipDescription": "I chip di filtro consentono di filtrare i contenuti in base a tag o parole descrittive.",
"demoInputChipTitle": "Chip di input",
"demoInputChipDescription": "I chip di input rappresentano un'informazione complessa, ad esempio un'entità (persona, luogo o cosa) o un testo discorsivo, in un formato compatto.",
"craneSleep9": "Lisbona, Portogallo",
"craneEat10": "Lisbona, Portogallo",
"demoCupertinoSegmentedControlDescription": "Consente di effettuare una selezione tra una serie di opzioni che si escludono a vicenda. Se viene selezionata un'opzione nel controllo segmentato, le altre opzioni nello stesso controllo non sono più selezionate.",
"chipTurnOnLights": "Accendi le luci",
"chipSmall": "Piccole",
"chipMedium": "Medie",
"chipLarge": "Grandi",
"chipElevator": "Ascensore",
"chipWasher": "Lavatrice",
"chipFireplace": "Caminetto",
"chipBiking": "Ciclismo",
"craneFormDiners": "Clienti",
"rallyAlertsMessageUnassignedTransactions": "{count,plural,=1{Aumenta la tua potenziale detrazione fiscale. Assegna categorie a 1 transazione non assegnata.}other{Aumenta la tua potenziale detrazione fiscale. Assegna categorie a {count} transazioni non assegnate.}}",
"craneFormTime": "Seleziona ora",
"craneFormLocation": "Seleziona località",
"craneFormTravelers": "Viaggiatori",
"craneEat8": "Atlanta, Stati Uniti",
"craneFormDestination": "Scegli destinazione",
"craneFormDates": "Seleziona date",
"craneFly": "VOLI",
"craneSleep": "DOVE DORMIRE",
"craneEat": "DOVE MANGIARE",
"craneFlySubhead": "Trova voli in base alla destinazione",
"craneSleepSubhead": "Trova proprietà in base alla destinazione",
"craneEatSubhead": "Trova ristoranti in base alla destinazione",
"craneFlyStops": "{numberOfStops,plural,=0{Diretto}=1{1 scalo}other{{numberOfStops} scali}}",
"craneSleepProperties": "{totalProperties,plural,=0{Nessuna proprietà disponibile}=1{1 proprietà disponibile}other{{totalProperties} proprietà disponibili}}",
"craneEatRestaurants": "{totalRestaurants,plural,=0{Nessun ristorante}=1{1 ristorante}other{{totalRestaurants} ristoranti}}",
"craneFly0": "Aspen, Stati Uniti",
"demoCupertinoSegmentedControlSubtitle": "Controllo segmentato in stile iOS",
"craneSleep10": "Il Cairo, Egitto",
"craneEat9": "Madrid, Spagna",
"craneFly1": "Big Sur, Stati Uniti",
"craneEat7": "Nashville, Stati Uniti",
"craneEat6": "Seattle, Stati Uniti",
"craneFly8": "Singapore",
"craneEat4": "Parigi, Francia",
"craneEat3": "Portland, Stati Uniti",
"craneEat2": "Córdoba, Argentina",
"craneEat1": "Dallas, Stati Uniti",
"craneEat0": "Napoli, Italia",
"craneSleep11": "Taipei, Taiwan",
"craneSleep3": "L'Avana, Cuba",
"shrineLogoutButtonCaption": "ESCI",
"rallyTitleBills": "FATTURE",
"rallyTitleAccounts": "ACCOUNT",
"shrineProductVagabondSack": "Borsa Vagabond",
"rallyAccountDetailDataInterestYtd": "Interesse dall'inizio dell'anno",
"shrineProductWhitneyBelt": "Cintura Whitney",
"shrineProductGardenStrand": "Elemento da giardino",
"shrineProductStrutEarrings": "Orecchini Strut",
"shrineProductVarsitySocks": "Calze di squadre universitarie",
"shrineProductWeaveKeyring": "Portachiavi intrecciato",
"shrineProductGatsbyHat": "Cappello Gatsby",
"shrineProductShrugBag": "Borsa a tracolla",
"shrineProductGiltDeskTrio": "Tris di scrivanie Gilt",
"shrineProductCopperWireRack": "Rastrelliera di rame",
"shrineProductSootheCeramicSet": "Set di ceramiche Soothe",
"shrineProductHurrahsTeaSet": "Set da tè Hurrahs",
"shrineProductBlueStoneMug": "Tazza in basalto blu",
"shrineProductRainwaterTray": "Contenitore per l'acqua piovana",
"shrineProductChambrayNapkins": "Tovaglioli Chambray",
"shrineProductSucculentPlanters": "Vasi per piante grasse",
"shrineProductQuartetTable": "Tavolo Quartet",
"shrineProductKitchenQuattro": "Kitchen quattro",
"shrineProductClaySweater": "Felpa Clay",
"shrineProductSeaTunic": "Vestito da mare",
"shrineProductPlasterTunic": "Abito plaster",
"rallyBudgetCategoryRestaurants": "Ristoranti",
"shrineProductChambrayShirt": "Maglia Chambray",
"shrineProductSeabreezeSweater": "Felpa Seabreeze",
"shrineProductGentryJacket": "Giacca Gentry",
"shrineProductNavyTrousers": "Pantaloni navy",
"shrineProductWalterHenleyWhite": "Walter Henley (bianco)",
"shrineProductSurfAndPerfShirt": "Maglietta Surf and perf",
"shrineProductGingerScarf": "Sciarpa rossa",
"shrineProductRamonaCrossover": "Crossover Ramona",
"shrineProductClassicWhiteCollar": "Colletto classico",
"shrineProductSunshirtDress": "Abito prendisole",
"rallyAccountDetailDataInterestRate": "Tasso di interesse",
"rallyAccountDetailDataAnnualPercentageYield": "Rendimento annuale percentuale",
"rallyAccountDataVacation": "Vacanza",
"shrineProductFineLinesTee": "Maglietta a righe sottili",
"rallyAccountDataHomeSavings": "Risparmio familiare",
"rallyAccountDataChecking": "Conto",
"rallyAccountDetailDataInterestPaidLastYear": "Interesse pagato l'anno scorso",
"rallyAccountDetailDataNextStatement": "Prossimo estratto conto",
"rallyAccountDetailDataAccountOwner": "Proprietario dell'account",
"rallyBudgetCategoryCoffeeShops": "Caffetterie",
"rallyBudgetCategoryGroceries": "Spesa",
"shrineProductCeriseScallopTee": "Maglietta scallop tee color ciliegia",
"rallyBudgetCategoryClothing": "Abbigliamento",
"rallySettingsManageAccounts": "Gestisci account",
"rallyAccountDataCarSavings": "Risparmi per l'auto",
"rallySettingsTaxDocuments": "Documenti fiscali",
"rallySettingsPasscodeAndTouchId": "Passcode e Touch ID",
"rallySettingsNotifications": "Notifiche",
"rallySettingsPersonalInformation": "Informazioni personali",
"rallySettingsPaperlessSettings": "Impostazioni computerizzate",
"rallySettingsFindAtms": "Trova bancomat",
"rallySettingsHelp": "Guida",
"rallySettingsSignOut": "Esci",
"rallyAccountTotal": "Totale",
"rallyBillsDue": "Scadenza:",
"rallyBudgetLeft": "Ancora a disposizione",
"rallyAccounts": "Account",
"rallyBills": "Fatture",
"rallyBudgets": "Budget",
"rallyAlerts": "Avvisi",
"rallySeeAll": "VEDI TUTTI",
"rallyFinanceLeft": "ANCORA A DISPOSIZIONE",
"rallyTitleOverview": "PANORAMICA",
"shrineProductShoulderRollsTee": "Maglietta shoulder roll",
"shrineNextButtonCaption": "AVANTI",
"rallyTitleBudgets": "BUDGET",
"rallyTitleSettings": "IMPOSTAZIONI",
"rallyLoginLoginToRally": "Accedi all'app Rally",
"rallyLoginNoAccount": "Non hai un account?",
"rallyLoginSignUp": "REGISTRATI",
"rallyLoginUsername": "Nome utente",
"rallyLoginPassword": "Password",
"rallyLoginLabelLogin": "Accedi",
"rallyLoginRememberMe": "Ricordami",
"rallyLoginButtonLogin": "ACCEDI",
"rallyAlertsMessageHeadsUpShopping": "Avviso: hai usato {percent} del tuo budget per gli acquisti di questo mese.",
"rallyAlertsMessageSpentOnRestaurants": "Questo mese hai speso {amount} per i ristoranti.",
"rallyAlertsMessageATMFees": "Questo mese hai speso {amount} di commissioni per prelievi in contanti",
"rallyAlertsMessageCheckingAccount": "Ottimo lavoro. Il saldo del tuo conto corrente è più alto di {percent} rispetto al mese scorso.",
"shrineMenuCaption": "MENU",
"shrineCategoryNameAll": "TUTTI",
"shrineCategoryNameAccessories": "ACCESSORI",
"shrineCategoryNameClothing": "ABBIGLIAMENTO",
"shrineCategoryNameHome": "CASA",
"shrineLoginUsernameLabel": "Nome utente",
"shrineLoginPasswordLabel": "Password",
"shrineCancelButtonCaption": "ANNULLA",
"shrineCartTaxCaption": "Imposte:",
"shrineCartPageCaption": "CARRELLO",
"shrineProductQuantity": "Quantità: {quantity}",
"shrineProductPrice": "x {price}",
"shrineCartItemCount": "{quantity,plural,=0{NESSUN ARTICOLO}=1{1 ARTICOLO}other{{quantity} ARTICOLI}}",
"shrineCartClearButtonCaption": "SVUOTA CARRELLO",
"shrineCartTotalCaption": "TOTALE",
"shrineCartSubtotalCaption": "Subtotale:",
"shrineCartShippingCaption": "Spedizione:",
"shrineProductGreySlouchTank": "Canottiera comoda grigia",
"shrineProductStellaSunglasses": "Occhiali da sole Stella",
"shrineProductWhitePinstripeShirt": "Maglia gessata bianca",
"demoTextFieldWhereCanWeReachYou": "Dove possiamo contattarti?",
"settingsTextDirectionLTR": "Da sinistra a destra",
"settingsTextScalingLarge": "Grande",
"demoBottomSheetHeader": "Intestazione",
"demoBottomSheetItem": "Articolo {value}",
"demoBottomTextFieldsTitle": "Campi di testo",
"demoTextFieldTitle": "Campi di testo",
"demoTextFieldSubtitle": "Singola riga di testo modificabile e numeri",
"demoTextFieldDescription": "I campi di testo consentono agli utenti di inserire testo in un'interfaccia utente e sono generalmente presenti in moduli e finestre di dialogo.",
"demoTextFieldShowPasswordLabel": "Mostra password",
"demoTextFieldHidePasswordLabel": "Nascondi password",
"demoTextFieldFormErrors": "Correggi gli errori in rosso prima di inviare il modulo.",
"demoTextFieldNameRequired": "Il nome è obbligatorio.",
"demoTextFieldOnlyAlphabeticalChars": "Inserisci soltanto caratteri alfabetici.",
"demoTextFieldEnterUSPhoneNumber": "(###) ###-####. Inserisci un numero di telefono degli Stati Uniti.",
"demoTextFieldEnterPassword": "Inserisci una password.",
"demoTextFieldPasswordsDoNotMatch": "Le password non corrispondono",
"demoTextFieldWhatDoPeopleCallYou": "Qual è il tuo nome?",
"demoTextFieldNameField": "Nome*",
"demoBottomSheetButtonText": "MOSTRA FOGLIO INFERIORE",
"demoTextFieldPhoneNumber": "Numero di telefono*",
"demoBottomSheetTitle": "Foglio inferiore",
"demoTextFieldEmail": "Indirizzo email",
"demoTextFieldTellUsAboutYourself": "Parlaci di te (ad esempio, scrivi cosa fai o quali sono i tuoi hobby)",
"demoTextFieldKeepItShort": "Usa un testo breve perché è soltanto dimostrativo.",
"starterAppGenericButton": "PULSANTE",
"demoTextFieldLifeStory": "Biografia",
"demoTextFieldSalary": "Stipendio",
"demoTextFieldUSD": "USD",
"demoTextFieldNoMoreThan": "Massimo 8 caratteri.",
"demoTextFieldPassword": "Password*",
"demoTextFieldRetypePassword": "Ridigita la password*",
"demoTextFieldSubmit": "INVIA",
"demoBottomNavigationSubtitle": "Navigazione inferiore con visualizzazioni a dissolvenza incrociata",
"demoBottomSheetAddLabel": "Aggiungi",
"demoBottomSheetModalDescription": "Un foglio inferiore modale è un'alternativa a un menu o a una finestra di dialogo e impedisce all'utente di interagire con il resto dell'app.",
"demoBottomSheetModalTitle": "Foglio inferiore modale",
"demoBottomSheetPersistentDescription": "Un foglio inferiore permanente mostra informazioni che integrano i contenuti principali dell'app. Un foglio inferiore permanente rimane visibile anche quando l'utente interagisce con altre parti dell'app.",
"demoBottomSheetPersistentTitle": "Foglio inferiore permanente",
"demoBottomSheetSubtitle": "Fogli inferiori permanenti e modali",
"demoTextFieldNameHasPhoneNumber": "Il numero di telefono di {name} è {phoneNumber}",
"buttonText": "PULSANTE",
"demoTypographyDescription": "Definizioni dei vari stili tipografici trovati in material design.",
"demoTypographySubtitle": "Tutti gli stili di testo predefiniti",
"demoTypographyTitle": "Tipografia",
"demoFullscreenDialogDescription": "La proprietà fullscreenDialog specifica se la pagina che sta per essere visualizzata è una finestra di dialogo modale a schermo intero",
"demoFlatButtonDescription": "Un pulsante piatto mostra una macchia di inchiostro quando viene premuto, ma non si solleva. Usa pulsanti piatti nelle barre degli strumenti, nelle finestre di dialogo e in linea con la spaziatura interna",
"demoBottomNavigationDescription": "Le barre di navigazione in basso mostrano da tre a cinque destinazioni nella parte inferiore dello schermo. Ogni destinazione è rappresentata da un'icona e da un'etichetta di testo facoltativa. Quando viene toccata un'icona di navigazione in basso, l'utente viene indirizzato alla destinazione di navigazione principale associata all'icona.",
"demoBottomNavigationSelectedLabel": "Etichetta selezionata",
"demoBottomNavigationPersistentLabels": "Etichette permanenti",
"starterAppDrawerItem": "Articolo {value}",
"demoTextFieldRequiredField": "L'asterisco (*) indica un campo obbligatorio",
"demoBottomNavigationTitle": "Navigazione in basso",
"settingsLightTheme": "Chiaro",
"settingsTheme": "Tema",
"settingsPlatformIOS": "iOS",
"settingsPlatformAndroid": "Android",
"settingsTextDirectionRTL": "Da destra a sinistra",
"settingsTextScalingHuge": "Molto grande",
"cupertinoButton": "Pulsante",
"settingsTextScalingNormal": "Normale",
"settingsTextScalingSmall": "Piccolo",
"settingsSystemDefault": "Sistema",
"settingsTitle": "Impostazioni",
"rallyDescription": "Un'app per le finanze personali",
"aboutDialogDescription": "Per visualizzare il codice sorgente di questa app, visita il {repoLink}.",
"bottomNavigationCommentsTab": "Commenti",
"starterAppGenericBody": "Corpo",
"starterAppGenericHeadline": "Titolo",
"starterAppGenericSubtitle": "Sottotitolo",
"starterAppGenericTitle": "Titolo",
"starterAppTooltipSearch": "Cerca",
"starterAppTooltipShare": "Condividi",
"starterAppTooltipFavorite": "Aggiungi ai preferiti",
"starterAppTooltipAdd": "Aggiungi",
"bottomNavigationCalendarTab": "Calendario",
"starterAppDescription": "Un layout di base adattivo",
"starterAppTitle": "App di base",
"aboutFlutterSamplesRepo": "Repository GitHub di campioni Flutter",
"bottomNavigationContentPlaceholder": "Segnaposto per la scheda {title}",
"bottomNavigationCameraTab": "Fotocamera",
"bottomNavigationAlarmTab": "Sveglia",
"bottomNavigationAccountTab": "Account",
"demoTextFieldYourEmailAddress": "Il tuo indirizzo email",
"demoToggleButtonDescription": "I pulsanti di attivazione/disattivazione possono essere usati per raggruppare le opzioni correlate. Per mettere in risalto un gruppo di pulsanti di attivazione/disattivazione correlati, il gruppo deve condividere un container comune.",
"colorsGrey": "GRIGIO",
"colorsBrown": "MARRONE",
"colorsDeepOrange": "ARANCIONE SCURO",
"colorsOrange": "ARANCIONE",
"colorsAmber": "AMBRA",
"colorsYellow": "GIALLO",
"colorsLime": "VERDE LIME",
"colorsLightGreen": "VERDE CHIARO",
"colorsGreen": "VERDE",
"homeHeaderGallery": "Galleria",
"homeHeaderCategories": "Categorie",
"shrineDescription": "Un'app di vendita al dettaglio alla moda",
"craneDescription": "Un'app personalizzata per i viaggi",
"homeCategoryReference": "STILI E ALTRE",
"demoInvalidURL": "Impossibile mostrare l'URL:",
"demoOptionsTooltip": "Opzioni",
"demoInfoTooltip": "Informazioni",
"demoCodeTooltip": "Codice demo",
"demoDocumentationTooltip": "Documentazione API",
"demoFullscreenTooltip": "Schermo intero",
"settingsTextScaling": "Ridimensionamento testo",
"settingsTextDirection": "Direzione testo",
"settingsLocale": "Impostazioni internazionali",
"settingsPlatformMechanics": "Struttura piattaforma",
"settingsDarkTheme": "Scuro",
"settingsSlowMotion": "Slow motion",
"settingsAbout": "Informazioni su Flutter Gallery",
"settingsFeedback": "Invia feedback",
"settingsAttribution": "Design di TOASTER di Londra",
"demoButtonTitle": "Pulsanti",
"demoButtonSubtitle": "Di testo, sollevati, con contorni e molto altro",
"demoFlatButtonTitle": "Pulsante piatto",
"demoRaisedButtonDescription": "I pulsanti in rilievo aggiungono dimensione a layout prevalentemente piatti. Mettono in risalto le funzioni in spazi ampi o densi di contenuti.",
"demoRaisedButtonTitle": "Pulsante in rilievo",
"demoOutlineButtonTitle": "Pulsante con contorni",
"demoOutlineButtonDescription": "I pulsanti con contorni diventano opachi e sollevati quando vengono premuti. Sono spesso associati a pulsanti in rilievo per indicare alternative, azioni secondarie.",
"demoToggleButtonTitle": "Pulsanti di attivazione/disattivazione",
"colorsTeal": "VERDE ACQUA",
"demoFloatingButtonTitle": "Pulsante di azione sovrapposto (FAB, Floating Action Button)",
"demoFloatingButtonDescription": "Un pulsante di azione sovrapposto è un'icona circolare che viene mostrata sui contenuti per promuovere un'azione principale dell'applicazione.",
"demoDialogTitle": "Finestre di dialogo",
"demoDialogSubtitle": "Semplice, di avviso e a schermo intero",
"demoAlertDialogTitle": "Avviso",
"demoAlertDialogDescription": "Una finestra di dialogo di avviso segnala all'utente situazioni che richiedono l'accettazione. Una finestra di dialogo include un titolo facoltativo e un elenco di azioni tra cui scegliere.",
"demoAlertTitleDialogTitle": "Avviso con titolo",
"demoSimpleDialogTitle": "Semplice",
"demoSimpleDialogDescription": "Una finestra di dialogo semplice offre all'utente una scelta tra molte opzioni. Una finestra di dialogo semplice include un titolo facoltativo che viene mostrato sopra le scelte.",
"demoFullscreenDialogTitle": "Schermo intero",
"demoCupertinoButtonsTitle": "Pulsanti",
"demoCupertinoButtonsSubtitle": "Pulsanti dello stile iOS",
"demoCupertinoButtonsDescription": "Un pulsante in stile iOS. È costituito da testo e/o da un'icona con effetto di dissolvenza quando viene mostrata e quando scompare se viene toccata. A discrezione, può avere uno sfondo.",
"demoCupertinoAlertsTitle": "Avvisi",
"demoCupertinoAlertsSubtitle": "Finestre di avviso in stile iOS",
"demoCupertinoAlertTitle": "Avviso",
"demoCupertinoAlertDescription": "Una finestra di dialogo di avviso segnala all'utente situazioni che richiedono l'accettazione. Una finestra di dialogo di avviso include un titolo facoltativo e un elenco di azioni tra cui scegliere. Il titolo viene mostrato sopra i contenuti e le azioni sono mostrate sotto i contenuti.",
"demoCupertinoAlertWithTitleTitle": "Avviso con titolo",
"demoCupertinoAlertButtonsTitle": "Avvisi con pulsanti",
"demoCupertinoAlertButtonsOnlyTitle": "Solo pulsanti di avviso",
"demoCupertinoActionSheetTitle": "Foglio azioni",
"demoCupertinoActionSheetDescription": "Un foglio azioni è un avviso con uno stile specifico che presenta all'utente un insieme di due o più scelte relative al contesto corrente. Un foglio azioni può avere un titolo, un messaggio aggiuntivo e un elenco di azioni.",
"demoColorsTitle": "Colori",
"demoColorsSubtitle": "Tutti i colori predefiniti",
"demoColorsDescription": "Costanti di colore e di campioni di colore che rappresentano la tavolozza dei colori di material design.",
"buttonTextEnabled": "ENABLED",
"buttonTextDisabled": "DISABLED",
"buttonTextCreate": "Crea",
"dialogSelectedOption": "Hai selezionato: \"{value}\"",
"dialogDiscardTitle": "Eliminare la bozza?",
"dialogLocationTitle": "Utilizzare il servizio di geolocalizzazione di Google?",
"dialogLocationDescription": "Consenti a Google di aiutare le app a individuare la posizione. Questa operazione comporta l'invio a Google di dati anonimi sulla posizione, anche quando non ci sono app in esecuzione.",
"dialogCancel": "ANNULLA",
"dialogDiscard": "ANNULLA",
"dialogDisagree": "NON ACCETTO",
"dialogAgree": "ACCETTO",
"dialogSetBackup": "Imposta account di backup",
"colorsBlueGrey": "GRIGIO BLU",
"dialogShow": "MOSTRA FINESTRA DI DIALOGO",
"dialogFullscreenTitle": "Finestra di dialogo a schermo intero",
"dialogFullscreenSave": "SALVA",
"dialogFullscreenDescription": "Finestra di dialogo demo a schermo intero",
"cupertinoButtonEnabled": "Enabled",
"cupertinoButtonDisabled": "Disabled",
"cupertinoButtonWithBackground": "Con sfondo",
"cupertinoAlertCancel": "Annulla",
"cupertinoAlertDiscard": "Annulla",
"cupertinoAlertLocationTitle": "Consentire a \"Maps\" di accedere alla tua posizione mentre usi l'app?",
"cupertinoAlertLocationDescription": "La tua posizione corrente verrà mostrata sulla mappa e usata per le indicazioni stradali, i risultati di ricerca nelle vicinanze e i tempi di percorrenza stimati.",
"cupertinoAlertAllow": "Consenti",
"cupertinoAlertDontAllow": "Non consentire",
"cupertinoAlertFavoriteDessert": "Seleziona il dolce che preferisci",
"cupertinoAlertDessertDescription": "Seleziona il tuo dolce preferito nell'elenco indicato di seguito. La tua selezione verrà usata per personalizzare l'elenco di locali gastronomici suggeriti nella tua zona.",
"cupertinoAlertCheesecake": "Cheesecake",
"cupertinoAlertTiramisu": "Tiramisù",
"cupertinoAlertApplePie": "Torta di mele",
"cupertinoAlertChocolateBrownie": "Brownie al cioccolato",
"cupertinoShowAlert": "Mostra avviso",
"colorsRed": "ROSSO",
"colorsPink": "ROSA",
"colorsPurple": "VIOLA",
"colorsDeepPurple": "VIOLA SCURO",
"colorsIndigo": "INDACO",
"colorsBlue": "BLU",
"colorsLightBlue": "AZZURRO",
"colorsCyan": "CIANO",
"dialogAddAccount": "Aggiungi account",
"Gallery": "Galleria",
"Categories": "Categorie",
"SHRINE": "SHRINE",
"Basic shopping app": "App di base per lo shopping",
"RALLY": "RALLY",
"CRANE": "CRANE",
"Travel app": "App di viaggio",
"MATERIAL": "MATERIAL",
"CUPERTINO": "CUPERTINO",
"REFERENCE STYLES & MEDIA": "MEDIA E STILI DI RIFERIMENTO"
}
| gallery/lib/l10n/intl_it.arb/0 | {
"file_path": "gallery/lib/l10n/intl_it.arb",
"repo_id": "gallery",
"token_count": 19377
} | 837 |
{
"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": "ပုံမှန်အားဖြင့် သုံးခုနှင့် ငါးခုကြားရှိ နည်းပါးသော ကြည့်ရှုမှုများကြား လမ်းညွှန်ရန် အက်ပ်တစ်ခု၏ ဘယ်ဘက် သို့မဟုတ် ညာဘက်တွင် ပြသရန် ရည်ရွယ်သည့် Material ဝိဂျက်။",
"demoNavigationRailFirst": "ပထမ",
"demoNavigationDrawerTitle": "လမ်းကြောင်းပြ အံဆွဲ",
"demoNavigationRailThird": "တတိယ",
"replyStarredLabel": "ကြယ်ပွင့်ပြ",
"demoTextButtonDescription": "စာသားခလုတ်က နှိပ်လိုက်သည့်အခါ မင်ပက်ဖြန်းမှုကို ပြသသော်လည်း မ တင်ခြင်းမရှိပါ။ ကိရိယာဘား၊ ဒိုင်ယာလော့ခ်များနှင့် စာကြောင်းအတွင်းတို့တွင် စာသားခလုတ်များကို အသုံးပြုပါ",
"demoElevatedButtonTitle": "စာလုံးဆင့်ခြင်း ခလုတ်",
"demoElevatedButtonDescription": "စာလုံးဆင့်ခြင်း ခလုတ်များသည် အများအားဖြင့် အပြားလိုက် အပြင်အဆင်များတွင် ထုထည်အားဖြင့်ဖြည့်ပေးသည်။ ၎င်းတို့သည် ကျယ်ပြန့်သော သို့မဟုတ် ခလုတ်များပြားသော နေရာများတွင် လုပ်ဆောင်ချက်များကို အထူးပြုသည်။",
"demoOutlinedButtonTitle": "ဘောင်မျဉ်းခတ်ခြင်း ခလုတ်",
"demoOutlinedButtonDescription": "ဘောင်မျဉ်းခတ်ခြင်း ခလုတ်များကို နှိပ်လိုက်သည့်အခါ ဖျော့သွားပြီး မြှင့်တက်လာသည်။ ကွဲပြားသည့် ဒုတိယလုပ်ဆောင်ချက်တစ်ခုကို ဖော်ပြရန် ၎င်းတို့ကို ခလုတ်မြင့်များနှင့် မကြာခဏ တွဲထားလေ့ရှိသည်။",
"demoContainerTransformDemoInstructions": "ကတ်၊ စာရင်းနှင့် FAB များ",
"demoNavigationDrawerSubtitle": "အက်ပ်ဘားအတွင်းရှိ အံဆွဲကို ပြသခြင်း",
"replyDescription": "အသုံးဝင်သည့် ဦးစားပေး အီးမေးလ်အက်ပ်",
"demoNavigationDrawerDescription": "အက်ပ်တစ်ခုတွင် လမ်းညွှန်မှုလင့်ခ်များကို ပြရန် ဖန်သားပြင်၏ အနားစွန်းမှ ရေပြင်ညီအတိုင်း ပြသသော Material Design အကန့်။",
"replyDraftsLabel": "မူကြမ်းများ",
"demoNavigationDrawerToPageOne": "အံဆွဲအကြောင်းအရာ တစ်",
"replyInboxLabel": "ဝင်စာများ",
"demoSharedXAxisDemoInstructions": "ရှေ့သို့နှင့် နောက်သို့ ခလုတ်များ",
"replySpamLabel": "စပမ်း",
"replyTrashLabel": "အမှိုက်ပုံး",
"replySentLabel": "ပို့ပြီး",
"demoNavigationRailSecond": "ဒုတိယ",
"demoNavigationDrawerToPageTwo": "အံဆွဲအကြောင်းအရာ နှစ်",
"demoFadeScaleDemoInstructions": "Modal နှင့် FAB",
"demoFadeThroughDemoInstructions": "အောက်ခြေတွင် လမ်းညွှန်ခြင်း",
"demoSharedZAxisDemoInstructions": "ဆက်တင်များ သင်္ကေတ ခလုတ်",
"demoSharedYAxisDemoInstructions": "\"မကြာသေးမီက ဖွင့်ခဲ့သည်\" အရ စီပါ",
"demoTextButtonTitle": "စာသားခလုတ်",
"demoSharedZAxisBeefSandwichRecipeTitle": "အမဲသား အသားညှပ်ပေါင်မုန့်",
"demoSharedZAxisDessertRecipeDescription": "အချိုပွဲလုပ်နည်း",
"demoSharedYAxisAlbumTileSubtitle": "အနုပညာရှင်",
"demoSharedYAxisAlbumTileTitle": "အယ်လ်ဘမ်",
"demoSharedYAxisRecentSortTitle": "မကြာသေးမီက ဖွင့်ခဲ့သည်",
"demoSharedYAxisAlphabeticalSortTitle": "A-Z",
"demoSharedYAxisAlbumCount": "အယ်လ်ဘမ် ၂၆၈ ခု",
"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": "ဓာတ်ပုံ ၁၂၃ ပုံ",
"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": "Motion",
"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": "နည်းပညာဒီဇိုင်း",
"rallyBudgetDetailAmountLeft": "ကျန်ရှိသည့် ပမာဏ",
"fortnightlyHeadlineArmy": "အတွင်း၌ပင် အစိမ်းရောင် စစ်တပ်ကို ပြုပြင်ပြောင်းလဲခြင်း",
"fortnightlyDescription": "အကြောင်းအရာ အထူးဖော်ပြထားသည့် သတင်းအက်ပ်",
"rallyBillDetailAmountDue": "ပေးရမည့် ပမာဏ",
"rallyBudgetDetailTotalCap": "စုစုပေါင်း ကန့်သတ်ပမာဏ",
"rallyBudgetDetailAmountUsed": "အသုံးပြုထားသည့် ပမာဏ",
"fortnightlyTrendingHealthcareRevolution": "ကျန်းမာရေးစောင့်ရှောက်မှု ပြောင်းလဲခြင်း",
"fortnightlyMenuFrontPage": "ရှေ့စာမျက်နှာ",
"fortnightlyMenuWorld": "ကမ္ဘာ",
"rallyBillDetailAmountPaid": "ငွေပေးချေသည့် ပမာဏ",
"fortnightlyMenuPolitics": "နိုင်ငံရေး",
"fortnightlyHeadlineBees": "ယာတောပြားများ လျော့နည်းလာခြင်း",
"fortnightlyHeadlineGasoline": "ဓာတ်ဆီ၏ အနာဂတ်",
"fortnightlyTrendingGreenArmy": "အစိမ်းရောင်စစ်တပ်",
"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": "အချိုပွဲ (၁ ပွဲ)",
"cardsDemoTravelDestinationLocation1": "သန်ဂျီဗာ၊ တမီးလ်နာဒူ",
"demoTimePickerDescription": "Material Design အချိန်ရွေးချယ်ရေးစနစ် ပါဝင်သော ဒိုင်ယာလော့ခ်ကို ပြပေးသည်။",
"demoPickersShowPicker": "ရွေးချယ်ရေးစနစ် ပြရန်",
"demoTabsScrollingTitle": "လှိမ့်ခြင်း",
"demoTabsNonScrollingTitle": "လှိမ့်၍မရသော",
"craneHours": "{hours,plural,=1{၁နာရီ}other{{hours}နာရီ}}",
"craneMinutes": "{minutes,plural,=1{၁မိနစ်}other{{minutes}မိနစ်}}",
"craneFlightDuration": "{hoursShortForm} {minutesShortForm}",
"dataTableHeader": "အာဟာရ",
"demoDatePickerTitle": "ရက်စွဲ ရွေးချယ်ရေးစနစ်",
"demoPickersSubtitle": "ရက်စွဲနှင့် အချိန် ရွေးချယ်မှု",
"demoPickersTitle": "ရွေးချယ်ရေးစနစ်များ",
"demo2dTransformationsEditTooltip": "လေးထောင့်ကွက်ကို တည်းဖြတ်ရန်",
"demoDataTableDescription": "ဒေတာဇယားများတွင် အချက်အလက်များကို အတန်းနှင့် ကော်လံများပါသော ဇယားကွက်ကဲ့သို့ ပုံစံဖြင့် ဖော်ပြသည်။ အလွယ်တကူကြည့်နိုင်သော နည်းလမ်းဖြင့် အချက်အလက်များကို စီစဉ်ထားသည့်အတွက် အသုံးပြုသူများက ပုံစံနှင့် သိကောင်းစရာများကို ရှာဖွေနိုင်သည်။",
"demo2dTransformationsDescription": "လေးထောင့်ကွက်များကို တည်းဖြတ်ရန်တို့ပြီး မြင်ကွင်းတစ်လျှောက် ရွှေ့ရန် လက်ဟန်များကို အသုံးပြုပါ။ ရွှေ့ရန် ဖိဆွဲပါ၊ ချဲ့ရန် လက်နှစ်ချောင်းဖြင့် ထိ၍ခွာလိုက်ပါ၊ လက်နှစ်ချောင်းဖြင့် လှည့်ပါ။ မူရင်းအနေအထားသို့ ပြန်သွားရန် ပြင်ဆင်သတ်မှတ်ခြင်းခလုတ်ကို နှိပ်ပါ။",
"demo2dTransformationsSubtitle": "ရွှေ့၊ ချဲ့၊ လှည့်",
"demo2dTransformationsTitle": "2D အသွင်ပြောင်းခြင်းများ",
"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": "'တမီးလ်နာဒူ' တွင် လည်ပတ်ရန် ထိပ်တန်းမြို့ ၁၀ မြို့",
"cardsDemoTravelDestinationDescription1": "နံပါတ် ၁၀",
"cardsDemoTravelDestinationCity1": "သန်ဂျီဗာ",
"dataTableColumnProtein": "အသားဓာတ် (g)",
"cardsDemoTravelDestinationTitle2": "တောင်အိန္ဒိယ၏ လက်မှုပညာသည်များ",
"cardsDemoTravelDestinationDescription2": "ပိုးချည်ငင်သည့် ရစ်ဘီးများ",
"bannerDemoText": "သင်၏အခြားစက်ပေါ်တွင် စကားဝှက်ကို အပ်ဒိတ်လုပ်ထားသည်။ ကျေးဇူးပြု၍ ထပ်မံ လက်မှတ်ထိုးဝင်ပါ။",
"cardsDemoTravelDestinationLocation2": "ရှီဗာဂန်ဂါ၊ တမီးလ်နာဒူ",
"cardsDemoTravelDestinationTitle3": "ဗရီဟာဒစ်ဗာရာ ဘုရားကျောင်း",
"cardsDemoTravelDestinationDescription3": "ဘုရားကျောင်းများ",
"demoBannerTitle": "နဖူးစည်း",
"demoBannerSubtitle": "စာရင်းအတွင်း နဖူးစည်းတစ်ခု ပြသခြင်း",
"demoBannerDescription": "နဖူးစည်းတွင် အရေးကြီးပြီး လိုရင်းတိုရှင်း မက်ဆေ့ဂျ်ကိုပြသပြီး အသုံးပြုသူများက ပြုလုပ်ရန် (သို့မဟုတ် နဖူးစည်းကို ပယ်ရန်) လုပ်ဆောင်ချက်များ ပေးထားသည်။ ၎င်းကိုပယ်ရန် အသုံးပြုသူ၏ လုပ်ဆောင်ချက် လိုအပ်သည်။",
"demoCardTitle": "ကတ်များ",
"demoCardSubtitle": "ထောင့်အနားကွေးများဖြင့် အခြေခံကတ်များ",
"demoCardDescription": "ကတ်ဟူသည်မှာ ဥပမာအားဖြင့် အယ်လ်ဘမ်၊ ပထဝီဝင်တည်နေရာ၊ အစားအသောက်၊ အဆက်အသွယ် အသေးစိတ် အစရှိသည့် သက်ဆိုင်ရာ အချက်အလက်အချို့ကို ဖော်ပြရန် အသုံးပြုသည့် ကတ်ပြားဖြစ်သည်။",
"demoDataTableTitle": "ဒေတာဇယားများ",
"demoDataTableSubtitle": "အချက်အလက်၏ အတန်းနှင့် ကော်လံများ",
"dataTableColumnCarbs": "ကစီဓာတ် (g)",
"placeTanjore": "Tanjore",
"demoGridListsTitle": "ဇယားကွက်စာရင်းများ",
"placeFlowerMarket": "ပန်းဈေး",
"placeBronzeWorks": "ကြေးထည်",
"placeMarket": "စျေး",
"placeThanjavurTemple": "Thanjavur ဘုရားကျောင်း",
"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": "Chennai",
"demoMenuChecked": "အမှန်ခြစ်ထားသည်- {value}",
"placeChettinad": "Chettinad",
"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": "Pondicherry",
"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": "ချတ်",
"cupertinoTabBarHomeTab": "အိမ်",
"demoCupertinoTabBarDescription": "iOS ပုံစံ အောက်ခြေ လမ်းညွှန်တဘ်ဘား။ မူရင်းအနေနှင့် ပထမဆုံးတဘ်ကို အမြဲပြထားပြီး တဘ်ပေါင်းများစွာ ဖော်ပြပေးသည်။",
"demoCupertinoTabBarSubtitle": "iOS ပုံစံ အောက်ခြေတဘ်ဘား",
"demoOptionsFeatureTitle": "ရွေးစရာများ ကြည့်ရန်",
"demoOptionsFeatureDescription": "ယခုသရုပ်ပြမှုအတွက် ရနိုင်သောရွေးစရာများ ကြည့်ရန် ဤနေရာကို တို့နိုင်သည်။",
"demoCodeViewerCopyAll": "အားလုံး မိတ္တူကူးရန်",
"shrineScreenReaderRemoveProductButton": "{product} ကို ဖယ်ရှားရန်",
"shrineScreenReaderProductAddToCart": "ဈေးခြင်းတောင်းသို့ ပေါင်းထည့်မည်",
"shrineScreenReaderCart": "{quantity,plural,=0{ဈေးခြင်းတောင်း၊ ပစ္စည်းမရှိပါ}=1{ဈေးခြင်းတောင်း၊ ပစ္စည်း ၁ ခု}other{ဈေးခြင်းတောင်း၊ ပစ္စည်း {quantity} ခု}}",
"demoCodeViewerFailedToCopyToClipboardMessage": "ကလစ်ဘုတ်သို့ မိတ္တူကူး၍မရပါ− {error}",
"demoCodeViewerCopiedToClipboardMessage": "ကလစ်ဘုတ်သို့ မိတ္တူကူးပြီးပါပြီ။",
"craneSleep8SemanticLabel": "ကမ်းခြေထက် ကျောက်ကမ်းပါးတစ်ခုပေါ်ရှိ Mayan ဘုရားပျက်",
"craneSleep4SemanticLabel": "တောင်တန်းများရှေ့ရှိ ကမ်းစပ်ဟိုတယ်",
"craneSleep2SemanticLabel": "မာချူ ပီချူ ခံတပ်",
"craneSleep1SemanticLabel": "အမြဲစိမ်းသစ်ပင်များဖြင့် နှင်းကျသော ရှုခင်းတစ်ခုရှိ တောင်ပေါ်သစ်သားအိမ်",
"craneSleep0SemanticLabel": "ရေပေါ်အိမ်လေးများ",
"craneFly13SemanticLabel": "ထန်းပင်များဖြင့် ပင်လယ်ကမ်းစပ်ရှိ ရေကူးကန်",
"craneFly12SemanticLabel": "ထန်းပင်များနှင့် ရေကူးကန်",
"craneFly11SemanticLabel": "ပင်လယ်ရှိ အုတ်ဖြင့်တည်ဆောက်ထားသော မီးပြတိုက်",
"craneFly10SemanticLabel": "နေဝင်ချိန် Al-Azhar Mosque မျှော်စင်များ",
"craneFly9SemanticLabel": "ရှေးဟောင်းကားပြာဘေး မှီနေသည့်လူ",
"craneFly8SemanticLabel": "Supertree Grove",
"craneEat9SemanticLabel": "ပေါင်မုန့်များဖြင့် ကော်ဖီဆိုင်ကောင်တာ",
"craneEat2SemanticLabel": "အသားညှပ်ပေါင်မုန့်",
"craneFly5SemanticLabel": "တောင်တန်းများရှေ့ရှိ ကမ်းစပ်ဟိုတယ်",
"demoSelectionControlsSubtitle": "အမှန်ခြစ်ရန် နေရာများ၊ ရေဒီယိုခလုတ်များနှင့် အဖွင့်အပိတ်ခလုတ်များ",
"craneEat10SemanticLabel": "ကြီးမားသော အမဲကျပ်တိုက်အသားညှပ်ပေါင်မုန့်ကို ကိုင်ထားသောအမျိုးသမီး",
"craneFly4SemanticLabel": "ရေပေါ်အိမ်လေးများ",
"craneEat7SemanticLabel": "မုန့်ဖုတ်ဆိုင် ဝင်ပေါက်",
"craneEat6SemanticLabel": "ပုဇွန်ဟင်း",
"craneEat5SemanticLabel": "အနုပညာလက်ရာမြောက်သော စားသောက်ဆိုင် တည်ခင်းဧည့်ခံရန်နေရာ",
"craneEat4SemanticLabel": "ချောကလက် အချိုပွဲ",
"craneEat3SemanticLabel": "ကိုးရီးယား တာကို",
"craneFly3SemanticLabel": "မာချူ ပီချူ ခံတပ်",
"craneEat1SemanticLabel": "ညစာစားရာတွင် အသုံးပြုသည့်ခုံပုံစံများဖြင့် လူမရှိသောအရက်ဆိုင်",
"craneEat0SemanticLabel": "ထင်းမီးဖိုရှိ ပီဇာ",
"craneSleep11SemanticLabel": "တိုင်ပေ 101 မိုးမျှော်တိုက်",
"craneSleep10SemanticLabel": "နေဝင်ချိန် Al-Azhar Mosque မျှော်စင်များ",
"craneSleep9SemanticLabel": "ပင်လယ်ရှိ အုတ်ဖြင့်တည်ဆောက်ထားသော မီးပြတိုက်",
"craneEat8SemanticLabel": "ကျောက်ပုစွန် ဟင်းလျာ",
"craneSleep7SemanticLabel": "Riberia 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} ငွေတောင်းခံလွှာအတွက် {date} တွင် {amount} ပေးရပါမည်။",
"shrineTooltipCloseCart": "ဈေးခြင်းတောင်းကို ပိတ်ရန်",
"shrineTooltipCloseMenu": "မီနူးကို ပိတ်ရန်",
"shrineTooltipOpenMenu": "မီနူး ဖွင့်ရန်",
"shrineTooltipSettings": "ဆက်တင်များ",
"shrineTooltipSearch": "ရှာဖွေရန်",
"demoTabsDescription": "တဘ်များက ဖန်သားပြင်၊ ဒေတာအတွဲနှင့် အခြားပြန်လှန်တုံ့ပြန်မှု အမျိုးမျိုးရှိ အကြောင်းအရာများကို စုစည်းပေးသည်။",
"demoTabsSubtitle": "သီးခြားလှိမ့်နိုင်သော မြင်ကွင်းများဖြင့် တဘ်များ",
"demoTabsTitle": "တဘ်များ",
"rallyBudgetAmount": "{amountTotal} အနက် {amountUsed} အသုံးပြုထားသော {budgetName} အသုံးစရိတ်တွင် {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": "Vagabond sack",
"rallyAccountDetailDataInterestYtd": "အတိုး YTD",
"shrineProductWhitneyBelt": "Whitney belt",
"shrineProductGardenStrand": "Garden strand",
"shrineProductStrutEarrings": "Strut earrings",
"shrineProductVarsitySocks": "Varsity socks",
"shrineProductWeaveKeyring": "Weave keyring",
"shrineProductGatsbyHat": "Gatsby hat",
"shrineProductShrugBag": "လက်ဆွဲအိတ်",
"shrineProductGiltDeskTrio": "Gilt desk trio",
"shrineProductCopperWireRack": "Copper wire rack",
"shrineProductSootheCeramicSet": "Soothe ceramic set",
"shrineProductHurrahsTeaSet": "Hurrahs tea set",
"shrineProductBlueStoneMug": "Blue stone mug",
"shrineProductRainwaterTray": "Rainwater tray",
"shrineProductChambrayNapkins": "Chambray napkins",
"shrineProductSucculentPlanters": "Succulent planters",
"shrineProductQuartetTable": "Quartet table",
"shrineProductKitchenQuattro": "Kitchen quattro",
"shrineProductClaySweater": "Clay sweater",
"shrineProductSeaTunic": "Sea tunic",
"shrineProductPlasterTunic": "Plaster tunic",
"rallyBudgetCategoryRestaurants": "စားသောက်ဆိုင်များ",
"shrineProductChambrayShirt": "Chambray shirt",
"shrineProductSeabreezeSweater": "Seabreeze sweater",
"shrineProductGentryJacket": "Gentry jacket",
"shrineProductNavyTrousers": "Navy trousers",
"shrineProductWalterHenleyWhite": "Walter henley (white)",
"shrineProductSurfAndPerfShirt": "Surf and perf shirt",
"shrineProductGingerScarf": "Ginger scarf",
"shrineProductRamonaCrossover": "Ramona crossover",
"shrineProductClassicWhiteCollar": "Classic white collar",
"shrineProductSunshirtDress": "Sunshirt dress",
"rallyAccountDetailDataInterestRate": "အတိုးနှုန်း",
"rallyAccountDetailDataAnnualPercentageYield": "တစ်နှစ်တာ ထွက်ရှိမှုရာခိုင်နှုန်း",
"rallyAccountDataVacation": "အားလပ်ရက်",
"shrineProductFineLinesTee": "Fine lines tee",
"rallyAccountDataHomeSavings": "အိမ်စုငွေများ",
"rallyAccountDataChecking": "စာရင်းရှင်",
"rallyAccountDetailDataInterestPaidLastYear": "ယခင်နှစ်က ပေးထားသည့် အတိုး",
"rallyAccountDetailDataNextStatement": "နောက် ထုတ်ပြန်ချက်",
"rallyAccountDetailDataAccountOwner": "အကောင့် ပိုင်ရှင်",
"rallyBudgetCategoryCoffeeShops": "ကော်ဖီဆိုင်များ",
"rallyBudgetCategoryGroceries": "စားသောက်ကုန်များ",
"shrineProductCeriseScallopTee": "Cerise scallop tee",
"rallyBudgetCategoryClothing": "အဝတ်အထည်",
"rallySettingsManageAccounts": "အကောင့်များကို စီမံခန့်ခွဲရန်",
"rallyAccountDataCarSavings": "ကား စုငွေများ",
"rallySettingsTaxDocuments": "အခွန် မှတ်တမ်းများ",
"rallySettingsPasscodeAndTouchId": "လျှို့ဝှက်ကုဒ်နှင့် 'လက်ဗွေ ID'",
"rallySettingsNotifications": "အကြောင်းကြားချက်များ",
"rallySettingsPersonalInformation": "ကိုယ်ရေးအချက်အလက်များ",
"rallySettingsPaperlessSettings": "စာရွက်မသုံး ဆက်တင်များ",
"rallySettingsFindAtms": "ATM များကို ရှာရန်",
"rallySettingsHelp": "အကူအညီ",
"rallySettingsSignOut": "ထွက်ရန်",
"rallyAccountTotal": "စုစုပေါင်း",
"rallyBillsDue": "နောက်ဆုံးထား ပေးရမည့်ရက်",
"rallyBudgetLeft": "လက်ကျန်",
"rallyAccounts": "အကောင့်များ",
"rallyBills": "ငွေတောင်းခံလွှာများ",
"rallyBudgets": "ငွေစာရင်းများ",
"rallyAlerts": "သတိပေးချက်များ",
"rallySeeAll": "အားလုံးကို ကြည့်ရန်",
"rallyFinanceLeft": "လက်ကျန်",
"rallyTitleOverview": "အနှစ်ချုပ်",
"shrineProductShoulderRollsTee": "Shoulder rolls tee",
"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": "Grey slouch tank",
"shrineProductStellaSunglasses": "Stella sunglasses",
"shrineProductWhitePinstripeShirt": "White pinstripe shirt",
"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": "အက္ခရာ ၈ လုံးထက် မပိုရ။",
"demoTextFieldPassword": "စကားဝှက်*",
"demoTextFieldRetypePassword": "စကားဝှက်ကို ပြန်ရိုက်ပါ*",
"demoTextFieldSubmit": "ပေးပို့ရန်",
"demoBottomNavigationSubtitle": "အရောင်မှိန်သွားသည့် မြင်ကွင်းများဖြင့် အောက်ခြေမီနူးပါ လမ်းညွှန်မှု",
"demoBottomSheetAddLabel": "ထည့်ရန်",
"demoBottomSheetModalDescription": "Modal အောက်ခြေမီနူးပါ စာမျက်နှာသည် မီနူး သို့မဟုတ် ဒိုင်ယာလော့ဂ်အတွက် အစားထိုးနည်းလမ်းတစ်ခုဖြစ်ပြီး အသုံးပြုသူက အက်ပ်၏ကျန်ရှိအပိုင်းများနှင့် ပြန်လှန်တုံ့ပြန်မှုမပြုရန် ကန့်သတ်ပေးသည်။",
"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": "ရှာဖွေရန်",
"starterAppTooltipShare": "မျှဝေရန်",
"starterAppTooltipFavorite": "အကြိုက်ဆုံး",
"starterAppTooltipAdd": "ထည့်ရန်",
"bottomNavigationCalendarTab": "ပြက္ခဒိန်",
"starterAppDescription": "တုံ့ပြန်မှုကောင်းမွန်သော အစပြုရန် အပြင်အဆင်",
"starterAppTitle": "အစပြုအက်ပ်",
"aboutFlutterSamplesRepo": "Flutter နမူနာ GitHub ပြတိုက်",
"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": "Designed by TOASTER in London",
"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": "သင့်လက်ရှိ တည်နေရာကို မြေပုံပေါ်တွင် ဖော်ပြမည်ဖြစ်ပြီး လမ်းညွှန်ချက်များ၊ အနီးနားရှိ ရှာဖွေမှုရလဒ်များနှင့် ခန့်မှန်းခြေ ခရီးသွားချိန်များအတွက် အသုံးပြုသွားပါမည်။",
"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": "RALLY",
"CRANE": "ကရိန်း",
"Travel app": "ခရီးသွားလာရေးအက်ပ်",
"MATERIAL": "ပစ္စည်းအမျိုးအစား",
"CUPERTINO": "CUPERTINO",
"REFERENCE STYLES & MEDIA": "မှီငြမ်းပြုပုံစံများနှင့် မီဒီယာ"
}
| gallery/lib/l10n/intl_my.arb/0 | {
"file_path": "gallery/lib/l10n/intl_my.arb",
"repo_id": "gallery",
"token_count": 85199
} | 838 |
{
"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": "Картице, листе и плутајуће дугме за радњу",
"demoNavigationDrawerSubtitle": "Приказује фиоку на траци са апликацијама",
"replyDescription": "Ефикасна, фокусирана апликација за имејл",
"demoNavigationDrawerDescription": "Окно Материјални дизајн које се превлачи хоризонтално од ивице екрана ради приказивања линкова за навигацију у апликацији.",
"replyDraftsLabel": "Радне верзије",
"demoNavigationDrawerToPageOne": "Прва ставка",
"replyInboxLabel": "Пријемно сандуче",
"demoSharedXAxisDemoInstructions": "Дугмад Даље и Назад",
"replySpamLabel": "Непожељно",
"replyTrashLabel": "Отпад",
"replySentLabel": "Послато",
"demoNavigationRailSecond": "Друга",
"demoNavigationDrawerToPageTwo": "Друга ставка",
"demoFadeScaleDemoInstructions": "Модално и плутајуће дугме за радњу",
"demoFadeThroughDemoInstructions": "Доња навигација",
"demoSharedZAxisDemoInstructions": "Дугме иконе Подешавања",
"demoSharedYAxisDemoInstructions": "Сортирај по критеријуму Недавно слушано",
"demoTextButtonTitle": "Дугме за текст",
"demoSharedZAxisBeefSandwichRecipeTitle": "Сендвич са говедином",
"demoSharedZAxisDessertRecipeDescription": "Рецепт за дезерт",
"demoSharedYAxisAlbumTileSubtitle": "Извођач",
"demoSharedYAxisAlbumTileTitle": "Албум",
"demoSharedYAxisRecentSortTitle": "Недавно слушано",
"demoSharedYAxisAlphabeticalSortTitle": "A–Z",
"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": "Секундарнo",
"demoMotionDetailsPageTitle": "Страница са детаљима",
"demoMotionListTileTitle": "Ставка листе",
"demoSharedAxisDescription": "Шаблон заједничке осе се користи за прелаз између елемената корисничког интерфејса који имају просторни или навигациони однос. Овај шаблон користи заједничку трансформацију по 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 ч}few{{hours} ч}other{{hours} ч}}",
"craneMinutes": "{minutes,plural,=1{1 м}few{{minutes} м}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": "Назад у галерију",
"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 артикал}few{Корпа за куповину, {quantity} артикла}other{Корпа за куповину, {quantity} артикала}}",
"demoCodeViewerFailedToCopyToClipboardMessage": "Копирање у привремену меморију није успело: {error}",
"demoCodeViewerCopiedToClipboardMessage": "Копирано је у привремену меморију.",
"craneSleep8SemanticLabel": "Мајанске рушевине на литици изнад плаже",
"craneSleep4SemanticLabel": "Хотел на обали језера испред планина",
"craneSleep2SemanticLabel": "Тврђава у Мачу Пикчуу",
"craneSleep1SemanticLabel": "Планинска колиба у снежном пејзажу са зимзеленим дрвећем",
"craneSleep0SemanticLabel": "Бунгалови који се надвијају над водом",
"craneFly13SemanticLabel": "Базен на обали мора са палмама",
"craneFly12SemanticLabel": "Базен са палмама",
"craneFly11SemanticLabel": "Светионик од цигала на мору",
"craneFly10SemanticLabel": "Минарети џамије Ал-Аџар у сумрак",
"craneFly9SemanticLabel": "Човек се наслања на стари плави аутомобил",
"craneFly8SemanticLabel": "Supertree Grove",
"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": "Рачун ({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 недодељеној трансакцији.}few{Повећајте могући одбитак пореза! Доделите категорије за {count} недодељене трансакције.}other{Повећајте могући одбитак пореза! Доделите категорије за {count} недодељених трансакција.}}",
"craneFormTime": "Изаберите време",
"craneFormLocation": "Изаберите локацију",
"craneFormTravelers": "Путници",
"craneEat8": "Атланта, Сједињене Америчке Државе",
"craneFormDestination": "Одаберите одредиште",
"craneFormDates": "Изаберите датуме",
"craneFly": "ЛЕТ",
"craneSleep": "НОЋЕЊЕ",
"craneEat": "ИСХРАНА",
"craneFlySubhead": "Истражујте летове према дестинацији",
"craneSleepSubhead": "Истражујте смештајне објекте према одредишту",
"craneEatSubhead": "Истражујте ресторане према одредишту",
"craneFlyStops": "{numberOfStops,plural,=0{Директан}=1{1 заустављање}few{{numberOfStops} заустављања}other{{numberOfStops} заустављања}}",
"craneSleepProperties": "{totalProperties,plural,=0{Нема доступних објеката}=1{1 доступан објекат}few{{totalProperties} доступна објекта}other{{totalProperties} доступних објеката}}",
"craneEatRestaurants": "{totalRestaurants,plural,=0{Нема ресторана}=1{1 ресторан}few{{totalRestaurants} ресторана}other{{totalRestaurants} ресторана}}",
"craneFly0": "Аспен, Сједињене Америчке Државе",
"demoCupertinoSegmentedControlSubtitle": "Сегментирана контрола у iOS стилу",
"craneSleep10": "Каиро, Египат",
"craneEat9": "Мадрид, Шпанија",
"craneFly1": "Биг Сур, Сједињене Америчке Државе",
"craneEat7": "Нешвил, Сједињене Америчке Државе",
"craneEat6": "Сијетл, Сједињене Америчке Државе",
"craneFly8": "Сингапур",
"craneEat4": "Париз, Француска",
"craneEat3": "Портланд, Сједињене Америчке Државе",
"craneEat2": "Кордоба, Аргентина",
"craneEat1": "Далас, Сједињене Америчке Државе",
"craneEat0": "Напуљ, Италија",
"craneSleep11": "Тајпеј, Тајван",
"craneSleep3": "Хавана, Куба",
"shrineLogoutButtonCaption": "ОДЈАВИ МЕ",
"rallyTitleBills": "ОБРАЧУНИ",
"rallyTitleAccounts": "НАЛОЗИ",
"shrineProductVagabondSack": "Врећаста торба",
"rallyAccountDetailDataInterestYtd": "Камата од почетка године до данас",
"shrineProductWhitneyBelt": "Каиш Whitney",
"shrineProductGardenStrand": "Баштенски конопац",
"shrineProductStrutEarrings": "Strut минђуше",
"shrineProductVarsitySocks": "Чарапе са пругама",
"shrineProductWeaveKeyring": "Плетени привезак за кључеве",
"shrineProductGatsbyHat": "Качкет",
"shrineProductShrugBag": "Торба са ручком за ношење на рамену",
"shrineProductGiltDeskTrio": "Трио позлаћених сточића",
"shrineProductCopperWireRack": "Бакарна вешалица",
"shrineProductSootheCeramicSet": "Керамички сет Soothe",
"shrineProductHurrahsTeaSet": "Чајни сет Hurrahs",
"shrineProductBlueStoneMug": "Плава камена шоља",
"shrineProductRainwaterTray": "Посуда за кишницу",
"shrineProductChambrayNapkins": "Платнене салвете",
"shrineProductSucculentPlanters": "Саксије за сочнице",
"shrineProductQuartetTable": "Сто за четири особе",
"shrineProductKitchenQuattro": "Кухињски сет из четири дела",
"shrineProductClaySweater": "Џемпер боје глине",
"shrineProductSeaTunic": "Тамноплава туника",
"shrineProductPlasterTunic": "Туника боје гипса",
"rallyBudgetCategoryRestaurants": "Ресторани",
"shrineProductChambrayShirt": "Платнена мајица",
"shrineProductSeabreezeSweater": "Џемпер са шаблоном морских таласа",
"shrineProductGentryJacket": "Gentry јакна",
"shrineProductNavyTrousers": "Тамноплаве панталоне",
"shrineProductWalterHenleyWhite": "Мајица са изрезом у облику слова v (беле боје)",
"shrineProductSurfAndPerfShirt": "Сурферска мајица",
"shrineProductGingerScarf": "Црвени шал",
"shrineProductRamonaCrossover": "Женска блуза Ramona",
"shrineProductClassicWhiteCollar": "Класична бела кошуља",
"shrineProductSunshirtDress": "Хаљина за заштиту од сунца",
"rallyAccountDetailDataInterestRate": "Каматна стопа",
"rallyAccountDetailDataAnnualPercentageYield": "Годишњи проценат добити",
"rallyAccountDataVacation": "Одмор",
"shrineProductFineLinesTee": "Мајица са танким цртама",
"rallyAccountDataHomeSavings": "Штедња за куповину дома",
"rallyAccountDataChecking": "Текући",
"rallyAccountDetailDataInterestPaidLastYear": "Камата плаћена прошле године",
"rallyAccountDetailDataNextStatement": "Следећи извод",
"rallyAccountDetailDataAccountOwner": "Власник налога",
"rallyBudgetCategoryCoffeeShops": "Кафићи",
"rallyBudgetCategoryGroceries": "Бакалницe",
"shrineProductCeriseScallopTee": "Тамноружичаста мајица са таласастим рубом",
"rallyBudgetCategoryClothing": "Одећа",
"rallySettingsManageAccounts": "Управљајте налозима",
"rallyAccountDataCarSavings": "Штедња за куповину аутомобила",
"rallySettingsTaxDocuments": "Порески документи",
"rallySettingsPasscodeAndTouchId": "Шифра и ИД за додир",
"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 СТАВКА}few{{quantity} СТАВКЕ}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": "(###) ###-#### – унесите број телефона у Сједињеним Америчким Државама",
"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": "Здесна налево",
"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": "SHRINE",
"Basic shopping app": "Основна апликација за куповину",
"RALLY": "RALLY",
"CRANE": "CRANE",
"Travel app": "Апликација за путовања",
"MATERIAL": "MATERIAL",
"CUPERTINO": "CUPERTINO",
"REFERENCE STYLES & MEDIA": "РЕФЕРЕНТНИ СТИЛОВИ И МЕДИЈИ"
}
| gallery/lib/l10n/intl_sr.arb/0 | {
"file_path": "gallery/lib/l10n/intl_sr.arb",
"repo_id": "gallery",
"token_count": 38096
} | 839 |
{
"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": "第一個",
"demoNavigationDrawerTitle": "導覽匣",
"demoNavigationRailThird": "第三個",
"replyStarredLabel": "已加星號",
"demoTextButtonDescription": "文字按鈕,按下後會出現墨水擴散特效,但不會有升起效果。這類按鈕用於工具列、對話方塊和設有邊框間距的內嵌元素",
"demoElevatedButtonTitle": "升起效果按鈕",
"demoElevatedButtonDescription": "升起效果按鈕可替多為平面的版面設計增添層次。這類按鈕可在擁擠或寬廣的空間中強調其功能。",
"demoOutlinedButtonTitle": "外框按鈕",
"demoOutlinedButtonDescription": "外框按鈕會在使用者按下時轉為不透明,且高度增加。這類按鈕通常會與凸起的按鈕搭配使用,用於指出次要的替代動作。",
"demoContainerTransformDemoInstructions": "卡片、清單和懸浮動作按鈕 (FAB)",
"demoNavigationDrawerSubtitle": "在應用程式列內顯示導覽匣",
"replyDescription": "一款可協助你專注處理事務的高效率電子郵件應用程式",
"demoNavigationDrawerDescription": "一種 Material Design 面板,只要從畫面邊緣水平向內滑動,即可顯示應用程式中的導覽連結。",
"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 元素,這些 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": "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": "甜點 (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": "2D 變形",
"demoCupertinoTextFieldPIN": "PIN 碼",
"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 Design 資訊表,用來表示某些相關的資訊,例如相簿、地理位置、餐點、聯絡人詳細資料等等。",
"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": "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": "這是 Snackbar。",
"demoCupertinoSliderSubtitle": "iOS 樣式滑桿",
"demoCupertinoSliderDescription": "你可以使用滑桿選擇一組連續值或離散值中的數字。",
"demoCupertinoSliderContinuous": "連續值:{value}",
"demoCupertinoSliderDiscrete": "離散值:{value}",
"demoSnackbarsAction": "你已按下 Snackbar 動作按鈕。",
"backToGallery": "返回圖庫",
"demoCupertinoTabBarTitle": "分頁標籤列",
"demoCupertinoSwitchDescription": "你可以使用切換鈕切換單一設定的開啟/關閉狀態。",
"demoSnackbarsActionButtonLabel": "動作",
"cupertinoTabBarProfileTab": "個人資料",
"demoSnackbarsButtonLabel": "顯示 Snackbar",
"demoSnackbarsDescription": "Snackbar 可通知使用者應用程式已執行的處理程序,或即將執行的處理程序。這個元件只會暫時出現在畫面底部,不會影響使用者體驗。使用者不必採取任何動作,這個元件就會自動消失。",
"demoSnackbarsSubtitle": "Snackbar 可在畫面底部顯示訊息",
"demoSnackbarsTitle": "Snackbar",
"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}帳單繳費期限為 {date},金額為 {amount}。",
"shrineTooltipCloseCart": "關閉購物車",
"shrineTooltipCloseMenu": "關閉選單",
"shrineTooltipOpenMenu": "開啟選單",
"shrineTooltipSettings": "設定",
"shrineTooltipSearch": "搜尋",
"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": "Vagabond 袋子",
"rallyAccountDetailDataInterestYtd": "年初至今的利息",
"shrineProductWhitneyBelt": "Whitney 皮帶",
"shrineProductGardenStrand": "海岸花園",
"shrineProductStrutEarrings": "柱狀耳環",
"shrineProductVarsitySocks": "運動襪",
"shrineProductWeaveKeyring": "編織鑰匙圈",
"shrineProductGatsbyHat": "報童帽",
"shrineProductShrugBag": "肩背包",
"shrineProductGiltDeskTrio": "鍍金三層桌",
"shrineProductCopperWireRack": "黃銅電線架",
"shrineProductSootheCeramicSet": "療癒陶瓷組",
"shrineProductHurrahsTeaSet": "歡樂茶具組",
"shrineProductBlueStoneMug": "藍石馬克杯",
"shrineProductRainwaterTray": "雨水托盤",
"shrineProductChambrayNapkins": "水手布餐巾",
"shrineProductSucculentPlanters": "多肉植物盆栽",
"shrineProductQuartetTable": "四人桌",
"shrineProductKitchenQuattro": "廚房四部曲",
"shrineProductClaySweater": "淺褐色毛衣",
"shrineProductSeaTunic": "海洋色長袍",
"shrineProductPlasterTunic": "灰泥色長袍",
"rallyBudgetCategoryRestaurants": "餐廳",
"shrineProductChambrayShirt": "水手布襯衫",
"shrineProductSeabreezeSweater": "淡藍色毛衣",
"shrineProductGentryJacket": "Gentry 夾克",
"shrineProductNavyTrousers": "海軍藍長褲",
"shrineProductWalterHenleyWhite": "Walter 亨利衫 (白色)",
"shrineProductSurfAndPerfShirt": "Surf and perf 襯衫",
"shrineProductGingerScarf": "薑黃色圍巾",
"shrineProductRamonaCrossover": "Ramona 風格變化",
"shrineProductClassicWhiteCollar": "經典白領",
"shrineProductSunshirtDress": "防曬裙",
"rallyAccountDetailDataInterestRate": "利率",
"rallyAccountDetailDataAnnualPercentageYield": "年產量百分率",
"rallyAccountDataVacation": "假期",
"shrineProductFineLinesTee": "細紋 T 恤",
"rallyAccountDataHomeSavings": "家庭儲蓄",
"rallyAccountDataChecking": "支票",
"rallyAccountDetailDataInterestPaidLastYear": "去年支付的利息金額",
"rallyAccountDetailDataNextStatement": "下一份帳戶對帳單",
"rallyAccountDetailDataAccountOwner": "帳戶擁有者",
"rallyBudgetCategoryCoffeeShops": "咖啡店",
"rallyBudgetCategoryGroceries": "雜貨",
"shrineProductCeriseScallopTee": "櫻桃色短袖 T 恤",
"rallyBudgetCategoryClothing": "服飾",
"rallySettingsManageAccounts": "管理帳戶",
"rallyAccountDataCarSavings": "節省車輛相關支出",
"rallySettingsTaxDocuments": "稅務文件",
"rallySettingsPasscodeAndTouchId": "密碼和 Touch ID",
"rallySettingsNotifications": "通知",
"rallySettingsPersonalInformation": "個人資訊",
"rallySettingsPaperlessSettings": "無紙化設定",
"rallySettingsFindAtms": "尋找自動提款機",
"rallySettingsHelp": "說明",
"rallySettingsSignOut": "登出",
"rallyAccountTotal": "總計",
"rallyBillsDue": "期限",
"rallyBudgetLeft": "剩餘預算",
"rallyAccounts": "帳戶",
"rallyBills": "帳單",
"rallyBudgets": "預算",
"rallyAlerts": "快訊",
"rallySeeAll": "查看全部",
"rallyFinanceLeft": "餘額",
"rallyTitleOverview": "總覽",
"shrineProductShoulderRollsTee": "肩部環繞 T 恤",
"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": "文字欄位可讓使用者在 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": "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": "入門應用程式",
"aboutFlutterSamplesRepo": "Flutter 範本 GitHub 存放區",
"bottomNavigationContentPlaceholder": "「{title}」分頁的預留位置",
"bottomNavigationCameraTab": "相機",
"bottomNavigationAlarmTab": "鬧鐘",
"bottomNavigationAccountTab": "帳戶",
"demoTextFieldYourEmailAddress": "你的電子郵件地址",
"demoToggleButtonDescription": "切換鈕可用於將相關的選項分組。為凸顯相關的切換鈕群組,單一群組應共用同一個容器",
"colorsGrey": "灰色",
"colorsBrown": "棕色",
"colorsDeepOrange": "深橘色",
"colorsOrange": "橘色",
"colorsAmber": "琥珀色",
"colorsYellow": "黃色",
"colorsLime": "萊姆綠",
"colorsLightGreen": "淺綠色",
"colorsGreen": "綠色",
"homeHeaderGallery": "圖庫",
"homeHeaderCategories": "類別",
"shrineDescription": "時尚零售應用程式",
"craneDescription": "為你量身打造的旅遊應用程式",
"homeCategoryReference": "樣式與其他",
"demoInvalidURL": "無法顯示網址:",
"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": "代表 Material Design 調色盤的顏色和色樣常數。",
"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": "要允許「Google 地圖」在你使用時存取你的位置資訊嗎?",
"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_zh_TW.arb/0 | {
"file_path": "gallery/lib/l10n/intl_zh_TW.arb",
"repo_id": "gallery",
"token_count": 26046
} | 840 |
// 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/studies/crane/backlayer.dart';
import 'package:gallery/studies/crane/header_form.dart';
class SleepForm extends BackLayerItem {
const SleepForm({super.key}) : super(index: 1);
@override
State<SleepForm> createState() => _SleepFormState();
}
class _SleepFormState extends State<SleepForm> with RestorationMixin {
final travelerController = RestorableTextEditingController();
final dateController = RestorableTextEditingController();
final locationController = RestorableTextEditingController();
@override
String get restorationId => 'sleep_form';
@override
void restoreState(RestorationBucket? oldBucket, bool initialRestore) {
registerForRestoration(travelerController, 'diner_controller');
registerForRestoration(dateController, 'date_controller');
registerForRestoration(locationController, 'time_controller');
}
@override
void dispose() {
travelerController.dispose();
dateController.dispose();
locationController.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
final localizations = GalleryLocalizations.of(context)!;
return HeaderForm(
fields: <HeaderFormField>[
HeaderFormField(
index: 0,
iconData: Icons.person,
title: localizations.craneFormTravelers,
textController: travelerController.value,
),
HeaderFormField(
index: 1,
iconData: Icons.date_range,
title: localizations.craneFormDates,
textController: dateController.value,
),
HeaderFormField(
index: 2,
iconData: Icons.hotel,
title: localizations.craneFormLocation,
textController: locationController.value,
),
],
);
}
}
| gallery/lib/studies/crane/sleep_form.dart/0 | {
"file_path": "gallery/lib/studies/crane/sleep_form.dart",
"repo_id": "gallery",
"token_count": 727
} | 841 |
// 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/studies/rally/charts/pie_chart.dart';
import 'package:gallery/studies/rally/data.dart';
import 'package:gallery/studies/rally/finance.dart';
import 'package:gallery/studies/rally/tabs/sidebar.dart';
/// A page that shows a summary of accounts.
class AccountsView extends StatelessWidget {
const AccountsView({super.key});
@override
Widget build(BuildContext context) {
final items = DummyDataService.getAccountDataList(context);
final detailItems = DummyDataService.getAccountDetailList(context);
final balanceTotal = sumAccountDataPrimaryAmount(items);
return TabWithSidebar(
restorationId: 'accounts_view',
mainView: FinancialEntityView(
heroLabel: GalleryLocalizations.of(context)!.rallyAccountTotal,
heroAmount: balanceTotal,
segments: buildSegmentsFromAccountItems(items),
wholeAmount: balanceTotal,
financialEntityCards: buildAccountDataListViews(items, context),
),
sidebarItems: [
for (UserDetailData item in detailItems)
SidebarItem(title: item.title, value: item.value)
],
);
}
}
| gallery/lib/studies/rally/tabs/accounts.dart/0 | {
"file_path": "gallery/lib/studies/rally/tabs/accounts.dart",
"repo_id": "gallery",
"token_count": 478
} | 842 |
import 'package:flutter/material.dart';
class ProfileAvatar extends StatelessWidget {
const ProfileAvatar({
super.key,
required this.avatar,
this.radius = 20,
});
final String avatar;
final double radius;
@override
Widget build(BuildContext context) {
return Material(
color: Colors.transparent,
child: CircleAvatar(
radius: radius,
backgroundColor: Theme.of(context).cardColor,
child: ClipOval(
child: Image.asset(
avatar,
gaplessPlayback: true,
package: 'flutter_gallery_assets',
height: 42,
width: 42,
fit: BoxFit.cover,
),
),
),
);
}
}
| gallery/lib/studies/reply/profile_avatar.dart/0 | {
"file_path": "gallery/lib/studies/reply/profile_avatar.dart",
"repo_id": "gallery",
"token_count": 328
} | 843 |
// 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';
class Scrim extends StatelessWidget {
const Scrim({super.key, required this.controller});
final AnimationController controller;
@override
Widget build(BuildContext context) {
final deviceSize = MediaQuery.of(context).size;
return ExcludeSemantics(
child: AnimatedBuilder(
animation: controller,
builder: (context, child) {
final color =
const Color(0xFFFFF0EA).withOpacity(controller.value * 0.87);
final Widget scrimRectangle = Container(
width: deviceSize.width, height: deviceSize.height, color: color);
final ignorePointer =
(controller.status == AnimationStatus.dismissed);
final tapToRevert = (controller.status == AnimationStatus.completed);
if (tapToRevert) {
return MouseRegion(
cursor: SystemMouseCursors.click,
child: GestureDetector(
onTap: () {
controller.reverse();
},
child: scrimRectangle,
),
);
} else if (ignorePointer) {
return IgnorePointer(child: scrimRectangle);
} else {
return scrimRectangle;
}
},
),
);
}
}
| gallery/lib/studies/shrine/scrim.dart/0 | {
"file_path": "gallery/lib/studies/shrine/scrim.dart",
"repo_id": "gallery",
"token_count": 638
} | 844 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| gallery/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "gallery/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "gallery",
"token_count": 32
} | 845 |
// 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/themes/material_demo_theme_data.dart';
import 'package:test/test.dart';
void main() {
test('verify former toggleableActiveColor themes are set', () async {
const Color primaryColor = Color(0xFF6200EE);
final ThemeData themeData = MaterialDemoThemeData.themeData;
expect(
themeData.checkboxTheme.fillColor!.resolve({MaterialState.selected}),
primaryColor,
);
expect(
themeData.radioTheme.fillColor!.resolve({MaterialState.selected}),
primaryColor,
);
expect(
themeData.switchTheme.thumbColor!.resolve({MaterialState.selected}),
primaryColor,
);
expect(
themeData.switchTheme.trackColor!.resolve({MaterialState.selected}),
primaryColor.withOpacity(0.5),
);
});
}
| gallery/test/theme_test.dart/0 | {
"file_path": "gallery/test/theme_test.dart",
"repo_id": "gallery",
"token_count": 341
} | 846 |
// 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_test/flutter_test.dart';
import 'package:gallery/main.dart';
import 'testing/precache_images.dart';
import 'testing/util.dart';
// The banner demo is used to test the layout of the demo page. The tests for
// the banner component are done inside of flutter/flutter.
const demoBannerRoute = '/demo/banner';
void main() {
group('mobile', () {
testWidgets('demo page matches golden screenshot', (tester) async {
await setUpBinding(tester);
await tester.runAsync<void>(pumpDeferredLibraries);
await pumpWidgetWithImages(
tester,
const GalleryApp(initialRoute: demoBannerRoute),
homeAssets,
);
await tester.pumpAndSettle();
await expectLater(
find.byType(GalleryApp),
matchesGoldenFile('goldens/demo_mobile_light.png'),
);
});
testWidgets('dark demo page matches golden screenshot', (tester) async {
await setUpBinding(tester, brightness: Brightness.dark);
await tester.runAsync<void>(pumpDeferredLibraries);
await pumpWidgetWithImages(
tester,
const GalleryApp(initialRoute: demoBannerRoute),
homeAssets,
);
await tester.pumpAndSettle();
await expectLater(
find.byType(GalleryApp),
matchesGoldenFile('goldens/demo_mobile_dark.png'),
);
});
});
group('desktop', () {
testWidgets('demo page matches golden screenshot', (tester) async {
await setUpBinding(tester, size: desktopSize);
await tester.runAsync<void>(pumpDeferredLibraries);
await pumpWidgetWithImages(
tester,
const GalleryApp(initialRoute: demoBannerRoute),
homeAssets,
);
await tester.pumpAndSettle();
await expectLater(
find.byType(GalleryApp),
matchesGoldenFile('goldens/demo_desktop_light.png'),
);
});
testWidgets('dark demo page matches golden screenshot', (tester) async {
await setUpBinding(
tester,
size: desktopSize,
brightness: Brightness.dark,
);
await tester.runAsync<void>(pumpDeferredLibraries);
await pumpWidgetWithImages(
tester,
const GalleryApp(initialRoute: demoBannerRoute),
homeAssets,
);
await tester.pumpAndSettle();
await expectLater(
find.byType(GalleryApp),
matchesGoldenFile('goldens/demo_desktop_dark.png'),
);
});
});
}
| gallery/test_goldens/demo_test.dart/0 | {
"file_path": "gallery/test_goldens/demo_test.dart",
"repo_id": "gallery",
"token_count": 1040
} | 847 |
// 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:async';
import 'dart:convert';
import 'dart:io';
import 'prehighlighter.dart';
const codeSegmentsSourcePath = 'lib/demos';
const codeSegmentsPath = 'lib/codeviewer/code_segments.dart';
const _globalPrologue =
'''// This file is automatically generated by codeviewer_cli.
// Do not edit this file.
// 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/codeviewer/code_style.dart';
class CodeSegments {
''';
const _globalEpilogue = '}\n';
final Pattern beginSubsegment = RegExp(r'//\s+BEGIN');
final Pattern endSubsegment = RegExp(r'//\s+END');
enum _FileReadStatus {
comments,
imports,
finished,
}
/// Returns the new status of the scanner whose previous status was
/// [oldStatus], after scanning the line [line].
_FileReadStatus _updatedStatus(_FileReadStatus oldStatus, String line) {
_FileReadStatus lineStatus;
if (line.trim().startsWith('//')) {
lineStatus = _FileReadStatus.comments;
} else if (line.trim().startsWith('import')) {
lineStatus = _FileReadStatus.imports;
} else {
lineStatus = _FileReadStatus.finished;
}
late _FileReadStatus newStatus;
switch (oldStatus) {
case _FileReadStatus.comments:
newStatus =
(line.trim().isEmpty || lineStatus == _FileReadStatus.comments)
? _FileReadStatus.comments
: lineStatus;
break;
case _FileReadStatus.imports:
newStatus = (line.trim().isEmpty || lineStatus == _FileReadStatus.imports)
? _FileReadStatus.imports
: _FileReadStatus.finished;
break;
case _FileReadStatus.finished:
newStatus = oldStatus;
break;
}
return newStatus;
}
Map<String, String> _createSegments(String sourceDirectoryPath) {
final files = Directory(sourceDirectoryPath)
.listSync(recursive: true)
.whereType<File>()
.toList();
var subsegments = <String, StringBuffer>{};
var subsegmentPrologues = <String, String>{};
var appearedSubsegments = <String>{};
for (final file in files) {
// Process file.
final content = file.readAsStringSync();
final lines = const LineSplitter().convert(content);
var status = _FileReadStatus.comments;
final prologue = StringBuffer();
final activeSubsegments = <String>{};
for (final line in lines) {
// Update status.
status = _updatedStatus(status, line);
if (status != _FileReadStatus.finished) {
prologue.writeln(line);
}
// Process run commands.
if (line.trim().startsWith(beginSubsegment)) {
final argumentString = line.replaceFirst(beginSubsegment, '').trim();
var arguments = argumentString.isEmpty
? <String>[]
: argumentString.split(RegExp(r'\s+'));
for (final argument in arguments) {
if (activeSubsegments.contains(argument)) {
throw PreformatterException(
'BEGIN $argument is used twice in file ${file.path}');
} else if (appearedSubsegments.contains(argument)) {
throw PreformatterException('BEGIN $argument is used twice');
} else {
activeSubsegments.add(argument);
appearedSubsegments.add(argument);
subsegments[argument] = StringBuffer();
subsegmentPrologues[argument] = prologue.toString();
}
}
} else if (line.trim().startsWith(endSubsegment)) {
final argumentString = line.replaceFirst(endSubsegment, '').trim();
final arguments = argumentString.isEmpty
? <String>[]
: argumentString.split(RegExp(r'\s+'));
if (arguments.isEmpty && activeSubsegments.length == 1) {
arguments.add(activeSubsegments.first);
}
for (final argument in arguments) {
if (activeSubsegments.contains(argument)) {
activeSubsegments.remove(argument);
} else {
throw PreformatterException(
'END $argument is used without a paired BEGIN in ${file.path}');
}
}
} else {
// Simple line.
for (final name in activeSubsegments) {
subsegments[name]!.writeln(line);
}
}
}
if (activeSubsegments.isNotEmpty) {
throw PreformatterException('File ${file.path} has unpaired BEGIN');
}
}
var segments = <String, List<TaggedString>>{};
var segmentPrologues = <String, String?>{};
// Sometimes a code segment is made up of subsegments. They are marked by
// names with a "#" symbol in it, such as "bottomSheetDemoModal#1" and
// "bottomSheetDemoModal#2".
// The following code groups the subsegments by order into segments.
subsegments.forEach((key, value) {
String name;
double order;
if (key.contains('#')) {
var parts = key.split('#');
name = parts[0];
order = double.parse(parts[1]);
} else {
name = key;
order = 0;
}
if (!segments.containsKey(name)) {
segments[name] = [];
}
segments[name]!.add(
TaggedString(
text: value.toString(),
order: order,
),
);
segmentPrologues[name] = subsegmentPrologues[key];
});
segments.forEach((key, value) {
value.sort((ts1, ts2) => (ts1.order - ts2.order).sign.round());
});
var answer = <String, String>{};
for (final name in segments.keys) {
final buffer = StringBuffer();
buffer.write(segmentPrologues[name]!.trim());
buffer.write('\n\n');
for (final ts in segments[name]!) {
buffer.write(ts.text.trim());
buffer.write('\n\n');
}
answer[name] = buffer.toString();
}
return answer;
}
/// A string [text] together with a number [order], for sorting purposes.
/// Used to store different subsegments of a code segment.
/// The [order] of each subsegment is tagged with the code in order to be
/// sorted in the desired order.
class TaggedString {
TaggedString({required this.text, required this.order});
final String text;
final double order;
}
void _combineSegments(Map<String, String> segments, StringBuffer output) {
output.write(_globalPrologue);
final sortedNames = segments.keys.toList()..sort();
for (final name in sortedNames) {
final code = segments[name];
output.writeln(' static TextSpan $name (BuildContext context) {');
output.writeln(' final codeStyle = CodeStyle.of(context);');
output.writeln(' return TextSpan(children: [');
final codeSpans = DartSyntaxPrehighlighter().format(code!);
for (final span in codeSpans) {
output.write(' ');
output.write(span.toString());
output.write(',\n');
}
output.write(' ]); }\n');
}
output.write(_globalEpilogue);
}
String readCodeSegments() => File(codeSegmentsPath).readAsStringSync();
/// Collect and highlight code segments.
///
/// [getCodeSegments] walks through the directory specified by
/// [sourceDirectoryPath] and reads every file in it,
/// collects code segments marked by "// BEGIN <segment_name>" and "// END",
/// highlights them.
///
/// The output is a dart source file with a class "CodeSegments" and
/// static methods of type TextSpan(BuildContext context).
/// Each method generates a widget that displays a segment of code.
Future<String> getCodeSegments({
String sourceDirectoryPath = codeSegmentsSourcePath,
}) async {
final segments = _createSegments(sourceDirectoryPath);
final combinedSegments = StringBuffer();
_combineSegments(segments, combinedSegments);
final codeSegments = await _startProcess(
'dart',
arguments: ['format', '-o', 'show'],
input: combinedSegments.toString(),
);
return codeSegments;
}
class PreformatterException implements Exception {
PreformatterException(this.cause);
String cause;
}
// Function to make sure we capture all of the stdout.
// Reference: https://github.com/dart-lang/sdk/issues/31666
Future<String> _startProcess(String executable,
{List<String> arguments = const [], required String input}) async {
final output = <int>[];
final completer = Completer<int>();
final process = await Process.start(executable, arguments, runInShell: true);
process.stdin.writeln(input);
process.stdout.listen(
(event) {
output.addAll(event);
},
onDone: () async => completer.complete(await process.exitCode),
);
await process.stdin.close();
final exitCode = await completer.future;
if (exitCode != 0) {
stderr.write(
'Running "$executable ${arguments.join(' ')}" failed with $exitCode.\n',
);
exit(exitCode);
}
return Future<String>.value(utf8.decoder.convert(output));
}
| gallery/tool/codeviewer_cli/segment_generator.dart/0 | {
"file_path": "gallery/tool/codeviewer_cli/segment_generator.dart",
"repo_id": "gallery",
"token_count": 3280
} | 848 |
# I/O FLIP
[![I/O FLIP Header][logo]][io_flip_link]
[![io_flip][build_status_badge]][workflow_link]
![coverage][coverage_badge]
[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]
An AI-designed card game built with [Flutter][flutter_link] and [Firebase][firebase_link] for [Google I/O 2023][google_io_link].
[Try it now][io_flip_link] and [learn about how it's made][how_its_made].
_Built by [Very Good Ventures][very_good_ventures_link] in partnership with Google_
_Created using [Very Good CLI][very_good_cli_link] 🤖_
---
## Getting Started 🚀
This project contains 3 flavors:
- development
- staging
- production
To run the desired flavor either use the launch configuration in VSCode/Android Studio or use the following commands:
```sh
# Development
$ flutter run --flavor development --target lib/main_development.dart
# Staging
$ flutter run --flavor staging --target lib/main_staging.dart
# Production
$ flutter run --flavor production --target lib/main_production.dart
```
_\*I/O FLIP works on Web for desktop and mobile._
## Loading initial data into database
Check [the data loader docs](api/tools/data_loader) for documentation on how the initial data is loaded.
## Running the loading testing bot locally
[Flop](./flop) is a loading testing bot written in Flutter that runs on web meant to help testing
the scaling of the backend of the game.
To execute it in the staging environment, open a terminal an execute:
```bash
./scripts/start_flop_webserver.sh <ENCRYPTION_KEY> <ENCRYPTION_IV> <RECAPTCHA_KEY> <APPCHECK_DEBUG_TOKEN>
```
You will be able to open the url where Flop started and check the progress of the bot run.
Which page represents one instance of Flop, to start several instance at the same time,
the `scripts/spam_flop.sh` can be used, this scripts needs to receive the port where Flop
started, so assuming that flop is running on `http://localhost:54678`, run:
```bash
./scripts/spam_flop.sh 54678
```
The same can be accomplished by using the `army.html` page that is bundled in the in it.
When loaded you will be able to select how many Flop instances to load, and it is also possible
to autoload instances of the bot by adding a # with the number of desired bots to spawn.
---
## Running Tests 🧪
To run all unit and widget tests use the following command:
```sh
$ flutter test --coverage --test-randomize-ordering-seed random
```
To view the generated coverage report you can use [lcov](https://github.com/linux-test-project/lcov).
```sh
# Generate Coverage Report
$ genhtml coverage/lcov.info -o coverage/
# Open Coverage Report
$ open coverage/index.html
```
---
## Working with Translations 🌐
This project relies on [flutter_localizations][flutter_localizations_link] and follows the [official internationalization guide for Flutter][internationalization_link].
### Adding Strings
1. To add a new localizable string, open the `app_en.arb` file at `lib/l10n/arb/app_en.arb`.
```arb
{
"@@locale": "en",
"counterAppBarTitle": "Counter",
"@counterAppBarTitle": {
"description": "Text shown in the AppBar of the Counter Page"
}
}
```
2. Then add a new key/value and description
```arb
{
"@@locale": "en",
"counterAppBarTitle": "Counter",
"@counterAppBarTitle": {
"description": "Text shown in the AppBar of the Counter Page"
},
"helloWorld": "Hello World",
"@helloWorld": {
"description": "Hello World Text"
}
}
```
3. Use the new string
```dart
import 'package:io_flip/l10n/l10n.dart';
@override
Widget build(BuildContext context) {
final l10n = context.l10n;
return Text(l10n.helloWorld);
}
```
### Adding Supported Locales
Update the `CFBundleLocalizations` array in the `Info.plist` at `ios/Runner/Info.plist` to include the new locale.
```xml
...
<key>CFBundleLocalizations</key>
<array>
<string>en</string>
<string>es</string>
</array>
...
```
### Adding Translations
1. For each supported locale, add a new ARB file in `lib/l10n/arb`.
```
├── l10n
│ ├── arb
│ │ ├── app_en.arb
│ │ └── app_es.arb
```
2. Add the translated strings to each `.arb` file:
`app_en.arb`
```arb
{
"@@locale": "en",
"counterAppBarTitle": "Counter",
"@counterAppBarTitle": {
"description": "Text shown in the AppBar of the Counter Page"
}
}
```
`app_es.arb`
```arb
{
"@@locale": "es",
"counterAppBarTitle": "Contador",
"@counterAppBarTitle": {
"description": "Texto mostrado en la AppBar de la página del contador"
}
}
```
[build_status_badge]: https://github.com/VGVentures/top_dash/actions/workflows/main.yaml/badge.svg
[coverage_badge]: coverage_badge.svg
[firebase_link]: https://firebase.google.com/
[flutter_link]: https://flutter.dev
[flutter_localizations_link]: https://api.flutter.dev/flutter/flutter_localizations/flutter_localizations-library.html
[google_io_link]: https://io.google/2023/
[how_its_made]: https://flutter.dev/flip
[internationalization_link]: https://flutter.dev/docs/development/accessibility-and-localization/internationalization
[io_flip_link]: https://flip.withgoogle.com/
[logo]: art/readme_header.png
[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
[very_good_cli_link]: https://github.com/VeryGoodOpenSource/very_good_cli
[very_good_ventures_link]: https://verygood.ventures/
[workflow_link]: https://github.com/VGVentures/top_dash/actions/workflows/main.yaml
| io_flip/README.md/0 | {
"file_path": "io_flip/README.md",
"repo_id": "io_flip",
"token_count": 1935
} | 849 |
export 'share_card_template.dart';
export 'share_deck_template.dart';
export 'share_template.dart';
export 'template_metadata.dart';
| io_flip/api/lib/templates/templates.dart/0 | {
"file_path": "io_flip/api/lib/templates/templates.dart",
"repo_id": "io_flip",
"token_count": 44
} | 850 |
name: card_renderer
description: Renders a card based on its metadata and illustration
version: 0.1.0+1
publish_to: none
environment:
sdk: ">=3.0.0 <4.0.0"
dependencies:
game_domain:
path: ../game_domain
http: ^0.13.5
image: ^4.0.15
dev_dependencies:
mocktail: ^0.3.0
test: ^1.19.2
very_good_analysis: ^3.1.0
| io_flip/api/packages/card_renderer/pubspec.yaml/0 | {
"file_path": "io_flip/api/packages/card_renderer/pubspec.yaml",
"repo_id": "io_flip",
"token_count": 145
} | 851 |
import 'dart:developer';
import 'package:db_client/db_client.dart';
/// {@template config_repository}
/// Repository with access to dynamic project configurations
/// {@endtemplate}
class ConfigRepository {
/// {@macro config_repository}
const ConfigRepository({
required DbClient dbClient,
}) : _dbClient = dbClient;
final DbClient _dbClient;
/// The default number of card variations in the case when none is specified
/// in the db.
static int defaultCardVariations = 8;
/// The default waiting time limit for private matches.
static int defaultPrivateTimeLimit = 120;
Future<String?> _getValue(String type) async {
final result = await _dbClient.findBy('config', 'type', type);
if (result.isNotEmpty) {
return result.first.data['value'] as String;
}
return null;
}
/// Return how many variations of the same characters there are per deck.
Future<int> getCardVariations() async {
try {
final value = await _getValue('variations');
if (value != null) {
return int.parse(value);
}
} catch (error, stackStrace) {
log(
'Error fetching card variations from db, return the default value',
error: error,
stackTrace: stackStrace,
);
}
return defaultCardVariations;
}
/// Return how many variations of the same characters there are per deck.
Future<int> getPrivateMatchTimeLimit() async {
try {
final value = await _getValue('private_match_time_limit');
if (value != null) {
return int.parse(value);
}
} catch (error, stackStrace) {
log(
'Error fetching private match time limit from db, return the default '
'value',
error: error,
stackTrace: stackStrace,
);
}
return defaultPrivateTimeLimit;
}
}
| io_flip/api/packages/config_repository/lib/src/config_repository.dart/0 | {
"file_path": "io_flip/api/packages/config_repository/lib/src/config_repository.dart",
"repo_id": "io_flip",
"token_count": 642
} | 852 |
import 'dart:convert';
import 'dart:io';
import 'package:dart_frog/dart_frog.dart';
import 'package:encrypt/encrypt.dart';
/// {@template encryption_middleware}
/// A dart_frog middleware for encrypting responses.
/// {@endtemplate}
class EncryptionMiddleware {
/// {@macro encryption_middleware}
const EncryptionMiddleware({
String? key,
String? iv,
}) : _key = key,
_iv = iv;
final String? _key;
final String? _iv;
/// The middleware function used by dart_frog.
Middleware get middleware => (handler) {
return (context) async {
final response = await handler(context);
final body = await response.body();
if (body.isEmpty) {
return response.copyWith(body: body);
}
final key = Key.fromUtf8(_key ?? _encryptionKey);
final iv = IV.fromUtf8(_iv ?? _encryptionIV);
final encrypter = Encrypter(AES(key));
final encrypted = encrypter.encrypt(jsonEncode(body), iv: iv).base64;
return response.copyWith(body: encrypted);
};
};
}
String get _encryptionKey {
final value = Platform.environment['ENCRYPTION_KEY'];
if (value == null) {
throw ArgumentError('ENCRYPTION_KEY is required to run the API');
}
return value;
}
String get _encryptionIV {
final value = Platform.environment['ENCRYPTION_IV'];
if (value == null) {
throw ArgumentError('ENCRYPTION_IV is required to run the API');
}
return value;
}
| io_flip/api/packages/encryption_middleware/lib/src/encryption_middleware.dart/0 | {
"file_path": "io_flip/api/packages/encryption_middleware/lib/src/encryption_middleware.dart",
"repo_id": "io_flip",
"token_count": 574
} | 853 |
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'card.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
Card _$CardFromJson(Map<String, dynamic> json) => Card(
id: json['id'] as String,
name: json['name'] as String,
description: json['description'] as String,
image: json['image'] as String,
power: json['power'] as int,
rarity: json['rarity'] as bool,
suit: $enumDecode(_$SuitEnumMap, json['suit']),
shareImage: json['shareImage'] as String?,
);
Map<String, dynamic> _$CardToJson(Card instance) => <String, dynamic>{
'id': instance.id,
'name': instance.name,
'description': instance.description,
'image': instance.image,
'power': instance.power,
'rarity': instance.rarity,
'suit': _$SuitEnumMap[instance.suit]!,
'shareImage': instance.shareImage,
};
const _$SuitEnumMap = {
Suit.fire: 'fire',
Suit.air: 'air',
Suit.earth: 'earth',
Suit.metal: 'metal',
Suit.water: 'water',
};
| io_flip/api/packages/game_domain/lib/src/models/card.g.dart/0 | {
"file_path": "io_flip/api/packages/game_domain/lib/src/models/card.g.dart",
"repo_id": "io_flip",
"token_count": 411
} | 854 |
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
part 'score_card.g.dart';
/// {@template score_card}
/// A class representing the user session's win and streak count.
/// {@endtemplate}
@JsonSerializable(ignoreUnannotated: true)
class ScoreCard extends Equatable {
/// {@macro score_card}
const ScoreCard({
required this.id,
this.wins = 0,
this.longestStreak = 0,
this.currentStreak = 0,
this.latestStreak = 0,
this.longestStreakDeck = '',
this.currentDeck = '',
this.latestDeck = '',
this.initials,
});
/// {@macro score_card}
factory ScoreCard.fromJson(Map<String, dynamic> json) =>
_$ScoreCardFromJson(json);
/// Unique identifier of the score object and session id for the player.
@JsonKey()
final String id;
/// number of wins in the session.
@JsonKey()
final int wins;
/// Longest streak of wins in the session.
@JsonKey()
final int longestStreak;
/// Current streak of wins in the session.
@JsonKey()
final int currentStreak;
/// Latest streak of wins in the session. When a player loses,
/// the [currentStreak] is reset, and this [latestStreak] is used after
/// the match is finished.
@JsonKey()
final int latestStreak;
/// Unique identifier of the deck which was used to set the [longestStreak].
@JsonKey()
final String longestStreakDeck;
/// Unique identifier of the deck played in the session.
@JsonKey()
final String currentDeck;
/// Unique identifier of the deck played in the last session.
@JsonKey()
final String latestDeck;
/// Initials of the player.
@JsonKey()
final String? initials;
/// Returns a json representation from this instance.
Map<String, dynamic> toJson() => _$ScoreCardToJson(this);
@override
List<Object?> get props => [
id,
wins,
longestStreak,
currentStreak,
latestStreak,
longestStreakDeck,
currentDeck,
latestDeck,
initials,
];
}
| io_flip/api/packages/game_domain/lib/src/models/score_card.dart/0 | {
"file_path": "io_flip/api/packages/game_domain/lib/src/models/score_card.dart",
"repo_id": "io_flip",
"token_count": 715
} | 855 |
// ignore_for_file: prefer_const_constructors
import 'dart:convert';
import 'package:game_domain/game_domain.dart';
import 'package:test/test.dart';
void main() {
group('WebSocketMessage', () {
group('error', () {
test('has correct message type', () {
final message = WebSocketMessage.error(WebSocketErrorCode.badRequest);
expect(message.messageType, equals(MessageType.error));
});
test('has correct payload', () {
final message = WebSocketMessage.error(WebSocketErrorCode.badRequest);
expect(
message.payload,
isA<WebSocketErrorPayload>().having(
(p) => p.errorCode,
'errorCode',
WebSocketErrorCode.badRequest,
),
);
});
test('uses value equality', () {
final a = WebSocketMessage.error(WebSocketErrorCode.badRequest);
final b = WebSocketMessage.error(WebSocketErrorCode.badRequest);
final c = WebSocketMessage.error(
WebSocketErrorCode.playerAlreadyConnected,
);
expect(a, equals(b));
expect(a, isNot(equals(c)));
});
group('json', () {
final json = {
'messageType': 'error',
'payload': {'errorCode': 'badRequest'},
};
final message = WebSocketMessage.error(WebSocketErrorCode.badRequest);
test('fromJson deserializes correctly', () {
expect(WebSocketMessage.fromJson(json), equals(message));
});
test('toJson serializes correctly', () {
expect(jsonEncode(message), equals(jsonEncode(json)));
});
});
});
group('token', () {
test('has correct message type', () {
final message = WebSocketMessage.token('token');
expect(message.messageType, equals(MessageType.token));
});
test('has correct payload', () {
final message = WebSocketMessage.token('token');
expect(
message.payload,
isA<WebSocketTokenPayload>().having(
(p) => p.token,
'token',
'token',
),
);
});
test('uses value equality', () {
final a = WebSocketMessage.token('token');
final b = WebSocketMessage.token('token');
final c = WebSocketMessage.token('other');
expect(a, equals(b));
expect(a, isNot(equals(c)));
});
group('json', () {
final json = {
'messageType': 'token',
'payload': {'token': 'abcd', 'reconnect': false},
};
final message = WebSocketMessage.token('abcd');
test('fromJson deserializes correctly', () {
expect(WebSocketMessage.fromJson(json), equals(message));
});
test('toJson serializes correctly', () {
expect(jsonEncode(message), equals(jsonEncode(json)));
});
});
});
group('matchJoined', () {
test('has correct message type', () {
final message = WebSocketMessage.matchJoined(
matchId: 'matchId',
isHost: true,
);
expect(message.messageType, equals(MessageType.matchJoined));
});
test('has correct payload', () {
final message = WebSocketMessage.matchJoined(
matchId: 'matchId',
isHost: true,
);
expect(
message.payload,
isA<WebSocketMatchJoinedPayload>()
.having(
(p) => p.isHost,
'isHost',
isTrue,
)
.having(
(p) => p.matchId,
'matchId',
'matchId',
),
);
});
test('uses value equality', () {
final a = WebSocketMessage.matchJoined(
matchId: 'matchId',
isHost: true,
);
final b = WebSocketMessage.matchJoined(
matchId: 'matchId',
isHost: true,
);
final c = WebSocketMessage.matchJoined(
matchId: 'NOT matchId',
isHost: true,
);
expect(a, equals(b));
expect(a, isNot(equals(c)));
});
group('json', () {
final json = {
'messageType': 'matchJoined',
'payload': {
'matchId': 'abcd',
'isHost': false,
},
};
final message = WebSocketMessage.matchJoined(
matchId: 'abcd',
isHost: false,
);
test('fromJson deserializes correctly', () {
expect(WebSocketMessage.fromJson(json), equals(message));
});
test('toJson serializes correctly', () {
expect(jsonEncode(message), equals(jsonEncode(json)));
});
});
});
group('connected', () {
test('has correct message type', () {
final message = WebSocketMessage.connected();
expect(message.messageType, equals(MessageType.connected));
});
test('has no payload', () {
final message = WebSocketMessage.connected();
expect(message.payload, isNull);
});
test('uses value equality', () {
final a = WebSocketMessage.connected();
final b = WebSocketMessage.connected();
expect(a, equals(b));
});
group('json', () {
final json = {
'messageType': 'connected',
'payload': null,
};
final message = WebSocketMessage.connected();
test('fromJson deserializes correctly', () {
expect(WebSocketMessage.fromJson(json), equals(message));
});
test('fromJson deserializes correctly with payload', () {
expect(
WebSocketMessage.fromJson({
...json,
'payload': const {'a': 'b'}
}),
equals(message),
);
});
test('toJson serializes correctly', () {
expect(jsonEncode(message), equals(jsonEncode(json)));
});
});
});
group('matchLeft', () {
test('has correct message type', () {
final message = WebSocketMessage.matchLeft();
expect(message.messageType, equals(MessageType.matchLeft));
});
test('has no payload', () {
final message = WebSocketMessage.matchLeft();
expect(message.payload, isNull);
});
test('uses value equality', () {
final a = WebSocketMessage.matchLeft();
final b = WebSocketMessage.matchLeft();
expect(a, equals(b));
});
group('json', () {
final json = {
'messageType': 'matchLeft',
'payload': null,
};
final message = WebSocketMessage.matchLeft();
test('fromJson deserializes correctly', () {
expect(WebSocketMessage.fromJson(json), equals(message));
});
test('fromJson deserializes correctly with payload', () {
expect(
WebSocketMessage.fromJson({
...json,
'payload': const {'a': 'b'}
}),
equals(message),
);
});
test('toJson serializes correctly', () {
expect(jsonEncode(message), equals(jsonEncode(json)));
});
});
});
});
}
| io_flip/api/packages/game_domain/test/src/models/web_socket_message_test.dart/0 | {
"file_path": "io_flip/api/packages/game_domain/test/src/models/web_socket_message_test.dart",
"repo_id": "io_flip",
"token_count": 3348
} | 856 |
import 'dart:math';
import 'package:game_domain/game_domain.dart';
import 'package:prompt_repository/prompt_repository.dart';
/// {@template image_result}
/// Image result model.
/// {@endtemplate}
class ImageResult {
/// {@macro image_result}
const ImageResult({
required this.character,
required this.characterClass,
required this.location,
required this.url,
});
/// The character of the image.
final String character;
/// The character class of the image.
final String characterClass;
/// The location of the image.
final String location;
/// The url of the image.
final String url;
}
/// {@template image_model_repository}
/// Repository providing access image model services.
/// {@endtemplate}
class ImageModelRepository {
/// {@macro image_model_repository}
ImageModelRepository({
required String imageHost,
required PromptRepository promptRepository,
String? urlParams,
Random? rng,
}) : _imageHost = imageHost,
_promptRepository = promptRepository,
_urlParams = urlParams {
_rng = rng ?? Random();
}
final String _imageHost;
final String? _urlParams;
final PromptRepository _promptRepository;
late final Random _rng;
String _normalizeTerm(String value) {
return value.toLowerCase().replaceAll(' ', '_');
}
/// Builds the url based on the provided parameters.
Future<ImageResult> assembleUrl({
required String character,
required String characterClass,
required String location,
required int variation,
}) async {
final characterUrl = _normalizeTerm(character);
final characterClassUrl = _normalizeTerm(characterClass);
final locationUrl = _normalizeTerm(location);
final promptBase = '${characterUrl}_${characterClassUrl}_$locationUrl';
final baseImageUrl = '${promptBase}_$variation.png';
final imageUrl = await _promptRepository.ensurePromptImage(
promptCombination: promptBase,
imageUrl: baseImageUrl,
);
return ImageResult(
character: character,
characterClass: characterClass,
location: location,
url: '$_imageHost$imageUrl${_urlParams ?? ''}',
);
}
/// Returns the path for an unique generated image.
Future<List<ImageResult>> generateImages({
required String characterClass,
required int variationsAvailable,
required int deckSize,
}) async {
final [characters, locations] = await Future.wait([
_promptRepository.getPromptTermsByType(
PromptTermType.character,
),
_promptRepository.getPromptTermsByType(
PromptTermType.location,
)
]);
final urls = <ImageResult>[];
final charactersPerDeck = deckSize ~/ characters.length;
for (var i = 0; i < charactersPerDeck; i++) {
for (final character in characters) {
final location = locations[_rng.nextInt(locations.length)];
final variation = _rng.nextInt(variationsAvailable);
urls.add(
await assembleUrl(
character: character.term,
characterClass: characterClass,
location: location.term,
variation: variation,
),
);
}
}
return urls;
}
}
| io_flip/api/packages/image_model_repository/lib/src/image_model_repository.dart/0 | {
"file_path": "io_flip/api/packages/image_model_repository/lib/src/image_model_repository.dart",
"repo_id": "io_flip",
"token_count": 1125
} | 857 |
include: package:very_good_analysis/analysis_options.4.0.0.yaml
| io_flip/api/packages/match_repository/analysis_options.yaml/0 | {
"file_path": "io_flip/api/packages/match_repository/analysis_options.yaml",
"repo_id": "io_flip",
"token_count": 23
} | 858 |
import 'dart:async';
import 'dart:io';
import 'package:dart_frog/dart_frog.dart';
import 'package:leaderboard_repository/leaderboard_repository.dart';
FutureOr<Response> onRequest(RequestContext context) async {
if (context.request.method == HttpMethod.get) {
final leaderboardRepository = context.read<LeaderboardRepository>();
final list = await leaderboardRepository.getInitialsBlacklist();
return Response.json(body: {'list': list});
}
return Response(statusCode: HttpStatus.methodNotAllowed);
}
| io_flip/api/routes/game/leaderboard/initials_blacklist/index.dart/0 | {
"file_path": "io_flip/api/routes/game/leaderboard/initials_blacklist/index.dart",
"repo_id": "io_flip",
"token_count": 169
} | 859 |
import 'dart:io';
import 'package:cards_repository/cards_repository.dart';
import 'package:dart_frog/dart_frog.dart';
import 'package:game_domain/game_domain.dart';
import 'package:logging/logging.dart';
import 'package:mocktail/mocktail.dart';
import 'package:test/test.dart';
import '../../../../routes/game/decks/[deckId].dart' as route;
class _MockRequestContext extends Mock implements RequestContext {}
class _MockCardsRepository extends Mock implements CardsRepository {}
class _MockRequest extends Mock implements Request {}
class _MockLogger extends Mock implements Logger {}
void main() {
group('GET /game/decks/[deckId]', () {
late CardsRepository cardsRepository;
late Request request;
late RequestContext context;
late Logger logger;
const deck = Deck(
id: 'deckId',
userId: 'userId',
cards: [
Card(
id: '',
name: '',
description: '',
image: '',
power: 10,
rarity: false,
suit: Suit.air,
),
],
);
setUp(() {
cardsRepository = _MockCardsRepository();
when(() => cardsRepository.getDeck(any())).thenAnswer((_) async => deck);
request = _MockRequest();
when(() => request.method).thenReturn(HttpMethod.get);
when(request.json).thenAnswer(
(_) async => deck.toJson(),
);
logger = _MockLogger();
context = _MockRequestContext();
when(() => context.request).thenReturn(request);
when(() => context.read<CardsRepository>()).thenReturn(cardsRepository);
when(() => context.read<Logger>()).thenReturn(logger);
});
test('responds with a 200', () async {
final response = await route.onRequest(context, deck.id);
expect(response.statusCode, equals(HttpStatus.ok));
});
test('responds with the deck', () async {
final response = await route.onRequest(context, deck.id);
final json = await response.json() as Map<String, dynamic>;
expect(
json,
equals(deck.toJson()),
);
});
test("responds 404 when the deck doesn't exists", () async {
when(() => cardsRepository.getDeck(any())).thenAnswer((_) async => null);
final response = await route.onRequest(context, deck.id);
expect(response.statusCode, equals(HttpStatus.notFound));
});
test('allows only get methods', () async {
when(() => request.method).thenReturn(HttpMethod.post);
final response = await route.onRequest(context, deck.id);
expect(response.statusCode, equals(HttpStatus.methodNotAllowed));
});
});
}
| io_flip/api/test/routes/game/decks/[deckId]_test.dart/0 | {
"file_path": "io_flip/api/test/routes/game/decks/[deckId]_test.dart",
"repo_id": "io_flip",
"token_count": 1014
} | 860 |
// ignore_for_file: prefer_const_constructors
import 'dart:io';
import 'package:data_loader/data_loader.dart';
import 'package:game_domain/game_domain.dart';
import 'package:mocktail/mocktail.dart';
import 'package:path/path.dart' as path;
import 'package:test/test.dart';
class _MockFile extends Mock implements File {}
class _MockDirectory extends Mock implements Directory {}
void main() {
group('CharacterFolderValidator', () {
setUpAll(() {
registerFallbackValue(
PromptTerm(term: '', type: PromptTermType.character),
);
});
test('can be instantiated', () {
expect(
CharacterFolderValidator(
csv: _MockFile(),
imagesFolder: _MockDirectory(),
character: 'dash',
variations: 3,
),
isNotNull,
);
});
group('validate', () {
late File csv;
late Directory imagesFolder;
setUp(() {
csv = _MockFile();
imagesFolder = Directory(
path.join(
Directory.systemTemp.path,
'character_folder_validator_test',
),
);
if (imagesFolder.existsSync()) {
imagesFolder.deleteSync(recursive: true);
}
imagesFolder.createSync();
final files = [
File(path.join(imagesFolder.path, 'dash_alien_city_0.png')),
File(path.join(imagesFolder.path, 'dash_alien_city_1.png')),
File(path.join(imagesFolder.path, 'dash_mage_city_1.png')),
File(path.join(imagesFolder.path, 'dash_alien_forest_0.png')),
File(path.join(imagesFolder.path, 'dash_mage_forest_0.png')),
File(path.join(imagesFolder.path, 'dash_mage_forest_1.png')),
];
for (final file in files) {
file.createSync();
}
});
test('return the missing files', () async {
when(() => csv.readAsLines()).thenAnswer(
(_) async => [
'Character,Class,Power,Power(Shorter),Location,',
'Dash,Alien,Banjos,Banj,City,',
'Android,Mage,Bass,B,Forest,',
],
);
final validator = CharacterFolderValidator(
csv: csv,
imagesFolder: imagesFolder,
character: 'dash',
variations: 2,
);
final missingFiles = await validator.validate((_, __) {});
expect(
missingFiles.map(path.basename).toList(),
equals(
[
'dash_alien_forest_1.png',
'dash_mage_city_0.png',
],
),
);
});
test('progress is called correctly', () async {
when(() => csv.readAsLines()).thenAnswer(
(_) async => [
'Character,Class,Power,Power(Shorter),Location,',
'Dash,Alien,Banjos,Banj,City,',
'Android,Mage,Bass,B,Forest,',
],
);
final validator = CharacterFolderValidator(
csv: csv,
imagesFolder: imagesFolder,
character: 'dash',
variations: 2,
);
final progress = <List<int>>[];
await validator.validate((current, total) {
progress.add([current, total]);
});
expect(
progress,
equals(
[
[0, 8],
[1, 8],
[2, 8],
[3, 8],
[4, 8],
[5, 8],
[6, 8],
[7, 8],
[8, 8],
],
),
);
});
});
});
}
| io_flip/api/tools/data_loader/test/src/character_folder_validator_test.dart/0 | {
"file_path": "io_flip/api/tools/data_loader/test/src/character_folder_validator_test.dart",
"repo_id": "io_flip",
"token_count": 1793
} | 861 |
name: flop
description: The testing bot for the Flip I/O game.
version: 1.0.0+1
publish_to: none
environment:
sdk: ">=2.18.0 <3.0.0"
dependencies:
api_client:
path: ../packages/api_client
authentication_repository:
path: ../packages/authentication_repository
bloc: ^8.1.1
cloud_firestore: ^4.5.0
connection_repository:
path: ../packages/connection_repository
equatable: ^2.0.5
firebase_app_check: ^0.1.2
firebase_auth: ^4.4.0
firebase_core: ^2.5.0
flutter:
sdk: flutter
flutter_bloc: ^8.1.2
game_domain:
path: ../api/packages/game_domain
match_maker_repository:
path: ../packages/match_maker_repository
dev_dependencies:
bloc_test: ^9.1.1
flutter_test:
sdk: flutter
mocktail: ^0.3.0
very_good_analysis: ^3.1.0
flutter:
uses-material-design: true
generate: true
assets:
- assets/
| io_flip/flop/pubspec.yaml/0 | {
"file_path": "io_flip/flop/pubspec.yaml",
"repo_id": "io_flip",
"token_count": 372
} | 862 |
import 'mocha';
import * as functionsTest from 'firebase-functions-test';
import * as sinon from 'sinon';
import * as admin from 'firebase-admin';
import {expect} from 'chai';
import {FeaturesList} from 'firebase-functions-test/lib/features';
describe('updateLeaderboard', () => {
let adminInitStub: sinon.SinonStub;
let firestoreStub: sinon.SinonStub;
let collectionStub: sinon.SinonStub;
let docStub: sinon.SinonStub;
let getStub: sinon.SinonStub;
let setStub: sinon.SinonStub;
let updateStub: sinon.SinonStub;
let oldFirestore: typeof admin.firestore;
let tester: FeaturesList;
const docId = 'card-1234';
before(async () => {
tester = functionsTest();
oldFirestore = admin.firestore;
adminInitStub = sinon.stub(admin, 'initializeApp');
firestoreStub = sinon.stub();
collectionStub = sinon.stub();
docStub = sinon.stub();
getStub = sinon.stub();
setStub = sinon.stub();
updateStub = sinon.stub();
Object.defineProperty(admin, 'firestore', {value: firestoreStub, writable: true});
firestoreStub.returns({collection: collectionStub});
collectionStub.withArgs('leaderboard').returns({doc: docStub});
docStub.returns({get: getStub, set: setStub, update: updateStub});
});
afterEach(() => {
adminInitStub.restore();
firestoreStub.resetHistory();
collectionStub.resetHistory();
docStub.resetHistory();
getStub.resetHistory();
setStub.resetHistory();
updateStub.resetHistory();
});
after(() => {
tester.cleanup();
Object.defineProperty(admin, 'firestore', {value: oldFirestore});
});
it('should set a new leaderboard document if it does not exist', async () => {
const change = sinon.stub().returns({
before: {
id: docId,
data: () => ({
longestStreak: 42,
initials: 'ABC',
}),
},
after: {
id: docId,
data: () => ({
longestStreak: 42,
initials: 'ABC',
}),
},
});
getStub.returns(Promise.resolve({exists: false}));
const wrapped = tester.wrap(
(await import('../src/updateLeaderboard')).updateLeaderboard
);
await wrapped(change());
expect(docStub.calledWith(docId)).to.be.true;
expect(getStub.calledOnce).to.be.true;
expect(setStub.calledOnce).to.be.true;
expect(updateStub.notCalled).to.be.true;
});
it(
'should update an existing leaderboard document if new streak is longer than previous',
async () => {
const change = sinon.stub().returns({
before: {
id: docId,
data: () => ({
longestStreak: 50,
initials: 'ABC',
}),
},
after: {
id: docId,
data: () => ({
longestStreak: 50,
initials: 'ABC',
}),
},
});
getStub.returns(Promise.resolve({
exists: true, get: (field) => {
if (field === 'longestStreak') {
return 40;
}
return undefined;
},
}));
const wrapped = tester.wrap(
(await import('../src/updateLeaderboard')).updateLeaderboard
);
await wrapped(change());
expect(docStub.calledWith(docId)).to.be.true;
expect(getStub.calledOnce).to.be.true;
expect(setStub.notCalled).to.be.true;
expect(updateStub.calledOnce).to.be.true;
});
});
| io_flip/functions/test/updateLeaderboard.test.ts/0 | {
"file_path": "io_flip/functions/test/updateLeaderboard.test.ts",
"repo_id": "io_flip",
"token_count": 1483
} | 863 |
export 'bloc/connection_bloc.dart';
export 'view/view.dart';
| io_flip/lib/connection/connection.dart/0 | {
"file_path": "io_flip/lib/connection/connection.dart",
"repo_id": "io_flip",
"token_count": 24
} | 864 |
part of 'game_bloc.dart';
abstract class GameEvent extends Equatable {
const GameEvent();
}
class MatchRequested extends GameEvent {
const MatchRequested(this.matchId, this.deck);
final String matchId;
final Deck? deck;
@override
List<Object?> get props => [matchId, deck];
}
class PlayerPlayed extends GameEvent {
const PlayerPlayed(this.cardId);
final String cardId;
@override
List<Object> get props => [cardId];
}
class MatchStateUpdated extends GameEvent {
const MatchStateUpdated(this.updatedState);
final MatchState updatedState;
@override
List<Object?> get props => [updatedState];
}
class ManagePlayerPresence extends GameEvent {
const ManagePlayerPresence(this.matchId, this.deck);
final String matchId;
final Deck? deck;
@override
List<Object?> get props => [matchId, deck];
}
class ScoreCardUpdated extends GameEvent {
const ScoreCardUpdated(this.updatedScore);
final ScoreCard updatedScore;
@override
List<Object?> get props => [updatedScore];
}
class LeaderboardEntryRequested extends GameEvent {
const LeaderboardEntryRequested({this.shareHandPageData});
final ShareHandPageData? shareHandPageData;
@override
List<Object?> get props => [shareHandPageData];
}
class TurnTimerStarted extends GameEvent {
const TurnTimerStarted();
@override
List<Object?> get props => [];
}
class TurnTimerTicked extends GameEvent {
const TurnTimerTicked(this.timer);
final Timer timer;
@override
List<Object?> get props => [timer];
}
class ClashSceneCompleted extends GameEvent {
const ClashSceneCompleted();
@override
List<Object?> get props => [];
}
class ClashSceneStarted extends GameEvent {
const ClashSceneStarted();
@override
List<Object?> get props => [];
}
class TurnAnimationsFinished extends GameEvent {
const TurnAnimationsFinished();
@override
List<Object?> get props => [];
}
class CardLandingStarted extends GameEvent {
const CardLandingStarted();
@override
List<Object?> get props => [];
}
class CardLandingCompleted extends GameEvent {
const CardLandingCompleted();
@override
List<Object?> get props => [];
}
| io_flip/lib/game/bloc/game_event.dart/0 | {
"file_path": "io_flip/lib/game/bloc/game_event.dart",
"repo_id": "io_flip",
"token_count": 650
} | 865 |
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:io_flip/how_to_play/how_to_play.dart';
class HowToPlayDialog extends StatelessWidget {
const HowToPlayDialog({super.key});
@override
Widget build(BuildContext context) {
return BlocProvider(
create: (context) => HowToPlayBloc(),
child: const HowToPlayView(),
);
}
}
| io_flip/lib/how_to_play/view/how_to_play_dialog.dart/0 | {
"file_path": "io_flip/lib/how_to_play/view/how_to_play_dialog.dart",
"repo_id": "io_flip",
"token_count": 149
} | 866 |
part of 'leaderboard_bloc.dart';
enum LeaderboardStateStatus {
initial,
loading,
loaded,
failed,
}
class LeaderboardState extends Equatable {
const LeaderboardState({
required this.status,
required this.leaderboard,
});
const LeaderboardState.initial()
: this(
status: LeaderboardStateStatus.initial,
leaderboard: const [],
);
final LeaderboardStateStatus status;
final List<LeaderboardPlayer> leaderboard;
LeaderboardState copyWith({
LeaderboardStateStatus? status,
List<LeaderboardPlayer>? leaderboard,
}) {
return LeaderboardState(
status: status ?? this.status,
leaderboard: leaderboard ?? this.leaderboard,
);
}
@override
List<Object?> get props => [status, leaderboard];
}
| io_flip/lib/leaderboard/bloc/leaderboard_state.dart/0 | {
"file_path": "io_flip/lib/leaderboard/bloc/leaderboard_state.dart",
"repo_id": "io_flip",
"token_count": 269
} | 867 |
import 'dart:async';
import 'package:api_client/api_client.dart';
import 'package:authentication_repository/authentication_repository.dart';
import 'package:config_repository/config_repository.dart';
import 'package:connection_repository/connection_repository.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:game_domain/game_domain.dart';
import 'package:game_script_machine/game_script_machine.dart';
import 'package:io_flip/app/app.dart';
import 'package:io_flip/bootstrap.dart';
import 'package:io_flip/firebase_options_production.dart';
import 'package:io_flip/settings/persistence/persistence.dart';
import 'package:match_maker_repository/match_maker_repository.dart';
void main() async {
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);
unawaited(
bootstrap(
(firestore, firebaseAuth, appCheck) async {
await appCheck.activate(
webRecaptchaSiteKey: const String.fromEnvironment('RECAPTCHA_KEY'),
);
await appCheck.setTokenAutoRefreshEnabled(true);
final authenticationRepository = AuthenticationRepository(
firebaseAuth: firebaseAuth,
);
final apiClient = ApiClient(
baseUrl: 'https://io-flip-api-5eji7gzgvq-uc.a.run.app',
idTokenStream: authenticationRepository.idToken,
refreshIdToken: authenticationRepository.refreshIdToken,
appCheckTokenStream: appCheck.onTokenChange,
appCheckToken: await appCheck.getToken(),
);
await authenticationRepository.signInAnonymously();
await authenticationRepository.idToken.first;
final currentScript =
await apiClient.scriptsResource.getCurrentScript();
final gameScriptMachine = GameScriptMachine.initialize(currentScript);
return App(
settingsPersistence: LocalStorageSettingsPersistence(),
apiClient: apiClient,
matchMakerRepository: MatchMakerRepository(db: firestore),
configRepository: ConfigRepository(db: firestore),
connectionRepository: ConnectionRepository(apiClient: apiClient),
matchSolver: MatchSolver(gameScriptMachine: gameScriptMachine),
gameScriptMachine: gameScriptMachine,
user: await authenticationRepository.user.first,
isScriptsEnabled: false,
);
},
),
);
}
| io_flip/lib/main_production.dart/0 | {
"file_path": "io_flip/lib/main_production.dart",
"repo_id": "io_flip",
"token_count": 897
} | 868 |
import 'package:api_client/api_client.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:io_flip/prompt/prompt.dart';
class PromptPage extends StatelessWidget {
const PromptPage({super.key});
factory PromptPage.routeBuilder(_, __) {
return const PromptPage(
key: Key('prompt_page'),
);
}
@override
Widget build(BuildContext context) {
final promptResource = context.read<PromptResource>();
return BlocProvider(
create: (_) => PromptFormBloc(promptResource: promptResource)
..add(const PromptTermsRequested()),
child: const PromptView(),
);
}
}
| io_flip/lib/prompt/view/prompt_page.dart/0 | {
"file_path": "io_flip/lib/prompt/view/prompt_page.dart",
"repo_id": "io_flip",
"token_count": 239
} | 869 |
// Copyright 2022, the Flutter project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/// An interface of persistence stores for settings.
///
/// Implementations can range from simple in-memory storage through
/// local preferences to cloud-based solutions.
abstract class SettingsPersistence {
Future<bool> getMusicOn();
Future<bool> getMuted({required bool defaultValue});
Future<bool> getSoundsOn();
Future<void> saveMusicOn({required bool active});
Future<void> saveMuted({required bool active});
Future<void> saveSoundsOn({required bool active});
}
| io_flip/lib/settings/persistence/settings_persistence.dart/0 | {
"file_path": "io_flip/lib/settings/persistence/settings_persistence.dart",
"repo_id": "io_flip",
"token_count": 175
} | 870 |
/// Client to access the api
library api_client;
export 'src/api_client.dart';
export 'src/resources/resources.dart';
| io_flip/packages/api_client/lib/api_client.dart/0 | {
"file_path": "io_flip/packages/api_client/lib/api_client.dart",
"repo_id": "io_flip",
"token_count": 38
} | 871 |
name: config_repository
description: Repository for a remote config.
version: 0.1.0+1
publish_to: none
environment:
sdk: ">=3.0.0 <4.0.0"
flutter: ">=3.10.0"
dependencies:
cloud_firestore: ^4.4.3
equatable: ^2.0.5
flutter:
sdk: flutter
game_domain:
path: ../../api/packages/game_domain
uuid: ^3.0.7
dev_dependencies:
flutter_test:
sdk: flutter
mocktail: ^0.3.0
very_good_analysis: ^4.0.0
| io_flip/packages/config_repository/pubspec.yaml/0 | {
"file_path": "io_flip/packages/config_repository/pubspec.yaml",
"repo_id": "io_flip",
"token_count": 197
} | 872 |
import 'package:flutter/material.dart';
import 'package:gallery/story_scaffold.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
class FadingDotLoaderStory extends StatelessWidget {
const FadingDotLoaderStory({super.key});
@override
Widget build(BuildContext context) {
return const StoryScaffold(
title: 'Fading Dot Loader',
body: Center(
child: FadingDotLoader(),
),
);
}
}
| io_flip/packages/io_flip_ui/gallery/lib/widgets/fading_dot_loader_story.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/gallery/lib/widgets/fading_dot_loader_story.dart",
"repo_id": "io_flip",
"token_count": 164
} | 873 |
import 'package:io_flip_ui/gen/assets.gen.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
/// {@template water_damage}
// ignore: comment_references
/// A widget that renders several [SpriteAnimation]s for the damages
/// of a card on another.
/// {@endtemplate}
class WaterDamage extends ElementalDamage {
/// {@macro water_damage}
WaterDamage({required super.size})
: super(
chargeBackPath:
Assets.images.elements.desktop.water.chargeBack.keyName,
chargeFrontPath:
Assets.images.elements.desktop.water.chargeFront.keyName,
damageReceivePath:
Assets.images.elements.desktop.water.damageReceive.keyName,
damageSendPath:
Assets.images.elements.desktop.water.damageSend.keyName,
victoryChargeBackPath:
Assets.images.elements.desktop.water.victoryChargeBack.keyName,
victoryChargeFrontPath:
Assets.images.elements.desktop.water.victoryChargeFront.keyName,
badgePath: Assets.images.suits.card.water.keyName,
animationColor: IoFlipColors.seedBlue,
);
}
| io_flip/packages/io_flip_ui/lib/src/animations/damages/water_damage.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/lib/src/animations/damages/water_damage.dart",
"repo_id": "io_flip",
"token_count": 467
} | 874 |
import 'dart:math' as math;
import 'package:flutter/material.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
/// A controller used to run animations on an [AnimatedCard].
class AnimatedCardController {
_AnimatedCardState? _state;
/// Runs the given [animation] on the [AnimatedCard] associated with this
/// controller.
TickerFuture run(CardAnimation animation) {
_state?._animatable = animation.animatable;
_state?._controller.value = 0;
if (_state == null) {
return TickerFuture.complete();
} else {
return _state!._controller.animateTo(
1,
curve: animation.curve,
duration: animation.duration,
)..whenCompleteOrCancel(() {
_state?._controller.value = 0;
if (animation.flipsCard) {
_state?._flip();
}
});
}
}
/// Disposes of resources used by this controller.
void dispose() {
_state = null;
}
}
/// {@template animated_card}
/// A widget that animates according to the given [controller], and can flip
/// between two sides.
/// {@endtemplate}
class AnimatedCard extends StatefulWidget {
/// {@macro animated_card}
const AnimatedCard({
required this.front,
required this.back,
required this.controller,
super.key,
});
/// The widget to show on the front side of the card.
///
/// This widget will be shown when the card is not flipped.
final Widget front;
/// The widget to show on the back side of the card.
///
/// This widget will be shown when the card is flipped.
final Widget back;
/// The controller used to run animations on this card.
final AnimatedCardController controller;
@override
State<AnimatedCard> createState() => _AnimatedCardState();
}
class _AnimatedCardState extends State<AnimatedCard>
with SingleTickerProviderStateMixin {
late AnimationController _controller;
Animatable<Matrix4> _animatable = TransformTween();
bool _flipped = false;
@override
void initState() {
super.initState();
_controller = AnimationController(
vsync: this,
);
widget.controller._state = this;
}
@override
void dispose() {
_controller.dispose();
widget.controller.dispose();
super.dispose();
}
void _flip() {
setState(() {
_flipped = !_flipped;
});
}
@override
Widget build(BuildContext context) {
return AnimatedBuilder(
animation: _controller,
builder: (context, child) {
return FlipTransform(
transform: _animatable.evaluate(_controller),
front: _flipped ? widget.back : widget.front,
back: _flipped ? widget.front : widget.back,
);
},
);
}
}
/// {@template flip_transform}
/// A widget that is used like [Transform], but shows a different child when the
/// rotation around the y-axis is greater than 90 degrees.
/// {@endtemplate}
class FlipTransform extends StatelessWidget {
/// {@macro flip_transform}
const FlipTransform({
required this.transform,
required this.front,
required this.back,
super.key,
});
/// The transform to apply to the child.
final Matrix4 transform;
/// The widget to show when the rotation around the y-axis is
/// less than or equal to 90 degrees.
final Widget front;
/// The widget to show when the rotation around the y-axis is
/// greater than 90 degrees.
final Widget back;
double get _rotationY => math.acos(transform.getRotation().entry(0, 0));
bool get _isFlipping => _rotationY > math.pi / 2 && _rotationY <= math.pi;
@override
Widget build(BuildContext context) {
return Transform(
transform:
_isFlipping ? (Matrix4.copy(transform)..rotateY(math.pi)) : transform,
alignment: Alignment.center,
child: _isFlipping ? back : front,
);
}
}
| io_flip/packages/io_flip_ui/lib/src/widgets/animated_card.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/lib/src/widgets/animated_card.dart",
"repo_id": "io_flip",
"token_count": 1316
} | 875 |
import 'dart:math' as math;
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
/// [IoFlipBottomBar] is a layout helper to position 3 widgets or groups of
/// widgets along a horizontal axis. It is a modified version of flutter's
/// [NavigationToolbar]
///
/// The [leading] and [trailing] widgets occupy the edges of the widget with
/// reasonable size constraints while the [middle] widget occupies the remaining
/// space in either a center aligned or start aligned fashion.
class IoFlipBottomBar extends StatelessWidget {
/// Creates a widget that lays out its children in a manner suitable for a
/// toolbar.
const IoFlipBottomBar({
super.key,
this.leading,
this.middle,
this.trailing,
this.height,
});
/// Widget to place at the start of the horizontal toolbar.
final Widget? leading;
/// Widget to place in the middle of the horizontal toolbar, occupying
/// as much remaining space as possible.
final Widget? middle;
/// Widget to place at the end of the horizontal toolbar.
final Widget? trailing;
/// Bottom bar height.
final double? height;
static const EdgeInsets _defaultPadding = EdgeInsets.symmetric(
horizontal: IoFlipSpacing.xlg,
vertical: IoFlipSpacing.sm,
);
@override
Widget build(BuildContext context) {
final width = MediaQuery.of(context).size.width;
final isSmall = width < IoFlipBreakpoints.small;
final defaultHeight = isSmall ? 64.0 : 96.0;
return Container(
padding: isSmall
? _defaultPadding
: _defaultPadding.copyWith(bottom: IoFlipSpacing.xxlg),
height: height ?? defaultHeight,
child: CustomMultiChildLayout(
delegate: ToolbarLayout(),
children: <Widget>[
if (leading != null)
LayoutId(id: _ToolbarSlot.leading, child: leading!),
if (middle != null) LayoutId(id: _ToolbarSlot.middle, child: middle!),
if (trailing != null)
LayoutId(id: _ToolbarSlot.trailing, child: trailing!),
],
),
);
}
}
enum _ToolbarSlot {
leading,
middle,
trailing,
}
/// Layout delegate that positions 3 widgets along a horizontal axis in order to
/// keep the middle widget centered and leading and trailing in the left and
/// right side of the screen respectively.
class ToolbarLayout extends MultiChildLayoutDelegate {
/// The default spacing around the middle widget.
static const double kMiddleSpacing = 16;
@override
void performLayout(Size size) {
var leadingWidth = 0.0;
var trailingWidth = 0.0;
if (hasChild(_ToolbarSlot.leading)) {
final constraints = BoxConstraints.loose(size);
final leadingSize = layoutChild(_ToolbarSlot.leading, constraints);
const leadingX = 0.0;
final leadingY = size.height - leadingSize.height;
leadingWidth = leadingSize.width;
positionChild(_ToolbarSlot.leading, Offset(leadingX, leadingY));
}
if (hasChild(_ToolbarSlot.trailing)) {
final constraints = BoxConstraints.loose(size);
final trailingSize = layoutChild(_ToolbarSlot.trailing, constraints);
final trailingX = size.width - trailingSize.width;
final trailingY = size.height - trailingSize.height;
trailingWidth = trailingSize.width;
positionChild(_ToolbarSlot.trailing, Offset(trailingX, trailingY));
}
if (hasChild(_ToolbarSlot.middle)) {
final double maxWidth = math.max(
size.width - leadingWidth - trailingWidth - kMiddleSpacing * 2.0,
0,
);
final constraints =
BoxConstraints.loose(size).copyWith(maxWidth: maxWidth);
final middleSize = layoutChild(_ToolbarSlot.middle, constraints);
final middleX = (size.width - middleSize.width) / 2.0;
final middleY = size.height - middleSize.height;
positionChild(_ToolbarSlot.middle, Offset(middleX, middleY));
}
}
@override
bool shouldRelayout(ToolbarLayout oldDelegate) {
return false;
}
}
| io_flip/packages/io_flip_ui/lib/src/widgets/io_flip_bottom_bar.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/lib/src/widgets/io_flip_bottom_bar.dart",
"repo_id": "io_flip",
"token_count": 1379
} | 876 |
import 'package:flutter/animation.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
void main() {
group('ThereAndBackAgain', () {
final tween = ThereAndBackAgain(Tween<double>(begin: 0, end: 1));
test("begin returns parent's beginning", () {
expect(tween.begin, equals(0));
});
test("end returns parent's beginning", () {
expect(tween.end, equals(0));
});
group('lerp', () {
test('at 0', () {
expect(tween.lerp(0), equals(0));
});
test('at 0.25', () {
expect(tween.lerp(0.25), equals(0.5));
});
test('at 0.5', () {
expect(tween.lerp(0.5), equals(1));
});
test('at 0.75', () {
expect(tween.lerp(0.75), equals(0.5));
});
test('at 1', () {
expect(tween.lerp(1), equals(0));
});
});
});
}
| io_flip/packages/io_flip_ui/test/src/animations/there_and_back_again_test.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/test/src/animations/there_and_back_again_test.dart",
"repo_id": "io_flip",
"token_count": 416
} | 877 |
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
void main() {
group('FlippedGameCard', () {
testWidgets(
'renders correctly',
(tester) async {
await tester.pumpWidget(const FlippedGameCard());
expect(
find.byType(Image),
findsOneWidget,
);
},
);
});
}
| io_flip/packages/io_flip_ui/test/src/widgets/flipped_game_card_test.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/test/src/widgets/flipped_game_card_test.dart",
"repo_id": "io_flip",
"token_count": 191
} | 878 |
#!/bin/bash
export FB_APP_ID=top-dash-dev
export GAME_URL=http://localhost:8080/
export USE_EMULATOR=true
export ENCRYPTION_KEY=X9YTchZdcnyZTNBSBgzj29p7RMBAIubD
export ENCRYPTION_IV=FxC21ctRg9SgiXuZ
export INITIALS_BLACKLIST_ID=MdOoZMhusnJTcwfYE0nL
export PROMPT_WHITELIST_ID=MIsaP8zrRVhuR84MLEic
export FB_STORAGE_BUCKET=top-dash-dev.appspot.com
export SCRIPTS_ENABLED=true
echo ' ######################## '
echo ' ## Starting dart frog ## '
echo ' ######################## '
cd api && dart_frog dev
| io_flip/scripts/start_local_api.sh/0 | {
"file_path": "io_flip/scripts/start_local_api.sh",
"repo_id": "io_flip",
"token_count": 222
} | 879 |
import 'package:flame/cache.dart';
import 'package:flame/widgets.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_flip/draft/draft.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
import 'package:mocktail/mocktail.dart';
import '../../helpers/helpers.dart';
class _MockImages extends Mock implements Images {}
void main() {
group('DeckPack', () {
const child = SizedBox(key: Key('child'));
const size = Size.square(200);
late Images images;
late bool complete;
void onComplete() => complete = true;
setUp(() async {
complete = false;
images = _MockImages();
final image = await createTestImage();
when(() => images.load(any())).thenAnswer((_) async => image);
});
Widget buildSubject({bool isAndroid = false}) => DeckPack(
onComplete: onComplete,
size: size,
child: child,
deviceInfoAware: ({
required ValueGetter<Widget> asset,
required ValueGetter<Widget> orElse,
required DeviceInfoPredicate predicate,
}) async =>
isAndroid ? asset() : orElse(),
);
group('on android phones', () {
testWidgets('shows AnimatedDeckPack', (tester) async {
await tester.pumpApp(
buildSubject(isAndroid: true),
images: Images(prefix: ''),
);
await tester.pump();
expect(find.byType(AnimatedDeckPack), findsOneWidget);
});
testWidgets('shows child after 0.95 seconds', (tester) async {
await tester.pumpApp(
buildSubject(isAndroid: true),
images: Images(prefix: ''),
);
await tester.pump();
await tester.pump(const Duration(milliseconds: 951));
expect(find.byWidget(child), findsOneWidget);
});
testWidgets('shows child after completing animation', (tester) async {
await tester.pumpApp(
buildSubject(isAndroid: true),
images: Images(prefix: ''),
);
await tester.pump();
await tester.pumpAndSettle();
expect(find.byWidget(child), findsOneWidget);
expect(find.byType(AnimatedDeckPack), findsNothing);
expect(complete, isTrue);
});
});
group('on desktop and newer phones', () {
testWidgets('shows SpriteAnimationDeckPack', (tester) async {
await tester.pumpApp(
buildSubject(),
images: Images(prefix: ''),
);
await tester.pump();
expect(find.byType(SpriteAnimationDeckPack), findsOneWidget);
});
testWidgets('shows child after frame 29', (tester) async {
await tester.pumpApp(
buildSubject(),
images: images,
);
await tester.pump();
final state = tester.state<SpriteAnimationDeckPackState>(
find.byType(SpriteAnimationDeckPack),
);
await state.setupAnimation();
state.onFrame(29);
await tester.pump();
expect(find.byWidget(child), findsOneWidget);
expect(find.byType(SpriteAnimationWidget), findsOneWidget);
});
testWidgets('shows child after completing animation', (tester) async {
await tester.pumpApp(
buildSubject(),
images: images,
);
await tester.pump();
tester
.widget<SpriteAnimationDeckPack>(
find.byType(SpriteAnimationDeckPack),
)
.onComplete();
await tester.pump();
expect(find.byWidget(child), findsOneWidget);
expect(find.byType(SpriteAnimationWidget), findsNothing);
expect(find.byType(SpriteAnimationDeckPack), findsNothing);
expect(complete, isTrue);
});
});
});
}
| io_flip/test/draft/widgets/deck_pack_test.dart/0 | {
"file_path": "io_flip/test/draft/widgets/deck_pack_test.dart",
"repo_id": "io_flip",
"token_count": 1640
} | 880 |
// ignore_for_file: prefer_const_constructors
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:game_domain/game_domain.dart';
import 'package:io_flip/how_to_play/how_to_play.dart';
void main() {
group('HowToPlayBloc', () {
group('NextPageRequested', () {
blocTest<HowToPlayBloc, HowToPlayState>(
'changes from step 1 to step 2',
build: HowToPlayBloc.new,
act: (bloc) => bloc.add(NextPageRequested()),
expect: () => [
HowToPlayState(position: 1),
],
);
blocTest<HowToPlayBloc, HowToPlayState>(
'changes from step 2 to step 3',
build: HowToPlayBloc.new,
seed: () => HowToPlayState(position: 1),
act: (bloc) => bloc.add(NextPageRequested()),
expect: () => [
HowToPlayState(position: 2),
],
);
blocTest<HowToPlayBloc, HowToPlayState>(
'changes from step 3 to step 4',
build: HowToPlayBloc.new,
seed: () => HowToPlayState(position: 2),
act: (bloc) => bloc.add(NextPageRequested()),
expect: () => [
HowToPlayState(position: 3),
],
);
blocTest<HowToPlayBloc, HowToPlayState>(
'changes from step 4 to step 5',
build: HowToPlayBloc.new,
seed: () => HowToPlayState(position: 3),
act: (bloc) => bloc.add(NextPageRequested()),
expect: () => [
HowToPlayState(
position: 4,
wheelSuits: const [
Suit.air,
Suit.metal,
Suit.earth,
Suit.water,
Suit.fire,
],
),
],
);
blocTest<HowToPlayBloc, HowToPlayState>(
'changes from step 5 to step 6',
build: HowToPlayBloc.new,
seed: () => HowToPlayState(
position: 4,
wheelSuits: const [
Suit.air,
Suit.metal,
Suit.earth,
Suit.water,
Suit.fire,
],
),
act: (bloc) => bloc.add(NextPageRequested()),
expect: () => [
HowToPlayState(
position: 5,
wheelSuits: const [
Suit.metal,
Suit.earth,
Suit.water,
Suit.fire,
Suit.air,
],
),
],
);
blocTest<HowToPlayBloc, HowToPlayState>(
'changes from step 6 to step 7',
build: HowToPlayBloc.new,
seed: () => HowToPlayState(
position: 5,
wheelSuits: const [
Suit.metal,
Suit.earth,
Suit.water,
Suit.fire,
Suit.air,
],
),
act: (bloc) => bloc.add(NextPageRequested()),
expect: () => [
HowToPlayState(
position: 6,
wheelSuits: const [
Suit.earth,
Suit.water,
Suit.fire,
Suit.air,
Suit.metal,
],
),
],
);
blocTest<HowToPlayBloc, HowToPlayState>(
'changes from step 7 to step 8',
build: HowToPlayBloc.new,
seed: () => HowToPlayState(
position: 6,
wheelSuits: const [
Suit.earth,
Suit.water,
Suit.fire,
Suit.air,
Suit.metal,
],
),
act: (bloc) => bloc.add(NextPageRequested()),
expect: () => [
HowToPlayState(
position: 7,
wheelSuits: const [
Suit.water,
Suit.fire,
Suit.air,
Suit.metal,
Suit.earth,
],
),
],
);
});
group('PreviousPageRequested', () {
blocTest<HowToPlayBloc, HowToPlayState>(
'changes from step 8 to step 7',
build: HowToPlayBloc.new,
seed: () => HowToPlayState(
position: 7,
wheelSuits: const [
Suit.water,
Suit.fire,
Suit.air,
Suit.metal,
Suit.earth,
],
),
act: (bloc) => bloc.add(PreviousPageRequested()),
expect: () => [
HowToPlayState(
position: 6,
wheelSuits: const [
Suit.earth,
Suit.water,
Suit.fire,
Suit.air,
Suit.metal,
],
),
],
);
blocTest<HowToPlayBloc, HowToPlayState>(
'changes from step 7 to step 6',
build: HowToPlayBloc.new,
seed: () => HowToPlayState(
position: 6,
wheelSuits: const [
Suit.earth,
Suit.water,
Suit.fire,
Suit.air,
Suit.metal,
],
),
act: (bloc) => bloc.add(PreviousPageRequested()),
expect: () => [
HowToPlayState(
position: 5,
wheelSuits: const [
Suit.metal,
Suit.earth,
Suit.water,
Suit.fire,
Suit.air,
],
),
],
);
blocTest<HowToPlayBloc, HowToPlayState>(
'changes from step 6 to step 5',
build: HowToPlayBloc.new,
seed: () => HowToPlayState(
position: 5,
wheelSuits: const [
Suit.metal,
Suit.earth,
Suit.water,
Suit.fire,
Suit.air,
],
),
act: (bloc) => bloc.add(PreviousPageRequested()),
expect: () => [
HowToPlayState(
position: 4,
wheelSuits: const [
Suit.air,
Suit.metal,
Suit.earth,
Suit.water,
Suit.fire,
],
),
],
);
blocTest<HowToPlayBloc, HowToPlayState>(
'changes from step 5 to step 4',
build: HowToPlayBloc.new,
seed: () => HowToPlayState(
position: 4,
wheelSuits: const [
Suit.air,
Suit.metal,
Suit.earth,
Suit.water,
Suit.fire,
],
),
act: (bloc) => bloc.add(PreviousPageRequested()),
expect: () => [
HowToPlayState(position: 3),
],
);
blocTest<HowToPlayBloc, HowToPlayState>(
'changes from step 4 to step 3',
build: HowToPlayBloc.new,
seed: () => HowToPlayState(position: 3),
act: (bloc) => bloc.add(PreviousPageRequested()),
expect: () => [
HowToPlayState(position: 2),
],
);
blocTest<HowToPlayBloc, HowToPlayState>(
'changes from step 3 to step 2',
build: HowToPlayBloc.new,
seed: () => HowToPlayState(position: 2),
act: (bloc) => bloc.add(PreviousPageRequested()),
expect: () => [
HowToPlayState(position: 1),
],
);
blocTest<HowToPlayBloc, HowToPlayState>(
'changes from step 2 to step 1',
build: HowToPlayBloc.new,
seed: () => HowToPlayState(position: 1),
act: (bloc) => bloc.add(PreviousPageRequested()),
expect: () => [
HowToPlayState(),
],
);
});
});
}
| io_flip/test/how_to_play/bloc/how_to_play_bloc_test.dart/0 | {
"file_path": "io_flip/test/how_to_play/bloc/how_to_play_bloc_test.dart",
"repo_id": "io_flip",
"token_count": 4102
} | 881 |
import 'package:flutter_test/flutter_test.dart';
import 'package:io_flip/leaderboard/leaderboard.dart';
import '../../helpers/helpers.dart';
void main() {
group('LeaderboardPlayers', () {
testWidgets('renders a list of players', (tester) async {
const players = [
LeaderboardPlayer(
index: 0,
initials: 'AAA',
value: 100,
),
LeaderboardPlayer(
index: 1,
initials: 'BBB',
value: 50,
),
LeaderboardPlayer(
index: 2,
initials: 'CCC',
value: 25,
),
];
await tester.pumpApp(const LeaderboardPlayers(players: players));
expect(find.byType(LeaderboardPlayer), findsNWidgets(3));
});
});
}
| io_flip/test/leaderboard/widgets/leaderboard_players_test.dart/0 | {
"file_path": "io_flip/test/leaderboard/widgets/leaderboard_players_test.dart",
"repo_id": "io_flip",
"token_count": 357
} | 882 |
// ignore_for_file: prefer_const_constructors
import 'package:api_client/api_client.dart';
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:game_script_machine/game_script_machine.dart';
import 'package:io_flip/scripts/cubit/scripts_cubit.dart';
import 'package:mocktail/mocktail.dart';
class _MockScriptsResource extends Mock implements ScriptsResource {}
class _MockGameScriptMachine extends Mock implements GameScriptMachine {}
void main() {
group('ScriptsCubit', () {
late ScriptsResource scriptsResource;
late GameScriptMachine gameScriptMachine;
setUp(() {
scriptsResource = _MockScriptsResource();
gameScriptMachine = _MockGameScriptMachine();
when(() => gameScriptMachine.currentScript).thenReturn('script');
});
test('has the correct initial value', () {
expect(
ScriptsCubit(
scriptsResource: scriptsResource,
gameScriptMachine: gameScriptMachine,
).state,
equals(
ScriptsState(
status: ScriptsStateStatus.loaded,
current: 'script',
),
),
);
});
blocTest<ScriptsCubit, ScriptsState>(
'updates the script',
build: () => ScriptsCubit(
scriptsResource: scriptsResource,
gameScriptMachine: gameScriptMachine,
),
setUp: () {
when(() => scriptsResource.updateScript('current', 'script 2'))
.thenAnswer((_) async {});
},
act: (cubit) {
cubit.updateScript('script 2');
},
expect: () => [
ScriptsState(
status: ScriptsStateStatus.loading,
current: 'script',
),
ScriptsState(
status: ScriptsStateStatus.loaded,
current: 'script 2',
),
],
verify: (_) {
verify(() => scriptsResource.updateScript('current', 'script 2'))
.called(1);
verify(() => gameScriptMachine.currentScript = 'script 2').called(1);
},
);
blocTest<ScriptsCubit, ScriptsState>(
'emits failure when an error happens',
build: () => ScriptsCubit(
scriptsResource: scriptsResource,
gameScriptMachine: gameScriptMachine,
),
setUp: () {
when(() => scriptsResource.updateScript('current', 'script 2'))
.thenThrow(Exception('Ops'));
},
act: (cubit) {
cubit.updateScript('script 2');
},
expect: () => [
ScriptsState(
status: ScriptsStateStatus.loading,
current: 'script',
),
ScriptsState(
status: ScriptsStateStatus.failed,
current: 'script',
),
],
);
});
}
| io_flip/test/scripts/cubit/scripts_cubit_test.dart/0 | {
"file_path": "io_flip/test/scripts/cubit/scripts_cubit_test.dart",
"repo_id": "io_flip",
"token_count": 1169
} | 883 |
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_flip/terms_of_use/terms_of_use.dart';
import 'package:io_flip/utils/external_links.dart';
import 'package:mocktail/mocktail.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
import 'package:url_launcher_platform_interface/url_launcher_platform_interface.dart';
import '../../helpers/helpers.dart';
class _MockTermsOfUseCubit extends MockCubit<bool> implements TermsOfUseCubit {}
class _MockUrlLauncher extends Mock
with MockPlatformInterfaceMixin
implements UrlLauncherPlatform {}
class _FakeLaunchOptions extends Fake implements LaunchOptions {}
void main() {
late TermsOfUseCubit cubit;
late UrlLauncherPlatform urlLauncher;
setUp(() {
cubit = _MockTermsOfUseCubit();
when(cubit.acceptTermsOfUse).thenAnswer((_) => true);
urlLauncher = _MockUrlLauncher();
UrlLauncherPlatform.instance = urlLauncher;
});
setUpAll(() {
registerFallbackValue(_FakeLaunchOptions());
});
group('TermsOfUseView', () {
Widget buildSubject() => const Scaffold(body: TermsOfUseView());
testWidgets('renders correct texts', (tester) async {
await tester.pumpApp(buildSubject());
final l10n = tester.l10n;
final descriptionText = '${l10n.termsOfUseDescriptionPrefix} '
'${l10n.termsOfUseDescriptionInfixOne} '
'${l10n.termsOfUseDescriptionInfixTwo} '
'${l10n.termsOfUseDescriptionSuffix}';
final expectedTexts = [
l10n.termsOfUseTitle,
descriptionText,
l10n.termsOfUseContinueLabel,
];
for (final text in expectedTexts) {
expect(find.text(text, findRichText: true), findsOneWidget);
}
});
testWidgets(
'tapping on Terms of Service opens the link',
(tester) async {
const link = ExternalLinks.termsOfService;
when(
() => urlLauncher.canLaunch(link),
).thenAnswer((_) async => true);
when(
() => urlLauncher.launchUrl(link, any()),
).thenAnswer((_) async => true);
await tester.pumpApp(buildSubject());
final l10n = tester.l10n;
final textFinder = find.byWidgetPredicate(
(widget) =>
widget is RichText &&
tapTextSpan(widget, l10n.termsOfUseDescriptionInfixOne),
);
await tester.tap(textFinder);
await tester.pumpAndSettle();
verify(
() => urlLauncher.launchUrl(link, any()),
).called(1);
},
);
testWidgets(
'tapping on Privacy Policy opens the link',
(tester) async {
const link = ExternalLinks.privacyPolicy;
when(
() => urlLauncher.canLaunch(link),
).thenAnswer((_) async => true);
when(
() => urlLauncher.launchUrl(link, any()),
).thenAnswer((_) async => true);
await tester.pumpApp(buildSubject());
final l10n = tester.l10n;
final textFinder = find.byWidgetPredicate(
(widget) =>
widget is RichText &&
tapTextSpan(widget, l10n.termsOfUseDescriptionSuffix),
);
await tester.tap(textFinder);
await tester.pumpAndSettle();
verify(
() => urlLauncher.launchUrl(link, any()),
).called(1);
},
);
testWidgets(
'tapping continue button calls acceptTermsOfUse and pops go router',
(tester) async {
final goRouter = MockGoRouter();
when(goRouter.canPop).thenReturn(true);
await tester.pumpApp(
BlocProvider.value(
value: cubit,
child: buildSubject(),
),
router: goRouter,
);
final l10n = tester.l10n;
await tester.tap(find.text(l10n.termsOfUseContinueLabel));
await tester.pumpAndSettle();
verify(cubit.acceptTermsOfUse).called(1);
verify(goRouter.pop).called(1);
},
);
});
}
| io_flip/test/terms_of_use/view/terms_of_use_view_test.dart/0 | {
"file_path": "io_flip/test/terms_of_use/view/terms_of_use_view_test.dart",
"repo_id": "io_flip",
"token_count": 1786
} | 884 |
---
sidebar_position: 10
description: Learn how to configure privacy policy and terms of service in your Flutter news application.
---
# Privacy policy & terms of service
Your users access the terms of service and privacy policy page information from the `UserProfilePage` or the `LoginWithEmailForm`.
Replace the placeholder text displayed in the `TermsOfServiceModal` and `TermsOfServicePage` widgets with your app's privacy policy and terms of service by editing the `TermsOfServiceBody` widget (`lib/terms_of_service/widgets/terms_of_service_body.dart`).
You can do one of the following:
- Display `WebView` widgets that link to your privacy policy and terms of service documents hosted on the web (_recommended_).
- Pass your documents as strings to the `Text` widgets inside the `TermsOfServiceBody` widget.
To use the `WebView` solution, replace the `SingleChildScrollView` widget in `TermsOfServiceBody` with one or more `WebView` widgets that link to your documents. Be sure to specify `gestureRecognizers` for `WebViews` so that they are scrollable.
| news_toolkit/docs/docs/flutter_development/privacy_policy.md/0 | {
"file_path": "news_toolkit/docs/docs/flutter_development/privacy_policy.md",
"repo_id": "news_toolkit",
"token_count": 272
} | 885 |
---
sidebar_position: 9
description: Learn how to upgrade your project to incorporate improvements in the toolkit.
---
# Upgrading your project
If you have generated a project using an older version of the Flutter News Template, you can upgrade your project to take advantage of any fixes and improvements.
:::caution
It's recommended that you use a version control tool like `git` and that you have committed all changes before trying to upgrade. Please make sure you have a backup of your project before proceeding so that you can revert the changes if you encounter any issues during the upgrade process.
:::
## Upgrade the template
In order to upgrade an existing project, you must first upgrade to the latest available version of the [`flutter_news_template`](https://brickhub.dev/bricks/flutter_news_template).
:::info
You can check the local version of the `flutter_news_template` by running `mason list --global`
```
mason list --global
/Users/me/.mason-cache/global
└── flutter_news_template 1.0.0 -> registry.brickhub.dev
```
:::
If you have an outdated version installed, upgrade by running `mason upgrade --global`
:::note
Running `mason upgrade --global` will also upgrade other globally installed templates. If you wish to avoid this, you can re-install just the `flutter_news_template` via:
```sh
# Uninstall the current version of the flutter_news_template
mason remove -g flutter_news_template
# Install the latest available version of the flutter_news_template
mason add -g flutter_news_template
```
:::
## Regenerate the project
Once you have upgraded to a newer version of the `flutter_news_template`, you can update an existing project by re-running the `mason make` command:
```sh
mason make flutter_news_template
```
It's important to provide the same values as you originally did when mason prompts for things like the application name, bundle identifier, code owners, and flavors.
:::tip
It may be helpful to maintain a configuration file which contains the configuration used to generate the project:
```json
{
"app_name": "Daily Globe",
"reverse_domain": "com.globe.daily",
"code_owners": "@user1 @user2",
"flavors": ["development", "integration", "staging", "production"]
}
```
This way you can pass the same configuration to mason every time:
```sh
mason make flutter_news_template -c ./path/to/config.json
```
:::
At this point, mason will generate any new files which didn't exist in previous versions of the template. A conflict can occur when mason attempts to generate a file which already exists and the contents of the existing file differ from the contents of the generated file. By default, mason will prompt you for each file conflict and ask you how you would like to resolve the conflict. Refer to the [mason documentation](https://docs.brickhub.dev/mason-make#file-conflict-resolution-%EF%B8%8F) for more information about file conflict resolution and specifying a conflict resolution strategy.
Once you have resolved any conflicts, your project has been successfully upgraded 🎉.
| news_toolkit/docs/docs/project_configuration/upgrading.md/0 | {
"file_path": "news_toolkit/docs/docs/project_configuration/upgrading.md",
"repo_id": "news_toolkit",
"token_count": 798
} | 886 |
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
part 'subscription.g.dart';
/// {@template subscription}
/// A news subscription object which contains
/// metadata about a subscription tier.
/// {@endtemplate}
@JsonSerializable(explicitToJson: true)
class Subscription extends Equatable {
/// {@macro subscription}
const Subscription({
required this.id,
required this.name,
required this.cost,
required this.benefits,
});
/// Converts a `Map<String, dynamic>` into a [Subscription] instance.
factory Subscription.fromJson(Map<String, dynamic> json) =>
_$SubscriptionFromJson(json);
/// The unique identifier of the subscription which corresponds to the
/// in-app product id defined in the App Store and Google Play.
final String id;
/// The name of the subscription.
final SubscriptionPlan name;
/// The cost of the subscription.
final SubscriptionCost cost;
/// The included benefits.
final List<String> benefits;
/// Converts the current instance to a `Map<String, dynamic>`.
Map<String, dynamic> toJson() => _$SubscriptionToJson(this);
@override
List<Object> get props => [id, name, cost, benefits];
}
/// The available subscription plans.
enum SubscriptionPlan {
/// No subscription plan.
none,
/// The basic subscription plan.
basic,
/// The plus subscription plan.
plus,
/// The premium subscription plan.
premium,
}
/// {@template subscription_cost}
/// A news subscription cost object which contains
/// metadata about the cost of a specific subscription.
/// {@endtemplate}
@JsonSerializable()
class SubscriptionCost extends Equatable {
/// {@macro subscription_cost}
const SubscriptionCost({required this.monthly, required this.annual});
/// Converts a `Map<String, dynamic>` into a [SubscriptionCost] instance.
factory SubscriptionCost.fromJson(Map<String, dynamic> json) =>
_$SubscriptionCostFromJson(json);
/// The monthly subscription cost in cents.
final int monthly;
/// The annual subscription cost in cents.
final int annual;
/// Converts the current instance to a `Map<String, dynamic>`.
Map<String, dynamic> toJson() => _$SubscriptionCostToJson(this);
@override
List<Object> get props => [monthly, annual];
}
| news_toolkit/flutter_news_example/api/lib/src/data/models/subscription.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/lib/src/data/models/subscription.dart",
"repo_id": "news_toolkit",
"token_count": 664
} | 887 |
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'feed_response.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
FeedResponse _$FeedResponseFromJson(Map<String, dynamic> json) => FeedResponse(
feed: const NewsBlocksConverter().fromJson(json['feed'] as List),
totalCount: json['totalCount'] as int,
);
Map<String, dynamic> _$FeedResponseToJson(FeedResponse instance) =>
<String, dynamic>{
'feed': const NewsBlocksConverter().toJson(instance.feed),
'totalCount': instance.totalCount,
};
| news_toolkit/flutter_news_example/api/lib/src/models/feed_response/feed_response.g.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/lib/src/models/feed_response/feed_response.g.dart",
"repo_id": "news_toolkit",
"token_count": 195
} | 888 |
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: cast_nullable_to_non_nullable, implicit_dynamic_parameter, lines_longer_than_80_chars, prefer_const_constructors, require_trailing_commas
part of 'article_introduction_block.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
ArticleIntroductionBlock _$ArticleIntroductionBlockFromJson(
Map<String, dynamic> json) =>
$checkedCreate(
'ArticleIntroductionBlock',
json,
($checkedConvert) {
final val = ArticleIntroductionBlock(
category: $checkedConvert(
'category', (v) => $enumDecode(_$PostCategoryEnumMap, v)),
author: $checkedConvert('author', (v) => v as String),
publishedAt: $checkedConvert(
'published_at', (v) => DateTime.parse(v as String)),
title: $checkedConvert('title', (v) => v as String),
type: $checkedConvert('type',
(v) => v as String? ?? ArticleIntroductionBlock.identifier),
imageUrl: $checkedConvert('image_url', (v) => v as String?),
isPremium: $checkedConvert('is_premium', (v) => v as bool? ?? false),
);
return val;
},
fieldKeyMap: const {
'publishedAt': 'published_at',
'imageUrl': 'image_url',
'isPremium': 'is_premium'
},
);
Map<String, dynamic> _$ArticleIntroductionBlockToJson(
ArticleIntroductionBlock instance) {
final val = <String, dynamic>{
'category': _$PostCategoryEnumMap[instance.category],
'author': instance.author,
'published_at': instance.publishedAt.toIso8601String(),
};
void writeNotNull(String key, dynamic value) {
if (value != null) {
val[key] = value;
}
}
writeNotNull('image_url', instance.imageUrl);
val['title'] = instance.title;
val['is_premium'] = instance.isPremium;
val['type'] = instance.type;
return val;
}
const _$PostCategoryEnumMap = {
PostCategory.business: 'business',
PostCategory.entertainment: 'entertainment',
PostCategory.health: 'health',
PostCategory.science: 'science',
PostCategory.sports: 'sports',
PostCategory.technology: 'technology',
};
| news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/article_introduction_block.g.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/article_introduction_block.g.dart",
"repo_id": "news_toolkit",
"token_count": 838
} | 889 |
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: cast_nullable_to_non_nullable, implicit_dynamic_parameter, lines_longer_than_80_chars, prefer_const_constructors, require_trailing_commas
part of 'newsletter_block.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
NewsletterBlock _$NewsletterBlockFromJson(Map<String, dynamic> json) =>
$checkedCreate(
'NewsletterBlock',
json,
($checkedConvert) {
final val = NewsletterBlock(
type: $checkedConvert(
'type', (v) => v as String? ?? NewsletterBlock.identifier),
);
return val;
},
);
Map<String, dynamic> _$NewsletterBlockToJson(NewsletterBlock instance) =>
<String, dynamic>{
'type': instance.type,
};
| news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/newsletter_block.g.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/newsletter_block.g.dart",
"repo_id": "news_toolkit",
"token_count": 307
} | 890 |
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: cast_nullable_to_non_nullable, implicit_dynamic_parameter, lines_longer_than_80_chars, prefer_const_constructors, require_trailing_commas
part of 'slide_block.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
SlideBlock _$SlideBlockFromJson(Map<String, dynamic> json) => $checkedCreate(
'SlideBlock',
json,
($checkedConvert) {
final val = SlideBlock(
caption: $checkedConvert('caption', (v) => v as String),
description: $checkedConvert('description', (v) => v as String),
photoCredit: $checkedConvert('photo_credit', (v) => v as String),
imageUrl: $checkedConvert('image_url', (v) => v as String),
type: $checkedConvert(
'type', (v) => v as String? ?? SlideBlock.identifier),
);
return val;
},
fieldKeyMap: const {
'photoCredit': 'photo_credit',
'imageUrl': 'image_url'
},
);
Map<String, dynamic> _$SlideBlockToJson(SlideBlock instance) =>
<String, dynamic>{
'caption': instance.caption,
'description': instance.description,
'photo_credit': instance.photoCredit,
'image_url': instance.imageUrl,
'type': instance.type,
};
| news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/slide_block.g.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/slide_block.g.dart",
"repo_id": "news_toolkit",
"token_count": 536
} | 891 |
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: cast_nullable_to_non_nullable, implicit_dynamic_parameter, lines_longer_than_80_chars, prefer_const_constructors, require_trailing_commas
part of 'trending_story_block.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
TrendingStoryBlock _$TrendingStoryBlockFromJson(Map<String, dynamic> json) =>
$checkedCreate(
'TrendingStoryBlock',
json,
($checkedConvert) {
final val = TrendingStoryBlock(
content: $checkedConvert('content',
(v) => PostSmallBlock.fromJson(v as Map<String, dynamic>)),
type: $checkedConvert(
'type', (v) => v as String? ?? TrendingStoryBlock.identifier),
);
return val;
},
);
Map<String, dynamic> _$TrendingStoryBlockToJson(TrendingStoryBlock instance) =>
<String, dynamic>{
'content': instance.content.toJson(),
'type': instance.type,
};
| news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/trending_story_block.g.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/trending_story_block.g.dart",
"repo_id": "news_toolkit",
"token_count": 395
} | 892 |
// ignore_for_file: prefer_const_constructors_in_immutables, prefer_const_constructors, lines_longer_than_80_chars
import 'package:news_blocks/news_blocks.dart';
import 'package:test/test.dart';
class CustomBlock extends NewsBlock {
CustomBlock({super.type = '__custom_block__'});
@override
Map<String, dynamic> toJson() => <String, dynamic>{'type': type};
}
void main() {
group('NewsBlock', () {
test('can be extended', () {
expect(CustomBlock.new, returnsNormally);
});
group('fromJson', () {
test('returns UnknownBlock when type is missing', () {
expect(NewsBlock.fromJson(<String, dynamic>{}), equals(UnknownBlock()));
});
test('returns UnknownBlock when type is unrecognized', () {
expect(
NewsBlock.fromJson(<String, dynamic>{'type': 'unrecognized'}),
equals(UnknownBlock()),
);
});
test('returns SectionHeaderBlock', () {
final block = SectionHeaderBlock(title: 'Example');
expect(NewsBlock.fromJson(block.toJson()), equals(block));
});
test('returns DividerHorizontalBlock', () {
final block = DividerHorizontalBlock();
expect(NewsBlock.fromJson(block.toJson()), equals(block));
});
test('returns SpacerBlock', () {
final block = SpacerBlock(spacing: Spacing.medium);
expect(NewsBlock.fromJson(block.toJson()), equals(block));
});
test('returns TextCaptionBlock', () {
final block = TextCaptionBlock(
text: 'Text caption',
color: TextCaptionColor.light,
);
expect(NewsBlock.fromJson(block.toJson()), equals(block));
});
test('returns TextHeadlineBlock', () {
final block = TextHeadlineBlock(text: 'Text Headline');
expect(NewsBlock.fromJson(block.toJson()), equals(block));
});
test('returns TextLeadParagraphBlock', () {
final block = TextLeadParagraphBlock(text: 'Text Lead Paragraph');
expect(NewsBlock.fromJson(block.toJson()), equals(block));
});
test('returns TextParagraphBlock', () {
final block = TextParagraphBlock(text: 'Text Paragraph');
expect(NewsBlock.fromJson(block.toJson()), equals(block));
});
test('returns ImageBlock', () {
final block = ImageBlock(imageUrl: 'imageUrl');
expect(NewsBlock.fromJson(block.toJson()), equals(block));
});
test('returns VideoBlock', () {
final block = VideoBlock(videoUrl: 'videoUrl');
expect(NewsBlock.fromJson(block.toJson()), equals(block));
});
test('returns VideoIntroductionBlock', () {
final block = VideoIntroductionBlock(
category: PostCategory.technology,
title: 'title',
videoUrl: 'videoUrl',
);
expect(NewsBlock.fromJson(block.toJson()), equals(block));
});
test('returns ArticleIntroductionBlock', () {
final block = ArticleIntroductionBlock(
category: PostCategory.technology,
author: 'author',
publishedAt: DateTime(2022, 3, 9),
imageUrl: 'imageUrl',
title: 'title',
);
expect(NewsBlock.fromJson(block.toJson()), equals(block));
});
test('returns PostLargeBlock', () {
final block = PostLargeBlock(
id: 'id',
category: PostCategory.technology,
author: 'author',
publishedAt: DateTime(2022, 3, 9),
imageUrl: 'imageUrl',
title: 'title',
);
expect(NewsBlock.fromJson(block.toJson()), equals(block));
});
test('returns PostMediumBlock', () {
final block = PostMediumBlock(
id: 'id',
category: PostCategory.sports,
author: 'author',
publishedAt: DateTime(2022, 3, 10),
imageUrl: 'imageUrl',
title: 'title',
);
expect(NewsBlock.fromJson(block.toJson()), equals(block));
});
test('returns PostSmallBlock', () {
final block = PostSmallBlock(
id: 'id',
category: PostCategory.health,
author: 'author',
publishedAt: DateTime(2022, 3, 11),
imageUrl: 'imageUrl',
title: 'title',
);
expect(NewsBlock.fromJson(block.toJson()), equals(block));
});
test('returns PostGridGroupBlock', () {
final block = PostGridGroupBlock(
category: PostCategory.science,
tiles: [
PostGridTileBlock(
id: 'id',
category: PostCategory.science,
author: 'author',
publishedAt: DateTime(2022, 3, 12),
imageUrl: 'imageUrl',
title: 'title',
)
],
);
expect(NewsBlock.fromJson(block.toJson()), equals(block));
});
test('returns PostGridTileBlock', () {
final block = PostGridTileBlock(
id: 'id',
category: PostCategory.science,
author: 'author',
publishedAt: DateTime(2022, 3, 12),
imageUrl: 'imageUrl',
title: 'title',
);
expect(NewsBlock.fromJson(block.toJson()), equals(block));
});
test('returns NewsletterBlock', () {
final block = NewsletterBlock();
expect(NewsBlock.fromJson(block.toJson()), equals(block));
});
test('returns BannerAdBlock', () {
final block = BannerAdBlock(
size: BannerAdSize.normal,
);
expect(NewsBlock.fromJson(block.toJson()), equals(block));
});
test('returns HtmlBlock', () {
final block = HtmlBlock(content: '<p>hello</p>');
expect(NewsBlock.fromJson(block.toJson()), equals(block));
});
test('returns SlideBlock', () {
final block = SlideBlock(
imageUrl: 'imageUrl',
caption: 'caption',
photoCredit: 'photoCredit',
description: 'description',
);
expect(NewsBlock.fromJson(block.toJson()), equals(block));
});
test('returns SlideshowBlock', () {
final slide = SlideBlock(
imageUrl: 'imageUrl',
caption: 'caption',
photoCredit: 'photoCredit',
description: 'description',
);
final block = SlideshowBlock(title: 'title', slides: [slide]);
expect(NewsBlock.fromJson(block.toJson()), equals(block));
});
test('returns SlideshowIntroductionBlock', () {
final block = SlideshowIntroductionBlock(
title: 'title',
coverImageUrl: 'coverImageUrl',
);
expect(NewsBlock.fromJson(block.toJson()), equals(block));
});
test('returns TrendingStoryBlock', () {
final content = PostSmallBlock(
id: 'id',
category: PostCategory.health,
author: 'author',
publishedAt: DateTime(2022, 3, 11),
imageUrl: 'imageUrl',
title: 'title',
);
final block = TrendingStoryBlock(content: content);
expect(NewsBlock.fromJson(block.toJson()), equals(block));
});
});
});
}
| news_toolkit/flutter_news_example/api/packages/news_blocks/test/src/news_block_test.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/test/src/news_block_test.dart",
"repo_id": "news_toolkit",
"token_count": 3160
} | 893 |
// ignore_for_file: prefer_const_constructors
import 'package:news_blocks/news_blocks.dart';
import 'package:test/test.dart';
void main() {
group('TextLeadParagraphBlock', () {
test('can be (de)serialized', () {
final block = TextLeadParagraphBlock(text: 'Text Lead Paragraph');
expect(TextLeadParagraphBlock.fromJson(block.toJson()), equals(block));
});
});
}
| news_toolkit/flutter_news_example/api/packages/news_blocks/test/src/text_lead_paragraph_block_test.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/test/src/text_lead_paragraph_block_test.dart",
"repo_id": "news_toolkit",
"token_count": 139
} | 894 |
import 'dart:io';
import 'package:dart_frog/dart_frog.dart';
import 'package:flutter_news_example_api/api.dart';
Future<Response> onRequest(RequestContext context) async {
if (context.request.method == HttpMethod.post) return _onPostRequest(context);
if (context.request.method == HttpMethod.get) return _onGetRequest(context);
return Response(statusCode: HttpStatus.methodNotAllowed);
}
Future<Response> _onPostRequest(RequestContext context) async {
final subscriptionId = context.request.url.queryParameters['subscriptionId'];
final user = context.read<RequestUser>();
if (user.isAnonymous || subscriptionId == null) {
return Response(statusCode: HttpStatus.badRequest);
}
await context.read<NewsDataSource>().createSubscription(
userId: user.id,
subscriptionId: subscriptionId,
);
return Response(statusCode: HttpStatus.created);
}
Future<Response> _onGetRequest(RequestContext context) async {
final subscriptions = await context.read<NewsDataSource>().getSubscriptions();
final response = SubscriptionsResponse(subscriptions: subscriptions);
return Response.json(body: response);
}
| news_toolkit/flutter_news_example/api/routes/api/v1/subscriptions/index.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/routes/api/v1/subscriptions/index.dart",
"repo_id": "news_toolkit",
"token_count": 347
} | 895 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter_news_example_api/api.dart';
import 'package:news_blocks/news_blocks.dart';
import 'package:test/test.dart';
void main() {
group('Feed', () {
test('can be (de)serialized', () {
final sectionHeaderA = SectionHeaderBlock(title: 'sectionA');
final sectionHeaderB = SectionHeaderBlock(title: 'sectionB');
final feed = Feed(
blocks: [sectionHeaderA, sectionHeaderB],
totalBlocks: 2,
);
expect(Feed.fromJson(feed.toJson()), equals(feed));
});
});
}
| news_toolkit/flutter_news_example/api/test/src/data/models/feed_test.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/test/src/data/models/feed_test.dart",
"repo_id": "news_toolkit",
"token_count": 219
} | 896 |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>$(FLAVOR_APP_NAME)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleLocalizations</key>
<array>
<string>en</string>
</array>
<key>CFBundleName</key>
<string>flutter_news_example</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(FLUTTER_BUILD_NAME)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>fb$(FACEBOOK_APP_ID)</string>
<string>$(REVERSED_CLIENT_ID)</string>
<string>$(TWITTER_REDIRECT_URI_SCHEME)</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>Bundle ID</string>
<key>CFBundleURLSchemes</key>
<array>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
</array>
</dict>
</array>
<key>GADApplicationIdentifier</key>
<string>$(ADMOB_APP_ID)</string>
<key>FLTNewsTemplateVersion</key>
<string>1.0.0</string>
<key>NSUserTrackingUsageDescription</key>
<string>This identifier will be used to deliver personalized ads to you.</string>
<key>CFBundleVersion</key>
<string>$(FLUTTER_BUILD_NUMBER)</string>
<key>FacebookAppID</key>
<string>$(FACEBOOK_APP_ID)</string>
<key>FacebookClientToken</key>
<string>$(FACEBOOK_CLIENT_TOKEN)</string>
<key>FacebookDisplayName</key>
<string>$(FACEBOOK_DISPLAY_NAME)</string>
<key>FirebaseAppDelegateProxyEnabled</key>
<false/>
<key>FirebaseDynamicLinksCustomDomains</key>
<array>
<string>https://$(FLAVOR_DEEP_LINK_DOMAIN)/email_login</string>
</array>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fbapi</string>
<string>fb-messenger-share-api</string>
<string>fbauth2</string>
<string>fbshareextension</string>
</array>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIBackgroundModes</key>
<array>
<string>fetch</string>
<string>remote-notification</string>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>PermissionGroupNotification</key>
<string>Flutter News Example requires access to notifications to send news notifications.</string>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
</dict>
</plist>
| news_toolkit/flutter_news_example/ios/Runner/Info.plist/0 | {
"file_path": "news_toolkit/flutter_news_example/ios/Runner/Info.plist",
"repo_id": "news_toolkit",
"token_count": 1422
} | 897 |
export 'bloc/app_bloc.dart';
export 'routes/routes.dart';
export 'view/app.dart';
export 'widgets/widgets.dart';
| news_toolkit/flutter_news_example/lib/app/app.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/app/app.dart",
"repo_id": "news_toolkit",
"token_count": 50
} | 898 |
import 'package:app_ui/app_ui.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_news_example/ads/ads.dart';
import 'package:flutter_news_example/analytics/analytics.dart';
import 'package:flutter_news_example/article/article.dart';
import 'package:flutter_news_example/l10n/l10n.dart';
import 'package:flutter_news_example/network_error/network_error.dart';
import 'package:flutter_news_example_api/client.dart';
import 'package:visibility_detector/visibility_detector.dart';
class ArticleContent extends StatelessWidget {
const ArticleContent({super.key});
@override
Widget build(BuildContext context) {
final status = context.select((ArticleBloc bloc) => bloc.state.status);
final hasMoreContent =
context.select((ArticleBloc bloc) => bloc.state.hasMoreContent);
if (status == ArticleStatus.initial) {
return const ArticleContentLoaderItem(
key: Key('articleContent_empty_loaderItem'),
);
}
return ArticleContentSeenListener(
child: BlocListener<ArticleBloc, ArticleState>(
listener: (context, state) {
if (state.status == ArticleStatus.failure && state.content.isEmpty) {
Navigator.of(context).push<void>(
NetworkError.route(
onRetry: () {
context.read<ArticleBloc>().add(const ArticleRequested());
Navigator.of(context).pop();
},
),
);
} else if (state.status == ArticleStatus.shareFailure) {
_handleShareFailure(context);
}
},
child: Stack(
alignment: AlignmentDirectional.bottomCenter,
children: [
SelectionArea(
child: CustomScrollView(
slivers: [
const ArticleContentItemList(),
if (!hasMoreContent) const ArticleTrailingContent(),
],
),
),
const StickyAd(),
],
),
),
);
}
void _handleShareFailure(BuildContext context) {
ScaffoldMessenger.of(context)
..hideCurrentSnackBar()
..showSnackBar(
SnackBar(
key: const Key('articleContent_shareFailure_snackBar'),
content: Text(
context.l10n.shareFailure,
),
),
);
}
}
class ArticleContentSeenListener extends StatelessWidget {
const ArticleContentSeenListener({
required this.child,
super.key,
});
final Widget child;
@override
Widget build(BuildContext context) {
return BlocListener<ArticleBloc, ArticleState>(
listener: (context, state) => context.read<AnalyticsBloc>().add(
TrackAnalyticsEvent(
ArticleMilestoneEvent(
milestonePercentage: state.contentMilestone,
articleTitle: state.title!,
),
),
),
listenWhen: (previous, current) =>
previous.contentMilestone != current.contentMilestone,
child: child,
);
}
}
class ArticleContentItemList extends StatelessWidget {
const ArticleContentItemList({super.key});
@override
Widget build(BuildContext context) {
final isFailure = context.select(
(ArticleBloc bloc) => bloc.state.status == ArticleStatus.failure,
);
final hasMoreContent =
context.select((ArticleBloc bloc) => bloc.state.hasMoreContent);
final status = context.select((ArticleBloc bloc) => bloc.state.status);
final content = context.select((ArticleBloc bloc) => bloc.state.content);
final uri = context.select((ArticleBloc bloc) => bloc.state.uri);
final isArticlePreview =
context.select((ArticleBloc bloc) => bloc.state.isPreview);
return SliverList(
delegate: SliverChildBuilderDelegate(
(context, index) {
if (index == content.length) {
if (isFailure) {
return NetworkError(
onRetry: () {
context.read<ArticleBloc>().add(const ArticleRequested());
},
);
}
return hasMoreContent
? Padding(
padding: EdgeInsets.only(
top: content.isEmpty ? AppSpacing.xxxlg : 0,
),
child: ArticleContentLoaderItem(
key: const Key(
'articleContent_moreContent_loaderItem',
),
onPresented: () {
if (status != ArticleStatus.loading) {
context
.read<ArticleBloc>()
.add(const ArticleRequested());
}
},
),
)
: const SizedBox();
}
return _buildArticleItem(
context,
index,
content,
uri,
isArticlePreview,
);
},
childCount: content.length + 1,
),
);
}
Widget _buildArticleItem(
BuildContext context,
int index,
List<NewsBlock> content,
Uri? uri,
bool isArticlePreview,
) {
final block = content[index];
final isFinalItem = index == content.length - 1;
final visibilityDetectorWidget = VisibilityDetector(
key: ValueKey(block),
onVisibilityChanged: (visibility) {
if (!visibility.visibleBounds.isEmpty) {
context
.read<ArticleBloc>()
.add(ArticleContentSeen(contentIndex: index));
}
},
child: ArticleContentItem(
block: block,
onSharePressed: uri != null && uri.toString().isNotEmpty
? () => context.read<ArticleBloc>().add(
ShareRequested(uri: uri),
)
: null,
),
);
return isFinalItem && isArticlePreview
? Stack(
alignment: Alignment.bottomCenter,
children: [visibilityDetectorWidget, const ArticleTrailingShadow()],
)
: visibilityDetectorWidget;
}
}
| news_toolkit/flutter_news_example/lib/article/widgets/article_content.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/article/widgets/article_content.dart",
"repo_id": "news_toolkit",
"token_count": 2905
} | 899 |
part of 'feed_bloc.dart';
enum FeedStatus {
initial,
loading,
populated,
failure,
}
@JsonSerializable()
class FeedState extends Equatable {
const FeedState({
required this.status,
this.feed = const {},
this.hasMoreNews = const {},
});
const FeedState.initial()
: this(
status: FeedStatus.initial,
);
factory FeedState.fromJson(Map<String, dynamic> json) =>
_$FeedStateFromJson(json);
final FeedStatus status;
final Map<Category, List<NewsBlock>> feed;
final Map<Category, bool> hasMoreNews;
@override
List<Object> get props => [
status,
feed,
hasMoreNews,
];
FeedState copyWith({
FeedStatus? status,
Map<Category, List<NewsBlock>>? feed,
Map<Category, bool>? hasMoreNews,
}) {
return FeedState(
status: status ?? this.status,
feed: feed ?? this.feed,
hasMoreNews: hasMoreNews ?? this.hasMoreNews,
);
}
Map<String, dynamic> toJson() => _$FeedStateToJson(this);
}
| news_toolkit/flutter_news_example/lib/feed/bloc/feed_state.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/feed/bloc/feed_state.dart",
"repo_id": "news_toolkit",
"token_count": 400
} | 900 |
import 'dart:async';
import 'package:analytics_repository/analytics_repository.dart';
import 'package:bloc/bloc.dart';
import 'package:equatable/equatable.dart';
import 'package:form_inputs/form_inputs.dart';
import 'package:user_repository/user_repository.dart';
part 'login_event.dart';
part 'login_state.dart';
class LoginBloc extends Bloc<LoginEvent, LoginState> {
LoginBloc({
required UserRepository userRepository,
}) : _userRepository = userRepository,
super(const LoginState()) {
on<LoginEmailChanged>(_onEmailChanged);
on<SendEmailLinkSubmitted>(_onSendEmailLinkSubmitted);
on<LoginGoogleSubmitted>(_onGoogleSubmitted);
on<LoginAppleSubmitted>(_onAppleSubmitted);
on<LoginTwitterSubmitted>(_onTwitterSubmitted);
on<LoginFacebookSubmitted>(_onFacebookSubmitted);
}
final UserRepository _userRepository;
void _onEmailChanged(LoginEmailChanged event, Emitter<LoginState> emit) {
final email = Email.dirty(event.email);
emit(
state.copyWith(
email: email,
valid: Formz.validate([email]),
),
);
}
Future<void> _onSendEmailLinkSubmitted(
SendEmailLinkSubmitted event,
Emitter<LoginState> emit,
) async {
if (!state.valid) return;
emit(state.copyWith(status: FormzSubmissionStatus.inProgress));
try {
await _userRepository.sendLoginEmailLink(
email: state.email.value,
);
emit(state.copyWith(status: FormzSubmissionStatus.success));
} catch (error, stackTrace) {
emit(state.copyWith(status: FormzSubmissionStatus.failure));
addError(error, stackTrace);
}
}
Future<void> _onGoogleSubmitted(
LoginGoogleSubmitted event,
Emitter<LoginState> emit,
) async {
emit(state.copyWith(status: FormzSubmissionStatus.inProgress));
try {
await _userRepository.logInWithGoogle();
emit(state.copyWith(status: FormzSubmissionStatus.success));
} on LogInWithGoogleCanceled {
emit(state.copyWith(status: FormzSubmissionStatus.canceled));
} catch (error, stackTrace) {
emit(state.copyWith(status: FormzSubmissionStatus.failure));
addError(error, stackTrace);
}
}
Future<void> _onAppleSubmitted(
LoginAppleSubmitted event,
Emitter<LoginState> emit,
) async {
emit(state.copyWith(status: FormzSubmissionStatus.inProgress));
try {
await _userRepository.logInWithApple();
emit(state.copyWith(status: FormzSubmissionStatus.success));
} catch (error, stackTrace) {
emit(state.copyWith(status: FormzSubmissionStatus.failure));
addError(error, stackTrace);
}
}
Future<void> _onTwitterSubmitted(
LoginTwitterSubmitted event,
Emitter<LoginState> emit,
) async {
emit(state.copyWith(status: FormzSubmissionStatus.inProgress));
try {
await _userRepository.logInWithTwitter();
emit(state.copyWith(status: FormzSubmissionStatus.success));
} on LogInWithTwitterCanceled {
emit(state.copyWith(status: FormzSubmissionStatus.canceled));
} catch (error, stackTrace) {
emit(state.copyWith(status: FormzSubmissionStatus.failure));
addError(error, stackTrace);
}
}
Future<void> _onFacebookSubmitted(
LoginFacebookSubmitted event,
Emitter<LoginState> emit,
) async {
emit(state.copyWith(status: FormzSubmissionStatus.inProgress));
try {
await _userRepository.logInWithFacebook();
emit(state.copyWith(status: FormzSubmissionStatus.success));
} on LogInWithFacebookCanceled {
emit(state.copyWith(status: FormzSubmissionStatus.canceled));
} catch (error, stackTrace) {
emit(state.copyWith(status: FormzSubmissionStatus.failure));
addError(error, stackTrace);
}
}
}
| news_toolkit/flutter_news_example/lib/login/bloc/login_bloc.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/login/bloc/login_bloc.dart",
"repo_id": "news_toolkit",
"token_count": 1396
} | 901 |
export 'magic_link_prompt_page.dart';
export 'magic_link_prompt_view.dart';
| news_toolkit/flutter_news_example/lib/magic_link_prompt/view/view.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/magic_link_prompt/view/view.dart",
"repo_id": "news_toolkit",
"token_count": 30
} | 902 |
part of 'newsletter_bloc.dart';
abstract class NewsletterEvent extends Equatable {
const NewsletterEvent();
}
class NewsletterSubscribed extends NewsletterEvent {
const NewsletterSubscribed();
@override
List<Object> get props => [];
}
class EmailChanged extends NewsletterEvent {
const EmailChanged({required this.email});
final String email;
@override
List<Object?> get props => [email];
}
| news_toolkit/flutter_news_example/lib/newsletter/bloc/newsletter_event.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/newsletter/bloc/newsletter_event.dart",
"repo_id": "news_toolkit",
"token_count": 112
} | 903 |
import 'package:ads_consent_client/ads_consent_client.dart';
import 'package:app_ui/app_ui.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_news_example/onboarding/onboarding.dart';
import 'package:notifications_repository/notifications_repository.dart';
class OnboardingPage extends StatelessWidget {
const OnboardingPage({super.key});
static Page<void> page() => const MaterialPage<void>(child: OnboardingPage());
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: AppColors.darkBackground,
body: BlocProvider(
create: (_) => OnboardingBloc(
notificationsRepository: context.read<NotificationsRepository>(),
adsConsentClient: context.read<AdsConsentClient>(),
),
child: const OnboardingView(),
),
);
}
}
| news_toolkit/flutter_news_example/lib/onboarding/view/onboarding_page.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/onboarding/view/onboarding_page.dart",
"repo_id": "news_toolkit",
"token_count": 320
} | 904 |
import 'package:article_repository/article_repository.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_news_example/article/article.dart';
import 'package:flutter_news_example/slideshow/slideshow.dart';
import 'package:news_blocks/news_blocks.dart';
import 'package:share_launcher/share_launcher.dart';
class SlideshowPage extends StatelessWidget {
const SlideshowPage({
required this.slideshow,
required this.articleId,
super.key,
});
static Route<void> route({
required SlideshowBlock slideshow,
required String articleId,
}) {
return MaterialPageRoute<void>(
builder: (_) => SlideshowPage(
slideshow: slideshow,
articleId: articleId,
),
);
}
final SlideshowBlock slideshow;
final String articleId;
@override
Widget build(BuildContext context) {
return BlocProvider(
create: (context) => ArticleBloc(
articleId: articleId,
shareLauncher: const ShareLauncher(),
articleRepository: context.read<ArticleRepository>(),
),
child: SlideshowView(
block: slideshow,
),
);
}
}
| news_toolkit/flutter_news_example/lib/slideshow/view/slideshow_page.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/slideshow/view/slideshow_page.dart",
"repo_id": "news_toolkit",
"token_count": 431
} | 905 |
export 'view/view.dart';
export 'widgets/widgets.dart';
| news_toolkit/flutter_news_example/lib/terms_of_service/terms_of_service.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/terms_of_service/terms_of_service.dart",
"repo_id": "news_toolkit",
"token_count": 22
} | 906 |
export 'user_profile_page.dart';
| news_toolkit/flutter_news_example/lib/user_profile/view/view.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/user_profile/view/view.dart",
"repo_id": "news_toolkit",
"token_count": 12
} | 907 |
import 'package:analytics_repository/analytics_repository.dart';
/// {@template ntg_event}
/// An analytics event following News Tagging Guidelines event taxonomy.
/// https://newsinitiative.withgoogle.com/training/states/ntg/assets/ntg-playbook.pdf#page=245
/// {@endtemplate}
abstract class NTGEvent extends AnalyticsEvent {
/// {@macro ntg_event}
NTGEvent({
required String name,
required String category,
required String action,
required bool nonInteraction,
String? label,
Object? value,
String? hitType,
}) : super(
name,
properties: <String, Object>{
'eventCategory': category,
'eventAction': action,
'nonInteraction': '$nonInteraction',
if (label != null) 'eventLabel': label,
if (value != null) 'eventValue': value,
if (hitType != null) 'hitType': hitType,
},
);
}
/// {@template newsletter_event}
/// An analytics event for tracking newsletter sign up and impression.
/// {@endtemplate}
class NewsletterEvent extends NTGEvent {
/// An analytics event for tracking newsletter sign up.
NewsletterEvent.signUp()
: super(
name: 'newsletter_signup',
category: 'NTG newsletter',
action: 'newsletter signup',
label: 'success',
nonInteraction: false,
);
/// An analytics event for tracking newsletter impression.
NewsletterEvent.impression({String? articleTitle})
: super(
name: 'newsletter_impression',
category: 'NTG newsletter',
action: 'newsletter modal impression 3',
label: articleTitle ?? '',
nonInteraction: false,
);
}
/// {@template login_event}
/// An analytics event for tracking user login.
/// {@endtemplate}
class LoginEvent extends NTGEvent {
/// {@macro login_event}
LoginEvent()
: super(
name: 'login',
category: 'NTG account',
action: 'login',
label: 'success',
nonInteraction: false,
);
}
/// {@template registration_event}
/// An analytics event for tracking user registration.
/// {@endtemplate}
class RegistrationEvent extends NTGEvent {
/// {@macro registration_event}
RegistrationEvent()
: super(
name: 'registration',
category: 'NTG account',
action: 'registration',
label: 'success',
nonInteraction: false,
);
}
/// {@template article_milestone_event}
/// An analytics event for tracking article completion milestones.
/// {@endtemplate}
class ArticleMilestoneEvent extends NTGEvent {
/// {@macro article_milestone_event}
ArticleMilestoneEvent({
required int milestonePercentage,
required String articleTitle,
}) : super(
name: 'article_milestone',
category: 'NTG article milestone',
action: '$milestonePercentage%',
label: articleTitle,
value: milestonePercentage,
nonInteraction: true,
hitType: 'event',
);
}
/// {@template article_comment_event}
/// An analytics event for tracking article comments.
/// {@endtemplate}
class ArticleCommentEvent extends NTGEvent {
/// {@macro article_comment_event}
ArticleCommentEvent({required String articleTitle})
: super(
name: 'comment',
category: 'NTG user',
action: 'comment added',
label: articleTitle,
nonInteraction: false,
);
}
/// {@template social_share_event}
/// An analytics event for tracking social sharing.
/// {@endtemplate}
class SocialShareEvent extends NTGEvent {
/// {@macro social_share_event}
SocialShareEvent()
: super(
name: 'social_share',
category: 'NTG social',
action: 'social share',
label: 'OS share menu',
nonInteraction: false,
);
}
/// {@template push_notification_subscription_event}
/// An analytics event for tracking push notification subscription.
/// {@endtemplate}
class PushNotificationSubscriptionEvent extends NTGEvent {
/// {@macro push_notification_subscription_event}
PushNotificationSubscriptionEvent()
: super(
name: 'push_notification_click',
category: 'NTG push notification',
action: 'click',
nonInteraction: false,
);
}
/// {@template paywall_prompt_event}
/// An analytics event for tracking paywall prompt impression and click.
/// {@endtemplate}
class PaywallPromptEvent extends NTGEvent {
/// An analytics event for tracking paywall prompt impression.
PaywallPromptEvent.impression({
required PaywallPromptImpression impression,
required String articleTitle,
}) : super(
name: 'paywall_impression',
category: 'NTG paywall',
action: 'paywall modal impression $impression',
label: articleTitle,
nonInteraction: true,
);
/// An analytics event for tracking paywall prompt click.
PaywallPromptEvent.click({required String articleTitle})
: super(
name: 'paywall_click',
category: 'NTG paywall',
action: 'click',
label: articleTitle,
nonInteraction: false,
);
}
/// {@template paywall_prompt_impression}
/// The available paywall prompt impressions.
/// {@endtemplate}
enum PaywallPromptImpression {
/// The rewarded paywall prompt impression.
rewarded(1),
/// The subscription paywall prompt impression.
subscription(2);
/// {@macro paywall_prompt_impression}
const PaywallPromptImpression(this._impressionType);
final int _impressionType;
@override
String toString() => _impressionType.toString();
}
/// {@template user_subscription_conversion_event}
/// An analytics event for tracking user subscription conversion.
/// {@endtemplate}
class UserSubscriptionConversionEvent extends NTGEvent {
/// {@macro user_subscription_conversion_event}
UserSubscriptionConversionEvent()
: super(
name: 'subscription_submit',
category: 'NTG subscription',
action: 'submit',
label: 'success',
nonInteraction: false,
);
}
| news_toolkit/flutter_news_example/packages/analytics_repository/lib/src/models/ntg_event.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/analytics_repository/lib/src/models/ntg_event.dart",
"repo_id": "news_toolkit",
"token_count": 2304
} | 908 |
<svg width="8" height="12" viewBox="0 0 8 12" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7.70492 1.41L6.29492 0L0.294922 6L6.29492 12L7.70492 10.59L3.12492 6L7.70492 1.41Z" fill="black" fill-opacity="0.9"/>
</svg>
| news_toolkit/flutter_news_example/packages/app_ui/assets/icons/back_icon.svg/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/app_ui/assets/icons/back_icon.svg",
"repo_id": "news_toolkit",
"token_count": 115
} | 909 |
import 'package:app_ui/app_ui.dart';
import 'package:flutter/material.dart';
class ShowAppModalPage extends StatelessWidget {
const ShowAppModalPage({super.key});
static Route<void> route() {
return MaterialPageRoute<void>(builder: (_) => const ShowAppModalPage());
}
@override
Widget build(BuildContext context) {
const contentSpace = 10.0;
final buttons = [
Padding(
padding: const EdgeInsets.only(bottom: AppSpacing.lg),
child: ElevatedButton(
onPressed: () => _showModal(context: context),
style: ElevatedButton.styleFrom(
backgroundColor: AppColors.oceanBlue,
padding: const EdgeInsets.symmetric(
horizontal: AppSpacing.xxlg + contentSpace,
vertical: AppSpacing.xlg,
),
textStyle:
const TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
),
child: const Text('Show app modal'),
),
),
];
return Scaffold(
appBar: AppBar(
title: const Text('Modal App'),
),
body: ColoredBox(
color: AppColors.white,
child: Align(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: buttons,
),
),
),
);
}
void _showModal({
required BuildContext context,
}) {
showAppModal<void>(
context: context,
builder: (context) => Column(
mainAxisSize: MainAxisSize.min,
children: [
Container(
height: 300,
color: AppColors.darkAqua,
alignment: Alignment.center,
),
Container(
height: 200,
color: AppColors.blue,
alignment: Alignment.center,
),
],
),
);
}
}
| news_toolkit/flutter_news_example/packages/app_ui/gallery/lib/widgets/show_app_modal_page.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/app_ui/gallery/lib/widgets/show_app_modal_page.dart",
"repo_id": "news_toolkit",
"token_count": 878
} | 910 |
/// 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
import 'package:flutter/widgets.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:flutter/services.dart';
class $AssetsIconsGen {
const $AssetsIconsGen();
/// File path: assets/icons/about_icon.svg
SvgGenImage get aboutIcon => const SvgGenImage('assets/icons/about_icon.svg');
/// File path: assets/icons/apple.svg
SvgGenImage get apple => const SvgGenImage('assets/icons/apple.svg');
/// File path: assets/icons/back_icon.svg
SvgGenImage get backIcon => const SvgGenImage('assets/icons/back_icon.svg');
/// File path: assets/icons/best_value.svg
SvgGenImage get bestValue => const SvgGenImage('assets/icons/best_value.svg');
/// File path: assets/icons/close_circle.svg
SvgGenImage get closeCircle =>
const SvgGenImage('assets/icons/close_circle.svg');
/// File path: assets/icons/close_circle_filled.svg
SvgGenImage get closeCircleFilled =>
const SvgGenImage('assets/icons/close_circle_filled.svg');
/// File path: assets/icons/email_outline.svg
SvgGenImage get emailOutline =>
const SvgGenImage('assets/icons/email_outline.svg');
/// File path: assets/icons/envelope_open.svg
SvgGenImage get envelopeOpen =>
const SvgGenImage('assets/icons/envelope_open.svg');
/// File path: assets/icons/facebook.svg
SvgGenImage get facebook => const SvgGenImage('assets/icons/facebook.svg');
/// File path: assets/icons/google.svg
SvgGenImage get google => const SvgGenImage('assets/icons/google.svg');
/// File path: assets/icons/log_in_icon.svg
SvgGenImage get logInIcon =>
const SvgGenImage('assets/icons/log_in_icon.svg');
/// File path: assets/icons/log_out_icon.svg
SvgGenImage get logOutIcon =>
const SvgGenImage('assets/icons/log_out_icon.svg');
/// File path: assets/icons/notifications_icon.svg
SvgGenImage get notificationsIcon =>
const SvgGenImage('assets/icons/notifications_icon.svg');
/// File path: assets/icons/profile_icon.svg
SvgGenImage get profileIcon =>
const SvgGenImage('assets/icons/profile_icon.svg');
/// File path: assets/icons/terms_of_use_icon.svg
SvgGenImage get termsOfUseIcon =>
const SvgGenImage('assets/icons/terms_of_use_icon.svg');
/// File path: assets/icons/twitter.svg
SvgGenImage get twitter => const SvgGenImage('assets/icons/twitter.svg');
/// File path: assets/icons/video.svg
SvgGenImage get video => const SvgGenImage('assets/icons/video.svg');
/// List of all assets
List<SvgGenImage> get values => [
aboutIcon,
apple,
backIcon,
bestValue,
closeCircle,
closeCircleFilled,
emailOutline,
envelopeOpen,
facebook,
google,
logInIcon,
logOutIcon,
notificationsIcon,
profileIcon,
termsOfUseIcon,
twitter,
video
];
}
class $AssetsImagesGen {
const $AssetsImagesGen();
/// File path: assets/images/continue_with_apple.svg
SvgGenImage get continueWithApple =>
const SvgGenImage('assets/images/continue_with_apple.svg');
/// File path: assets/images/continue_with_facebook.svg
SvgGenImage get continueWithFacebook =>
const SvgGenImage('assets/images/continue_with_facebook.svg');
/// File path: assets/images/continue_with_google.svg
SvgGenImage get continueWithGoogle =>
const SvgGenImage('assets/images/continue_with_google.svg');
/// File path: assets/images/continue_with_twitter.svg
SvgGenImage get continueWithTwitter =>
const SvgGenImage('assets/images/continue_with_twitter.svg');
/// File path: assets/images/logo_dark.png
AssetGenImage get logoDark =>
const AssetGenImage('assets/images/logo_dark.png');
/// File path: assets/images/logo_light.png
AssetGenImage get logoLight =>
const AssetGenImage('assets/images/logo_light.png');
/// List of all assets
List<dynamic> get values => [
continueWithApple,
continueWithFacebook,
continueWithGoogle,
continueWithTwitter,
logoDark,
logoLight
];
}
class Assets {
Assets._();
static const $AssetsIconsGen icons = $AssetsIconsGen();
static const $AssetsImagesGen images = $AssetsImagesGen();
}
class AssetGenImage {
const AssetGenImage(this._assetName);
final String _assetName;
Image image({
Key? key,
AssetBundle? bundle,
ImageFrameBuilder? frameBuilder,
ImageErrorWidgetBuilder? errorBuilder,
String? semanticLabel,
bool excludeFromSemantics = false,
double? scale,
double? width,
double? height,
Color? color,
Animation<double>? opacity,
BlendMode? colorBlendMode,
BoxFit? fit,
AlignmentGeometry alignment = Alignment.center,
ImageRepeat repeat = ImageRepeat.noRepeat,
Rect? centerSlice,
bool matchTextDirection = false,
bool gaplessPlayback = false,
bool isAntiAlias = false,
String? package = 'app_ui',
FilterQuality filterQuality = FilterQuality.low,
int? cacheWidth,
int? cacheHeight,
}) {
return Image.asset(
_assetName,
key: key,
bundle: bundle,
frameBuilder: frameBuilder,
errorBuilder: errorBuilder,
semanticLabel: semanticLabel,
excludeFromSemantics: excludeFromSemantics,
scale: scale,
width: width,
height: height,
color: color,
opacity: opacity,
colorBlendMode: colorBlendMode,
fit: fit,
alignment: alignment,
repeat: repeat,
centerSlice: centerSlice,
matchTextDirection: matchTextDirection,
gaplessPlayback: gaplessPlayback,
isAntiAlias: isAntiAlias,
package: package,
filterQuality: filterQuality,
cacheWidth: cacheWidth,
cacheHeight: cacheHeight,
);
}
ImageProvider provider({
AssetBundle? bundle,
String? package = 'app_ui',
}) {
return AssetImage(
_assetName,
bundle: bundle,
package: package,
);
}
String get path => _assetName;
String get keyName => 'packages/app_ui/$_assetName';
}
class SvgGenImage {
const SvgGenImage(this._assetName);
final String _assetName;
SvgPicture svg({
Key? key,
bool matchTextDirection = false,
AssetBundle? bundle,
String? package = 'app_ui',
double? width,
double? height,
BoxFit fit = BoxFit.contain,
AlignmentGeometry alignment = Alignment.center,
bool allowDrawingOutsideViewBox = false,
WidgetBuilder? placeholderBuilder,
String? semanticsLabel,
bool excludeFromSemantics = false,
SvgTheme theme = const SvgTheme(),
ColorFilter? colorFilter,
Clip clipBehavior = Clip.hardEdge,
@deprecated Color? color,
@deprecated BlendMode colorBlendMode = BlendMode.srcIn,
@deprecated bool cacheColorFilter = false,
}) {
return SvgPicture.asset(
_assetName,
key: key,
matchTextDirection: matchTextDirection,
bundle: bundle,
package: package,
width: width,
height: height,
fit: fit,
alignment: alignment,
allowDrawingOutsideViewBox: allowDrawingOutsideViewBox,
placeholderBuilder: placeholderBuilder,
semanticsLabel: semanticsLabel,
excludeFromSemantics: excludeFromSemantics,
theme: theme,
colorFilter: colorFilter,
color: color,
colorBlendMode: colorBlendMode,
clipBehavior: clipBehavior,
cacheColorFilter: cacheColorFilter,
);
}
String get path => _assetName;
String get keyName => 'packages/app_ui/$_assetName';
}
| news_toolkit/flutter_news_example/packages/app_ui/lib/src/generated/assets.gen.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/app_ui/lib/src/generated/assets.gen.dart",
"repo_id": "news_toolkit",
"token_count": 2884
} | 911 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.