text
stringlengths
6
13.6M
id
stringlengths
13
176
metadata
dict
__index_level_0__
int64
0
1.69k
import 'package:flutter_test/flutter_test.dart'; import 'package:{{projectName}}/{{projectName}}.dart'; void main() { test('adds one to input values', () { final calculator = Calculator(); expect(calculator.addOne(2), 3); expect(calculator.addOne(-7), -6); expect(calculator.addOne(0), 1); }); }
flutter/packages/flutter_tools/templates/package/test/projectName_test.dart.tmpl/0
{ "file_path": "flutter/packages/flutter_tools/templates/package/test/projectName_test.dart.tmpl", "repo_id": "flutter", "token_count": 122 }
820
group = "{{androidIdentifier}}" version = "1.0" buildscript { repositories { google() mavenCentral() } dependencies { classpath("com.android.tools.build:gradle:{{agpVersion}}") } } rootProject.allprojects { repositories { google() mavenCentral() } } apply plugin: "com.android.library" android { if (project.android.hasProperty("namespace")) { namespace = "{{androidIdentifier}}" } compileSdk = {{compileSdkVersion}} compileOptions { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 } defaultConfig { minSdk = {{minSdkVersion}} } dependencies { testImplementation("junit:junit:4.13.2") testImplementation("org.mockito:mockito-core:5.0.0") } testOptions { unitTests.all { testLogging { events "passed", "skipped", "failed", "standardOut", "standardError" outputs.upToDateWhen {false} showStandardStreams = true } } } }
flutter/packages/flutter_tools/templates/plugin/android-java.tmpl/build.gradle.tmpl/0
{ "file_path": "flutter/packages/flutter_tools/templates/plugin/android-java.tmpl/build.gradle.tmpl", "repo_id": "flutter", "token_count": 503 }
821
#include "{{pluginClassSnakeCase}}.h" // This must be included before many other Windows headers. #include <windows.h> // For getPlatformVersion; remove unless needed for your plugin implementation. #include <VersionHelpers.h> #include <flutter/method_channel.h> #include <flutter/plugin_registrar_windows.h> #include <flutter/standard_method_codec.h> #include <memory> #include <sstream> namespace {{projectName}} { // static void {{pluginClass}}::RegisterWithRegistrar( flutter::PluginRegistrarWindows *registrar) { auto channel = std::make_unique<flutter::MethodChannel<flutter::EncodableValue>>( registrar->messenger(), "{{projectName}}", &flutter::StandardMethodCodec::GetInstance()); auto plugin = std::make_unique<{{pluginClass}}>(); channel->SetMethodCallHandler( [plugin_pointer = plugin.get()](const auto &call, auto result) { plugin_pointer->HandleMethodCall(call, std::move(result)); }); registrar->AddPlugin(std::move(plugin)); } {{pluginClass}}::{{pluginClass}}() {} {{pluginClass}}::~{{pluginClass}}() {} void {{pluginClass}}::HandleMethodCall( const flutter::MethodCall<flutter::EncodableValue> &method_call, std::unique_ptr<flutter::MethodResult<flutter::EncodableValue>> result) { if (method_call.method_name().compare("getPlatformVersion") == 0) { std::ostringstream version_stream; version_stream << "Windows "; if (IsWindows10OrGreater()) { version_stream << "10+"; } else if (IsWindows8OrGreater()) { version_stream << "8"; } else if (IsWindows7OrGreater()) { version_stream << "7"; } result->Success(flutter::EncodableValue(version_stream.str())); } else { result->NotImplemented(); } } } // namespace {{projectName}}
flutter/packages/flutter_tools/templates/plugin/windows.tmpl/pluginClassSnakeCase.cpp.tmpl/0
{ "file_path": "flutter/packages/flutter_tools/templates/plugin/windows.tmpl/pluginClassSnakeCase.cpp.tmpl", "repo_id": "flutter", "token_count": 622 }
822
{ "version": 1.0, "_comment": "A listing of all possible template output files. Files ending in .img.tmpl correspond to files checked in to the flutter_template_images package in the flutter/packages repo, located at the same path, excluding the .img.tmpl suffix.", "files": [ "templates/app/lib/main.dart.tmpl", "templates/app/pubspec.yaml.tmpl", "templates/app/README.md.tmpl", "templates/app_shared/.gitignore.tmpl", "templates/app_shared/.idea/libraries/Dart_SDK.xml.tmpl", "templates/app_shared/.idea/libraries/KotlinJavaRuntime.xml.tmpl", "templates/app_shared/.idea/modules.xml.tmpl", "templates/app_shared/.idea/runConfigurations/main_dart.xml.tmpl", "templates/app_shared/.idea/workspace.xml.tmpl", "templates/app_shared/.metadata.tmpl", "templates/app_shared/analysis_options.yaml.tmpl", "templates/app_shared/android-java.tmpl/app/build.gradle.tmpl", "templates/app_shared/android-java.tmpl/app/src/main/java/androidIdentifier/MainActivity.java.tmpl", "templates/app_shared/android-java.tmpl/build.gradle.tmpl", "templates/app_shared/android-java.tmpl/projectName_android.iml.tmpl", "templates/app_shared/android-kotlin.tmpl/app/build.gradle.tmpl", "templates/app_shared/android-kotlin.tmpl/app/src/main/kotlin/androidIdentifier/MainActivity.kt.tmpl", "templates/app_shared/android-kotlin.tmpl/build.gradle.tmpl", "templates/app_shared/android-kotlin.tmpl/projectName_android.iml.tmpl", "templates/app_shared/android.tmpl/.gitignore", "templates/app_shared/android.tmpl/app/src/debug/AndroidManifest.xml.tmpl", "templates/app_shared/android.tmpl/app/src/main/AndroidManifest.xml.tmpl", "templates/app_shared/android.tmpl/app/src/main/res/drawable-v21/launch_background.xml", "templates/app_shared/android.tmpl/app/src/main/res/drawable/launch_background.xml", "templates/app_shared/android.tmpl/app/src/main/res/mipmap-hdpi/ic_launcher.png", "templates/app_shared/android.tmpl/app/src/main/res/mipmap-mdpi/ic_launcher.png", "templates/app_shared/android.tmpl/app/src/main/res/mipmap-xhdpi/ic_launcher.png", "templates/app_shared/android.tmpl/app/src/main/res/mipmap-xxhdpi/ic_launcher.png", "templates/app_shared/android.tmpl/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png", "templates/app_shared/android.tmpl/app/src/main/res/values-night/styles.xml", "templates/app_shared/android.tmpl/app/src/main/res/values/styles.xml", "templates/app_shared/android.tmpl/app/src/profile/AndroidManifest.xml.tmpl", "templates/app_shared/android.tmpl/gradle.properties.tmpl", "templates/app_shared/android.tmpl/settings.gradle.tmpl", "templates/app_shared/android.tmpl/gradle/wrapper/gradle-wrapper.properties.tmpl", "templates/app_shared/android.tmpl/settings.gradle", "templates/app_shared/ios-objc.tmpl/Runner.xcodeproj/project.pbxproj.tmpl", "templates/app_shared/ios-objc.tmpl/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme", "templates/app_shared/ios-objc.tmpl/Runner/AppDelegate.h", "templates/app_shared/ios-objc.tmpl/Runner/AppDelegate.m", "templates/app_shared/ios-objc.tmpl/Runner/main.m", "templates/app_shared/ios-objc.tmpl/RunnerTests/RunnerTests.m.tmpl", "templates/app_shared/ios-swift.tmpl/Runner.xcodeproj/project.pbxproj.tmpl", "templates/app_shared/ios-swift.tmpl/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme", "templates/app_shared/ios-swift.tmpl/Runner/AppDelegate.swift", "templates/app_shared/ios-swift.tmpl/Runner/Runner-Bridging-Header.h", "templates/app_shared/ios-swift.tmpl/RunnerTests/RunnerTests.swift.tmpl", "templates/app_shared/ios.tmpl/.gitignore", "templates/app_shared/ios.tmpl/Flutter/AppFrameworkInfo.plist", "templates/app_shared/ios.tmpl/Flutter/Debug.xcconfig", "templates/app_shared/ios.tmpl/Flutter/Release.xcconfig", "templates/app_shared/ios.tmpl/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata", "templates/app_shared/ios.tmpl/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist", "templates/app_shared/ios.tmpl/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings", "templates/app_shared/ios.tmpl/Runner.xcworkspace/contents.xcworkspacedata", "templates/app_shared/ios.tmpl/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist", "templates/app_shared/ios.tmpl/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings", "templates/app_shared/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json", "templates/app_shared/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/app_shared/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/app_shared/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/app_shared/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/app_shared/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/app_shared/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/app_shared/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/app_shared/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/app_shared/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/app_shared/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/app_shared/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/app_shared/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/app_shared/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/app_shared/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/app_shared/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/app_shared/ios.tmpl/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json", "templates/app_shared/ios.tmpl/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png.img.tmpl", "templates/app_shared/ios.tmpl/Runner/Assets.xcassets/LaunchImage.imageset/[email protected]", "templates/app_shared/ios.tmpl/Runner/Assets.xcassets/LaunchImage.imageset/[email protected]", "templates/app_shared/ios.tmpl/Runner/Assets.xcassets/LaunchImage.imageset/README.md", "templates/app_shared/ios.tmpl/Runner/Base.lproj/LaunchScreen.storyboard", "templates/app_shared/ios.tmpl/Runner/Base.lproj/Main.storyboard", "templates/app_shared/ios.tmpl/Runner/Info.plist.tmpl", "templates/app_shared/linux.tmpl/.gitignore", "templates/app_shared/linux.tmpl/CMakeLists.txt.tmpl", "templates/app_shared/linux.tmpl/flutter/CMakeLists.txt", "templates/app_shared/linux.tmpl/main.cc", "templates/app_shared/linux.tmpl/my_application.cc", "templates/app_shared/linux.tmpl/my_application.cc.tmpl", "templates/app_shared/linux.tmpl/my_application.h", "templates/app_shared/macos.tmpl/.gitignore", "templates/app_shared/macos.tmpl/Flutter/Flutter-Debug.xcconfig", "templates/app_shared/macos.tmpl/Flutter/Flutter-Release.xcconfig", "templates/app_shared/macos.tmpl/Runner.xcodeproj/project.pbxproj.tmpl", "templates/app_shared/macos.tmpl/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist", "templates/app_shared/macos.tmpl/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme.tmpl", "templates/app_shared/macos.tmpl/Runner.xcworkspace/contents.xcworkspacedata", "templates/app_shared/macos.tmpl/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist", "templates/app_shared/macos.tmpl/Runner/AppDelegate.swift", "templates/app_shared/macos.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png.img.tmpl", "templates/app_shared/macos.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png.img.tmpl", "templates/app_shared/macos.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png.img.tmpl", "templates/app_shared/macos.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png.img.tmpl", "templates/app_shared/macos.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png.img.tmpl", "templates/app_shared/macos.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png.img.tmpl", "templates/app_shared/macos.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png.img.tmpl", "templates/app_shared/macos.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json", "templates/app_shared/macos.tmpl/Runner/Base.lproj/MainMenu.xib", "templates/app_shared/macos.tmpl/Runner/Configs/AppInfo.xcconfig.tmpl", "templates/app_shared/macos.tmpl/Runner/Configs/Debug.xcconfig", "templates/app_shared/macos.tmpl/Runner/Configs/Release.xcconfig", "templates/app_shared/macos.tmpl/Runner/Configs/Warnings.xcconfig", "templates/app_shared/macos.tmpl/Runner/DebugProfile.entitlements", "templates/app_shared/macos.tmpl/Runner/Info.plist", "templates/app_shared/macos.tmpl/Runner/MainFlutterWindow.swift", "templates/app_shared/macos.tmpl/Runner/Release.entitlements", "templates/app_shared/macos.tmpl/RunnerTests/RunnerTests.swift.tmpl", "templates/app_shared/projectName.iml.tmpl", "templates/app_shared/web/favicon.png.copy.tmpl", "templates/app_shared/web/icons/Icon-192.png.copy.tmpl", "templates/app_shared/web/icons/Icon-512.png.copy.tmpl", "templates/app_shared/web/icons/Icon-maskable-192.png.img.tmpl", "templates/app_shared/web/icons/Icon-maskable-512.png.img.tmpl", "templates/app_shared/web/index.html.tmpl", "templates/app_shared/web/manifest.json.tmpl", "templates/app_shared/windows.tmpl/.gitignore", "templates/app_shared/windows.tmpl/CMakeLists.txt.tmpl", "templates/app_shared/windows.tmpl/flutter/CMakeLists.txt", "templates/app_shared/windows.tmpl/runner/CMakeLists.txt", "templates/app_shared/windows.tmpl/runner/flutter_window.cpp", "templates/app_shared/windows.tmpl/runner/flutter_window.h", "templates/app_shared/windows.tmpl/runner/main.cpp.tmpl", "templates/app_shared/windows.tmpl/runner/resource.h", "templates/app_shared/windows.tmpl/runner/resources/app_icon.ico.img.tmpl", "templates/app_shared/windows.tmpl/runner/runner.exe.manifest", "templates/app_shared/windows.tmpl/runner/Runner.rc.tmpl", "templates/app_shared/windows.tmpl/runner/utils.cpp", "templates/app_shared/windows.tmpl/runner/utils.h", "templates/app_shared/windows.tmpl/runner/win32_window.cpp", "templates/app_shared/windows.tmpl/runner/win32_window.h", "templates/app_test_widget/test/widget_test.dart.tmpl", "templates/app_integration_test/integration_test/plugin_integration_test.dart.tmpl", "templates/cocoapods/Podfile-ios-objc", "templates/cocoapods/Podfile-ios-swift", "templates/cocoapods/Podfile-macos", "templates/module/android/deferred_component/build.gradle.tmpl", "templates/module/android/deferred_component/src/main/AndroidManifest.xml.tmpl", "templates/module/android/gradle/build.gradle.tmpl", "templates/module/android/gradle/gradle.properties.tmpl", "templates/module/android/gradle/settings.gradle.tmpl", "templates/module/android/gradle/src/main/AndroidManifest.xml.tmpl", "templates/module/android/host_app_common/app.tmpl/build.gradle.tmpl", "templates/module/android/host_app_common/app.tmpl/src/main/AndroidManifest.xml.tmpl", "templates/module/android/host_app_common/app.tmpl/src/main/java/androidIdentifier/host/MainActivity.java.tmpl", "templates/module/android/host_app_common/app.tmpl/src/main/res/drawable/launch_background.xml", "templates/module/android/host_app_common/app.tmpl/src/main/res/mipmap-hdpi/ic_launcher.png", "templates/module/android/host_app_common/app.tmpl/src/main/res/values/styles.xml", "templates/module/android/host_app_editable/settings.gradle.copy.tmpl", "templates/module/android/host_app_ephemeral/settings.gradle.copy.tmpl", "templates/module/android/library/Flutter.tmpl/build.gradle.tmpl", "templates/module/android/library/Flutter.tmpl/flutter.iml.copy.tmpl", "templates/module/android/library/Flutter.tmpl/src/main/AndroidManifest.xml.tmpl", "templates/module/android/library/Flutter.tmpl/src/main/java/io/flutter/facade/Flutter.java.tmpl", "templates/module/android/library/Flutter.tmpl/src/main/java/io/flutter/facade/FlutterFragment.java.tmpl", "templates/module/android/library/include_flutter.groovy.copy.tmpl", "templates/module/android/library/settings.gradle.copy.tmpl", "templates/module/android/library_new_embedding/Flutter.tmpl/build.gradle.tmpl", "templates/module/android/library_new_embedding/Flutter.tmpl/flutter.iml.copy.tmpl", "templates/module/android/library_new_embedding/Flutter.tmpl/src/main/AndroidManifest.xml.tmpl", "templates/module/android/library_new_embedding/include_flutter.groovy.copy.tmpl", "templates/module/android/library_new_embedding/settings.gradle.copy.tmpl", "templates/module/common/.gitignore.tmpl", "templates/module/common/.idea/libraries/Dart_SDK.xml.tmpl", "templates/module/common/.idea/modules.xml.tmpl", "templates/module/common/.idea/workspace.xml.tmpl", "templates/module/common/.metadata.tmpl", "templates/module/common/analysis_options.yaml.tmpl", "templates/module/common/lib/main.dart.tmpl", "templates/module/common/projectName.iml.tmpl", "templates/module/common/projectName_android.iml.tmpl", "templates/module/common/pubspec.yaml.tmpl", "templates/module/common/README.md.tmpl", "templates/module/common/test/widget_test.dart.tmpl", "templates/module/ios/host_app_ephemeral/Config.tmpl/Debug.xcconfig", "templates/module/ios/host_app_ephemeral/Config.tmpl/Flutter.xcconfig", "templates/module/ios/host_app_ephemeral/Config.tmpl/Release.xcconfig", "templates/module/ios/host_app_ephemeral/Runner.tmpl/AppDelegate.h", "templates/module/ios/host_app_ephemeral/Runner.tmpl/AppDelegate.m", "templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/Contents.json", "templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/[email protected]", "templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/LaunchImage.imageset/Contents.json", "templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/LaunchImage.imageset/LaunchImage.png", "templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/LaunchImage.imageset/[email protected]", "templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/LaunchImage.imageset/[email protected]", "templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/LaunchImage.imageset/README.md", "templates/module/ios/host_app_ephemeral/Runner.tmpl/Base.lproj/LaunchScreen.storyboard", "templates/module/ios/host_app_ephemeral/Runner.tmpl/Base.lproj/Main.storyboard", "templates/module/ios/host_app_ephemeral/Runner.tmpl/Info.plist.tmpl", "templates/module/ios/host_app_ephemeral/Runner.tmpl/main.m", "templates/module/ios/host_app_ephemeral/Runner.xcodeproj.tmpl/project.pbxproj.tmpl", "templates/module/ios/host_app_ephemeral/Runner.xcodeproj.tmpl/project.xcworkspace/contents.xcworkspacedata", "templates/module/ios/host_app_ephemeral/Runner.xcodeproj.tmpl/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist", "templates/module/ios/host_app_ephemeral/Runner.xcodeproj.tmpl/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings", "templates/module/ios/host_app_ephemeral/Runner.xcodeproj.tmpl/xcshareddata/xcschemes/Runner.xcscheme", "templates/module/ios/host_app_ephemeral/Runner.xcworkspace.tmpl/contents.xcworkspacedata", "templates/module/ios/host_app_ephemeral/Runner.xcworkspace.tmpl/xcshareddata/IDEWorkspaceChecks.plist", "templates/module/ios/host_app_ephemeral/Runner.xcworkspace.tmpl/xcshareddata/WorkspaceSettings.xcsettings", "templates/module/ios/host_app_ephemeral_cocoapods/Config.tmpl/Debug.xcconfig", "templates/module/ios/host_app_ephemeral_cocoapods/Config.tmpl/Release.xcconfig", "templates/module/ios/host_app_ephemeral_cocoapods/Podfile.copy.tmpl", "templates/module/ios/host_app_ephemeral_cocoapods/Runner.tmpl/AppDelegate.m", "templates/module/ios/library/Flutter.tmpl/AppFrameworkInfo.plist", "templates/module/ios/library/Flutter.tmpl/podhelper.rb.tmpl", "templates/module/ios/library/Flutter.tmpl/README.md", "templates/module/README.md", "templates/package/.gitignore.tmpl", "templates/package/.idea/libraries/Dart_SDK.xml.tmpl", "templates/package/.idea/modules.xml.tmpl", "templates/package/.idea/workspace.xml.tmpl", "templates/package/.metadata.tmpl", "templates/package/analysis_options.yaml.tmpl", "templates/package/CHANGELOG.md.tmpl", "templates/package/lib/projectName.dart.tmpl", "templates/package/LICENSE.tmpl", "templates/package/projectName.iml.tmpl", "templates/package/pubspec.yaml.tmpl", "templates/package/README.md.tmpl", "templates/package/test/projectName_test.dart.tmpl", "templates/package_ffi/.gitignore.tmpl", "templates/package_ffi/.metadata.tmpl", "templates/package_ffi/analysis_options.yaml.tmpl", "templates/package_ffi/build.dart.tmpl", "templates/package_ffi/CHANGELOG.md.tmpl", "templates/package_ffi/ffigen.yaml.tmpl", "templates/package_ffi/lib/projectName_bindings_generated.dart.tmpl", "templates/package_ffi/lib/projectName.dart.tmpl", "templates/package_ffi/LICENSE.tmpl", "templates/package_ffi/pubspec.yaml.tmpl", "templates/package_ffi/README.md.tmpl", "templates/package_ffi/src.tmpl/projectName.c.tmpl", "templates/package_ffi/src.tmpl/projectName.h.tmpl", "templates/package_ffi/test/projectName_test.dart.tmpl", "templates/plugin/android-java.tmpl/build.gradle.tmpl", "templates/plugin/android-java.tmpl/projectName_android.iml.tmpl", "templates/plugin/android-java.tmpl/src/main/java/androidIdentifier/pluginClass.java.tmpl", "templates/plugin/android-java.tmpl/src/test/java/androidIdentifier/pluginClassTest.java.tmpl", "templates/plugin/android-kotlin.tmpl/build.gradle.tmpl", "templates/plugin/android-kotlin.tmpl/projectName_android.iml.tmpl", "templates/plugin/android-kotlin.tmpl/src/main/kotlin/androidIdentifier/pluginClass.kt.tmpl", "templates/plugin/android-kotlin.tmpl/src/test/kotlin/androidIdentifier/pluginClassTest.kt.tmpl", "templates/plugin/android.tmpl/.gitignore", "templates/plugin/android.tmpl/gradle/wrapper/gradle-wrapper.properties", "templates/plugin/android.tmpl/gradle.properties.tmpl", "templates/plugin/android.tmpl/settings.gradle.tmpl", "templates/plugin/android.tmpl/src/main/AndroidManifest.xml.tmpl", "templates/plugin/ios-objc.tmpl/Classes/pluginClass.h.tmpl", "templates/plugin/ios-objc.tmpl/Classes/pluginClass.m.tmpl", "templates/plugin/ios-objc.tmpl/projectName.podspec.tmpl", "templates/plugin/ios-swift.tmpl/Classes/pluginClass.swift.tmpl", "templates/plugin/ios-swift.tmpl/projectName.podspec.tmpl", "templates/plugin/ios.tmpl/.gitignore", "templates/plugin/ios.tmpl/Assets/.gitkeep", "templates/plugin/lib/projectName.dart.tmpl", "templates/plugin/lib/projectName_platform_interface.dart.tmpl", "templates/plugin/lib/projectName_method_channel.dart.tmpl", "templates/plugin/linux.tmpl/CMakeLists.txt.tmpl", "templates/plugin/linux.tmpl/include/projectName.tmpl/pluginClassSnakeCase.h.tmpl", "templates/plugin/linux.tmpl/pluginClassSnakeCase.cc.tmpl", "templates/plugin/linux.tmpl/pluginClassSnakeCase_private.h.tmpl", "templates/plugin/linux.tmpl/test/pluginClassSnakeCase_test.cc.tmpl", "templates/plugin/macos.tmpl/Classes/pluginClass.swift.tmpl", "templates/plugin/README.md.tmpl", "templates/plugin/test/projectName_test.dart.tmpl", "templates/plugin/test/projectName_method_channel_test.dart.tmpl", "templates/plugin/windows.tmpl/CMakeLists.txt.tmpl", "templates/plugin/windows.tmpl/include/projectName.tmpl/pluginClassSnakeCase_c_api.h.tmpl", "templates/plugin/windows.tmpl/test/pluginClassSnakeCase_test.cpp.tmpl", "templates/plugin/windows.tmpl/pluginClassSnakeCase.cpp.tmpl", "templates/plugin/windows.tmpl/pluginClassSnakeCase.h.tmpl", "templates/plugin/windows.tmpl/pluginClassSnakeCase_c_api.cpp.tmpl", "templates/plugin/lib/projectName_web.dart.tmpl", "templates/plugin_ffi/android.tmpl/build.gradle.tmpl", "templates/plugin_ffi/android.tmpl/projectName_android.iml.tmpl", "templates/plugin_ffi/ffigen.yaml.tmpl", "templates/plugin_ffi/ios.tmpl/.gitignore", "templates/plugin_ffi/ios.tmpl/Classes/projectName.c.tmpl", "templates/plugin_ffi/ios.tmpl/projectName.podspec.tmpl", "templates/plugin_ffi/lib/projectName_bindings_generated.dart.tmpl", "templates/plugin_ffi/lib/projectName.dart.tmpl", "templates/plugin_ffi/linux.tmpl/CMakeLists.txt.tmpl", "templates/plugin_ffi/linux.tmpl/include/projectName.tmpl/plugin_ffiClassSnakeCase.h.tmpl", "templates/plugin_ffi/macos.tmpl/Classes/projectName.c.tmpl", "templates/plugin_ffi/README.md.tmpl", "templates/plugin_ffi/src.tmpl/CMakeLists.txt.tmpl", "templates/plugin_ffi/src.tmpl/projectName.c.tmpl", "templates/plugin_ffi/src.tmpl/projectName.h.tmpl", "templates/plugin_ffi/windows.tmpl/CMakeLists.txt.tmpl", "templates/plugin_shared/.gitignore.tmpl", "templates/plugin_shared/.idea/libraries/Dart_SDK.xml.tmpl", "templates/plugin_shared/.idea/modules.xml.tmpl", "templates/plugin_shared/.idea/runConfigurations/example_lib_main_dart.xml.tmpl", "templates/plugin_shared/.idea/workspace.xml.tmpl", "templates/plugin_shared/.metadata.tmpl", "templates/plugin_shared/analysis_options.yaml.tmpl", "templates/plugin_shared/android.tmpl/.gitignore", "templates/plugin_shared/android.tmpl/settings.gradle.tmpl", "templates/plugin_shared/android.tmpl/src/main/AndroidManifest.xml.tmpl", "templates/plugin_shared/CHANGELOG.md.tmpl", "templates/plugin_shared/LICENSE.tmpl", "templates/plugin_shared/macos.tmpl/projectName.podspec.tmpl", "templates/plugin_shared/projectName.iml.tmpl", "templates/plugin_shared/pubspec.yaml.tmpl", "templates/plugin_shared/windows.tmpl/.gitignore", "templates/skeleton/assets/images/2.0x/flutter_logo.png.img.tmpl", "templates/skeleton/assets/images/3.0x/flutter_logo.png.img.tmpl", "templates/skeleton/assets/images/flutter_logo.png.img.tmpl", "templates/skeleton/l10n.yaml.tmpl", "templates/skeleton/lib/main.dart.tmpl", "templates/skeleton/lib/src/app.dart.tmpl", "templates/skeleton/lib/src/sample_feature/sample_item.dart.tmpl", "templates/skeleton/lib/src/sample_feature/sample_item_details_view.dart.tmpl", "templates/skeleton/lib/src/sample_feature/sample_item_list_view.dart.tmpl", "templates/skeleton/lib/src/localization/app_en.arb.tmpl", "templates/skeleton/lib/src/settings/settings_controller.dart.tmpl", "templates/skeleton/lib/src/settings/settings_service.dart.tmpl", "templates/skeleton/lib/src/settings/settings_view.dart.tmpl", "templates/skeleton/pubspec.yaml.tmpl", "templates/skeleton/README.md.tmpl", "templates/skeleton/test/implementation_test.dart.test.tmpl", "templates/skeleton/test/unit_test.dart.tmpl", "templates/skeleton/test/widget_test.dart.tmpl", "templates/xcode/ios/custom_application_bundle/Runner.xcworkspace.tmpl/contents.xcworkspacedata", "templates/xcode/ios/custom_application_bundle/Runner.xcworkspace.tmpl/xcshareddata/IDEWorkspaceChecks.plist", "templates/xcode/ios/custom_application_bundle/Runner.xcworkspace.tmpl/xcshareddata/WorkspaceSettings.xcsettings", "templates/xcode/ios/custom_application_bundle/Runner.xcodeproj.tmpl/project.pbxproj", "templates/xcode/ios/custom_application_bundle/Runner.xcodeproj.tmpl/project.xcworkspace/contents.xcworkspacedata", "templates/xcode/ios/custom_application_bundle/Runner.xcodeproj.tmpl/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist", "templates/xcode/ios/custom_application_bundle/Runner.xcodeproj.tmpl/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings", "templates/xcode/ios/custom_application_bundle/Runner.xcodeproj.tmpl/xcshareddata/xcschemes/Runner.xcscheme.tmpl" ] }
flutter/packages/flutter_tools/templates/template_manifest.json/0
{ "file_path": "flutter/packages/flutter_tools/templates/template_manifest.json", "repo_id": "flutter", "token_count": 12435 }
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 'dart:async'; import 'dart:convert'; import 'package:args/command_runner.dart'; import 'package:file/file.dart'; import 'package:file/memory.dart'; import 'package:flutter_tools/src/artifacts.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/base/terminal.dart'; import 'package:flutter_tools/src/cache.dart'; import 'package:flutter_tools/src/commands/analyze.dart'; import 'package:flutter_tools/src/commands/analyze_base.dart'; import 'package:flutter_tools/src/dart/analysis.dart'; import 'package:flutter_tools/src/project_validator.dart'; import '../../src/common.dart'; import '../../src/context.dart'; import '../../src/test_flutter_command_runner.dart'; const String _kFlutterRoot = '/data/flutter'; const int SIGABRT = -6; void main() { testWithoutContext('analyze generate correct errors message', () async { expect( AnalyzeBase.generateErrorsMessage( issueCount: 0, seconds: '0.1', ), 'No issues found! (ran in 0.1s)', ); expect( AnalyzeBase.generateErrorsMessage( issueCount: 3, issueDiff: 2, files: 1, seconds: '0.1', ), '3 issues found. (2 new) • analyzed 1 file (ran in 0.1s)', ); }); group('analyze command', () { late FileSystem fileSystem; late Platform platform; late BufferLogger logger; late FakeProcessManager processManager; late Terminal terminal; late AnalyzeCommand command; late CommandRunner<void> runner; setUpAll(() { Cache.disableLocking(); }); setUp(() { fileSystem = MemoryFileSystem.test(); platform = FakePlatform(); logger = BufferLogger.test(); processManager = FakeProcessManager.empty(); terminal = Terminal.test(); command = AnalyzeCommand( artifacts: Artifacts.test(), fileSystem: fileSystem, logger: logger, platform: platform, processManager: processManager, terminal: terminal, allProjectValidators: <ProjectValidator>[], suppressAnalytics: true, ); runner = createTestCommandRunner(command); // Setup repo roots const String homePath = '/home/user/flutter'; Cache.flutterRoot = homePath; for (final String dir in <String>['dev', 'examples', 'packages']) { fileSystem.directory(homePath).childDirectory(dir).createSync(recursive: true); } }); testUsingContext('SIGABRT throws Exception', () async { const String stderr = 'Something bad happened!'; processManager.addCommands( <FakeCommand>[ const FakeCommand( // artifact paths are from Artifacts.test() and stable command: <String>[ 'Artifact.engineDartSdkPath/bin/dart', '--disable-dart-dev', 'Artifact.engineDartSdkPath/bin/snapshots/analysis_server.dart.snapshot', '--disable-server-feature-completion', '--disable-server-feature-search', '--sdk', 'Artifact.engineDartSdkPath', '--suppress-analytics', ], exitCode: SIGABRT, stderr: stderr, ), ], ); await expectLater( runner.run(<String>['analyze']), throwsA( isA<Exception>().having( (Exception e) => e.toString(), 'description', contains('analysis server exited with code $SIGABRT and output:\n[stderr] $stderr'), ), ), ); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => processManager, }); testUsingContext('--flutter-repo analyzes everything in the flutterRoot', () async { final StreamController<List<int>> streamController = StreamController<List<int>>(); final IOSink sink = IOSink(streamController.sink); processManager.addCommands( <FakeCommand>[ FakeCommand( // artifact paths are from Artifacts.test() and stable command: const <String>[ 'Artifact.engineDartSdkPath/bin/dart', '--disable-dart-dev', 'Artifact.engineDartSdkPath/bin/snapshots/analysis_server.dart.snapshot', '--disable-server-feature-completion', '--disable-server-feature-search', '--sdk', 'Artifact.engineDartSdkPath', '--suppress-analytics', ], stdin: sink, stdout: '{"event":"server.status","params":{"analysis":{"isAnalyzing":false}}}', ), ], ); await runner.run(<String>['analyze', '--flutter-repo']); final Map<String, Object?> setAnalysisRootsCommand = jsonDecode(await streamController.stream.transform(utf8.decoder).elementAt(2)) as Map<String, Object?>; expect(setAnalysisRootsCommand['method'], 'analysis.setAnalysisRoots'); final Map<String, Object?> params = setAnalysisRootsCommand['params']! as Map<String, Object?>; expect(params['included'], <String?>[Cache.flutterRoot]); expect(params['excluded'], isEmpty); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => processManager, }); }); testWithoutContext('analyze inRepo', () { final FileSystem fileSystem = MemoryFileSystem.test(); fileSystem.directory(_kFlutterRoot).createSync(recursive: true); final Directory tempDir = fileSystem.systemTempDirectory .createTempSync('flutter_analysis_test.'); Cache.flutterRoot = _kFlutterRoot; // Absolute paths expect(inRepo(<String>[tempDir.path], fileSystem), isFalse); expect(inRepo(<String>[fileSystem.path.join(tempDir.path, 'foo')], fileSystem), isFalse); expect(inRepo(<String>[Cache.flutterRoot!], fileSystem), isTrue); expect(inRepo(<String>[fileSystem.path.join(Cache.flutterRoot!, 'foo')], fileSystem), isTrue); // Relative paths fileSystem.currentDirectory = Cache.flutterRoot; expect(inRepo(<String>['.'], fileSystem), isTrue); expect(inRepo(<String>['foo'], fileSystem), isTrue); fileSystem.currentDirectory = tempDir.path; expect(inRepo(<String>['.'], fileSystem), isFalse); expect(inRepo(<String>['foo'], fileSystem), isFalse); // Ensure no exceptions inRepo(null, fileSystem); inRepo(<String>[], fileSystem); }); testWithoutContext('AnalysisError from json write correct', () { final Map<String, dynamic> json = <String, dynamic>{ 'severity': 'INFO', 'type': 'TODO', 'location': <String, dynamic>{ 'file': '/Users/.../lib/test.dart', 'offset': 362, 'length': 72, 'startLine': 15, 'startColumn': 4, }, 'message': 'Prefer final for variable declarations if they are not reassigned.', 'code': 'var foo = 123;', 'hasFix': false, }; expect(WrittenError.fromJson(json).toString(), '[info] Prefer final for variable declarations if they are not reassigned (/Users/.../lib/test.dart:15:4)'); }); } bool inRepo(List<String>? fileList, FileSystem fileSystem) { if (fileList == null || fileList.isEmpty) { fileList = <String>[fileSystem.path.current]; } final String root = fileSystem.path.normalize(fileSystem.path.absolute(Cache.flutterRoot!)); final String prefix = root + fileSystem.path.separator; for (String file in fileList) { file = fileSystem.path.normalize(fileSystem.path.absolute(file)); if (file == root || file.startsWith(prefix)) { return true; } } return false; }
flutter/packages/flutter_tools/test/commands.shard/hermetic/analyze_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/commands.shard/hermetic/analyze_test.dart", "repo_id": "flutter", "token_count": 3165 }
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 'dart:async'; import 'dart:typed_data'; import 'package:args/args.dart'; import 'package:args/command_runner.dart'; import 'package:file/memory.dart'; import 'package:file_testing/file_testing.dart'; import 'package:flutter_tools/src/base/context.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/base/os.dart'; import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/base/terminal.dart'; import 'package:flutter_tools/src/base/user_messages.dart'; import 'package:flutter_tools/src/cache.dart'; import 'package:flutter_tools/src/commands/custom_devices.dart'; import 'package:flutter_tools/src/custom_devices/custom_device_config.dart'; import 'package:flutter_tools/src/custom_devices/custom_devices_config.dart'; import 'package:flutter_tools/src/features.dart'; import 'package:flutter_tools/src/runner/flutter_command_runner.dart'; import '../../src/common.dart'; import '../../src/context.dart'; import '../../src/fakes.dart'; const String linuxFlutterRoot = '/flutter'; const String windowsFlutterRoot = r'C:\flutter'; const String defaultConfigLinux1 = r''' { "$schema": "file:///flutter/packages/flutter_tools/static/custom-devices.schema.json", "custom-devices": [ { "id": "pi", "label": "Raspberry Pi", "sdkNameAndVersion": "Raspberry Pi 4 Model B+", "platform": "linux-arm64", "enabled": false, "ping": [ "ping", "-w", "1", "-c", "1", "raspberrypi" ], "pingSuccessRegex": null, "postBuild": null, "install": [ "scp", "-r", "-o", "BatchMode=yes", "${localPath}", "pi@raspberrypi:/tmp/${appName}" ], "uninstall": [ "ssh", "-o", "BatchMode=yes", "pi@raspberrypi", "rm -rf \"/tmp/${appName}\"" ], "runDebug": [ "ssh", "-o", "BatchMode=yes", "pi@raspberrypi", "flutter-pi \"/tmp/${appName}\"" ], "forwardPort": [ "ssh", "-o", "BatchMode=yes", "-o", "ExitOnForwardFailure=yes", "-L", "127.0.0.1:${hostPort}:127.0.0.1:${devicePort}", "pi@raspberrypi", "echo 'Port forwarding success'; read" ], "forwardPortSuccessRegex": "Port forwarding success", "screenshot": [ "ssh", "-o", "BatchMode=yes", "pi@raspberrypi", "fbgrab /tmp/screenshot.png && cat /tmp/screenshot.png | base64 | tr -d ' \\n\\t'" ] } ] } '''; const String defaultConfigLinux2 = r''' { "custom-devices": [ { "id": "pi", "label": "Raspberry Pi", "sdkNameAndVersion": "Raspberry Pi 4 Model B+", "platform": "linux-arm64", "enabled": false, "ping": [ "ping", "-w", "1", "-c", "1", "raspberrypi" ], "pingSuccessRegex": null, "postBuild": null, "install": [ "scp", "-r", "-o", "BatchMode=yes", "${localPath}", "pi@raspberrypi:/tmp/${appName}" ], "uninstall": [ "ssh", "-o", "BatchMode=yes", "pi@raspberrypi", "rm -rf \"/tmp/${appName}\"" ], "runDebug": [ "ssh", "-o", "BatchMode=yes", "pi@raspberrypi", "flutter-pi \"/tmp/${appName}\"" ], "forwardPort": [ "ssh", "-o", "BatchMode=yes", "-o", "ExitOnForwardFailure=yes", "-L", "127.0.0.1:${hostPort}:127.0.0.1:${devicePort}", "pi@raspberrypi", "echo 'Port forwarding success'; read" ], "forwardPortSuccessRegex": "Port forwarding success", "screenshot": [ "ssh", "-o", "BatchMode=yes", "pi@raspberrypi", "fbgrab /tmp/screenshot.png && cat /tmp/screenshot.png | base64 | tr -d ' \\n\\t'" ] } ], "$schema": "file:///flutter/packages/flutter_tools/static/custom-devices.schema.json" } '''; final Platform windowsPlatform = FakePlatform( operatingSystem: 'windows', environment: <String, String>{ 'FLUTTER_ROOT': windowsFlutterRoot, } ); class FakeTerminal implements Terminal { factory FakeTerminal({required Platform platform}) { return FakeTerminal._private( stdio: FakeStdio(), platform: platform ); } FakeTerminal._private({ required this.stdio, required Platform platform }) : terminal = AnsiTerminal( stdio: stdio, platform: platform ); final FakeStdio stdio; final AnsiTerminal terminal; void simulateStdin(String line) { stdio.simulateStdin(line); } @override set usesTerminalUi(bool value) => terminal.usesTerminalUi = value; @override bool get usesTerminalUi => terminal.usesTerminalUi; @override String bolden(String message) => terminal.bolden(message); @override String clearScreen() => terminal.clearScreen(); @override String color(String message, TerminalColor color) => terminal.color(message, color); @override Stream<String> get keystrokes => terminal.keystrokes; @override Future<String> promptForCharInput( List<String> acceptedCharacters, { required Logger logger, String? prompt, int? defaultChoiceIndex, bool displayAcceptedCharacters = true }) => terminal.promptForCharInput( acceptedCharacters, logger: logger, prompt: prompt, defaultChoiceIndex: defaultChoiceIndex, displayAcceptedCharacters: displayAcceptedCharacters ); @override bool get singleCharMode => terminal.singleCharMode; @override set singleCharMode(bool value) => terminal.singleCharMode = value; @override bool get stdinHasTerminal => terminal.stdinHasTerminal; @override String get successMark => terminal.successMark; @override bool get supportsColor => terminal.supportsColor; @override bool get isCliAnimationEnabled => terminal.isCliAnimationEnabled; @override void applyFeatureFlags(FeatureFlags flags) { // ignored } @override bool get supportsEmoji => terminal.supportsEmoji; @override String get warningMark => terminal.warningMark; @override int get preferredStyle => terminal.preferredStyle; } class FakeCommandRunner extends FlutterCommandRunner { FakeCommandRunner({ required Platform platform, required FileSystem fileSystem, required Logger logger, UserMessages? userMessages }) : _platform = platform, _fileSystem = fileSystem, _logger = logger, _userMessages = userMessages ?? UserMessages(); final Platform _platform; final FileSystem _fileSystem; final Logger _logger; final UserMessages _userMessages; @override Future<void> runCommand(ArgResults topLevelResults) async { final Logger logger = (topLevelResults['verbose'] as bool) ? VerboseLogger(_logger) : _logger; return context.run<void>( overrides: <Type, Generator>{ Logger: () => logger, }, body: () { Cache.flutterRoot ??= Cache.defaultFlutterRoot( platform: _platform, fileSystem: _fileSystem, userMessages: _userMessages, ); // For compatibility with tests that set this to a relative path. Cache.flutterRoot = _fileSystem.path.normalize(_fileSystem.path.absolute(Cache.flutterRoot!)); return super.runCommand(topLevelResults); } ); } } /// May take platform, logger, processManager and fileSystem from context if /// not explicitly specified. CustomDevicesCommand createCustomDevicesCommand({ CustomDevicesConfig Function(FileSystem, Logger)? config, Terminal Function(Platform)? terminal, Platform? platform, FileSystem? fileSystem, ProcessManager? processManager, Logger? logger, PrintFn? usagePrintFn, bool featureEnabled = false }) { platform ??= FakePlatform(); processManager ??= FakeProcessManager.any(); fileSystem ??= MemoryFileSystem.test(); usagePrintFn ??= print; logger ??= BufferLogger.test(); return CustomDevicesCommand.test( customDevicesConfig: config != null ? config(fileSystem, logger) : CustomDevicesConfig.test( platform: platform, fileSystem: fileSystem, directory: fileSystem.directory('/'), logger: logger ), operatingSystemUtils: FakeOperatingSystemUtils( hostPlatform: platform.isLinux ? HostPlatform.linux_x64 : platform.isWindows ? HostPlatform.windows_x64 : platform.isMacOS ? HostPlatform.darwin_x64 : throw UnsupportedError('Unsupported operating system') ), terminal: terminal != null ? terminal(platform) : FakeTerminal(platform: platform), platform: platform, featureFlags: TestFeatureFlags(areCustomDevicesEnabled: featureEnabled), processManager: processManager, fileSystem: fileSystem, logger: logger, usagePrintFn: usagePrintFn, ); } /// May take platform, logger, processManager and fileSystem from context if /// not explicitly specified. CommandRunner<void> createCustomDevicesCommandRunner({ CustomDevicesConfig Function(FileSystem, Logger)? config, Terminal Function(Platform)? terminal, Platform? platform, FileSystem? fileSystem, ProcessManager? processManager, Logger? logger, PrintFn? usagePrintFn, bool featureEnabled = false, }) { platform ??= FakePlatform(); fileSystem ??= MemoryFileSystem.test(); logger ??= BufferLogger.test(); return FakeCommandRunner( platform: platform, fileSystem: fileSystem, logger: logger )..addCommand( createCustomDevicesCommand( config: config, terminal: terminal, platform: platform, fileSystem: fileSystem, processManager: processManager, logger: logger, usagePrintFn: usagePrintFn, featureEnabled: featureEnabled ) ); } FakeTerminal createFakeTerminalForAddingSshDevice({ required Platform platform, required String id, required String label, required String sdkNameAndVersion, required String enabled, required String hostname, required String username, required String runDebug, required String usePortForwarding, required String screenshot, required String apply }) { return FakeTerminal(platform: platform) ..simulateStdin(id) ..simulateStdin(label) ..simulateStdin(sdkNameAndVersion) ..simulateStdin(enabled) ..simulateStdin(hostname) ..simulateStdin(username) ..simulateStdin(runDebug) ..simulateStdin(usePortForwarding) ..simulateStdin(screenshot) ..simulateStdin(apply); } void main() { const String featureNotEnabledMessage = 'Custom devices feature must be enabled. Enable using `flutter config --enable-custom-devices`.'; setUpAll(() { Cache.disableLocking(); }); group('linux', () { setUp(() { Cache.flutterRoot = linuxFlutterRoot; }); testUsingContext( 'custom-devices command shows config file in help when feature is enabled', () async { final BufferLogger logger = BufferLogger.test(); final CommandRunner<void> runner = createCustomDevicesCommandRunner( logger: logger, usagePrintFn: (Object o) => logger.printStatus(o.toString()), featureEnabled: true ); await expectLater( runner.run(const <String>['custom-devices', '--help']), completes ); expect( logger.statusText, contains('Makes changes to the config file at "/.flutter_custom_devices.json".') ); } ); testUsingContext( 'running custom-devices command without arguments prints usage', () async { final BufferLogger logger = BufferLogger.test(); final CommandRunner<void> runner = createCustomDevicesCommandRunner( logger: logger, usagePrintFn: (Object o) => logger.printStatus(o.toString()), featureEnabled: true ); await expectLater( runner.run(const <String>['custom-devices']), completes ); expect( logger.statusText, contains('Makes changes to the config file at "/.flutter_custom_devices.json".') ); } ); // test behaviour with disabled feature testUsingContext( 'custom-devices add command fails when feature is not enabled', () async { final CommandRunner<void> runner = createCustomDevicesCommandRunner(); expect( runner.run(const <String>['custom-devices', 'add']), throwsToolExit(message: featureNotEnabledMessage), ); } ); testUsingContext( 'custom-devices delete command fails when feature is not enabled', () async { final CommandRunner<void> runner = createCustomDevicesCommandRunner(); expect( runner.run(const <String>['custom-devices', 'delete', '-d', 'testid']), throwsToolExit(message: featureNotEnabledMessage), ); } ); testUsingContext( 'custom-devices list command fails when feature is not enabled', () async { final CommandRunner<void> runner = createCustomDevicesCommandRunner(); expect( runner.run(const <String>['custom-devices', 'list']), throwsToolExit(message: featureNotEnabledMessage), ); } ); testUsingContext( 'custom-devices reset command fails when feature is not enabled', () async { final CommandRunner<void> runner = createCustomDevicesCommandRunner(); expect( runner.run(const <String>['custom-devices', 'reset']), throwsToolExit(message: featureNotEnabledMessage), ); } ); // test add command testUsingContext( 'custom-devices add command correctly adds ssh device config on linux', () async { final MemoryFileSystem fs = MemoryFileSystem.test(); final CommandRunner<void> runner = createCustomDevicesCommandRunner( terminal: (Platform platform) => createFakeTerminalForAddingSshDevice( platform: platform, id: 'testid', label: 'testlabel', sdkNameAndVersion: 'testsdknameandversion', enabled: 'y', hostname: 'testhostname', username: 'testuser', runDebug: 'testrundebug', usePortForwarding: 'y', screenshot: 'testscreenshot', apply: 'y' ), fileSystem: fs, processManager: FakeProcessManager.any(), featureEnabled: true ); await expectLater( runner.run(const <String>['custom-devices', 'add', '--no-check']), completes ); final CustomDevicesConfig config = CustomDevicesConfig.test( fileSystem: fs, directory: fs.directory('/'), logger: BufferLogger.test() ); expect( config.devices, contains( CustomDeviceConfig( id: 'testid', label: 'testlabel', sdkNameAndVersion: 'testsdknameandversion', enabled: true, pingCommand: const <String>[ 'ping', '-c', '1', '-w', '1', 'testhostname', ], postBuildCommand: null, installCommand: const <String>[ 'scp', '-r', '-o', 'BatchMode=yes', r'${localPath}', r'testuser@testhostname:/tmp/${appName}', ], uninstallCommand: const <String>[ 'ssh', '-o', 'BatchMode=yes', 'testuser@testhostname', r'rm -rf "/tmp/${appName}"', ], runDebugCommand: const <String>[ 'ssh', '-o', 'BatchMode=yes', 'testuser@testhostname', 'testrundebug', ], forwardPortCommand: const <String>[ 'ssh', '-o', 'BatchMode=yes', '-o', 'ExitOnForwardFailure=yes', '-L', r'127.0.0.1:${hostPort}:127.0.0.1:${devicePort}', 'testuser@testhostname', "echo 'Port forwarding success'; read", ], forwardPortSuccessRegex: RegExp('Port forwarding success'), screenshotCommand: const <String>[ 'ssh', '-o', 'BatchMode=yes', 'testuser@testhostname', 'testscreenshot', ], ) ) ); } ); testUsingContext( 'custom-devices add command correctly adds ipv4 ssh device config', () async { final MemoryFileSystem fs = MemoryFileSystem.test(); final CommandRunner<void> runner = createCustomDevicesCommandRunner( terminal: (Platform platform) => createFakeTerminalForAddingSshDevice( platform: platform, id: 'testid', label: 'testlabel', sdkNameAndVersion: 'testsdknameandversion', enabled: 'y', hostname: '192.168.178.1', username: 'testuser', runDebug: 'testrundebug', usePortForwarding: 'y', screenshot: 'testscreenshot', apply: 'y', ), processManager: FakeProcessManager.any(), fileSystem: fs, featureEnabled: true ); await expectLater( runner.run(const <String>['custom-devices', 'add', '--no-check']), completes ); final CustomDevicesConfig config = CustomDevicesConfig.test( fileSystem: fs, directory: fs.directory('/'), logger: BufferLogger.test() ); expect( config.devices, contains( CustomDeviceConfig( id: 'testid', label: 'testlabel', sdkNameAndVersion: 'testsdknameandversion', enabled: true, pingCommand: const <String>[ 'ping', '-c', '1', '-w', '1', '192.168.178.1', ], postBuildCommand: null, installCommand: const <String>[ 'scp', '-r', '-o', 'BatchMode=yes', r'${localPath}', r'[email protected]:/tmp/${appName}', ], uninstallCommand: const <String>[ 'ssh', '-o', 'BatchMode=yes', '[email protected]', r'rm -rf "/tmp/${appName}"', ], runDebugCommand: const <String>[ 'ssh', '-o', 'BatchMode=yes', '[email protected]', 'testrundebug', ], forwardPortCommand: const <String>[ 'ssh', '-o', 'BatchMode=yes', '-o', 'ExitOnForwardFailure=yes', '-L', r'127.0.0.1:${hostPort}:127.0.0.1:${devicePort}', '[email protected]', "echo 'Port forwarding success'; read", ], forwardPortSuccessRegex: RegExp('Port forwarding success'), screenshotCommand: const <String>[ 'ssh', '-o', 'BatchMode=yes', '[email protected]', 'testscreenshot', ], ), ), ); }, ); testUsingContext( 'custom-devices add command correctly adds ipv6 ssh device config', () async { final MemoryFileSystem fs = MemoryFileSystem.test(); final CommandRunner<void> runner = createCustomDevicesCommandRunner( terminal: (Platform platform) => createFakeTerminalForAddingSshDevice( platform: platform, id: 'testid', label: 'testlabel', sdkNameAndVersion: 'testsdknameandversion', enabled: 'y', hostname: '::1', username: 'testuser', runDebug: 'testrundebug', usePortForwarding: 'y', screenshot: 'testscreenshot', apply: 'y', ), fileSystem: fs, featureEnabled: true ); await expectLater( runner.run(const <String>['custom-devices', 'add', '--no-check']), completes ); final CustomDevicesConfig config = CustomDevicesConfig.test( fileSystem: fs, directory: fs.directory('/'), logger: BufferLogger.test() ); expect( config.devices, contains( CustomDeviceConfig( id: 'testid', label: 'testlabel', sdkNameAndVersion: 'testsdknameandversion', enabled: true, pingCommand: const <String>[ 'ping', '-6', '-c', '1', '-w', '1', '::1', ], postBuildCommand: null, installCommand: const <String>[ 'scp', '-r', '-o', 'BatchMode=yes', '-6', r'${localPath}', r'testuser@[::1]:/tmp/${appName}', ], uninstallCommand: const <String>[ 'ssh', '-o', 'BatchMode=yes', '-6', 'testuser@[::1]', r'rm -rf "/tmp/${appName}"', ], runDebugCommand: const <String>[ 'ssh', '-o', 'BatchMode=yes', '-6', 'testuser@[::1]', 'testrundebug', ], forwardPortCommand: const <String>[ 'ssh', '-o', 'BatchMode=yes', '-o', 'ExitOnForwardFailure=yes', '-6', '-L', r'[::1]:${hostPort}:[::1]:${devicePort}', 'testuser@[::1]', "echo 'Port forwarding success'; read", ], forwardPortSuccessRegex: RegExp('Port forwarding success'), screenshotCommand: const <String>[ 'ssh', '-o', 'BatchMode=yes', '-6', 'testuser@[::1]', 'testscreenshot', ], ), ), ); }, ); testUsingContext( 'custom-devices add command correctly adds non-forwarding ssh device config', () async { final MemoryFileSystem fs = MemoryFileSystem.test(); final CommandRunner<void> runner = createCustomDevicesCommandRunner( terminal: (Platform platform) => createFakeTerminalForAddingSshDevice( platform: platform, id: 'testid', label: 'testlabel', sdkNameAndVersion: 'testsdknameandversion', enabled: 'y', hostname: 'testhostname', username: 'testuser', runDebug: 'testrundebug', usePortForwarding: 'n', screenshot: 'testscreenshot', apply: 'y', ), fileSystem: fs, featureEnabled: true ); await expectLater( runner.run(const <String>['custom-devices', 'add', '--no-check']), completes ); final CustomDevicesConfig config = CustomDevicesConfig.test( fileSystem: fs, directory: fs.directory('/'), logger: BufferLogger.test() ); expect( config.devices, contains( const CustomDeviceConfig( id: 'testid', label: 'testlabel', sdkNameAndVersion: 'testsdknameandversion', enabled: true, pingCommand: <String>[ 'ping', '-c', '1', '-w', '1', 'testhostname', ], postBuildCommand: null, installCommand: <String>[ 'scp', '-r', '-o', 'BatchMode=yes', r'${localPath}', r'testuser@testhostname:/tmp/${appName}', ], uninstallCommand: <String>[ 'ssh', '-o', 'BatchMode=yes', 'testuser@testhostname', r'rm -rf "/tmp/${appName}"', ], runDebugCommand: <String>[ 'ssh', '-o', 'BatchMode=yes', 'testuser@testhostname', 'testrundebug', ], screenshotCommand: <String>[ 'ssh', '-o', 'BatchMode=yes', 'testuser@testhostname', 'testscreenshot', ], ), ), ); }, ); testUsingContext( 'custom-devices add command correctly adds non-screenshotting ssh device config', () async { final MemoryFileSystem fs = MemoryFileSystem.test(); final CommandRunner<void> runner = createCustomDevicesCommandRunner( terminal: (Platform platform) => createFakeTerminalForAddingSshDevice( platform: platform, id: 'testid', label: 'testlabel', sdkNameAndVersion: 'testsdknameandversion', enabled: 'y', hostname: 'testhostname', username: 'testuser', runDebug: 'testrundebug', usePortForwarding: 'y', screenshot: '', apply: 'y', ), fileSystem: fs, featureEnabled: true, ); await expectLater( runner.run(const <String>['custom-devices', 'add', '--no-check']), completes, ); final CustomDevicesConfig config = CustomDevicesConfig.test( fileSystem: fs, directory: fs.directory('/'), logger: BufferLogger.test() ); expect( config.devices, contains( CustomDeviceConfig( id: 'testid', label: 'testlabel', sdkNameAndVersion: 'testsdknameandversion', enabled: true, pingCommand: const <String>[ 'ping', '-c', '1', '-w', '1', 'testhostname', ], postBuildCommand: null, installCommand: const <String>[ 'scp', '-r', '-o', 'BatchMode=yes', r'${localPath}', r'testuser@testhostname:/tmp/${appName}', ], uninstallCommand: const <String>[ 'ssh', '-o', 'BatchMode=yes', 'testuser@testhostname', r'rm -rf "/tmp/${appName}"', ], runDebugCommand: const <String>[ 'ssh', '-o', 'BatchMode=yes', 'testuser@testhostname', 'testrundebug', ], forwardPortCommand: const <String>[ 'ssh', '-o', 'BatchMode=yes', '-o', 'ExitOnForwardFailure=yes', '-L', r'127.0.0.1:${hostPort}:127.0.0.1:${devicePort}', 'testuser@testhostname', "echo 'Port forwarding success'; read", ], forwardPortSuccessRegex: RegExp('Port forwarding success'), ) ) ); } ); testUsingContext( 'custom-devices delete command deletes device and creates backup', () async { final MemoryFileSystem fs = MemoryFileSystem.test(); final CustomDevicesConfig config = CustomDevicesConfig.test( fileSystem: fs, directory: fs.directory('/'), logger: BufferLogger.test(), ); config.add(CustomDeviceConfig.exampleUnix.copyWith(id: 'testid')); final CommandRunner<void> runner = createCustomDevicesCommandRunner( config: (_, __) => config, fileSystem: fs, featureEnabled: true ); final Uint8List contentsBefore = fs.file('.flutter_custom_devices.json').readAsBytesSync(); await expectLater( runner.run(const <String>['custom-devices', 'delete', '-d', 'testid']), completes ); expect(fs.file('/.flutter_custom_devices.json.bak'), exists); expect(config.devices, hasLength(0)); final Uint8List backupContents = fs.file('.flutter_custom_devices.json.bak').readAsBytesSync(); expect(contentsBefore, equals(backupContents)); } ); testUsingContext( 'custom-devices delete command without device argument throws tool exit', () async { final MemoryFileSystem fs = MemoryFileSystem.test(); final CustomDevicesConfig config = CustomDevicesConfig.test( fileSystem: fs, directory: fs.directory('/'), logger: BufferLogger.test(), ); config.add(CustomDeviceConfig.exampleUnix.copyWith(id: 'testid2')); final Uint8List contentsBefore = fs.file('.flutter_custom_devices.json').readAsBytesSync(); final CommandRunner<void> runner = createCustomDevicesCommandRunner( featureEnabled: true ); await expectLater( runner.run(const <String>['custom-devices', 'delete']), throwsToolExit() ); final Uint8List contentsAfter = fs.file('.flutter_custom_devices.json').readAsBytesSync(); expect(contentsBefore, equals(contentsAfter)); expect(fs.file('.flutter_custom_devices.json.bak').existsSync(), isFalse); } ); testUsingContext( 'custom-devices delete command throws tool exit with invalid device id', () async { final CommandRunner<void> runner = createCustomDevicesCommandRunner( featureEnabled: true ); await expectLater( runner.run(const <String>['custom-devices', 'delete', '-d', 'testid']), throwsToolExit(message: 'Couldn\'t find device with id "testid" in config at "/.flutter_custom_devices.json"') ); } ); testUsingContext( 'custom-devices list command throws tool exit when config contains errors', () async { final MemoryFileSystem fs = MemoryFileSystem.test(); final BufferLogger logger = BufferLogger.test(); fs.file('.flutter_custom_devices.json').writeAsStringSync('{"custom-devices": {}}'); final CommandRunner<void> runner = createCustomDevicesCommandRunner( fileSystem: fs, logger: logger, featureEnabled: true ); await expectLater( runner.run(const <String>['custom-devices', 'list']), throwsToolExit(message: 'Could not list custom devices.') ); expect( logger.errorText, contains("Could not load custom devices config. config['custom-devices'] is not a JSON array.") ); } ); testUsingContext( 'custom-devices list command prints message when no devices found', () async { final BufferLogger logger = BufferLogger.test(); final CommandRunner<void> runner = createCustomDevicesCommandRunner( logger: logger, featureEnabled: true ); await expectLater( runner.run(const <String>['custom-devices', 'list']), completes ); expect( logger.statusText, contains('No custom devices found in "/.flutter_custom_devices.json"') ); } ); testUsingContext( 'custom-devices list command lists all devices', () async { final MemoryFileSystem fs = MemoryFileSystem.test(); final BufferLogger logger = BufferLogger.test(); CustomDevicesConfig.test( fileSystem: fs, directory: fs.directory('/'), logger: logger, )..add( CustomDeviceConfig.exampleUnix.copyWith(id: 'testid', label: 'testlabel', enabled: true) )..add( CustomDeviceConfig.exampleUnix.copyWith(id: 'testid2', label: 'testlabel2', enabled: false) ); final CommandRunner<void> runner = createCustomDevicesCommandRunner( logger: logger, fileSystem: fs, featureEnabled: true ); await expectLater( runner.run(const <String>['custom-devices', 'list']), completes ); expect( logger.statusText, contains('List of custom devices in "/.flutter_custom_devices.json":') ); expect( logger.statusText, contains('id: testid, label: testlabel, enabled: true') ); expect( logger.statusText, contains('id: testid2, label: testlabel2, enabled: false') ); } ); testUsingContext( 'custom-devices reset correctly backs up the config file', () async { final MemoryFileSystem fs = MemoryFileSystem.test(); final BufferLogger logger = BufferLogger.test(); CustomDevicesConfig.test( fileSystem: fs, directory: fs.directory('/'), logger: logger, )..add( CustomDeviceConfig.exampleUnix.copyWith(id: 'testid', label: 'testlabel', enabled: true) )..add( CustomDeviceConfig.exampleUnix.copyWith(id: 'testid2', label: 'testlabel2', enabled: false) ); final Uint8List contentsBefore = fs.file('.flutter_custom_devices.json').readAsBytesSync(); final CommandRunner<void> runner = createCustomDevicesCommandRunner( logger: logger, fileSystem: fs, featureEnabled: true ); await expectLater( runner.run(const <String>['custom-devices', 'reset']), completes ); expect( logger.statusText, contains( 'Successfully reset the custom devices config file and created a ' 'backup at "/.flutter_custom_devices.json.bak".' ) ); final Uint8List backupContents = fs.file('.flutter_custom_devices.json.bak').readAsBytesSync(); expect(contentsBefore, equals(backupContents)); expect( fs.file('.flutter_custom_devices.json').readAsStringSync(), anyOf(equals(defaultConfigLinux1), equals(defaultConfigLinux2)) ); } ); testUsingContext( "custom-devices reset outputs correct msg when config file didn't exist", () async { final MemoryFileSystem fs = MemoryFileSystem.test(); final BufferLogger logger = BufferLogger.test(); final CommandRunner<void> runner = createCustomDevicesCommandRunner( logger: logger, fileSystem: fs, featureEnabled: true ); await expectLater( runner.run(const <String>['custom-devices', 'reset']), completes ); expect( logger.statusText, contains( 'Successfully reset the custom devices config file.' ) ); expect(fs.file('.flutter_custom_devices.json.bak'), isNot(exists)); expect( fs.file('.flutter_custom_devices.json').readAsStringSync(), anyOf(equals(defaultConfigLinux1), equals(defaultConfigLinux2)) ); } ); }); group('windows', () { setUp(() { Cache.flutterRoot = windowsFlutterRoot; }); testUsingContext( 'custom-devices add command correctly adds ssh device config on windows', () async { final MemoryFileSystem fs = MemoryFileSystem.test(style: FileSystemStyle.windows); final CommandRunner<void> runner = createCustomDevicesCommandRunner( terminal: (Platform platform) => createFakeTerminalForAddingSshDevice( platform: platform, id: 'testid', label: 'testlabel', sdkNameAndVersion: 'testsdknameandversion', enabled: 'y', hostname: 'testhostname', username: 'testuser', runDebug: 'testrundebug', usePortForwarding: 'y', screenshot: 'testscreenshot', apply: 'y', ), fileSystem: fs, platform: windowsPlatform, featureEnabled: true ); await expectLater( runner.run(const <String>['custom-devices', 'add', '--no-check']), completes ); final CustomDevicesConfig config = CustomDevicesConfig.test( fileSystem: fs, directory: fs.directory('/'), logger: BufferLogger.test() ); expect( config.devices, contains( CustomDeviceConfig( id: 'testid', label: 'testlabel', sdkNameAndVersion: 'testsdknameandversion', enabled: true, pingCommand: const <String>[ 'ping', '-n', '1', '-w', '500', 'testhostname', ], pingSuccessRegex: RegExp(r'[<=]\d+ms'), postBuildCommand: null, installCommand: const <String>[ 'scp', '-r', '-o', 'BatchMode=yes', r'${localPath}', r'testuser@testhostname:/tmp/${appName}', ], uninstallCommand: const <String>[ 'ssh', '-o', 'BatchMode=yes', 'testuser@testhostname', r'rm -rf "/tmp/${appName}"', ], runDebugCommand: const <String>[ 'ssh', '-o', 'BatchMode=yes', 'testuser@testhostname', 'testrundebug', ], forwardPortCommand: const <String>[ 'ssh', '-o', 'BatchMode=yes', '-o', 'ExitOnForwardFailure=yes', '-L', r'127.0.0.1:${hostPort}:127.0.0.1:${devicePort}', 'testuser@testhostname', "echo 'Port forwarding success'; read", ], forwardPortSuccessRegex: RegExp('Port forwarding success'), screenshotCommand: const <String>[ 'ssh', '-o', 'BatchMode=yes', 'testuser@testhostname', 'testscreenshot', ], ), ), ); }, ); }); }
flutter/packages/flutter_tools/test/commands.shard/hermetic/custom_devices_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/commands.shard/hermetic/custom_devices_test.dart", "repo_id": "flutter", "token_count": 18490 }
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 'package:args/command_runner.dart'; import 'package:file/memory.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/cache.dart'; import 'package:flutter_tools/src/commands/packages.dart'; import 'package:flutter_tools/src/dart/pub.dart'; import 'package:flutter_tools/src/project.dart'; import 'package:flutter_tools/src/reporting/reporting.dart'; import 'package:flutter_tools/src/runner/flutter_command.dart'; import 'package:test/fake.dart'; import '../../src/context.dart'; import '../../src/test_flutter_command_runner.dart'; const String minimalV2EmbeddingManifest = r''' <manifest xmlns:android="http://schemas.android.com/apk/res/android"> <application android:name="${applicationName}"> <meta-data android:name="flutterEmbedding" android:value="2" /> </application> </manifest> '''; void main() { late FileSystem fileSystem; late FakePub pub; setUp(() { Cache.disableLocking(); fileSystem = MemoryFileSystem.test(); pub = FakePub(fileSystem); }); tearDown(() { Cache.enableLocking(); }); testUsingContext('pub shows help', () async { Object? usage; final PackagesCommand command = PackagesCommand( usagePrintFn: (Object? object) => usage = object, ); final CommandRunner<void> runner = createTestCommandRunner(command); await runner.run(<String>['pub']); expect(usage, allOf( contains('Commands for managing Flutter packages.'), contains('Usage: flutter pub <subcommand> [arguments]'), )); }); testUsingContext('pub get usage values are resilient to missing package config files before running "pub get"', () async { fileSystem.currentDirectory.childFile('pubspec.yaml').createSync(); fileSystem.currentDirectory.childFile('.flutter-plugins').createSync(); fileSystem.currentDirectory.childFile('.flutter-plugins-dependencies').createSync(); fileSystem.currentDirectory.childDirectory('android').childFile('AndroidManifest.xml') ..createSync(recursive: true) ..writeAsStringSync(minimalV2EmbeddingManifest); final PackagesGetCommand command = PackagesGetCommand('get', '', PubContext.pubGet); final CommandRunner<void> commandRunner = createTestCommandRunner(command); await commandRunner.run(<String>['get']); expect(await command.usageValues, const CustomDimensions( commandPackagesNumberPlugins: 0, commandPackagesProjectModule: false, commandPackagesAndroidEmbeddingVersion: 'v2', )); }, overrides: <Type, Generator>{ Pub: () => pub, ProcessManager: () => FakeProcessManager.any(), FileSystem: () => fileSystem, }); testUsingContext('pub get usage values are resilient to poorly formatted package config before "pub get"', () async { fileSystem.currentDirectory.childFile('pubspec.yaml').createSync(); fileSystem.currentDirectory.childFile('.flutter-plugins').createSync(); fileSystem.currentDirectory.childFile('.flutter-plugins-dependencies').createSync(); fileSystem.currentDirectory.childFile('.packages').writeAsBytesSync(<int>[0]); fileSystem.currentDirectory.childFile('.dart_tool/package_config.json') ..createSync(recursive: true) ..writeAsBytesSync(<int>[0]); fileSystem.currentDirectory.childDirectory('android').childFile('AndroidManifest.xml') ..createSync(recursive: true) ..writeAsStringSync(minimalV2EmbeddingManifest); final PackagesGetCommand command = PackagesGetCommand('get', '', PubContext.pubGet); final CommandRunner<void> commandRunner = createTestCommandRunner(command); await commandRunner.run(<String>['get']); expect(await command.usageValues, const CustomDimensions( commandPackagesNumberPlugins: 0, commandPackagesProjectModule: false, commandPackagesAndroidEmbeddingVersion: 'v2', )); }, overrides: <Type, Generator>{ Pub: () => pub, ProcessManager: () => FakeProcessManager.any(), FileSystem: () => fileSystem, }); testUsingContext('pub get on target directory', () async { fileSystem.currentDirectory.childDirectory('target').createSync(); final Directory targetDirectory = fileSystem.currentDirectory.childDirectory('target'); targetDirectory.childFile('pubspec.yaml').createSync(); final PackagesGetCommand command = PackagesGetCommand('get', '', PubContext.pubGet); final CommandRunner<void> commandRunner = createTestCommandRunner(command); await commandRunner.run(<String>['get', targetDirectory.path]); final FlutterProject rootProject = FlutterProject.fromDirectory(targetDirectory); expect(rootProject.packageConfigFile.existsSync(), true); expect(await rootProject.packageConfigFile.readAsString(), '{"configVersion":2,"packages":[]}'); }, overrides: <Type, Generator>{ Pub: () => pub, ProcessManager: () => FakeProcessManager.any(), FileSystem: () => fileSystem, }); testUsingContext("pub get doesn't treat unknown flag as directory", () async { fileSystem.currentDirectory.childDirectory('target').createSync(); fileSystem.currentDirectory.childFile('pubspec.yaml').createSync(); final PackagesGetCommand command = PackagesGetCommand('get', '', PubContext.pubGet); final CommandRunner<void> commandRunner = createTestCommandRunner(command); pub.expectedArguments = <String>['get', '--unknown-flag', '--example', '--directory', '.']; await commandRunner.run(<String>['get', '--unknown-flag']); }, overrides: <Type, Generator>{ Pub: () => pub, ProcessManager: () => FakeProcessManager.any(), FileSystem: () => fileSystem, }); testUsingContext("pub get doesn't treat -v as directory", () async { fileSystem.currentDirectory.childDirectory('target').createSync(); fileSystem.currentDirectory.childFile('pubspec.yaml').createSync(); final PackagesGetCommand command = PackagesGetCommand('get', '', PubContext.pubGet); final CommandRunner<void> commandRunner = createTestCommandRunner(command); pub.expectedArguments = <String>['get', '-v', '--example', '--directory', '.']; await commandRunner.run(<String>['get', '-v']); }, overrides: <Type, Generator>{ Pub: () => pub, ProcessManager: () => FakeProcessManager.any(), FileSystem: () => fileSystem, }); testUsingContext("pub get skips example directory if it doesn't contain a pubspec.yaml", () async { fileSystem.currentDirectory.childFile('pubspec.yaml').createSync(); fileSystem.currentDirectory.childDirectory('example').createSync(recursive: true); fileSystem.currentDirectory.childDirectory('android').childFile('AndroidManifest.xml') ..createSync(recursive: true) ..writeAsStringSync(minimalV2EmbeddingManifest); final PackagesGetCommand command = PackagesGetCommand('get', '', PubContext.pubGet); final CommandRunner<void> commandRunner = createTestCommandRunner(command); await commandRunner.run(<String>['get']); expect(await command.usageValues, const CustomDimensions( commandPackagesNumberPlugins: 0, commandPackagesProjectModule: false, commandPackagesAndroidEmbeddingVersion: 'v2', )); }, overrides: <Type, Generator>{ Pub: () => pub, ProcessManager: () => FakeProcessManager.any(), FileSystem: () => fileSystem, }); testUsingContext('pub get throws error on missing directory', () async { final PackagesGetCommand command = PackagesGetCommand('get', '', PubContext.pubGet); final CommandRunner<void> commandRunner = createTestCommandRunner(command); try { await commandRunner.run(<String>['get', 'missing_dir']); fail('expected an exception'); } on Exception catch (e) { expect(e.toString(), contains('Expected to find project root in missing_dir')); } }, overrides: <Type, Generator>{ Pub: () => pub, ProcessManager: () => FakeProcessManager.any(), FileSystem: () => fileSystem, }); testUsingContext('pub get triggers localizations generation when generate: true', () async { final File pubspecFile = fileSystem.currentDirectory.childFile('pubspec.yaml') ..createSync(); pubspecFile.writeAsStringSync( ''' flutter: generate: true ''' ); fileSystem.currentDirectory.childFile('l10n.yaml') ..createSync() ..writeAsStringSync( ''' arb-dir: lib/l10n ''' ); final File arbFile = fileSystem.file(fileSystem.path.join('lib', 'l10n', 'app_en.arb')) ..createSync(recursive: true); arbFile.writeAsStringSync( ''' { "helloWorld": "Hello, World!", "@helloWorld": { "description": "Sample description" } } ''' ); final PackagesGetCommand command = PackagesGetCommand('get', '', PubContext.pubGet); final CommandRunner<void> commandRunner = createTestCommandRunner(command); await commandRunner.run(<String>['get']); final FlutterCommandResult result = await command.runCommand(); expect(result.exitStatus, ExitStatus.success); final Directory outputDirectory = fileSystem.directory(fileSystem.path.join('.dart_tool', 'flutter_gen', 'gen_l10n')); expect(outputDirectory.existsSync(), true); expect(outputDirectory.childFile('app_localizations_en.dart').existsSync(), true); expect(outputDirectory.childFile('app_localizations.dart').existsSync(), true); }, overrides: <Type, Generator>{ Pub: () => pub, ProcessManager: () => FakeProcessManager.any(), FileSystem: () => fileSystem, }); } class FakePub extends Fake implements Pub { FakePub(this.fileSystem); final FileSystem fileSystem; List<String>? expectedArguments; @override Future<void> interactively( List<String> arguments, { FlutterProject? project, required PubContext context, required String command, bool touchesPackageConfig = false, bool generateSyntheticPackage = false, PubOutputMode outputMode = PubOutputMode.all, }) async { if (expectedArguments != null) { expect(arguments, expectedArguments); } if (project != null) { fileSystem.directory(project.directory) .childDirectory('.dart_tool') .childFile('package_config.json') ..createSync(recursive: true) ..writeAsStringSync('{"configVersion":2,"packages":[]}'); } } }
flutter/packages/flutter_tools/test/commands.shard/hermetic/pub_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/commands.shard/hermetic/pub_test.dart", "repo_id": "flutter", "token_count": 3490 }
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:io'; import 'package:flutter_tools/src/cache.dart'; import 'package:flutter_tools/src/globals.dart' as globals; import '../../src/common.dart'; import '../../src/context.dart'; void main() { setUpAll(() { Cache.disableLocking(); }); testUsingContext('flutter command can receive `!`, avoiding expansion by cmd.exe', () async { final String flutterBin = globals.fs.path.join(getFlutterRoot(), 'bin', 'flutter.bat'); final ProcessResult exec = await Process.run( flutterBin, <String>[ '!', ], workingDirectory: Cache.flutterRoot, ); // If ENABLEDELAYEDEXPANSION is enabled, the argument `!` is removed, // and flutter runs without any arguments. expect(exec.exitCode, 64); expect(exec.stderr, contains('Could not find a command named "!"')); }, skip: !Platform.isWindows, // [intended] relies on Windows's cmd.exe ); }
flutter/packages/flutter_tools/test/commands.shard/permeable/script_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/commands.shard/permeable/script_test.dart", "repo_id": "flutter", "token_count": 380 }
827
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/memory.dart'; import 'package:flutter_tools/src/android/android_sdk.dart'; import 'package:flutter_tools/src/base/config.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/globals.dart' as globals; import '../../src/common.dart'; import '../../src/context.dart'; void main() { late MemoryFileSystem fileSystem; late FakeProcessManager processManager; late Config config; setUp(() { fileSystem = MemoryFileSystem.test(); processManager = FakeProcessManager.empty(); config = Config.test(); }); group('AndroidSdk', () { testUsingContext('constructing an AndroidSdk handles no matching lines in build.prop', () { final Directory sdkDir = createSdkDirectory( fileSystem: fileSystem, withAndroidN: true, // Does not have valid version string buildProp: '\n\n\n', ); config.setValue('android-sdk', sdkDir.path); try { AndroidSdk.locateAndroidSdk()!; } on StateError catch (err) { fail('sdk.reinitialize() threw a StateError:\n$err'); } }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => FakeProcessManager.any(), Config: () => config, }); testUsingContext('parse sdk', () { final Directory sdkDir = createSdkDirectory(fileSystem: fileSystem); config.setValue('android-sdk', sdkDir.path); final AndroidSdk sdk = AndroidSdk.locateAndroidSdk()!; expect(sdk.latestVersion, isNotNull); expect(sdk.latestVersion!.sdkLevel, 23); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => FakeProcessManager.any(), Config: () => config, }); testUsingContext('parse sdk N', () { final Directory sdkDir = createSdkDirectory( withAndroidN: true, fileSystem: fileSystem, ); config.setValue('android-sdk', sdkDir.path); final AndroidSdk sdk = AndroidSdk.locateAndroidSdk()!; expect(sdk.latestVersion, isNotNull); expect(sdk.latestVersion!.sdkLevel, 24); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => FakeProcessManager.any(), Config: () => config, }); testUsingContext('returns sdkmanager path under cmdline tools on Linux/macOS', () { final Directory sdkDir = createSdkDirectory(fileSystem: fileSystem); config.setValue('android-sdk', sdkDir.path); final AndroidSdk sdk = AndroidSdk.locateAndroidSdk()!; fileSystem.file( fileSystem.path.join(sdk.directory.path, 'cmdline-tools', 'latest', 'bin', 'sdkmanager') ).createSync(recursive: true); expect(sdk.sdkManagerPath, fileSystem.path.join(sdk.directory.path, 'cmdline-tools', 'latest', 'bin', 'sdkmanager')); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => FakeProcessManager.any(), Platform: () => FakePlatform(), Config: () => config, }); testUsingContext('returns sdkmanager path under cmdline tools (highest version) on Linux/macOS', () { final Directory sdkDir = createSdkDirectory( fileSystem: fileSystem, withSdkManager: false, ); config.setValue('android-sdk', sdkDir.path); final AndroidSdk sdk = AndroidSdk.locateAndroidSdk()!; final List<String> versions = <String>['3.0', '2.1', '1.0']; for (final String version in versions) { fileSystem.file( fileSystem.path.join(sdk.directory.path, 'cmdline-tools', version, 'bin', 'sdkmanager') ).createSync(recursive: true); } expect(sdk.sdkManagerPath, fileSystem.path.join(sdk.directory.path, 'cmdline-tools', '3.0', 'bin', 'sdkmanager')); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => FakeProcessManager.any(), Platform: () => FakePlatform(), Config: () => config, }); testUsingContext('Does not return sdkmanager under deprecated tools component', () { final Directory sdkDir = createSdkDirectory( fileSystem: fileSystem, withSdkManager: false, ); config.setValue('android-sdk', sdkDir.path); final AndroidSdk sdk = AndroidSdk.locateAndroidSdk()!; fileSystem.file( fileSystem.path.join(sdk.directory.path, 'tools/bin/sdkmanager') ).createSync(recursive: true); expect(sdk.sdkManagerPath, null); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => FakeProcessManager.any(), Platform: () => FakePlatform(), Config: () => config, }); testUsingContext('Can look up cmdline tool from deprecated tools path', () { final Directory sdkDir = createSdkDirectory( fileSystem: fileSystem, withSdkManager: false, ); config.setValue('android-sdk', sdkDir.path); final AndroidSdk sdk = AndroidSdk.locateAndroidSdk()!; fileSystem.file( fileSystem.path.join(sdk.directory.path, 'tools/bin/foo') ).createSync(recursive: true); expect(sdk.getCmdlineToolsPath('foo'), '/.tmp_rand0/flutter_mock_android_sdk.rand0/tools/bin/foo'); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => FakeProcessManager.any(), Platform: () => FakePlatform(), Config: () => config, }); testUsingContext('Caches adb location after first access', () { final Directory sdkDir = createSdkDirectory(fileSystem: fileSystem); config.setValue('android-sdk', sdkDir.path); final AndroidSdk sdk = AndroidSdk.locateAndroidSdk()!; final File adbFile = fileSystem.file( fileSystem.path.join(sdk.directory.path, 'cmdline-tools', 'adb.exe') )..createSync(recursive: true); expect(sdk.adbPath, fileSystem.path.join(sdk.directory.path, 'cmdline-tools', 'adb.exe')); adbFile.deleteSync(recursive: true); expect(sdk.adbPath, fileSystem.path.join(sdk.directory.path, 'cmdline-tools', 'adb.exe')); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => FakeProcessManager.any(), Platform: () => FakePlatform(operatingSystem: 'windows'), Config: () => config, }); testUsingContext('returns sdkmanager.bat path under cmdline tools for windows', () { final Directory sdkDir = createSdkDirectory(fileSystem: fileSystem); config.setValue('android-sdk', sdkDir.path); final AndroidSdk sdk = AndroidSdk.locateAndroidSdk()!; fileSystem.file( fileSystem.path.join(sdk.directory.path, 'cmdline-tools', 'latest', 'bin', 'sdkmanager.bat') ).createSync(recursive: true); expect(sdk.sdkManagerPath, fileSystem.path.join(sdk.directory.path, 'cmdline-tools', 'latest', 'bin', 'sdkmanager.bat')); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => FakeProcessManager.any(), Platform: () => FakePlatform(operatingSystem: 'windows'), Config: () => config, }); testUsingContext('returns sdkmanager version', () { final Directory sdkDir = createSdkDirectory(fileSystem: fileSystem); config.setValue('android-sdk', sdkDir.path); processManager.addCommand( const FakeCommand( command: <String>[ '/.tmp_rand0/flutter_mock_android_sdk.rand0/cmdline-tools/latest/bin/sdkmanager', '--version', ], stdout: '26.1.1\n', ), ); final AndroidSdk sdk = AndroidSdk.locateAndroidSdk()!; expect(sdk.sdkManagerVersion, '26.1.1'); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => processManager, Config: () => config, Platform: () => FakePlatform(environment: <String, String>{}), }); testUsingContext('returns validate sdk is well formed', () { final Directory sdkDir = createBrokenSdkDirectory(fileSystem: fileSystem); processManager.addCommand(const FakeCommand(command: <String>[ '/.tmp_rand0/flutter_mock_android_sdk.rand0/cmdline-tools/latest/bin/sdkmanager', '--version', ])); config.setValue('android-sdk', sdkDir.path); final AndroidSdk sdk = AndroidSdk.locateAndroidSdk()!; final List<String> validationIssues = sdk.validateSdkWellFormed(); expect(validationIssues.first, 'No valid Android SDK platforms found in' ' /.tmp_rand0/flutter_mock_android_sdk.rand0/platforms. Candidates were:\n' ' - android-22\n' ' - android-23'); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => processManager, Config: () => config, Platform: () => FakePlatform(), }); testUsingContext('does not throw on sdkmanager version check failure', () { final Directory sdkDir = createSdkDirectory(fileSystem: fileSystem); config.setValue('android-sdk', sdkDir.path); processManager.addCommand( const FakeCommand( command: <String>[ '/.tmp_rand0/flutter_mock_android_sdk.rand0/cmdline-tools/latest/bin/sdkmanager', '--version', ], stdout: '\n', stderr: 'Mystery error', exitCode: 1, ), ); final AndroidSdk sdk = AndroidSdk.locateAndroidSdk()!; expect(sdk.sdkManagerVersion, isNull); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => processManager, Config: () => config, Platform: () => FakePlatform(environment: <String, String>{}), }); testUsingContext('throws on sdkmanager version check if sdkmanager not found', () { final Directory sdkDir = createSdkDirectory(withSdkManager: false, fileSystem: fileSystem); config.setValue('android-sdk', sdkDir.path); processManager.excludedExecutables.add('/.tmp_rand0/flutter_mock_android_sdk.rand0/cmdline-tools/latest/bin/sdkmanager'); final AndroidSdk? sdk = AndroidSdk.locateAndroidSdk(); expect(() => sdk!.sdkManagerVersion, throwsToolExit()); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => processManager, Config: () => config, Platform: () => FakePlatform(), }); testUsingContext('returns avdmanager path under cmdline tools', () { final Directory sdkDir = createSdkDirectory(fileSystem: fileSystem); config.setValue('android-sdk', sdkDir.path); final AndroidSdk sdk = AndroidSdk.locateAndroidSdk()!; fileSystem.file( fileSystem.path.join(sdk.directory.path, 'cmdline-tools', 'latest', 'bin', 'avdmanager') ).createSync(recursive: true); expect(sdk.avdManagerPath, fileSystem.path.join(sdk.directory.path, 'cmdline-tools', 'latest', 'bin', 'avdmanager')); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => FakeProcessManager.any(), Platform: () => FakePlatform(), Config: () => config, }); testUsingContext('returns avdmanager path under cmdline tools on windows', () { final Directory sdkDir = createSdkDirectory(fileSystem: fileSystem); config.setValue('android-sdk', sdkDir.path); final AndroidSdk sdk = AndroidSdk.locateAndroidSdk()!; fileSystem.file( fileSystem.path.join(sdk.directory.path, 'cmdline-tools', 'latest', 'bin', 'avdmanager.bat') ).createSync(recursive: true); expect(sdk.avdManagerPath, fileSystem.path.join(sdk.directory.path, 'cmdline-tools', 'latest', 'bin', 'avdmanager.bat')); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => FakeProcessManager.any(), Platform: () => FakePlatform(operatingSystem: 'windows'), Config: () => config, }); testUsingContext("returns avdmanager path under tools if cmdline doesn't exist", () { final Directory sdkDir = createSdkDirectory(fileSystem: fileSystem); config.setValue('android-sdk', sdkDir.path); final AndroidSdk sdk = AndroidSdk.locateAndroidSdk()!; fileSystem.file( fileSystem.path.join(sdk.directory.path, 'tools', 'bin', 'avdmanager') ).createSync(recursive: true); expect(sdk.avdManagerPath, fileSystem.path.join(sdk.directory.path, 'tools', 'bin', 'avdmanager')); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => FakeProcessManager.any(), Platform: () => FakePlatform(), Config: () => config, }); testUsingContext("returns avdmanager path under tools if cmdline doesn't exist on windows", () { final Directory sdkDir = createSdkDirectory(fileSystem: fileSystem); config.setValue('android-sdk', sdkDir.path); final AndroidSdk sdk = AndroidSdk.locateAndroidSdk()!; fileSystem.file( fileSystem.path.join(sdk.directory.path, 'tools', 'bin', 'avdmanager.bat') ).createSync(recursive: true); expect(sdk.avdManagerPath, fileSystem.path.join(sdk.directory.path, 'tools', 'bin', 'avdmanager.bat')); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => FakeProcessManager.any(), Platform: () => FakePlatform(operatingSystem: 'windows'), Config: () => config, }); }); const Map<String, String> llvmHostDirectoryName = <String, String>{ 'macos': 'darwin-x86_64', 'linux': 'linux-x86_64', 'windows': 'windows-x86_64', }; for (final String operatingSystem in <String>['windows', 'linux', 'macos']) { final FileSystem fileSystem; final String extension; if (operatingSystem == 'windows') { fileSystem = MemoryFileSystem.test(style: FileSystemStyle.windows); extension = '.exe'; } else { fileSystem = MemoryFileSystem.test(); extension = ''; } testWithoutContext('ndk executables $operatingSystem', () { final Platform platform = FakePlatform(operatingSystem: operatingSystem); final Directory sdkDir = createSdkDirectory( fileSystem: fileSystem, platform: platform, ); config.setValue('android-sdk', sdkDir.path); final AndroidSdk sdk = AndroidSdk(sdkDir, fileSystem: fileSystem); late File clang; late File ar; late File ld; const List<String> versions = <String>['22.1.7171670', '24.0.8215888']; for (final String version in versions) { final Directory binDir = sdk.directory .childDirectory('ndk') .childDirectory(version) .childDirectory('toolchains') .childDirectory('llvm') .childDirectory('prebuilt') .childDirectory(llvmHostDirectoryName[operatingSystem]!) .childDirectory('bin') ..createSync(recursive: true); // Save the last version. clang = binDir.childFile('clang$extension')..createSync(); ar = binDir.childFile('llvm-ar$extension')..createSync(); ld = binDir.childFile('ld.lld$extension')..createSync(); } // Check the last NDK version is used. expect( sdk.getNdkClangPath(platform: platform, config: config), clang.path, ); expect( sdk.getNdkArPath(platform: platform, config: config), ar.path, ); expect( sdk.getNdkLdPath(platform: platform, config: config), ld.path, ); }); for (final String envVar in <String>[ kAndroidNdkHome, kAndroidNdkPath, kAndroidNdkRoot, ]) { final Directory ndkDir = fileSystem.systemTempDirectory .createTempSync('flutter_mock_android_ndk.'); testWithoutContext('ndk executables with $operatingSystem $envVar', () { final Platform platform = FakePlatform( operatingSystem: operatingSystem, environment: <String, String>{ envVar: ndkDir.path, }, ); final Directory sdkDir = createSdkDirectory(fileSystem: fileSystem, platform: platform); config.setValue('android-sdk', sdkDir.path); final Directory binDir = ndkDir .childDirectory('toolchains') .childDirectory('llvm') .childDirectory('prebuilt') .childDirectory(llvmHostDirectoryName[operatingSystem]!) .childDirectory('bin') ..createSync(recursive: true); final File clang = binDir.childFile('clang$extension')..createSync(); final File ar = binDir.childFile('llvm-ar$extension')..createSync(); final File ld = binDir.childFile('ld.lld$extension')..createSync(); final AndroidSdk sdk = AndroidSdk(sdkDir, fileSystem: fileSystem); expect( sdk.getNdkClangPath(platform: platform, config: config), clang.path, ); expect( sdk.getNdkArPath(platform: platform, config: config), ar.path, ); expect( sdk.getNdkLdPath(platform: platform, config: config), ld.path, ); }); } testWithoutContext('ndk executables with config override $operatingSystem', () { final Platform platform = FakePlatform(operatingSystem: operatingSystem); final Directory sdkDir = createSdkDirectory( fileSystem: fileSystem, platform: platform, ); final Directory ndkDir = fileSystem.systemTempDirectory .createTempSync('flutter_mock_android_ndk.'); config.setValue('android-sdk', sdkDir.path); config.setValue('android-ndk', ndkDir.path); final Directory binDir = ndkDir .childDirectory('toolchains') .childDirectory('llvm') .childDirectory('prebuilt') .childDirectory(llvmHostDirectoryName[operatingSystem]!) .childDirectory('bin') ..createSync(recursive: true); final File clang = binDir.childFile('clang$extension')..createSync(); final File ar = binDir.childFile('llvm-ar$extension')..createSync(); final File ld = binDir.childFile('ld.lld$extension')..createSync(); final AndroidSdk sdk = AndroidSdk(sdkDir, fileSystem: fileSystem); expect( sdk.getNdkClangPath(platform: platform, config: config), clang.path, ); expect( sdk.getNdkArPath(platform: platform, config: config), ar.path, ); expect( sdk.getNdkLdPath(platform: platform, config: config), ld.path, ); }); } } /// A broken SDK installation. Directory createBrokenSdkDirectory({ bool withAndroidN = false, bool withSdkManager = true, required FileSystem fileSystem, }) { final Directory dir = fileSystem.systemTempDirectory.createTempSync('flutter_mock_android_sdk.'); _createSdkFile(dir, 'licenses/dummy'); _createSdkFile(dir, 'platform-tools/adb'); _createSdkFile(dir, 'build-tools/sda/aapt'); _createSdkFile(dir, 'build-tools/af/aapt'); _createSdkFile(dir, 'build-tools/ljkasd/aapt'); _createSdkFile(dir, 'platforms/android-22/android.jar'); _createSdkFile(dir, 'platforms/android-23/android.jar'); return dir; } void _createSdkFile(Directory dir, String filePath, { String? contents }) { final File file = dir.childFile(filePath); file.createSync(recursive: true); if (contents != null) { file.writeAsStringSync(contents, flush: true); } } Directory createSdkDirectory({ bool withAndroidN = false, bool withSdkManager = true, bool withPlatformTools = true, bool withBuildTools = true, required FileSystem fileSystem, String buildProp = _buildProp, Platform? platform, }) { platform ??= globals.platform; final Directory dir = fileSystem.systemTempDirectory.createTempSync('flutter_mock_android_sdk.'); final String exe = platform.isWindows ? '.exe' : ''; final String bat = platform.isWindows ? '.bat' : ''; void createDir(Directory dir, String path) { final Directory directory = dir.fileSystem.directory(dir.fileSystem.path.join(dir.path, path)); directory.createSync(recursive: true); } createDir(dir, 'licenses'); if (withPlatformTools) { _createSdkFile(dir, 'platform-tools/adb$exe'); } if (withBuildTools) { _createSdkFile(dir, 'build-tools/19.1.0/aapt$exe'); _createSdkFile(dir, 'build-tools/22.0.1/aapt$exe'); _createSdkFile(dir, 'build-tools/23.0.2/aapt$exe'); if (withAndroidN) { _createSdkFile(dir, 'build-tools/24.0.0-preview/aapt$exe'); } } _createSdkFile(dir, 'platforms/android-22/android.jar'); _createSdkFile(dir, 'platforms/android-23/android.jar'); if (withAndroidN) { _createSdkFile(dir, 'platforms/android-N/android.jar'); _createSdkFile(dir, 'platforms/android-N/build.prop', contents: buildProp); } if (withSdkManager) { _createSdkFile(dir, 'cmdline-tools/latest/bin/sdkmanager$bat'); } return dir; } const String _buildProp = r''' ro.build.version.incremental=1624448 ro.build.version.sdk=24 ro.build.version.codename=REL ''';
flutter/packages/flutter_tools/test/general.shard/android/android_sdk_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/android/android_sdk_test.dart", "repo_id": "flutter", "token_count": 8384 }
828
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/memory.dart'; import 'package:file_testing/file_testing.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/io.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/base/os.dart'; import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/base/terminal.dart'; import 'package:flutter_tools/src/cache.dart'; import 'package:test/fake.dart'; import '../src/common.dart'; import '../src/fake_http_client.dart'; import '../src/fakes.dart'; final Platform testPlatform = FakePlatform(); void main() { testWithoutContext('ArtifactUpdater can download a zip archive', () async { final FakeOperatingSystemUtils operatingSystemUtils = FakeOperatingSystemUtils(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final BufferLogger logger = BufferLogger.test(); final ArtifactUpdater artifactUpdater = ArtifactUpdater( fileSystem: fileSystem, logger: logger, operatingSystemUtils: operatingSystemUtils, platform: testPlatform, httpClient: FakeHttpClient.any(), tempStorage: fileSystem.currentDirectory.childDirectory('temp') ..createSync(), allowedBaseUrls: <String>['http://test.zip'], ); await artifactUpdater.downloadZipArchive( 'test message', Uri.parse('http://test.zip'), fileSystem.currentDirectory.childDirectory('out'), ); expect(logger.statusText, contains('test message')); expect(fileSystem.file('out/test'), exists); }); testWithoutContext('ArtifactUpdater can download a zip archive and delete stale files', () async { final FakeOperatingSystemUtils operatingSystemUtils = FakeOperatingSystemUtils(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final BufferLogger logger = BufferLogger.test(); final ArtifactUpdater artifactUpdater = ArtifactUpdater( fileSystem: fileSystem, logger: logger, operatingSystemUtils: operatingSystemUtils, platform: testPlatform, httpClient: FakeHttpClient.any(), tempStorage: fileSystem.currentDirectory.childDirectory('temp') ..createSync(), allowedBaseUrls: <String>['http://test.zip'], ); // Unrelated file from another cache. fileSystem.file('out/bar').createSync(recursive: true); // Stale file from current cache. fileSystem.file('out/test/foo.txt').createSync(recursive: true); await artifactUpdater.downloadZipArchive( 'test message', Uri.parse('http://test.zip'), fileSystem.currentDirectory.childDirectory('out'), ); expect(logger.statusText, contains('test message')); expect(fileSystem.file('out/test'), exists); expect(fileSystem.file('out/bar'), exists); expect(fileSystem.file('out/test/foo.txt'), isNot(exists)); }); testWithoutContext('ArtifactUpdater will delete any denylisted files from the outputDirectory', () async { final FakeOperatingSystemUtils operatingSystemUtils = FakeOperatingSystemUtils(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final BufferLogger logger = BufferLogger.test(); final Directory tempStorage = fileSystem.currentDirectory.childDirectory('temp'); final String localZipPath = tempStorage.childFile('test.zip').path; File? desiredArtifact; File? entitlementsFile; File? nestedWithoutEntitlementsFile; operatingSystemUtils.unzipCallbacks[localZipPath] = (Directory outputDirectory) { desiredArtifact = outputDirectory.childFile('artifact.bin')..createSync(); entitlementsFile = outputDirectory.childFile('entitlements.txt')..createSync(); nestedWithoutEntitlementsFile = outputDirectory .childDirectory('dir') .childFile('without_entitlements.txt') ..createSync(recursive: true); }; final ArtifactUpdater artifactUpdater = ArtifactUpdater( fileSystem: fileSystem, logger: logger, operatingSystemUtils: operatingSystemUtils, platform: testPlatform, httpClient: FakeHttpClient.any(), tempStorage: tempStorage..createSync(), allowedBaseUrls: <String>['http://test.zip'], ); // entitlements file cached from before the tool had a denylist final File staleEntitlementsFile = fileSystem.file('out/path/to/entitlements.txt')..createSync(recursive: true); expect(staleEntitlementsFile, exists); await artifactUpdater.downloadZipArchive( 'test message', Uri.parse('http://test.zip'), fileSystem.currentDirectory.childDirectory('out'), ); expect(logger.statusText, contains('test message')); expect(desiredArtifact, exists); expect(entitlementsFile, isNot(exists)); expect(nestedWithoutEntitlementsFile, isNot(exists)); expect(staleEntitlementsFile, isNot(exists)); }); testWithoutContext('ArtifactUpdater will not validate the md5 hash if the ' 'x-goog-hash header is present but missing an md5 entry', () async { final FakeOperatingSystemUtils operatingSystemUtils = FakeOperatingSystemUtils(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final BufferLogger logger = BufferLogger.test(); final ArtifactUpdater artifactUpdater = ArtifactUpdater( fileSystem: fileSystem, logger: logger, operatingSystemUtils: operatingSystemUtils, platform: testPlatform, httpClient: FakeHttpClient.list(<FakeRequest>[ FakeRequest(Uri.parse('http://test.zip'), response: const FakeResponse( headers: <String, List<String>>{ 'x-goog-hash': <String>[], } )), ]), tempStorage: fileSystem.currentDirectory.childDirectory('temp') ..createSync(), allowedBaseUrls: <String>['http://test.zip'], ); await artifactUpdater.downloadZipArchive( 'test message', Uri.parse('http://test.zip'), fileSystem.currentDirectory.childDirectory('out'), ); expect(logger.statusText, contains('test message')); expect(fileSystem.file('out/test'), exists); }); testWithoutContext('ArtifactUpdater will validate the md5 hash if the ' 'x-goog-hash header is present', () async { final FakeOperatingSystemUtils operatingSystemUtils = FakeOperatingSystemUtils(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final BufferLogger logger = BufferLogger.test(); final ArtifactUpdater artifactUpdater = ArtifactUpdater( fileSystem: fileSystem, logger: logger, operatingSystemUtils: operatingSystemUtils, platform: testPlatform, httpClient: FakeHttpClient.list(<FakeRequest>[ FakeRequest(Uri.parse('http://test.zip'), response: const FakeResponse( body: <int>[0], headers: <String, List<String>>{ 'x-goog-hash': <String>[ 'foo-bar-baz', 'md5=k7iFrf4NoInN9jSQT9WfcQ==', ], } )), ]), tempStorage: fileSystem.currentDirectory.childDirectory('temp') ..createSync(), allowedBaseUrls: <String>['http://test.zip'], ); await artifactUpdater.downloadZipArchive( 'test message', Uri.parse('http://test.zip'), fileSystem.currentDirectory.childDirectory('out'), ); expect(logger.statusText, contains('test message')); expect(fileSystem.file('out/test'), exists); }); testWithoutContext('ArtifactUpdater will validate the md5 hash if the ' 'x-goog-hash header is present and throw if it does not match', () async { final FakeOperatingSystemUtils operatingSystemUtils = FakeOperatingSystemUtils(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final BufferLogger logger = BufferLogger.test(); final ArtifactUpdater artifactUpdater = ArtifactUpdater( fileSystem: fileSystem, logger: logger, operatingSystemUtils: operatingSystemUtils, platform: testPlatform, httpClient: FakeHttpClient.list(<FakeRequest>[ FakeRequest(Uri.parse('http://test.zip'), response: const FakeResponse( body: <int>[0], headers: <String, List<String>>{ 'x-goog-hash': <String>[ 'foo-bar-baz', 'md5=k7iFrf4SQT9WfcQ==', ], } )), FakeRequest(Uri.parse('http://test.zip'), response: const FakeResponse( headers: <String, List<String>>{ 'x-goog-hash': <String>[ 'foo-bar-baz', 'md5=k7iFrf4SQT9WfcQ==', ], } )), ]), tempStorage: fileSystem.currentDirectory.childDirectory('temp') ..createSync(), allowedBaseUrls: <String>['http://test.zip'], ); await expectLater(() async => artifactUpdater.downloadZipArchive( 'test message', Uri.parse('http://test.zip'), fileSystem.currentDirectory.childDirectory('out'), ), throwsToolExit(message: 'k7iFrf4SQT9WfcQ==')); // validate that the hash mismatch message is included. }); testWithoutContext('ArtifactUpdater will restart the status ticker if it needs to retry the download', () async { final FakeOperatingSystemUtils operatingSystemUtils = FakeOperatingSystemUtils(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final Logger logger = StdoutLogger( terminal: Terminal.test(supportsColor: true), stdio: FakeStdio(), outputPreferences: OutputPreferences.test(), ); final ArtifactUpdater artifactUpdater = ArtifactUpdater( fileSystem: fileSystem, logger: logger, operatingSystemUtils: operatingSystemUtils, platform: testPlatform, httpClient: FakeHttpClient.list(<FakeRequest>[ FakeRequest(Uri.parse('http://test.zip'), responseError: const HttpException('')), FakeRequest(Uri.parse('http://test.zip')), ]), tempStorage: fileSystem.currentDirectory.childDirectory('temp') ..createSync(), allowedBaseUrls: <String>['http://test.zip'], ); await artifactUpdater.downloadZipArchive( 'test message', Uri.parse('http://test.zip'), fileSystem.currentDirectory.childDirectory('out'), ); expect(fileSystem.file('out/test'), exists); }); testWithoutContext('ArtifactUpdater will re-attempt on a non-200 response', () async { final FakeOperatingSystemUtils operatingSystemUtils = FakeOperatingSystemUtils(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final BufferLogger logger = BufferLogger.test(); final ArtifactUpdater artifactUpdater = ArtifactUpdater( fileSystem: fileSystem, logger: logger, operatingSystemUtils: operatingSystemUtils, platform: testPlatform, httpClient: FakeHttpClient.list(<FakeRequest>[ FakeRequest(Uri.parse('http://test.zip'), response: const FakeResponse(statusCode: HttpStatus.preconditionFailed)), FakeRequest(Uri.parse('http://test.zip'), response: const FakeResponse(statusCode: HttpStatus.preconditionFailed)), ]), tempStorage: fileSystem.currentDirectory.childDirectory('temp') ..createSync(), allowedBaseUrls: <String>['http://test.zip'], ); await expectLater(() async => artifactUpdater.downloadZipArchive( 'test message', Uri.parse('http://test.zip'), fileSystem.currentDirectory.childDirectory('out'), ), throwsToolExit()); expect(logger.statusText, contains('test message')); expect(fileSystem.file('out/test'), isNot(exists)); }); testWithoutContext('ArtifactUpdater will tool exit on an ArgumentError from http client with base url override', () async { final FakeOperatingSystemUtils operatingSystemUtils = FakeOperatingSystemUtils(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final BufferLogger logger = BufferLogger.test(); final ArtifactUpdater artifactUpdater = ArtifactUpdater( fileSystem: fileSystem, logger: logger, operatingSystemUtils: operatingSystemUtils, platform: FakePlatform( environment: <String, String>{ 'FLUTTER_STORAGE_BASE_URL': 'foo-bar', }, ), httpClient: FakeHttpClient.list(<FakeRequest>[ FakeRequest(Uri.parse('http://foo-bar/test.zip'), responseError: ArgumentError()), ]), tempStorage: fileSystem.currentDirectory.childDirectory('temp') ..createSync(), allowedBaseUrls: <String>['http://foo-bar/test.zip'], ); await expectLater(() async => artifactUpdater.downloadZipArchive( 'test message', Uri.parse('http://foo-bar/test.zip'), fileSystem.currentDirectory.childDirectory('out'), ), throwsToolExit()); expect(logger.statusText, contains('test message')); expect(fileSystem.file('out/test'), isNot(exists)); }); testWithoutContext('ArtifactUpdater will rethrow on an ArgumentError from http client without base url override', () async { final FakeOperatingSystemUtils operatingSystemUtils = FakeOperatingSystemUtils(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final BufferLogger logger = BufferLogger.test(); final ArtifactUpdater artifactUpdater = ArtifactUpdater( fileSystem: fileSystem, logger: logger, operatingSystemUtils: operatingSystemUtils, platform: testPlatform, httpClient: FakeHttpClient.list(<FakeRequest>[ FakeRequest(Uri.parse('http://test.zip'), responseError: ArgumentError()), ]), tempStorage: fileSystem.currentDirectory.childDirectory('temp') ..createSync(), allowedBaseUrls: <String>['http://test.zip'], ); await expectLater(() async => artifactUpdater.downloadZipArchive( 'test message', Uri.parse('http://test.zip'), fileSystem.currentDirectory.childDirectory('out'), ), throwsArgumentError); expect(logger.statusText, contains('test message')); expect(fileSystem.file('out/test'), isNot(exists)); }); testWithoutContext('ArtifactUpdater will re-download a file if unzipping fails', () async { final FakeOperatingSystemUtils operatingSystemUtils = FakeOperatingSystemUtils(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final BufferLogger logger = BufferLogger.test(); final ArtifactUpdater artifactUpdater = ArtifactUpdater( fileSystem: fileSystem, logger: logger, operatingSystemUtils: operatingSystemUtils, platform: testPlatform, httpClient: FakeHttpClient.any(), tempStorage: fileSystem.currentDirectory.childDirectory('temp') ..createSync(), allowedBaseUrls: <String>['http://test.zip'], ); operatingSystemUtils.failures = 1; await artifactUpdater.downloadZipArchive( 'test message', Uri.parse('http://test.zip'), fileSystem.currentDirectory.childDirectory('out'), ); expect(logger.statusText, contains('test message')); expect(fileSystem.file('out/test'), exists); }); testWithoutContext('ArtifactUpdater will de-download a file if unzipping fails on windows', () async { final FakeOperatingSystemUtils operatingSystemUtils = FakeOperatingSystemUtils(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final BufferLogger logger = BufferLogger.test(); final ArtifactUpdater artifactUpdater = ArtifactUpdater( fileSystem: fileSystem, logger: logger, operatingSystemUtils: operatingSystemUtils, platform: testPlatform, httpClient: FakeHttpClient.any(), tempStorage: fileSystem.currentDirectory.childDirectory('temp') ..createSync(), allowedBaseUrls: <String>['http://test.zip'], ); operatingSystemUtils.failures = 1; await artifactUpdater.downloadZipArchive( 'test message', Uri.parse('http://test.zip'), fileSystem.currentDirectory.childDirectory('out'), ); expect(logger.statusText, contains('test message')); expect(fileSystem.file('out/test'), exists); }); testWithoutContext('ArtifactUpdater will bail with a tool exit if unzipping fails more than twice', () async { final FakeOperatingSystemUtils operatingSystemUtils = FakeOperatingSystemUtils(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final BufferLogger logger = BufferLogger.test(); final ArtifactUpdater artifactUpdater = ArtifactUpdater( fileSystem: fileSystem, logger: logger, operatingSystemUtils: operatingSystemUtils, platform: testPlatform, httpClient: FakeHttpClient.any(), tempStorage: fileSystem.currentDirectory.childDirectory('temp') ..createSync(), allowedBaseUrls: <String>['http://test.zip'], ); operatingSystemUtils.failures = 2; expect(artifactUpdater.downloadZipArchive( 'test message', Uri.parse('http://test.zip'), fileSystem.currentDirectory.childDirectory('out'), ), throwsToolExit()); expect(fileSystem.file('te,[/test'), isNot(exists)); expect(fileSystem.file('out/test'), isNot(exists)); }); testWithoutContext('ArtifactUpdater will bail if unzipping fails more than twice on Windows', () async { final FakeOperatingSystemUtils operatingSystemUtils = FakeOperatingSystemUtils(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final BufferLogger logger = BufferLogger.test(); final ArtifactUpdater artifactUpdater = ArtifactUpdater( fileSystem: fileSystem, logger: logger, operatingSystemUtils: operatingSystemUtils, platform: testPlatform, httpClient: FakeHttpClient.any(), tempStorage: fileSystem.currentDirectory.childDirectory('temp') ..createSync(), allowedBaseUrls: <String>['http://test.zip'], ); operatingSystemUtils.failures = 2; expect(artifactUpdater.downloadZipArchive( 'test message', Uri.parse('http://test.zip'), fileSystem.currentDirectory.childDirectory('out'), ), throwsToolExit()); expect(fileSystem.file('te,[/test'), isNot(exists)); expect(fileSystem.file('out/test'), isNot(exists)); }); testWithoutContext('ArtifactUpdater can download a tar archive', () async { final FakeOperatingSystemUtils operatingSystemUtils = FakeOperatingSystemUtils(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final BufferLogger logger = BufferLogger.test(); final ArtifactUpdater artifactUpdater = ArtifactUpdater( fileSystem: fileSystem, logger: logger, operatingSystemUtils: operatingSystemUtils, platform: testPlatform, httpClient: FakeHttpClient.any(), tempStorage: fileSystem.currentDirectory.childDirectory('temp') ..createSync(), allowedBaseUrls: <String>['http://test.zip'], ); await artifactUpdater.downloadZippedTarball( 'test message', Uri.parse('http://test.zip'), fileSystem.currentDirectory.childDirectory('out'), ); expect(fileSystem.file('out/test'), exists); }); testWithoutContext('ArtifactUpdater will delete downloaded files if they exist.', () async { final FakeOperatingSystemUtils operatingSystemUtils = FakeOperatingSystemUtils(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final BufferLogger logger = BufferLogger.test(); final ArtifactUpdater artifactUpdater = ArtifactUpdater( fileSystem: fileSystem, logger: logger, operatingSystemUtils: operatingSystemUtils, platform: testPlatform, httpClient: FakeHttpClient.any(), tempStorage: fileSystem.currentDirectory.childDirectory('temp') ..createSync(), allowedBaseUrls: <String>['http://test.zip'], ); artifactUpdater.downloadedFiles.addAll(<File>[ fileSystem.file('a/b/c/d')..createSync(recursive: true), fileSystem.file('d/e/f'), ]); artifactUpdater.removeDownloadedFiles(); expect(fileSystem.file('a/b/c/d'), isNot(exists)); expect(logger.errorText, isEmpty); }); testWithoutContext('ArtifactUpdater will tool exit if deleting the existing artifacts fails with 32 on windows', () async { const int kSharingViolation = 32; final FileExceptionHandler handler = FileExceptionHandler(); final FakeOperatingSystemUtils operatingSystemUtils = FakeOperatingSystemUtils(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(opHandle: handler.opHandle); final BufferLogger logger = BufferLogger.test(); final ArtifactUpdater artifactUpdater = ArtifactUpdater( fileSystem: fileSystem, logger: logger, operatingSystemUtils: operatingSystemUtils, platform: FakePlatform(operatingSystem: 'windows'), httpClient: FakeHttpClient.any(), tempStorage: fileSystem.currentDirectory.childDirectory('temp') ..createSync(), allowedBaseUrls: <String>['http://test.zip'], ); final Directory errorDirectory = fileSystem.currentDirectory .childDirectory('out') .childDirectory('test') ..createSync(recursive: true); handler.addError(errorDirectory, FileSystemOp.delete, const FileSystemException('', '', OSError('', kSharingViolation))); await expectLater(() async => artifactUpdater.downloadZippedTarball( 'test message', Uri.parse('http://test.zip'), fileSystem.currentDirectory.childDirectory('out'), ), throwsToolExit( message: 'Failed to delete /out/test because the local file/directory is in use by another process' )); expect(fileSystem.file('out/test'), isNot(exists)); }); } class FakeOperatingSystemUtils extends Fake implements OperatingSystemUtils { int failures = 0; /// A mapping of zip [file] paths to callbacks that receive the [targetDirectory]. /// /// Use this to have [unzip] generate an arbitrary set of [FileSystemEntity]s /// under [targetDirectory]. final Map<String, void Function(Directory)> unzipCallbacks = <String, void Function(Directory)>{}; @override void unzip(File file, Directory targetDirectory) { if (failures > 0) { failures -= 1; throw Exception(); } if (unzipCallbacks.containsKey(file.path)) { unzipCallbacks[file.path]!(targetDirectory); } else { targetDirectory.childFile(file.fileSystem.path.basenameWithoutExtension(file.path)) .createSync(); } } @override void unpack(File gzippedTarFile, Directory targetDirectory) { if (failures > 0) { failures -= 1; throw Exception(); } targetDirectory.childFile(gzippedTarFile.fileSystem.path.basenameWithoutExtension(gzippedTarFile.path)) .createSync(); } }
flutter/packages/flutter_tools/test/general.shard/artifact_updater_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/artifact_updater_test.dart", "repo_id": "flutter", "token_count": 7968 }
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 'dart:io' as io; // flutter_ignore: dart_io_import; import 'package:file/file.dart'; import 'package:file/memory.dart'; import 'package:file_testing/file_testing.dart'; import 'package:flutter_tools/src/base/common.dart'; import 'package:flutter_tools/src/base/error_handling_io.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/io.dart'; import 'package:flutter_tools/src/base/platform.dart'; import 'package:process/process.dart'; import 'package:test/fake.dart'; import '../../src/common.dart'; import '../../src/fake_process_manager.dart'; final Platform windowsPlatform = FakePlatform( operatingSystem: 'windows', environment: <String, String>{} ); final Platform linuxPlatform = FakePlatform( environment: <String, String>{} ); final Platform macOSPlatform = FakePlatform( operatingSystem: 'macos', environment: <String, String>{} ); void main() { testWithoutContext('deleteIfExists does not delete if file does not exist', () { final FileSystem fileSystem = MemoryFileSystem.test(); final File file = fileSystem.file('file'); expect(ErrorHandlingFileSystem.deleteIfExists(file), false); }); testWithoutContext('deleteIfExists deletes if file exists', () { final FileSystem fileSystem = MemoryFileSystem.test(); final File file = fileSystem.file('file')..createSync(); expect(ErrorHandlingFileSystem.deleteIfExists(file), true); }); testWithoutContext('create accepts exclusive argument', () { final FileSystem fileSystem = MemoryFileSystem.test(); expect(fileSystem.file('file').create(exclusive: true), isNotNull); }); testWithoutContext('deleteIfExists handles separate program deleting file', () { final File file = FakeExistsFile() ..error = const FileSystemException('', '', OSError('', 2)); expect(ErrorHandlingFileSystem.deleteIfExists(file), true); }); testWithoutContext('deleteIfExists throws tool exit if file exists on read-only volume', () { final FileExceptionHandler exceptionHandler = FileExceptionHandler(); final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: MemoryFileSystem.test(opHandle: exceptionHandler.opHandle), platform: linuxPlatform, ); final File file = fileSystem.file('file')..createSync(); exceptionHandler.addError( file, FileSystemOp.delete, FileSystemException('', file.path, const OSError('', 2)), ); expect(() => ErrorHandlingFileSystem.deleteIfExists(file), throwsToolExit()); }); testWithoutContext('deleteIfExists does not tool exit if file exists on read-only ' 'volume and it is run under noExitOnFailure', () { final FileExceptionHandler exceptionHandler = FileExceptionHandler(); final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: MemoryFileSystem.test(opHandle: exceptionHandler.opHandle), platform: linuxPlatform, ); final File file = fileSystem.file('file')..createSync(); exceptionHandler.addError( file, FileSystemOp.delete, FileSystemException('', file.path, const OSError('', 2)), ); expect(() { ErrorHandlingFileSystem.noExitOnFailure(() { ErrorHandlingFileSystem.deleteIfExists(file); }); }, throwsFileSystemException()); }); group('throws ToolExit on Windows', () { const int kDeviceFull = 112; const int kUserMappedSectionOpened = 1224; const int kUserPermissionDenied = 5; const int kFatalDeviceHardwareError = 483; const int kDeviceDoesNotExist = 433; late FileExceptionHandler exceptionHandler; setUp(() { exceptionHandler = FileExceptionHandler(); }); testWithoutContext('bypasses error handling when noExitOnFailure is used', () { final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: MemoryFileSystem.test(opHandle: exceptionHandler.opHandle), platform: windowsPlatform, ); final File file = fileSystem.file('file'); exceptionHandler.addError( file, FileSystemOp.write, FileSystemException('', file.path, const OSError('', kUserPermissionDenied)), ); final Matcher throwsNonToolExit = throwsA(isNot(isA<ToolExit>())); expect(() => ErrorHandlingFileSystem.noExitOnFailure( () => file.writeAsStringSync('')), throwsNonToolExit); // nesting does not unconditionally re-enable errors. expect(() { ErrorHandlingFileSystem.noExitOnFailure(() { ErrorHandlingFileSystem.noExitOnFailure(() { }); file.writeAsStringSync(''); }); }, throwsNonToolExit); // Check that state does not leak. expect(() => file.writeAsStringSync(''), throwsToolExit()); }); testWithoutContext('when access is denied', () async { final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: MemoryFileSystem.test(opHandle: exceptionHandler.opHandle), platform: windowsPlatform, ); final File file = fileSystem.file('file'); exceptionHandler.addError( file, FileSystemOp.write, FileSystemException('', file.path, const OSError('', kUserPermissionDenied)), ); exceptionHandler.addError( file, FileSystemOp.open, FileSystemException('', file.path, const OSError('', kUserPermissionDenied)), ); exceptionHandler.addError( file, FileSystemOp.create, FileSystemException('', file.path, const OSError('', kUserPermissionDenied)), ); const String expectedMessage = 'The flutter tool cannot access the file'; expect(() async => file.writeAsBytes(<int>[0]), throwsToolExit(message: expectedMessage)); expect(() async => file.writeAsString(''), throwsToolExit(message: expectedMessage)); expect(() => file.writeAsBytesSync(<int>[0]), throwsToolExit(message: expectedMessage)); expect(() => file.writeAsStringSync(''), throwsToolExit(message: expectedMessage)); expect(() => file.openSync(), throwsToolExit(message: expectedMessage)); expect(() => file.createSync(), throwsToolExit(message: expectedMessage)); }); testWithoutContext('when writing to a full device', () async { final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: MemoryFileSystem.test(opHandle: exceptionHandler.opHandle), platform: windowsPlatform, ); final File file = fileSystem.file('file'); exceptionHandler.addError( file, FileSystemOp.write, FileSystemException('', file.path, const OSError('', kDeviceFull)), ); const String expectedMessage = 'The target device is full'; expect(() async => file.writeAsBytes(<int>[0]), throwsToolExit(message: expectedMessage)); expect(() async => file.writeAsString(''), throwsToolExit(message: expectedMessage)); expect(() => file.writeAsBytesSync(<int>[0]), throwsToolExit(message: expectedMessage)); expect(() => file.writeAsStringSync(''), throwsToolExit(message: expectedMessage)); }); testWithoutContext('when the file is being used by another program', () async { final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: MemoryFileSystem.test(opHandle: exceptionHandler.opHandle), platform: windowsPlatform, ); final File file = fileSystem.file('file'); exceptionHandler.addError( file, FileSystemOp.write, FileSystemException('', file.path, const OSError('', kUserMappedSectionOpened)), ); const String expectedMessage = 'The file is being used by another program'; expect(() async => file.writeAsBytes(<int>[0]), throwsToolExit(message: expectedMessage)); expect(() async => file.writeAsString(''), throwsToolExit(message: expectedMessage)); expect(() => file.writeAsBytesSync(<int>[0]), throwsToolExit(message: expectedMessage)); expect(() => file.writeAsStringSync(''), throwsToolExit(message: expectedMessage)); }); testWithoutContext('when the device driver has a fatal error', () async { final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: MemoryFileSystem.test(opHandle: exceptionHandler.opHandle), platform: windowsPlatform, ); final File file = fileSystem.file('file'); exceptionHandler.addError( file, FileSystemOp.write, FileSystemException('', file.path, const OSError('', kFatalDeviceHardwareError)), ); exceptionHandler.addError( file, FileSystemOp.open, FileSystemException('', file.path, const OSError('', kFatalDeviceHardwareError)), ); exceptionHandler.addError( file, FileSystemOp.create, FileSystemException('', file.path, const OSError('', kFatalDeviceHardwareError)), ); const String expectedMessage = 'There is a problem with the device driver ' 'that this file or directory is stored on'; expect(() async => file.writeAsBytes(<int>[0]), throwsToolExit(message: expectedMessage)); expect(() async => file.writeAsString(''), throwsToolExit(message: expectedMessage)); expect(() => file.writeAsBytesSync(<int>[0]), throwsToolExit(message: expectedMessage)); expect(() => file.writeAsStringSync(''), throwsToolExit(message: expectedMessage)); expect(() => file.openSync(), throwsToolExit(message: expectedMessage)); expect(() => file.createSync(), throwsToolExit(message: expectedMessage)); }); testWithoutContext('when the device does not exist', () async { final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: MemoryFileSystem.test(opHandle: exceptionHandler.opHandle), platform: windowsPlatform, ); final File file = fileSystem.file('file'); exceptionHandler.addError( file, FileSystemOp.write, FileSystemException('', file.path, const OSError('', kDeviceDoesNotExist)), ); exceptionHandler.addError( file, FileSystemOp.open, FileSystemException('', file.path, const OSError('', kDeviceDoesNotExist)), ); exceptionHandler.addError( file, FileSystemOp.create, FileSystemException('', file.path, const OSError('', kDeviceDoesNotExist)), ); const String expectedMessage = 'The device was not found.'; expect(() async => file.writeAsBytes(<int>[0]), throwsToolExit(message: expectedMessage)); expect(() async => file.writeAsString(''), throwsToolExit(message: expectedMessage)); expect(() => file.writeAsBytesSync(<int>[0]), throwsToolExit(message: expectedMessage)); expect(() => file.writeAsStringSync(''), throwsToolExit(message: expectedMessage)); expect(() => file.openSync(), throwsToolExit(message: expectedMessage)); expect(() => file.createSync(), throwsToolExit(message: expectedMessage)); }); testWithoutContext('when creating a temporary dir on a full device', () async { final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: MemoryFileSystem.test(opHandle: exceptionHandler.opHandle), platform: windowsPlatform, ); final Directory directory = fileSystem.directory('directory') ..createSync(); exceptionHandler.addTempError( FileSystemOp.create, FileSystemException('', directory.path, const OSError('', kDeviceFull)), ); const String expectedMessage = 'The target device is full'; expect(() async => directory.createTemp('prefix'), throwsToolExit(message: expectedMessage)); expect(() => directory.createTempSync('prefix'), throwsToolExit(message: expectedMessage)); }); testWithoutContext('when creating a directory with permission issues', () async { final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: MemoryFileSystem.test(opHandle: exceptionHandler.opHandle), platform: windowsPlatform, ); final Directory directory = fileSystem.directory('directory'); exceptionHandler.addError( directory, FileSystemOp.create, FileSystemException('', directory.path, const OSError('', kUserPermissionDenied)), ); const String expectedMessage = 'Flutter failed to create a directory at'; expect(() => directory.createSync(recursive: true), throwsToolExit(message: expectedMessage)); }); testWithoutContext('when checking for directory existence with permission issues', () async { final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: MemoryFileSystem.test(opHandle: exceptionHandler.opHandle), platform: windowsPlatform, ); final Directory directory = fileSystem.directory('directory') ..createSync(); exceptionHandler.addError( directory, FileSystemOp.exists, FileSystemException('', directory.path, const OSError('', kDeviceFull)), ); const String expectedMessage = 'Flutter failed to check for directory existence at'; expect(() => directory.existsSync(), throwsToolExit(message: expectedMessage)); }); testWithoutContext('When reading from a file without permission', () { final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: MemoryFileSystem.test(opHandle: exceptionHandler.opHandle), platform: windowsPlatform, ); final File file = fileSystem.file('file'); exceptionHandler.addError( file, FileSystemOp.read, FileSystemException('', file.path, const OSError('', kUserPermissionDenied)), ); const String expectedMessage = 'Flutter failed to read a file at'; expect(() => file.readAsStringSync(), throwsToolExit(message: expectedMessage)); }); testWithoutContext('When reading from a file or directory without permission', () { final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: ThrowsOnCurrentDirectoryFileSystem(kUserPermissionDenied), platform: windowsPlatform, ); expect(() => fileSystem.currentDirectory, throwsToolExit(message: 'The flutter tool cannot access the file or directory')); }); }); group('throws ToolExit on Linux', () { const int eperm = 1; const int enospc = 28; const int eacces = 13; late FileExceptionHandler exceptionHandler; setUp(() { exceptionHandler = FileExceptionHandler(); }); testWithoutContext('when access is denied', () async { final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: MemoryFileSystem.test(opHandle: exceptionHandler.opHandle), platform: linuxPlatform, ); final Directory directory = fileSystem.directory('dir')..createSync(); final File file = directory.childFile('file'); exceptionHandler.addError( file, FileSystemOp.create, FileSystemException('', file.path, const OSError('', eacces)), ); exceptionHandler.addError( file, FileSystemOp.write, FileSystemException('', file.path, const OSError('', eacces)), ); exceptionHandler.addError( file, FileSystemOp.read, FileSystemException('', file.path, const OSError('', eacces)), ); exceptionHandler.addError( file, FileSystemOp.delete, FileSystemException('', file.path, const OSError('', eacces)), ); const String writeMessage = 'Flutter failed to write to a file at "dir/file".\n' 'Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.\n' 'Try running:\n' r' sudo chown -R $(whoami) /dir/file'; expect(() async => file.writeAsBytes(<int>[0]), throwsToolExit(message: writeMessage)); expect(() async => file.writeAsString(''), throwsToolExit(message: writeMessage)); expect(() => file.writeAsBytesSync(<int>[0]), throwsToolExit(message: writeMessage)); expect(() => file.writeAsStringSync(''), throwsToolExit(message: writeMessage)); const String createMessage = 'Flutter failed to create file at "dir/file".\n' 'Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.\n' 'Try running:\n' r' sudo chown -R $(whoami) /dir'; expect(() => file.createSync(), throwsToolExit(message: createMessage)); // Recursive does not contain the "sudo chown" suggestion. expect(() async => file.createSync(recursive: true), throwsA(isA<ToolExit>().having((ToolExit e) => e.message, 'message', isNot(contains('sudo chown'))))); const String readMessage = 'Flutter failed to read a file at "dir/file".\n' 'Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.\n' 'Try running:\n' r' sudo chown -R $(whoami) /dir/file'; expect(() => file.readAsStringSync(), throwsToolExit(message: readMessage)); }); testWithoutContext('when access is denied for directories', () async { final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: MemoryFileSystem.test(opHandle: exceptionHandler.opHandle), platform: linuxPlatform, ); final Directory parent = fileSystem.directory('parent')..createSync(); final Directory directory = parent.childDirectory('childDir'); exceptionHandler.addError( directory, FileSystemOp.create, FileSystemException('', directory.path, const OSError('', eperm)), ); exceptionHandler.addError( directory, FileSystemOp.delete, FileSystemException('', directory.path, const OSError('', eperm)), ); const String createMessage = 'Flutter failed to create a directory at "parent/childDir".\n' 'Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.\n' 'Try running:\n' r' sudo chown -R $(whoami) /parent'; expect(() async => directory.create(), throwsToolExit(message: createMessage)); expect(() => directory.createSync(), throwsToolExit(message: createMessage)); // Recursive does not contain the "sudo chown" suggestion. expect(() async => directory.createSync(recursive: true), throwsA(isA<ToolExit>().having((ToolExit e) => e.message, 'message', isNot(contains('sudo chown'))))); const String deleteMessage = 'Flutter failed to delete a directory at "parent/childDir".\n' 'Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.\n' 'Try running:\n' r' sudo chown -R $(whoami) /parent'; expect(() => directory.deleteSync(), throwsToolExit(message: deleteMessage)); expect(() async => directory.delete(), throwsToolExit(message: deleteMessage)); // Recursive does not contain the "sudo chown" suggestion. expect(() async => directory.deleteSync(recursive: true), throwsA(isA<ToolExit>().having((ToolExit e) => e.message, 'message', isNot(contains('sudo chown'))))); }); testWithoutContext('when writing to a full device', () async { final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: MemoryFileSystem.test(opHandle: exceptionHandler.opHandle), platform: linuxPlatform, ); final File file = fileSystem.file('file'); exceptionHandler.addError( file, FileSystemOp.write, FileSystemException('', file.path, const OSError('', enospc)), ); const String expectedMessage = 'The target device is full'; expect(() async => file.writeAsBytes(<int>[0]), throwsToolExit(message: expectedMessage)); expect(() async => file.writeAsString(''), throwsToolExit(message: expectedMessage)); expect(() => file.writeAsBytesSync(<int>[0]), throwsToolExit(message: expectedMessage)); expect(() => file.writeAsStringSync(''), throwsToolExit(message: expectedMessage)); }); testWithoutContext('when creating a temporary dir on a full device', () async { final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: MemoryFileSystem.test(opHandle: exceptionHandler.opHandle), platform: linuxPlatform, ); final Directory directory = fileSystem.directory('directory') ..createSync(); exceptionHandler.addTempError( FileSystemOp.create, FileSystemException('', directory.path, const OSError('', enospc)), ); const String expectedMessage = 'The target device is full'; expect(() async => directory.createTemp('prefix'), throwsToolExit(message: expectedMessage)); expect(() => directory.createTempSync('prefix'), throwsToolExit(message: expectedMessage)); }); testWithoutContext('when checking for directory existence with permission issues', () async { final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: MemoryFileSystem.test(opHandle: exceptionHandler.opHandle), platform: linuxPlatform, ); final Directory directory = fileSystem.directory('directory') ..createSync(); exceptionHandler.addError( directory, FileSystemOp.exists, FileSystemException('', directory.path, const OSError('', eacces)), ); const String expectedMessage = 'Flutter failed to check for directory existence at'; expect(() => directory.existsSync(), throwsToolExit(message: expectedMessage)); }); testWithoutContext('When the current working directory disappears', () async { final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: ThrowsOnCurrentDirectoryFileSystem(kSystemCannotFindFile), platform: linuxPlatform, ); expect(() => fileSystem.currentDirectory, throwsToolExit(message: 'Unable to read current working directory')); }); testWithoutContext('Rethrows os error $kSystemCannotFindFile', () { final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: MemoryFileSystem.test(opHandle: exceptionHandler.opHandle), platform: linuxPlatform, ); final File file = fileSystem.file('file'); exceptionHandler.addError( file, FileSystemOp.read, FileSystemException('', file.path, const OSError('', kSystemCannotFindFile)), ); // Error is not caught by other operations. expect(() => fileSystem.file('foo').readAsStringSync(), throwsFileSystemException(kSystemCannotFindFile)); }); }); group('throws ToolExit on macOS', () { const int eperm = 1; const int enospc = 28; const int eacces = 13; late FileExceptionHandler exceptionHandler; setUp(() { exceptionHandler = FileExceptionHandler(); }); testWithoutContext('when access is denied', () async { final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: MemoryFileSystem.test(opHandle: exceptionHandler.opHandle), platform: macOSPlatform, ); final Directory directory = fileSystem.directory('dir')..createSync(); final File file = directory.childFile('file'); exceptionHandler.addError( file, FileSystemOp.create, FileSystemException('', file.path, const OSError('', eacces)), ); exceptionHandler.addError( file, FileSystemOp.write, FileSystemException('', file.path, const OSError('', eacces)), ); exceptionHandler.addError( file, FileSystemOp.read, FileSystemException('', file.path, const OSError('', eacces)), ); exceptionHandler.addError( file, FileSystemOp.delete, FileSystemException('', file.path, const OSError('', eacces)), ); const String writeMessage = 'Flutter failed to write to a file at "dir/file".\n' 'Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.\n' 'Try running:\n' r' sudo chown -R $(whoami) /dir/file'; expect(() async => file.writeAsBytes(<int>[0]), throwsToolExit(message: writeMessage)); expect(() async => file.writeAsString(''), throwsToolExit(message: writeMessage)); expect(() => file.writeAsBytesSync(<int>[0]), throwsToolExit(message: writeMessage)); expect(() => file.writeAsStringSync(''), throwsToolExit(message: writeMessage)); const String createMessage = 'Flutter failed to create file at "dir/file".\n' 'Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.\n' 'Try running:\n' r' sudo chown -R $(whoami) /dir'; expect(() => file.createSync(), throwsToolExit(message: createMessage)); // Recursive does not contain the "sudo chown" suggestion. expect(() async => file.createSync(recursive: true), throwsA(isA<ToolExit>().having((ToolExit e) => e.message, 'message', isNot(contains('sudo chown'))))); const String readMessage = 'Flutter failed to read a file at "dir/file".\n' 'Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.\n' 'Try running:\n' r' sudo chown -R $(whoami) /dir/file'; expect(() => file.readAsStringSync(), throwsToolExit(message: readMessage)); }); testWithoutContext('when access is denied for directories', () async { final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: MemoryFileSystem.test(opHandle: exceptionHandler.opHandle), platform: macOSPlatform, ); final Directory parent = fileSystem.directory('parent')..createSync(); final Directory directory = parent.childDirectory('childDir'); exceptionHandler.addError( directory, FileSystemOp.create, FileSystemException('', directory.path, const OSError('', eperm)), ); exceptionHandler.addError( directory, FileSystemOp.delete, FileSystemException('', directory.path, const OSError('', eperm)), ); const String createMessage = 'Flutter failed to create a directory at "parent/childDir".\n' 'Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.\n' 'Try running:\n' r' sudo chown -R $(whoami) /parent'; expect(() async => directory.create(), throwsToolExit(message: createMessage)); expect(() => directory.createSync(), throwsToolExit(message: createMessage)); // Recursive does not contain the "sudo chown" suggestion. expect(() async => directory.createSync(recursive: true), throwsA(isA<ToolExit>().having((ToolExit e) => e.message, 'message', isNot(contains('sudo chown'))))); const String deleteMessage = 'Flutter failed to delete a directory at "parent/childDir".\n' 'Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.\n' 'Try running:\n' r' sudo chown -R $(whoami) /parent'; expect(() => directory.deleteSync(), throwsToolExit(message: deleteMessage)); expect(() async => directory.delete(), throwsToolExit(message: deleteMessage)); // Recursive does not contain the "sudo chown" suggestion. expect(() async => directory.deleteSync(recursive: true), throwsA(isA<ToolExit>().having((ToolExit e) => e.message, 'message', isNot(contains('sudo chown'))))); }); testWithoutContext('when writing to a full device', () async { final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: MemoryFileSystem.test(opHandle: exceptionHandler.opHandle), platform: macOSPlatform, ); final File file = fileSystem.file('file'); exceptionHandler.addError( file, FileSystemOp.write, FileSystemException('', file.path, const OSError('', enospc)), ); const String expectedMessage = 'The target device is full'; expect(() async => file.writeAsBytes(<int>[0]), throwsToolExit(message: expectedMessage)); expect(() async => file.writeAsString(''), throwsToolExit(message: expectedMessage)); expect(() => file.writeAsBytesSync(<int>[0]), throwsToolExit(message: expectedMessage)); expect(() => file.writeAsStringSync(''), throwsToolExit(message: expectedMessage)); }); testWithoutContext('when creating a temporary dir on a full device', () async { final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: MemoryFileSystem.test(opHandle: exceptionHandler.opHandle), platform: macOSPlatform, ); final Directory directory = fileSystem.directory('directory') ..createSync(); exceptionHandler.addTempError( FileSystemOp.create, FileSystemException('', directory.path, const OSError('', enospc)), ); const String expectedMessage = 'The target device is full'; expect(() async => directory.createTemp('prefix'), throwsToolExit(message: expectedMessage)); expect(() => directory.createTempSync('prefix'), throwsToolExit(message: expectedMessage)); }); testWithoutContext('when checking for directory existence with permission issues', () async { final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: MemoryFileSystem.test(opHandle: exceptionHandler.opHandle), platform: macOSPlatform, ); final Directory directory = fileSystem.directory('directory'); exceptionHandler.addError( directory, FileSystemOp.exists, FileSystemException('', directory.path, const OSError('', eacces)), ); const String expectedMessage = 'Flutter failed to check for directory existence at'; expect(() => directory.existsSync(), throwsToolExit(message: expectedMessage)); }); testWithoutContext('When reading from a file without permission', () { final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: MemoryFileSystem.test(opHandle: exceptionHandler.opHandle), platform: macOSPlatform, ); final File file = fileSystem.file('file'); exceptionHandler.addError( file, FileSystemOp.read, FileSystemException('', file.path, const OSError('', eacces)), ); const String expectedMessage = 'Flutter failed to read a file at'; expect(() => file.readAsStringSync(), throwsToolExit(message: expectedMessage)); }); testWithoutContext('When reading from current directory without permission', () { final ErrorHandlingFileSystem fileSystem = ErrorHandlingFileSystem( delegate: ThrowsOnCurrentDirectoryFileSystem(eacces), platform: linuxPlatform, ); expect(() => fileSystem.currentDirectory, throwsToolExit(message: 'The flutter tool cannot access the file or directory')); }); }); testWithoutContext('Caches path context correctly', () { final FakeFileSystem fileSystem = FakeFileSystem(); final FileSystem fs = ErrorHandlingFileSystem( delegate: fileSystem, platform: const LocalPlatform(), ); expect(identical(fs.path, fs.path), true); }); testWithoutContext('Clears cache when CWD changes', () { final FakeFileSystem fileSystem = FakeFileSystem(); final FileSystem fs = ErrorHandlingFileSystem( delegate: fileSystem, platform: const LocalPlatform(), ); final Object firstPath = fs.path; expect(firstPath, isNotNull); fs.currentDirectory = null; expect(identical(firstPath, fs.path), false); }); group('toString() gives toString() of delegate', () { testWithoutContext('ErrorHandlingFileSystem', () { final MemoryFileSystem delegate = MemoryFileSystem.test(); final FileSystem fs = ErrorHandlingFileSystem( delegate: delegate, platform: const LocalPlatform(), ); expect(delegate.toString(), isNotNull); expect(fs.toString(), delegate.toString()); }); testWithoutContext('ErrorHandlingFile', () { final MemoryFileSystem delegate = MemoryFileSystem.test(); final FileSystem fs = ErrorHandlingFileSystem( delegate: delegate, platform: const LocalPlatform(), ); final File file = delegate.file('file'); expect(file.toString(), isNotNull); expect(fs.file('file').toString(), file.toString()); }); testWithoutContext('ErrorHandlingDirectory', () { final MemoryFileSystem delegate = MemoryFileSystem.test(); final FileSystem fs = ErrorHandlingFileSystem( delegate: delegate, platform: const LocalPlatform(), ); final Directory directory = delegate.directory('directory')..createSync(); expect(fs.directory('directory').toString(), directory.toString()); delegate.currentDirectory = directory; expect(fs.currentDirectory.toString(), delegate.currentDirectory.toString()); expect(fs.currentDirectory, isA<ErrorHandlingDirectory>()); }); }); group('ProcessManager on windows throws tool exit', () { const int kDeviceFull = 112; const int kUserMappedSectionOpened = 1224; const int kUserPermissionDenied = 5; testWithoutContext('when PackageProcess throws an exception containing non-executable bits', () { final FakeProcessManager fakeProcessManager = FakeProcessManager.list(<FakeCommand>[ const FakeCommand(command: <String>['foo'], exception: ProcessPackageExecutableNotFoundException('', candidates: <String>['not-empty'])), const FakeCommand(command: <String>['foo'], exception: ProcessPackageExecutableNotFoundException('', candidates: <String>['not-empty'])), ]); final ProcessManager processManager = ErrorHandlingProcessManager( delegate: fakeProcessManager, platform: windowsPlatform, ); const String expectedMessage = 'The Flutter tool could not locate an executable with suitable permissions'; expect(() async => processManager.start(<String>['foo']), throwsToolExit(message: expectedMessage)); expect(() async => processManager.runSync(<String>['foo']), throwsToolExit(message: expectedMessage)); }); testWithoutContext('when PackageProcess throws an exception without containing non-executable bits', () { final FakeProcessManager fakeProcessManager = FakeProcessManager.list(<FakeCommand>[ const FakeCommand(command: <String>['foo'], exception: ProcessPackageExecutableNotFoundException('')), const FakeCommand(command: <String>['foo'], exception: ProcessPackageExecutableNotFoundException('')), ]); final ProcessManager processManager = ErrorHandlingProcessManager( delegate: fakeProcessManager, platform: windowsPlatform, ); // If there were no located executables treat this as a programming error and rethrow the original // exception. expect(() async => processManager.start(<String>['foo']), throwsProcessException()); expect(() async => processManager.runSync(<String>['foo']), throwsProcessException()); }); testWithoutContext('when the device is full', () { final FakeProcessManager fakeProcessManager = FakeProcessManager.list(<FakeCommand>[ const FakeCommand(command: <String>['foo'], exception: ProcessException('', <String>[], '', kDeviceFull)), const FakeCommand(command: <String>['foo'], exception: ProcessException('', <String>[], '', kDeviceFull)), const FakeCommand(command: <String>['foo'], exception: ProcessException('', <String>[], '', kDeviceFull)), ]); final ProcessManager processManager = ErrorHandlingProcessManager( delegate: fakeProcessManager, platform: windowsPlatform, ); const String expectedMessage = 'The target device is full'; expect(() async => processManager.start(<String>['foo']), throwsToolExit(message: expectedMessage)); expect(() async => processManager.run(<String>['foo']), throwsToolExit(message: expectedMessage)); expect(() => processManager.runSync(<String>['foo']), throwsToolExit(message: expectedMessage)); }); testWithoutContext('when the file is being used by another program', () { final FakeProcessManager fakeProcessManager = FakeProcessManager.list(<FakeCommand>[ const FakeCommand(command: <String>['foo'], exception: ProcessException('', <String>[], '', kUserMappedSectionOpened)), const FakeCommand(command: <String>['foo'], exception: ProcessException('', <String>[], '', kUserMappedSectionOpened)), const FakeCommand(command: <String>['foo'], exception: ProcessException('', <String>[], '', kUserMappedSectionOpened)), ]); final ProcessManager processManager = ErrorHandlingProcessManager( delegate: fakeProcessManager, platform: windowsPlatform, ); const String expectedMessage = 'The file is being used by another program'; expect(() async => processManager.start(<String>['foo']), throwsToolExit(message: expectedMessage)); expect(() async => processManager.run(<String>['foo']), throwsToolExit(message: expectedMessage)); expect(() => processManager.runSync(<String>['foo']), throwsToolExit(message: expectedMessage)); }); testWithoutContext('when permissions are denied', () { final FakeProcessManager fakeProcessManager = FakeProcessManager.list(<FakeCommand>[ const FakeCommand(command: <String>['foo'], exception: ProcessException('', <String>[], '', kUserPermissionDenied)), const FakeCommand(command: <String>['foo'], exception: ProcessException('', <String>[], '', kUserPermissionDenied)), const FakeCommand(command: <String>['foo'], exception: ProcessException('', <String>[], '', kUserPermissionDenied)), ]); final ProcessManager processManager = ErrorHandlingProcessManager( delegate: fakeProcessManager, platform: windowsPlatform, ); const String expectedMessage = 'Flutter failed to run "foo". The flutter tool cannot access the file or directory.\n' 'Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.'; expect(() async => processManager.start(<String>['foo']), throwsToolExit(message: expectedMessage)); expect(() async => processManager.run(<String>['foo']), throwsToolExit(message: expectedMessage)); expect(() => processManager.runSync(<String>['foo']), throwsToolExit(message: expectedMessage)); }); testWithoutContext('when cannot run executable', () { final ThrowingFakeProcessManager throwingFakeProcessManager = ThrowingFakeProcessManager(const ProcessException('', <String>[], '', kUserPermissionDenied)); final ProcessManager processManager = ErrorHandlingProcessManager( delegate: throwingFakeProcessManager, platform: windowsPlatform, ); const String expectedMessage = r'Flutter failed to run "C:\path\to\dart". The flutter tool cannot access the file or directory.'; expect(() async => processManager.canRun(r'C:\path\to\dart'), throwsToolExit(message: expectedMessage)); }); }); group('ProcessManager on linux throws tool exit', () { const int enospc = 28; const int eacces = 13; testWithoutContext('when writing to a full device', () { final FakeProcessManager fakeProcessManager = FakeProcessManager.list(<FakeCommand>[ const FakeCommand(command: <String>['foo'], exception: ProcessException('', <String>[], '', enospc)), const FakeCommand(command: <String>['foo'], exception: ProcessException('', <String>[], '', enospc)), const FakeCommand(command: <String>['foo'], exception: ProcessException('', <String>[], '', enospc)), ]); final ProcessManager processManager = ErrorHandlingProcessManager( delegate: fakeProcessManager, platform: linuxPlatform, ); const String expectedMessage = 'The target device is full'; expect(() async => processManager.start(<String>['foo']), throwsToolExit(message: expectedMessage)); expect(() async => processManager.run(<String>['foo']), throwsToolExit(message: expectedMessage)); expect(() => processManager.runSync(<String>['foo']), throwsToolExit(message: expectedMessage)); }); testWithoutContext('when permissions are denied', () { final FakeProcessManager fakeProcessManager = FakeProcessManager.list(<FakeCommand>[ const FakeCommand(command: <String>['foo'], exception: ProcessException('', <String>[], '', eacces)), const FakeCommand(command: <String>['foo'], exception: ProcessException('', <String>[], '', eacces)), const FakeCommand(command: <String>['foo'], exception: ProcessException('', <String>[], '', eacces)), ]); final ProcessManager processManager = ErrorHandlingProcessManager( delegate: fakeProcessManager, platform: linuxPlatform, ); const String expectedMessage = 'Flutter failed to run "foo".\n' 'Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.'; expect(() async => processManager.start(<String>['foo']), throwsToolExit(message: expectedMessage)); expect(() async => processManager.run(<String>['foo']), throwsToolExit(message: expectedMessage)); expect(() => processManager.runSync(<String>['foo']), throwsToolExit(message: expectedMessage)); }); testWithoutContext('when cannot run executable', () { final ThrowingFakeProcessManager throwingFakeProcessManager = ThrowingFakeProcessManager(const ProcessException('', <String>[], '', eacces)); final ProcessManager processManager = ErrorHandlingProcessManager( delegate: throwingFakeProcessManager, platform: linuxPlatform, ); const String expectedMessage = 'Flutter failed to run "/path/to/dart".\n' 'Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.\n' 'Try running:\n' r' sudo chown -R $(whoami) /path/to/dart && chmod u+rx /path/to/dart'; expect(() async => processManager.canRun('/path/to/dart'), throwsToolExit(message: expectedMessage)); }); }); group('ProcessManager on macOS throws tool exit', () { const int enospc = 28; const int eacces = 13; const int ebadarch = 86; testWithoutContext('when writing to a full device', () { final FakeProcessManager fakeProcessManager = FakeProcessManager.list(<FakeCommand>[ const FakeCommand(command: <String>['foo'], exception: ProcessException('', <String>[], '', enospc)), const FakeCommand(command: <String>['foo'], exception: ProcessException('', <String>[], '', enospc)), const FakeCommand(command: <String>['foo'], exception: ProcessException('', <String>[], '', enospc)), ]); final ProcessManager processManager = ErrorHandlingProcessManager( delegate: fakeProcessManager, platform: macOSPlatform, ); const String expectedMessage = 'The target device is full'; expect(() async => processManager.start(<String>['foo']), throwsToolExit(message: expectedMessage)); expect(() async => processManager.run(<String>['foo']), throwsToolExit(message: expectedMessage)); expect(() => processManager.runSync(<String>['foo']), throwsToolExit(message: expectedMessage)); }); testWithoutContext('when permissions are denied', () { final FakeProcessManager fakeProcessManager = FakeProcessManager.list(<FakeCommand>[ const FakeCommand(command: <String>['foo'], exception: ProcessException('', <String>[], '', eacces)), const FakeCommand(command: <String>['foo'], exception: ProcessException('', <String>[], '', eacces)), const FakeCommand(command: <String>['foo'], exception: ProcessException('', <String>[], '', eacces)), ]); final ProcessManager processManager = ErrorHandlingProcessManager( delegate: fakeProcessManager, platform: macOSPlatform, ); const String expectedMessage = 'Flutter failed to run "foo".\n' 'Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.'; expect(() async => processManager.start(<String>['foo']), throwsToolExit(message: expectedMessage)); expect(() async => processManager.run(<String>['foo']), throwsToolExit(message: expectedMessage)); expect(() => processManager.runSync(<String>['foo']), throwsToolExit(message: expectedMessage)); }); testWithoutContext('when cannot run executable', () { final ThrowingFakeProcessManager throwingFakeProcessManager = ThrowingFakeProcessManager(const ProcessException('', <String>[], '', eacces)); final ProcessManager processManager = ErrorHandlingProcessManager( delegate: throwingFakeProcessManager, platform: macOSPlatform, ); const String expectedMessage = 'Flutter failed to run "/path/to/dart".\n' 'Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.\n' 'Try running:\n' r' sudo chown -R $(whoami) /path/to/dart && chmod u+rx /path/to/dart'; expect(() async => processManager.canRun('/path/to/dart'), throwsToolExit(message: expectedMessage)); }); testWithoutContext('when bad CPU type', () async { final FakeProcessManager fakeProcessManager = FakeProcessManager.list(<FakeCommand>[ const FakeCommand(command: <String>['foo', '--bar'], exception: ProcessException('', <String>[], '', ebadarch)), const FakeCommand(command: <String>['foo', '--bar'], exception: ProcessException('', <String>[], '', ebadarch)), const FakeCommand(command: <String>['foo', '--bar'], exception: ProcessException('', <String>[], '', ebadarch)), ]); final ProcessManager processManager = ErrorHandlingProcessManager( delegate: fakeProcessManager, platform: macOSPlatform, ); const String expectedMessage = 'Flutter failed to run "foo --bar".\n' 'The binary was built with the incorrect architecture to run on this machine.'; expect(() async => processManager.start(<String>['foo', '--bar']), throwsToolExit(message: expectedMessage)); expect(() async => processManager.run(<String>['foo', '--bar']), throwsToolExit(message: expectedMessage)); expect(() => processManager.runSync(<String>['foo', '--bar']), throwsToolExit(message: expectedMessage)); }); }); testWithoutContext('ErrorHandlingProcessManager delegates killPid correctly', () async { final FakeSignalProcessManager fakeProcessManager = FakeSignalProcessManager(); final ProcessManager processManager = ErrorHandlingProcessManager( delegate: fakeProcessManager, platform: linuxPlatform, ); expect(processManager.killPid(1), true); expect(processManager.killPid(3, io.ProcessSignal.sigkill), true); expect(fakeProcessManager.killedProcesses, <int, io.ProcessSignal>{ 1: io.ProcessSignal.sigterm, 3: io.ProcessSignal.sigkill, }); }); group('CopySync' , () { const int eaccess = 13; late FileExceptionHandler exceptionHandler; late ErrorHandlingFileSystem fileSystem; setUp(() { exceptionHandler = FileExceptionHandler(); fileSystem = ErrorHandlingFileSystem( delegate: MemoryFileSystem.test(opHandle: exceptionHandler.opHandle), platform: linuxPlatform, ); }); testWithoutContext('copySync handles error if openSync on source file fails', () { final File source = fileSystem.file('source'); exceptionHandler.addError( source, FileSystemOp.open, FileSystemException('', source.path, const OSError('', eaccess)), ); const String expectedMessage = 'Flutter failed to copy source to dest due to source location error.\n' 'Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.\n' 'Try running:\n' r' sudo chown -R $(whoami) /source'; expect(() => fileSystem.file('source').copySync('dest'), throwsToolExit(message: expectedMessage)); }); testWithoutContext('copySync handles error if createSync on destination file fails', () { fileSystem.file('source').createSync(); final File dest = fileSystem.file('dest'); exceptionHandler.addError( dest, FileSystemOp.create, FileSystemException('', dest.path, const OSError('', eaccess)), ); const String expectedMessage = 'Flutter failed to create file at "dest".\n' 'Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.'; expect(() => fileSystem.file('source').copySync('dest'), throwsToolExit(message: expectedMessage)); }); // dart:io is able to clobber read-only files. testWithoutContext('copySync will copySync even if the destination is not writable', () { fileSystem.file('source').createSync(); final File dest = fileSystem.file('dest'); exceptionHandler.addError( dest, FileSystemOp.open, FileSystemException('', dest.path, const OSError('', eaccess)), ); expect(dest, isNot(exists)); fileSystem.file('source').copySync('dest'); expect(dest, exists); }); testWithoutContext('copySync will copySync if there are no exceptions', () { fileSystem.file('source').createSync(); final File dest = fileSystem.file('dest'); expect(dest, isNot(exists)); fileSystem.file('source').copySync('dest'); expect(dest, exists); }); testWithoutContext('copySync can directly copy bytes if both files can be opened but copySync fails', () { final List<int> expectedBytes = List<int>.generate(64 * 1024 + 3, (int i) => i.isEven ? 0 : 1); fileSystem.file('source').writeAsBytesSync(expectedBytes); final File dest = fileSystem.file('dest'); exceptionHandler.addError( dest, FileSystemOp.copy, FileSystemException('', dest.path, const OSError('', eaccess)), ); fileSystem.file('source').copySync('dest'); expect(dest.readAsBytesSync(), expectedBytes); }); }); } class FakeSignalProcessManager extends Fake implements ProcessManager { final Map<int, io.ProcessSignal> killedProcesses = <int, io.ProcessSignal>{}; @override bool killPid(int pid, [io.ProcessSignal signal = io.ProcessSignal.sigterm]) { killedProcesses[pid] = signal; return true; } } class ThrowingFakeProcessManager extends Fake implements ProcessManager { ThrowingFakeProcessManager(Exception exception) : _exception = exception; final Exception _exception; @override bool canRun(dynamic executable, {String? workingDirectory}) { throw _exception; } } class ThrowsOnCurrentDirectoryFileSystem extends Fake implements FileSystem { ThrowsOnCurrentDirectoryFileSystem(this.errorCode); final int errorCode; @override Directory get currentDirectory => throw FileSystemException('', '', OSError('', errorCode)); } class FakeExistsFile extends Fake implements File { late Exception error; int existsCount = 0; @override bool existsSync() { if (existsCount == 0) { existsCount += 1; return true; } return false; } @override void deleteSync({bool recursive = false}) { throw error; } } class FakeFileSystem extends Fake implements FileSystem { @override Context get path => Context(); @override Directory get currentDirectory { throw UnimplementedError(); } @override set currentDirectory(dynamic path) { } }
flutter/packages/flutter_tools/test/general.shard/base/error_handling_io_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/base/error_handling_io_test.dart", "repo_id": "flutter", "token_count": 18806 }
830
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/memory.dart'; import 'package:flutter_tools/src/artifacts.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/build_info.dart'; import '../src/common.dart'; import '../src/context.dart'; void main() { late BufferLogger logger; setUp(() { logger = BufferLogger.test(); }); group('Validate build number', () { testWithoutContext('CFBundleVersion for iOS', () async { String? buildName = validatedBuildNumberForPlatform(TargetPlatform.ios, 'xyz', logger); expect(buildName, isNull); buildName = validatedBuildNumberForPlatform(TargetPlatform.ios, '0.0.1', logger); expect(buildName, '0.0.1'); buildName = validatedBuildNumberForPlatform(TargetPlatform.ios, '123.xyz', logger); expect(buildName, '123'); buildName = validatedBuildNumberForPlatform(TargetPlatform.ios, '123.456.xyz', logger); expect(buildName, '123.456'); }); testWithoutContext('versionCode for Android', () async { String? buildName = validatedBuildNumberForPlatform(TargetPlatform.android_arm, '123.abc+-', logger); expect(buildName, '123'); buildName = validatedBuildNumberForPlatform(TargetPlatform.android_arm, 'abc', logger); expect(buildName, '1'); }); }); group('Validate build name', () { testWithoutContext('CFBundleShortVersionString for iOS', () async { String? buildName = validatedBuildNameForPlatform(TargetPlatform.ios, 'xyz', logger); expect(buildName, isNull); buildName = validatedBuildNameForPlatform(TargetPlatform.ios, '0.0.1', logger); expect(buildName, '0.0.1'); buildName = validatedBuildNameForPlatform(TargetPlatform.ios, '123.456.xyz', logger); expect(logger.traceText, contains('Invalid build-name')); expect(buildName, '123.456.0'); buildName = validatedBuildNameForPlatform(TargetPlatform.ios, '123.xyz', logger); expect(buildName, '123.0.0'); }); testWithoutContext('versionName for Android', () async { String? buildName = validatedBuildNameForPlatform(TargetPlatform.android_arm, '123.abc+-', logger); expect(buildName, '123.abc+-'); buildName = validatedBuildNameForPlatform(TargetPlatform.android_arm, 'abc+-', logger); expect(buildName, 'abc+-'); }); testWithoutContext('build mode configuration is correct', () { expect(BuildMode.debug.isRelease, false); expect(BuildMode.debug.isPrecompiled, false); expect(BuildMode.debug.isJit, true); expect(BuildMode.profile.isRelease, false); expect(BuildMode.profile.isPrecompiled, true); expect(BuildMode.profile.isJit, false); expect(BuildMode.release.isRelease, true); expect(BuildMode.release.isPrecompiled, true); expect(BuildMode.release.isJit, false); expect(BuildMode.jitRelease.isRelease, true); expect(BuildMode.jitRelease.isPrecompiled, false); expect(BuildMode.jitRelease.isJit, true); expect(BuildMode.fromCliName('debug'), BuildMode.debug); expect(BuildMode.fromCliName('profile'), BuildMode.profile); expect(BuildMode.fromCliName('jit_release'), BuildMode.jitRelease); expect(BuildMode.fromCliName('release'), BuildMode.release); expect(() => BuildMode.fromCliName('foo'), throwsArgumentError); }); }); testWithoutContext('getDartNameForDarwinArch returns name used in Dart SDK', () { expect(DarwinArch.armv7.dartName, 'armv7'); expect(DarwinArch.arm64.dartName, 'arm64'); expect(DarwinArch.x86_64.dartName, 'x64'); }); testWithoutContext('getNameForDarwinArch returns Apple names', () { expect(DarwinArch.armv7.name, 'armv7'); expect(DarwinArch.arm64.name, 'arm64'); expect(DarwinArch.x86_64.name, 'x86_64'); }); testWithoutContext('getNameForTargetPlatform on Darwin arches', () { expect(getNameForTargetPlatform(TargetPlatform.ios, darwinArch: DarwinArch.arm64), 'ios-arm64'); expect(getNameForTargetPlatform(TargetPlatform.ios, darwinArch: DarwinArch.armv7), 'ios-armv7'); expect(getNameForTargetPlatform(TargetPlatform.ios, darwinArch: DarwinArch.x86_64), 'ios-x86_64'); expect(getNameForTargetPlatform(TargetPlatform.android), isNot(contains('ios'))); }); testUsingContext('defaultIOSArchsForEnvironment', () { expect(defaultIOSArchsForEnvironment( EnvironmentType.physical, Artifacts.testLocalEngine(localEngineHost: 'host_debug_unopt', localEngine: 'ios_debug_unopt'), ).single, DarwinArch.arm64); expect(defaultIOSArchsForEnvironment( EnvironmentType.simulator, Artifacts.testLocalEngine(localEngineHost: 'host_debug_unopt', localEngine: 'ios_debug_sim_unopt'), ).single, DarwinArch.x86_64); expect(defaultIOSArchsForEnvironment( EnvironmentType.simulator, Artifacts.testLocalEngine(localEngineHost: 'host_debug_unopt', localEngine: 'ios_debug_sim_unopt_arm64'), ).single, DarwinArch.arm64); expect(defaultIOSArchsForEnvironment( EnvironmentType.physical, Artifacts.test(), ).single, DarwinArch.arm64); expect(defaultIOSArchsForEnvironment( EnvironmentType.simulator, Artifacts.test(), ), <DarwinArch>[ DarwinArch.x86_64, DarwinArch.arm64 ]); }, overrides: <Type, Generator>{ FileSystem: () => MemoryFileSystem.test(), ProcessManager: () => FakeProcessManager.any(), }); testUsingContext('defaultMacOSArchsForEnvironment', () { expect(defaultMacOSArchsForEnvironment( Artifacts.testLocalEngine(localEngineHost: 'host_debug_unopt', localEngine: 'host_debug_unopt'), ).single, DarwinArch.x86_64); expect(defaultMacOSArchsForEnvironment( Artifacts.testLocalEngine(localEngineHost: 'host_debug_unopt', localEngine: 'host_debug_unopt_arm64'), ).single, DarwinArch.arm64); expect(defaultMacOSArchsForEnvironment( Artifacts.test(), ), <DarwinArch>[ DarwinArch.x86_64, DarwinArch.arm64 ]); }, overrides: <Type, Generator>{ FileSystem: () => MemoryFileSystem.test(), ProcessManager: () => FakeProcessManager.any(), }); testWithoutContext('getIOSArchForName on Darwin arches', () { expect(getIOSArchForName('armv7'), DarwinArch.armv7); expect(getIOSArchForName('arm64'), DarwinArch.arm64); expect(getIOSArchForName('arm64e'), DarwinArch.arm64); expect(getIOSArchForName('x86_64'), DarwinArch.x86_64); expect(() => getIOSArchForName('bogus'), throwsException); }); testWithoutContext('named BuildInfo has correct defaults', () { expect(BuildInfo.debug.mode, BuildMode.debug); expect(BuildInfo.debug.trackWidgetCreation, true); expect(BuildInfo.profile.mode, BuildMode.profile); expect(BuildInfo.profile.trackWidgetCreation, false); expect(BuildInfo.release.mode, BuildMode.release); expect(BuildInfo.release.trackWidgetCreation, false); }); testWithoutContext('toBuildSystemEnvironment encoding of standard values', () { const BuildInfo buildInfo = BuildInfo(BuildMode.debug, '', treeShakeIcons: true, trackWidgetCreation: true, dartDefines: <String>['foo=2', 'bar=2'], dartObfuscation: true, splitDebugInfoPath: 'foo/', frontendServerStarterPath: 'foo/bar/frontend_server_starter.dart', extraFrontEndOptions: <String>['--enable-experiment=non-nullable', 'bar'], extraGenSnapshotOptions: <String>['--enable-experiment=non-nullable', 'fizz'], bundleSkSLPath: 'foo/bar/baz.sksl.json', packagesPath: 'foo/.dart_tool/package_config.json', codeSizeDirectory: 'foo/code-size', fileSystemRoots: <String>['test5', 'test6'], fileSystemScheme: 'scheme', buildName: '122', buildNumber: '22' ); expect(buildInfo.toBuildSystemEnvironment(), <String, String>{ 'BuildMode': 'debug', 'DartDefines': 'Zm9vPTI=,YmFyPTI=', 'DartObfuscation': 'true', 'FrontendServerStarterPath': 'foo/bar/frontend_server_starter.dart', 'ExtraFrontEndOptions': '--enable-experiment=non-nullable,bar', 'ExtraGenSnapshotOptions': '--enable-experiment=non-nullable,fizz', 'SplitDebugInfo': 'foo/', 'TrackWidgetCreation': 'true', 'TreeShakeIcons': 'true', 'BundleSkSLPath': 'foo/bar/baz.sksl.json', 'CodeSizeDirectory': 'foo/code-size', 'FileSystemRoots': 'test5,test6', 'FileSystemScheme': 'scheme', 'BuildName': '122', 'BuildNumber': '22', }); }); testWithoutContext('toEnvironmentConfig encoding of standard values', () { const BuildInfo buildInfo = BuildInfo(BuildMode.debug, 'strawberry', treeShakeIcons: true, trackWidgetCreation: true, dartDefines: <String>['foo=2', 'bar=2'], dartObfuscation: true, splitDebugInfoPath: 'foo/', frontendServerStarterPath: 'foo/bar/frontend_server_starter.dart', extraFrontEndOptions: <String>['--enable-experiment=non-nullable', 'bar'], extraGenSnapshotOptions: <String>['--enable-experiment=non-nullable', 'fizz'], bundleSkSLPath: 'foo/bar/baz.sksl.json', packagesPath: 'foo/.dart_tool/package_config.json', codeSizeDirectory: 'foo/code-size', // These values are ignored by toEnvironmentConfig androidProjectArgs: <String>['foo=bar', 'fizz=bazz'], ); expect(buildInfo.toEnvironmentConfig(), <String, String>{ 'TREE_SHAKE_ICONS': 'true', 'TRACK_WIDGET_CREATION': 'true', 'DART_DEFINES': 'Zm9vPTI=,YmFyPTI=', 'DART_OBFUSCATION': 'true', 'SPLIT_DEBUG_INFO': 'foo/', 'FRONTEND_SERVER_STARTER_PATH': 'foo/bar/frontend_server_starter.dart', 'EXTRA_FRONT_END_OPTIONS': '--enable-experiment=non-nullable,bar', 'EXTRA_GEN_SNAPSHOT_OPTIONS': '--enable-experiment=non-nullable,fizz', 'BUNDLE_SKSL_PATH': 'foo/bar/baz.sksl.json', 'PACKAGE_CONFIG': 'foo/.dart_tool/package_config.json', 'CODE_SIZE_DIRECTORY': 'foo/code-size', 'FLAVOR': 'strawberry', }); }); testWithoutContext('toGradleConfig encoding of standard values', () { const BuildInfo buildInfo = BuildInfo(BuildMode.debug, '', treeShakeIcons: true, trackWidgetCreation: true, dartDefines: <String>['foo=2', 'bar=2'], dartObfuscation: true, splitDebugInfoPath: 'foo/', frontendServerStarterPath: 'foo/bar/frontend_server_starter.dart', extraFrontEndOptions: <String>['--enable-experiment=non-nullable', 'bar'], extraGenSnapshotOptions: <String>['--enable-experiment=non-nullable', 'fizz'], bundleSkSLPath: 'foo/bar/baz.sksl.json', packagesPath: 'foo/.dart_tool/package_config.json', codeSizeDirectory: 'foo/code-size', androidProjectArgs: <String>['foo=bar', 'fizz=bazz'] ); expect(buildInfo.toGradleConfig(), <String>[ '-Pdart-defines=Zm9vPTI=,YmFyPTI=', '-Pdart-obfuscation=true', '-Pfrontend-server-starter-path=foo/bar/frontend_server_starter.dart', '-Pextra-front-end-options=--enable-experiment=non-nullable,bar', '-Pextra-gen-snapshot-options=--enable-experiment=non-nullable,fizz', '-Psplit-debug-info=foo/', '-Ptrack-widget-creation=true', '-Ptree-shake-icons=true', '-Pbundle-sksl-path=foo/bar/baz.sksl.json', '-Pcode-size-directory=foo/code-size', '-Pfoo=bar', '-Pfizz=bazz', ]); }); testWithoutContext('encodeDartDefines encodes define values with base64 encoded components', () { expect(encodeDartDefines(<String>['"hello"']), 'ImhlbGxvIg=='); expect(encodeDartDefines(<String>['https://www.google.com']), 'aHR0cHM6Ly93d3cuZ29vZ2xlLmNvbQ=='); expect(encodeDartDefines(<String>['2,3,4', '5']), 'MiwzLDQ=,NQ=='); expect(encodeDartDefines(<String>['true', 'false', 'flase']), 'dHJ1ZQ==,ZmFsc2U=,Zmxhc2U='); expect(encodeDartDefines(<String>['1232,456', '2']), 'MTIzMiw0NTY=,Mg=='); }); testWithoutContext('decodeDartDefines decodes base64 encoded dart defines', () { expect(decodeDartDefines(<String, String>{ kDartDefines: 'ImhlbGxvIg==', }, kDartDefines), <String>['"hello"']); expect(decodeDartDefines(<String, String>{ kDartDefines: 'aHR0cHM6Ly93d3cuZ29vZ2xlLmNvbQ==', }, kDartDefines), <String>['https://www.google.com']); expect(decodeDartDefines(<String, String>{ kDartDefines: 'MiwzLDQ=,NQ==', }, kDartDefines), <String>['2,3,4', '5']); expect(decodeDartDefines(<String, String>{ kDartDefines: 'dHJ1ZQ==,ZmFsc2U=,Zmxhc2U=', }, kDartDefines), <String>['true', 'false', 'flase']); expect(decodeDartDefines(<String, String>{ kDartDefines: 'MTIzMiw0NTY=,Mg==', }, kDartDefines), <String>['1232,456', '2']); }); }
flutter/packages/flutter_tools/test/general.shard/build_info_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/build_info_test.dart", "repo_id": "flutter", "token_count": 5048 }
831
// 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:file_testing/file_testing.dart'; import 'package:flutter_tools/src/artifacts.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/build_info.dart'; import 'package:flutter_tools/src/build_system/build_system.dart'; import 'package:flutter_tools/src/build_system/targets/ios.dart'; import 'package:flutter_tools/src/convert.dart'; import 'package:flutter_tools/src/reporting/reporting.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'; final Platform macPlatform = FakePlatform(operatingSystem: 'macos', environment: <String, String>{}); const List<String> _kSharedConfig = <String>[ '-dynamiclib', '-miphoneos-version-min=12.0', '-Xlinker', '-rpath', '-Xlinker', '@executable_path/Frameworks', '-Xlinker', '-rpath', '-Xlinker', '@loader_path/Frameworks', '-fapplication-extension', '-install_name', '@rpath/App.framework/App', '-isysroot', 'path/to/iPhoneOS.sdk', ]; void main() { late Environment environment; late FileSystem fileSystem; late FakeProcessManager processManager; late Artifacts artifacts; late BufferLogger logger; late TestUsage usage; late FakeAnalytics fakeAnalytics; setUp(() { fileSystem = MemoryFileSystem.test(); processManager = FakeProcessManager.empty(); logger = BufferLogger.test(); artifacts = Artifacts.test(); usage = TestUsage(); fakeAnalytics = getInitializedFakeAnalyticsInstance( fs: fileSystem, fakeFlutterVersion: FakeFlutterVersion(), ); environment = Environment.test( fileSystem.currentDirectory, defines: <String, String>{ kTargetPlatform: 'ios', }, inputs: <String, String>{}, processManager: processManager, artifacts: artifacts, logger: logger, fileSystem: fileSystem, engineVersion: '2', usage: usage, analytics: fakeAnalytics, ); }); testWithoutContext('iOS AOT targets has analyticsName', () { expect(const AotAssemblyRelease().analyticsName, 'ios_aot'); expect(const AotAssemblyProfile().analyticsName, 'ios_aot'); }); testUsingContext('DebugUniversalFramework creates simulator binary', () async { environment.defines[kIosArchs] = 'x86_64'; environment.defines[kSdkRoot] = 'path/to/iPhoneSimulator.sdk'; final String appFrameworkPath = environment.buildDir.childDirectory('App.framework').childFile('App').path; processManager.addCommands(<FakeCommand>[ FakeCommand(command: <String>[ 'xcrun', 'clang', '-x', 'c', '-arch', 'x86_64', fileSystem.path.absolute(fileSystem.path.join( '.tmp_rand0', 'flutter_tools_stub_source.rand0', 'debug_app.cc')), '-dynamiclib', '-miphonesimulator-version-min=12.0', '-Xlinker', '-rpath', '-Xlinker', '@executable_path/Frameworks', '-Xlinker', '-rpath', '-Xlinker', '@loader_path/Frameworks', '-fapplication-extension', '-install_name', '@rpath/App.framework/App', '-isysroot', 'path/to/iPhoneSimulator.sdk', '-o', appFrameworkPath, ]), FakeCommand(command: <String>[ 'xattr', '-r', '-d', 'com.apple.FinderInfo', appFrameworkPath, ]), FakeCommand(command: <String>[ 'codesign', '--force', '--sign', '-', '--timestamp=none', appFrameworkPath, ]), ]); await const DebugUniversalFramework().build(environment); expect(processManager, hasNoRemainingExpectations); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => processManager, Platform: () => macPlatform, }); testUsingContext('DebugUniversalFramework creates expected binary with arm64 only arch', () async { environment.defines[kIosArchs] = 'arm64'; environment.defines[kSdkRoot] = 'path/to/iPhoneOS.sdk'; final String appFrameworkPath = environment.buildDir.childDirectory('App.framework').childFile('App').path; processManager.addCommands(<FakeCommand>[ FakeCommand(command: <String>[ 'xcrun', 'clang', '-x', 'c', // iphone only gets 64 bit arch based on kIosArchs '-arch', 'arm64', fileSystem.path.absolute(fileSystem.path.join( '.tmp_rand0', 'flutter_tools_stub_source.rand0', 'debug_app.cc')), ..._kSharedConfig, '-o', appFrameworkPath, ]), FakeCommand(command: <String>[ 'xattr', '-r', '-d', 'com.apple.FinderInfo', appFrameworkPath, ]), FakeCommand(command: <String>[ 'codesign', '--force', '--sign', '-', '--timestamp=none', appFrameworkPath, ]), ]); await const DebugUniversalFramework().build(environment); expect(processManager, hasNoRemainingExpectations); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => processManager, Platform: () => macPlatform, }); testUsingContext('DebugIosApplicationBundle', () async { environment.defines[kBundleSkSLPath] = 'bundle.sksl'; environment.defines[kBuildMode] = 'debug'; environment.defines[kCodesignIdentity] = 'ABC123'; // Precompiled dart data fileSystem.file(artifacts.getArtifactPath(Artifact.vmSnapshotData, mode: BuildMode.debug)) .createSync(); fileSystem.file(artifacts.getArtifactPath(Artifact.isolateSnapshotData, mode: BuildMode.debug)) .createSync(); // Project info fileSystem.file('pubspec.yaml').writeAsStringSync('name: hello'); fileSystem.file('.packages').writeAsStringSync('\n'); // Plist file fileSystem.file(fileSystem.path.join('ios', 'Flutter', 'AppFrameworkInfo.plist')) .createSync(recursive: true); // App kernel environment.buildDir.childFile('app.dill').createSync(recursive: true); // Stub framework environment.buildDir .childDirectory('App.framework') .childFile('App') .createSync(recursive: true); // sksl bundle fileSystem.file('bundle.sksl').writeAsStringSync(json.encode( <String, Object>{ 'engineRevision': '2', 'platform': 'ios', 'data': <String, Object>{ 'A': 'B', }, }, )); final Directory frameworkDirectory = environment.outputDir.childDirectory('App.framework'); final File frameworkDirectoryBinary = frameworkDirectory.childFile('App'); processManager.addCommands(<FakeCommand>[ FakeCommand(command: <String>[ 'xattr', '-r', '-d', 'com.apple.FinderInfo', frameworkDirectoryBinary.path, ]), FakeCommand(command: <String>[ 'codesign', '--force', '--sign', 'ABC123', '--timestamp=none', frameworkDirectoryBinary.path, ]), ]); await const DebugIosApplicationBundle().build(environment); expect(processManager, hasNoRemainingExpectations); expect(frameworkDirectoryBinary, exists); expect(frameworkDirectory.childFile('Info.plist'), exists); final Directory assetDirectory = frameworkDirectory.childDirectory('flutter_assets'); expect(assetDirectory.childFile('kernel_blob.bin'), exists); expect(assetDirectory.childFile('AssetManifest.json'), exists); expect(assetDirectory.childFile('vm_snapshot_data'), exists); expect(assetDirectory.childFile('isolate_snapshot_data'), exists); expect(assetDirectory.childFile('io.flutter.shaders.json'), exists); expect(assetDirectory.childFile('io.flutter.shaders.json').readAsStringSync(), '{"data":{"A":"B"}}'); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => processManager, Platform: () => macPlatform, }); testUsingContext('DebugIosApplicationBundle with impeller and shader compilation', () async { // Create impellerc to work around fallback detection logic. fileSystem.file(artifacts.getHostArtifact(HostArtifact.impellerc)).createSync(recursive: true); environment.defines[kBuildMode] = 'debug'; environment.defines[kCodesignIdentity] = 'ABC123'; // Precompiled dart data fileSystem.file(artifacts.getArtifactPath(Artifact.vmSnapshotData, mode: BuildMode.debug)) .createSync(); fileSystem.file(artifacts.getArtifactPath(Artifact.isolateSnapshotData, mode: BuildMode.debug)) .createSync(); // Project info fileSystem.file('pubspec.yaml').writeAsStringSync('name: hello\nflutter:\n shaders:\n - shader.glsl'); fileSystem.file('.packages').writeAsStringSync('\n'); // Plist file fileSystem.file(fileSystem.path.join('ios', 'Flutter', 'AppFrameworkInfo.plist')) .createSync(recursive: true); // Shader file fileSystem.file('shader.glsl').writeAsStringSync('test'); // App kernel environment.buildDir.childFile('app.dill').createSync(recursive: true); // Stub framework environment.buildDir .childDirectory('App.framework') .childFile('App') .createSync(recursive: true); final Directory frameworkDirectory = environment.outputDir.childDirectory('App.framework'); final File frameworkDirectoryBinary = frameworkDirectory.childFile('App'); processManager.addCommands(<FakeCommand>[ const FakeCommand(command: <String>[ 'HostArtifact.impellerc', '--sksl', '--runtime-stage-metal', '--iplr', '--sl=/App.framework/flutter_assets/shader.glsl', '--spirv=/App.framework/flutter_assets/shader.glsl.spirv', '--input=/shader.glsl', '--input-type=frag', '--include=/', '--include=/./shader_lib', ]), FakeCommand(command: <String>[ 'xattr', '-r', '-d', 'com.apple.FinderInfo', frameworkDirectoryBinary.path, ]), FakeCommand(command: <String>[ 'codesign', '--force', '--sign', 'ABC123', '--timestamp=none', frameworkDirectoryBinary.path, ]), ]); await const DebugIosApplicationBundle().build(environment); expect(processManager, hasNoRemainingExpectations); expect(frameworkDirectoryBinary, exists); expect(frameworkDirectory.childFile('Info.plist'), exists); final Directory assetDirectory = frameworkDirectory.childDirectory('flutter_assets'); expect(assetDirectory.childFile('kernel_blob.bin'), exists); expect(assetDirectory.childFile('AssetManifest.json'), exists); expect(assetDirectory.childFile('vm_snapshot_data'), exists); expect(assetDirectory.childFile('isolate_snapshot_data'), exists); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => processManager, Platform: () => macPlatform, }); testUsingContext('ReleaseIosApplicationBundle build', () async { environment.defines[kBuildMode] = 'release'; environment.defines[kCodesignIdentity] = 'ABC123'; environment.defines[kXcodeAction] = 'build'; // Project info fileSystem.file('pubspec.yaml').writeAsStringSync('name: hello'); fileSystem.file('.packages').writeAsStringSync('\n'); // Plist file fileSystem.file(fileSystem.path.join('ios', 'Flutter', 'AppFrameworkInfo.plist')) .createSync(recursive: true); // Real framework environment.buildDir .childDirectory('App.framework') .childFile('App') .createSync(recursive: true); // Input dSYM environment.buildDir .childDirectory('App.framework.dSYM') .childDirectory('Contents') .childDirectory('Resources') .childDirectory('DWARF') .childFile('App') .createSync(recursive: true); final Directory frameworkDirectory = environment.outputDir.childDirectory('App.framework'); final File frameworkDirectoryBinary = frameworkDirectory.childFile('App'); processManager.addCommands(<FakeCommand>[ FakeCommand(command: <String>[ 'xattr', '-r', '-d', 'com.apple.FinderInfo', frameworkDirectoryBinary.path, ]), FakeCommand(command: <String>[ 'codesign', '--force', '--sign', 'ABC123', frameworkDirectoryBinary.path, ]), ]); await const ReleaseIosApplicationBundle().build(environment); expect(processManager, hasNoRemainingExpectations); expect(frameworkDirectoryBinary, exists); expect(frameworkDirectory.childFile('Info.plist'), exists); expect(environment.outputDir .childDirectory('App.framework.dSYM') .childDirectory('Contents') .childDirectory('Resources') .childDirectory('DWARF') .childFile('App'), exists); final Directory assetDirectory = frameworkDirectory.childDirectory('flutter_assets'); expect(assetDirectory.childFile('kernel_blob.bin'), isNot(exists)); expect(assetDirectory.childFile('AssetManifest.json'), exists); expect(assetDirectory.childFile('vm_snapshot_data'), isNot(exists)); expect(assetDirectory.childFile('isolate_snapshot_data'), isNot(exists)); expect(usage.events, isEmpty); expect(fakeAnalytics.sentEvents, isEmpty); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => processManager, Platform: () => macPlatform, }); testUsingContext('ReleaseIosApplicationBundle sends archive success event', () async { environment.defines[kBuildMode] = 'release'; environment.defines[kXcodeAction] = 'install'; fileSystem.file(fileSystem.path.join('ios', 'Flutter', 'AppFrameworkInfo.plist')) .createSync(recursive: true); environment.buildDir .childDirectory('App.framework') .childFile('App') .createSync(recursive: true); final Directory frameworkDirectory = environment.outputDir.childDirectory('App.framework'); final File frameworkDirectoryBinary = frameworkDirectory.childFile('App'); processManager.addCommands(<FakeCommand>[ FakeCommand(command: <String>[ 'xattr', '-r', '-d', 'com.apple.FinderInfo', frameworkDirectoryBinary.path, ]), FakeCommand(command: <String>[ 'codesign', '--force', '--sign', '-', frameworkDirectoryBinary.path, ]), ]); await const ReleaseIosApplicationBundle().build(environment); expect(usage.events, contains(const TestUsageEvent('assemble', 'ios-archive', label: 'success'))); expect(fakeAnalytics.sentEvents, contains(Event.appleUsageEvent( workflow: 'assemble', parameter: 'ios-archive', result: 'success', ))); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => processManager, Platform: () => macPlatform, }); testUsingContext('ReleaseIosApplicationBundle sends archive fail event', () async { environment.defines[kBuildMode] = 'release'; environment.defines[kXcodeAction] = 'install'; // Throws because the project files are not set up. await expectLater(() => const ReleaseIosApplicationBundle().build(environment), throwsA(const TypeMatcher<FileSystemException>())); expect(usage.events, contains(const TestUsageEvent('assemble', 'ios-archive', label: 'fail'))); expect(fakeAnalytics.sentEvents, contains(Event.appleUsageEvent( workflow: 'assemble', parameter: 'ios-archive', result: 'fail', ))); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => processManager, Platform: () => macPlatform, }); testUsingContext('AotAssemblyRelease throws exception if asked to build for simulator', () async { final FileSystem fileSystem = MemoryFileSystem.test(); final Environment environment = Environment.test( fileSystem.currentDirectory, defines: <String, String>{ kTargetPlatform: 'ios', kSdkRoot: 'path/to/iPhoneSimulator.sdk', kBuildMode: 'release', kIosArchs: 'x86_64', }, processManager: processManager, artifacts: artifacts, logger: logger, fileSystem: fileSystem, ); expect(const AotAssemblyRelease().build(environment), throwsA(isException .having( (Exception exception) => exception.toString(), 'description', contains('release/profile builds are only supported for physical devices.'), ) )); expect(processManager, hasNoRemainingExpectations); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => processManager, Platform: () => macPlatform, }); testUsingContext('AotAssemblyRelease throws exception if sdk root is missing', () async { final FileSystem fileSystem = MemoryFileSystem.test(); final Environment environment = Environment.test( fileSystem.currentDirectory, defines: <String, String>{ kTargetPlatform: 'ios', }, processManager: processManager, artifacts: artifacts, logger: logger, fileSystem: fileSystem, ); environment.defines[kBuildMode] = 'release'; environment.defines[kIosArchs] = 'x86_64'; expect(const AotAssemblyRelease().build(environment), throwsA(isException.having( (Exception exception) => exception.toString(), 'description', contains('required define SdkRoot but it was not provided'), ))); expect(processManager, hasNoRemainingExpectations); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, ProcessManager: () => processManager, Platform: () => macPlatform, }); group('copies Flutter.framework', () { late Directory outputDir; late File binary; late FakeCommand copyPhysicalFrameworkCommand; late FakeCommand lipoCommandNonFatResult; late FakeCommand lipoVerifyArm64Command; late FakeCommand xattrCommand; late FakeCommand adHocCodesignCommand; setUp(() { final FileSystem fileSystem = MemoryFileSystem.test(); outputDir = fileSystem.directory('output'); binary = outputDir.childDirectory('Flutter.framework').childFile('Flutter'); copyPhysicalFrameworkCommand = FakeCommand(command: <String>[ 'rsync', '-av', '--delete', '--filter', '- .DS_Store/', 'Artifact.flutterFramework.TargetPlatform.ios.debug.EnvironmentType.physical', outputDir.path, ]); lipoCommandNonFatResult = FakeCommand(command: <String>[ 'lipo', '-info', binary.path, ], stdout: 'Non-fat file:'); lipoVerifyArm64Command = FakeCommand(command: <String>[ 'lipo', binary.path, '-verify_arch', 'arm64', ]); xattrCommand = FakeCommand(command: <String>[ 'xattr', '-r', '-d', 'com.apple.FinderInfo', binary.path, ]); adHocCodesignCommand = FakeCommand(command: <String>[ 'codesign', '--force', '--sign', '-', '--timestamp=none', binary.path, ]); }); testWithoutContext('iphonesimulator', () async { final Environment environment = Environment.test( fileSystem.currentDirectory, processManager: processManager, artifacts: artifacts, logger: logger, fileSystem: fileSystem, outputDir: outputDir, defines: <String, String>{ kIosArchs: 'x86_64', kSdkRoot: 'path/to/iPhoneSimulator.sdk', }, ); processManager.addCommands(<FakeCommand>[ FakeCommand(command: <String>[ 'rsync', '-av', '--delete', '--filter', '- .DS_Store/', 'Artifact.flutterFramework.TargetPlatform.ios.debug.EnvironmentType.simulator', outputDir.path, ], onRun: (_) => binary.createSync(recursive: true), ), lipoCommandNonFatResult, FakeCommand(command: <String>[ 'lipo', binary.path, '-verify_arch', 'x86_64', ]), xattrCommand, adHocCodesignCommand, ]); await const DebugUnpackIOS().build(environment); expect(logger.traceText, contains('Skipping lipo for non-fat file output/Flutter.framework/Flutter')); expect(processManager, hasNoRemainingExpectations); }); testWithoutContext('fails when frameworks missing', () async { final Environment environment = Environment.test( fileSystem.currentDirectory, processManager: processManager, artifacts: artifacts, logger: logger, fileSystem: fileSystem, outputDir: outputDir, defines: <String, String>{ kIosArchs: 'arm64', kSdkRoot: 'path/to/iPhoneOS.sdk', }, ); processManager.addCommand(copyPhysicalFrameworkCommand); await expectLater( const DebugUnpackIOS().build(environment), throwsA(isException.having( (Exception exception) => exception.toString(), 'description', contains('Flutter.framework/Flutter does not exist, cannot thin'), ))); }); testWithoutContext('fails when requested archs missing from framework', () async { binary.createSync(recursive: true); final Environment environment = Environment.test( fileSystem.currentDirectory, processManager: processManager, artifacts: artifacts, logger: logger, fileSystem: fileSystem, outputDir: outputDir, defines: <String, String>{ kIosArchs: 'arm64 armv7', kSdkRoot: 'path/to/iPhoneOS.sdk', }, ); processManager.addCommands(<FakeCommand>[ copyPhysicalFrameworkCommand, FakeCommand(command: <String>[ 'lipo', '-info', binary.path, ], stdout: 'Architectures in the fat file:'), FakeCommand(command: <String>[ 'lipo', binary.path, '-verify_arch', 'arm64', 'armv7', ], exitCode: 1), ]); await expectLater( const DebugUnpackIOS().build(environment), throwsA(isException.having( (Exception exception) => exception.toString(), 'description', contains('does not contain arm64 armv7. Running lipo -info:\nArchitectures in the fat file:'), )), ); }); testWithoutContext('fails when lipo extract fails', () async { binary.createSync(recursive: true); final Environment environment = Environment.test( fileSystem.currentDirectory, processManager: processManager, artifacts: artifacts, logger: logger, fileSystem: fileSystem, outputDir: outputDir, defines: <String, String>{ kIosArchs: 'arm64 armv7', kSdkRoot: 'path/to/iPhoneOS.sdk', }, ); processManager.addCommands(<FakeCommand>[ copyPhysicalFrameworkCommand, FakeCommand(command: <String>[ 'lipo', '-info', binary.path, ], stdout: 'Architectures in the fat file:'), FakeCommand(command: <String>[ 'lipo', binary.path, '-verify_arch', 'arm64', 'armv7', ]), FakeCommand(command: <String>[ 'lipo', '-output', binary.path, '-extract', 'arm64', '-extract', 'armv7', binary.path, ], exitCode: 1, stderr: 'lipo error'), ]); await expectLater( const DebugUnpackIOS().build(environment), throwsA(isException.having( (Exception exception) => exception.toString(), 'description', contains('Failed to extract arm64 armv7 for output/Flutter.framework/Flutter.\nlipo error\nRunning lipo -info:\nArchitectures in the fat file:'), )), ); }); testWithoutContext('skips thin framework', () async { binary.createSync(recursive: true); final Environment environment = Environment.test( fileSystem.currentDirectory, processManager: processManager, artifacts: artifacts, logger: logger, fileSystem: fileSystem, outputDir: outputDir, defines: <String, String>{ kIosArchs: 'arm64', kSdkRoot: 'path/to/iPhoneOS.sdk', }, ); processManager.addCommands(<FakeCommand>[ copyPhysicalFrameworkCommand, lipoCommandNonFatResult, lipoVerifyArm64Command, xattrCommand, adHocCodesignCommand, ]); await const DebugUnpackIOS().build(environment); expect(logger.traceText, contains('Skipping lipo for non-fat file output/Flutter.framework/Flutter')); expect(processManager, hasNoRemainingExpectations); }); testWithoutContext('thins fat framework', () async { binary.createSync(recursive: true); final Environment environment = Environment.test( fileSystem.currentDirectory, processManager: processManager, artifacts: artifacts, logger: logger, fileSystem: fileSystem, outputDir: outputDir, defines: <String, String>{ kIosArchs: 'arm64 armv7', kSdkRoot: 'path/to/iPhoneOS.sdk', }, ); processManager.addCommands(<FakeCommand>[ copyPhysicalFrameworkCommand, FakeCommand(command: <String>[ 'lipo', '-info', binary.path, ], stdout: 'Architectures in the fat file:'), FakeCommand(command: <String>[ 'lipo', binary.path, '-verify_arch', 'arm64', 'armv7', ]), FakeCommand(command: <String>[ 'lipo', '-output', binary.path, '-extract', 'arm64', '-extract', 'armv7', binary.path, ]), xattrCommand, adHocCodesignCommand, ]); await const DebugUnpackIOS().build(environment); expect(processManager, hasNoRemainingExpectations); }); testWithoutContext('strips framework', () async { binary.createSync(recursive: true); final Environment environment = Environment.test( fileSystem.currentDirectory, processManager: processManager, artifacts: artifacts, logger: logger, fileSystem: fileSystem, outputDir: outputDir, defines: <String, String>{ kIosArchs: 'arm64', kSdkRoot: 'path/to/iPhoneOS.sdk', }, ); processManager.addCommands(<FakeCommand>[ copyPhysicalFrameworkCommand, lipoCommandNonFatResult, lipoVerifyArm64Command, xattrCommand, adHocCodesignCommand, ]); await const DebugUnpackIOS().build(environment); expect(processManager, hasNoRemainingExpectations); }); testWithoutContext('fails when codesign fails', () async { binary.createSync(recursive: true); final Environment environment = Environment.test( fileSystem.currentDirectory, processManager: processManager, artifacts: artifacts, logger: logger, fileSystem: fileSystem, outputDir: outputDir, defines: <String, String>{ kIosArchs: 'arm64', kSdkRoot: 'path/to/iPhoneOS.sdk', kCodesignIdentity: 'ABC123', }, ); processManager.addCommands(<FakeCommand>[ copyPhysicalFrameworkCommand, lipoCommandNonFatResult, lipoVerifyArm64Command, xattrCommand, FakeCommand(command: <String>[ 'codesign', '--force', '--sign', 'ABC123', '--timestamp=none', binary.path, ], exitCode: 1, stderr: 'codesign error', stdout: 'codesign info', ), ]); await expectLater( const DebugUnpackIOS().build(environment), throwsA(isException.having( (Exception exception) => exception.toString(), 'description', contains('Failed to codesign output/Flutter.framework/Flutter with identity ABC123.\ncodesign info\ncodesign error'), )), ); expect(processManager, hasNoRemainingExpectations); }); testWithoutContext('codesigns framework', () async { binary.createSync(recursive: true); final Environment environment = Environment.test( fileSystem.currentDirectory, processManager: processManager, artifacts: artifacts, logger: logger, fileSystem: fileSystem, outputDir: outputDir, defines: <String, String>{ kIosArchs: 'arm64', kSdkRoot: 'path/to/iPhoneOS.sdk', kCodesignIdentity: 'ABC123', }, ); processManager.addCommands(<FakeCommand>[ copyPhysicalFrameworkCommand, lipoCommandNonFatResult, lipoVerifyArm64Command, xattrCommand, FakeCommand(command: <String>[ 'codesign', '--force', '--sign', 'ABC123', '--timestamp=none', binary.path, ]), ]); await const DebugUnpackIOS().build(environment); expect(processManager, hasNoRemainingExpectations); }); }); }
flutter/packages/flutter_tools/test/general.shard/build_system/targets/ios_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/build_system/targets/ios_test.dart", "repo_id": "flutter", "token_count": 12304 }
832
// 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/base/platform.dart'; import 'package:flutter_tools/src/base/user_messages.dart'; import 'package:flutter_tools/src/cache.dart'; import '../../src/common.dart'; void main() { testWithoutContext('Cache can initialize flutter root from environment variable', () { final String defaultFlutterRoot = Cache.defaultFlutterRoot( fileSystem: MemoryFileSystem.test(), userMessages: UserMessages(), platform: FakePlatform( environment: <String, String>{ 'FLUTTER_ROOT': 'path/to/flutter', }, ), ); expect(defaultFlutterRoot, '/path/to/flutter'); }); testWithoutContext('Cache can initialize flutter root data-scheme platform script', () { final FileSystem fileSystem = MemoryFileSystem.test(); // For data-uri, the root is initialized to ../.. and then normalized. Change the // current directory to verify this. final Directory directory = fileSystem.directory('foo/bar/baz/') ..createSync(recursive: true); fileSystem.currentDirectory = directory; final String defaultFlutterRoot = Cache.defaultFlutterRoot( fileSystem: fileSystem, userMessages: UserMessages(), platform: FakePlatform( environment: <String, String>{}, script: Uri.parse('data:,Hello%2C%20World!'), ) ); expect(defaultFlutterRoot, '/foo'); }); testWithoutContext('Cache can initialize flutter root package-scheme platform script', () { final FileSystem fileSystem = MemoryFileSystem.test(); final String defaultFlutterRoot = Cache.defaultFlutterRoot( fileSystem: fileSystem, userMessages: UserMessages(), platform: FakePlatform( environment: <String, String>{}, script: Uri.parse('package:flutter_tools/flutter_tools.dart'), packageConfig: 'flutter/packages/flutter_tools/.packages' ) ); expect(defaultFlutterRoot, '/flutter'); }); testWithoutContext('Cache can initialize flutter root from snapshot location', () { final FileSystem fileSystem = MemoryFileSystem.test(); final String defaultFlutterRoot = Cache.defaultFlutterRoot( fileSystem: fileSystem, userMessages: UserMessages(), platform: FakePlatform( environment: <String, String>{}, script: Uri.parse('file:///flutter/bin/cache/flutter_tools.snapshot'), ) ); expect(defaultFlutterRoot, '/flutter'); }); testWithoutContext('Cache can initialize flutter root from script file', () { final FileSystem fileSystem = MemoryFileSystem.test(); final String defaultFlutterRoot = Cache.defaultFlutterRoot( fileSystem: fileSystem, userMessages: UserMessages(), platform: FakePlatform( environment: <String, String>{}, script: Uri.parse('file:///flutter/packages/flutter_tools/bin/flutter_tools.dart'), ) ); expect(defaultFlutterRoot, '/flutter'); }); testWithoutContext('Cache will default to current directory if there are no matches', () { final FileSystem fileSystem = MemoryFileSystem.test(); final String defaultFlutterRoot = Cache.defaultFlutterRoot( fileSystem: fileSystem, userMessages: UserMessages(), platform: FakePlatform( environment: <String, String>{}, script: Uri.parse('http://foo.bar'), // does not match any heuristics. ) ); expect(defaultFlutterRoot, '/'); }); }
flutter/packages/flutter_tools/test/general.shard/commands/flutter_root_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/commands/flutter_root_test.dart", "repo_id": "flutter", "token_count": 1327 }
833
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'package:file/memory.dart'; import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/cache.dart'; import 'package:flutter_tools/src/debug_adapters/flutter_adapter_args.dart'; import 'package:flutter_tools/src/globals.dart' as globals show platform; import 'package:test/test.dart'; import 'mocks.dart'; void main() { // Use the real platform as a base so that Windows bots test paths. final FakePlatform platform = FakePlatform.fromPlatform(globals.platform); final FileSystemStyle fsStyle = platform.isWindows ? FileSystemStyle.windows : FileSystemStyle.posix; group('flutter test adapter', () { final String expectedFlutterExecutable = platform.isWindows ? r'C:\fake\flutter\bin\flutter.bat' : '/fake/flutter/bin/flutter'; setUpAll(() { Cache.flutterRoot = platform.isWindows ? r'C:\fake\flutter' : '/fake/flutter'; }); test('includes toolArgs', () async { final MockFlutterTestDebugAdapter adapter = MockFlutterTestDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, ); final Completer<void> responseCompleter = Completer<void>(); final MockRequest request = MockRequest(); final FlutterLaunchRequestArguments args = FlutterLaunchRequestArguments( cwd: '.', program: 'foo.dart', toolArgs: <String>['tool_arg'], noDebug: true, ); await adapter.configurationDoneRequest(request, null, () {}); await adapter.launchRequest(request, args, responseCompleter.complete); await responseCompleter.future; expect(adapter.executable, equals(expectedFlutterExecutable)); expect(adapter.processArgs, contains('tool_arg')); }); test('includes env variables', () async { final MockFlutterTestDebugAdapter adapter = MockFlutterTestDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, ); final Completer<void> responseCompleter = Completer<void>(); final MockRequest request = MockRequest(); final FlutterLaunchRequestArguments args = FlutterLaunchRequestArguments( cwd: '.', program: 'foo.dart', env: <String, String>{ 'MY_TEST_ENV': 'MY_TEST_VALUE', }, ); await adapter.configurationDoneRequest(request, null, () {}); await adapter.launchRequest(request, args, responseCompleter.complete); await responseCompleter.future; expect(adapter.env!['MY_TEST_ENV'], 'MY_TEST_VALUE'); }); group('includes customTool', () { test('with no args replaced', () async { final MockFlutterTestDebugAdapter adapter = MockFlutterTestDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, ); final Completer<void> responseCompleter = Completer<void>(); final MockRequest request = MockRequest(); final FlutterLaunchRequestArguments args = FlutterLaunchRequestArguments( cwd: '.', program: 'foo.dart', customTool: '/custom/flutter', noDebug: true, ); await adapter.configurationDoneRequest(request, null, () {}); await adapter.launchRequest(request, args, responseCompleter.complete); await responseCompleter.future; expect(adapter.executable, equals('/custom/flutter')); // args should be in-tact expect(adapter.processArgs, contains('--machine')); }); test('with all args replaced', () async { final MockFlutterTestDebugAdapter adapter = MockFlutterTestDebugAdapter( fileSystem: MemoryFileSystem.test(style: fsStyle), platform: platform, ); final Completer<void> responseCompleter = Completer<void>(); final MockRequest request = MockRequest(); final FlutterLaunchRequestArguments args = FlutterLaunchRequestArguments( cwd: '.', program: 'foo.dart', customTool: '/custom/flutter', customToolReplacesArgs: 9999, // replaces all built-in args noDebug: true, toolArgs: <String>['tool_args'], // should still be in args ); await adapter.configurationDoneRequest(request, null, () {}); await adapter.launchRequest(request, args, responseCompleter.complete); await responseCompleter.future; expect(adapter.executable, equals('/custom/flutter')); // normal built-in args are replaced by customToolReplacesArgs, but // user-provided toolArgs are not. expect(adapter.processArgs, isNot(contains('--machine'))); expect(adapter.processArgs, contains('tool_args')); }); }); }); }
flutter/packages/flutter_tools/test/general.shard/dap/flutter_test_adapter_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/dap/flutter_test_adapter_test.dart", "repo_id": "flutter", "token_count": 1876 }
834
// 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/logger.dart'; import 'package:flutter_tools/src/flutter_manifest.dart'; import '../src/common.dart'; void main() { group('parsing of assets section in flutter manifests', () { testWithoutContext('ignores empty list of assets', () { final BufferLogger logger = BufferLogger.test(); const String manifest = ''' name: test dependencies: flutter: sdk: flutter flutter: assets: [] '''; final FlutterManifest? flutterManifest = FlutterManifest.createFromString( manifest, logger: logger, ); expect(flutterManifest, isNotNull); expect(flutterManifest!.assets, isEmpty); }); testWithoutContext('parses two simple asset declarations', () async { final BufferLogger logger = BufferLogger.test(); const String manifest = ''' name: test dependencies: flutter: sdk: flutter flutter: uses-material-design: true assets: - a/foo - a/bar '''; final FlutterManifest flutterManifest = FlutterManifest.createFromString( manifest, logger: logger, )!; expect(flutterManifest.assets, <AssetsEntry>[ AssetsEntry(uri: Uri.parse('a/foo')), AssetsEntry(uri: Uri.parse('a/bar')), ]); }); testWithoutContext('does not crash on empty entry', () { final BufferLogger logger = BufferLogger.test(); const String manifest = ''' name: test dependencies: flutter: sdk: flutter flutter: uses-material-design: true assets: - lib/gallery/example_code.dart - '''; FlutterManifest.createFromString( manifest, logger: logger, ); expect(logger.errorText, contains('Asset manifest contains a null or empty uri.')); }); testWithoutContext('handles special characters in asset URIs', () { final BufferLogger logger = BufferLogger.test(); const String manifest = ''' name: test dependencies: flutter: sdk: flutter flutter: uses-material-design: true assets: - lib/gallery/abc#xyz - lib/gallery/abc?xyz - lib/gallery/aaa bbb '''; final FlutterManifest flutterManifest = FlutterManifest.createFromString( manifest, logger: logger, )!; final List<AssetsEntry> assets = flutterManifest.assets; expect(assets, <AssetsEntry>[ AssetsEntry(uri: Uri.parse('lib/gallery/abc%23xyz')), AssetsEntry(uri: Uri.parse('lib/gallery/abc%3Fxyz')), AssetsEntry(uri: Uri.parse('lib/gallery/aaa%20bbb')), ]); }); testWithoutContext('parses an asset with flavors', () async { final BufferLogger logger = BufferLogger.test(); const String manifest = ''' name: test dependencies: flutter: sdk: flutter flutter: uses-material-design: true assets: - path: a/foo flavors: - apple - strawberry '''; final FlutterManifest flutterManifest = FlutterManifest.createFromString( manifest, logger: logger, )!; expect(flutterManifest.assets, <AssetsEntry>[ AssetsEntry( uri: Uri.parse('a/foo'), flavors: const <String>{'apple', 'strawberry'}, ), ]); }); testWithoutContext("prints an error when an asset entry's flavor is not a string", () async { final BufferLogger logger = BufferLogger.test(); const String manifest = ''' name: test dependencies: flutter: sdk: flutter flutter: uses-material-design: true assets: - assets/folder/ - path: assets/vanilla/ flavors: - key1: value1 key2: value2 '''; FlutterManifest.createFromString(manifest, logger: logger); expect(logger.errorText, contains( 'Unable to parse assets section.\n' 'In flavors section of asset "assets/vanilla/": Expected flavors ' 'to be a list of String, but element at index 0 was a YamlMap.\n' )); }); }); }
flutter/packages/flutter_tools/test/general.shard/flutter_manifest_assets_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/flutter_manifest_assets_test.dart", "repo_id": "flutter", "token_count": 1608 }
835
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/memory.dart'; import 'package:flutter_tools/src/artifacts.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/io.dart'; import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/build_info.dart'; import 'package:flutter_tools/src/devfs.dart'; import 'package:flutter_tools/src/device.dart'; import 'package:flutter_tools/src/reporting/reporting.dart'; import 'package:flutter_tools/src/resident_devtools_handler.dart'; import 'package:flutter_tools/src/resident_runner.dart'; import 'package:flutter_tools/src/run_hot.dart'; import 'package:flutter_tools/src/vmservice.dart'; import 'package:unified_analytics/unified_analytics.dart'; import 'package:vm_service/vm_service.dart' as vm_service; import '../src/common.dart'; import '../src/context.dart'; import '../src/fakes.dart'; import 'hot_shared.dart'; void main() { group('validateReloadReport', () { testUsingContext('invalid', () async { expect(HotRunner.validateReloadReport(vm_service.ReloadReport.parse(<String, dynamic>{ 'type': 'ReloadReport', 'success': false, 'details': <String, dynamic>{}, })), false); expect(HotRunner.validateReloadReport(vm_service.ReloadReport.parse(<String, dynamic>{ 'type': 'ReloadReport', 'success': false, 'details': <String, dynamic>{ 'notices': <Map<String, dynamic>>[ ], }, })), false); expect(HotRunner.validateReloadReport(vm_service.ReloadReport.parse(<String, dynamic>{ 'type': 'ReloadReport', 'success': false, 'details': <String, dynamic>{ 'notices': <String, dynamic>{ 'message': 'error', }, }, })), false); expect(HotRunner.validateReloadReport(vm_service.ReloadReport.parse(<String, dynamic>{ 'type': 'ReloadReport', 'success': false, 'details': <String, dynamic>{ 'notices': <Map<String, dynamic>>[], }, })), false); expect(HotRunner.validateReloadReport(vm_service.ReloadReport.parse(<String, dynamic>{ 'type': 'ReloadReport', 'success': false, 'details': <String, dynamic>{ 'notices': <Map<String, dynamic>>[ <String, dynamic>{'message': false}, ], }, })), false); expect(HotRunner.validateReloadReport(vm_service.ReloadReport.parse(<String, dynamic>{ 'type': 'ReloadReport', 'success': false, 'details': <String, dynamic>{ 'notices': <Map<String, dynamic>>[ <String, dynamic>{'message': <String>['error']}, ], }, })), false); expect(HotRunner.validateReloadReport(vm_service.ReloadReport.parse(<String, dynamic>{ 'type': 'ReloadReport', 'success': false, 'details': <String, dynamic>{ 'notices': <Map<String, dynamic>>[ <String, dynamic>{'message': 'error'}, <String, dynamic>{'message': <String>['error']}, ], }, })), false); expect(HotRunner.validateReloadReport(vm_service.ReloadReport.parse(<String, dynamic>{ 'type': 'ReloadReport', 'success': false, 'details': <String, dynamic>{ 'notices': <Map<String, dynamic>>[ <String, dynamic>{'message': 'error'}, ], }, })), false); expect(HotRunner.validateReloadReport(vm_service.ReloadReport.parse(<String, dynamic>{ 'type': 'ReloadReport', 'success': true, })), true); }); testWithoutContext('ReasonForCancelling toString has a hint for specific errors', () { final ReasonForCancelling reasonForCancelling = ReasonForCancelling( message: 'Const class cannot remove fields', ); expect(reasonForCancelling.toString(), contains('Try performing a hot restart instead.')); }); }); group('hotRestart', () { final FakeResidentCompiler residentCompiler = FakeResidentCompiler(); late FileSystem fileSystem; late TestUsage testUsage; late FakeAnalytics fakeAnalytics; setUp(() { fileSystem = MemoryFileSystem.test(); testUsage = TestUsage(); fakeAnalytics = getInitializedFakeAnalyticsInstance( fs: fileSystem, fakeFlutterVersion: FakeFlutterVersion(), ); }); group('fails to setup', () { late TestHotRunnerConfig failingTestingConfig; setUp(() { failingTestingConfig = TestHotRunnerConfig( successfulHotRestartSetup: false, successfulHotReloadSetup: false, ); }); testUsingContext('setupHotRestart function fails', () async { fileSystem.file('.packages') ..createSync(recursive: true) ..writeAsStringSync('\n'); final FakeDevice device = FakeDevice(); final List<FlutterDevice> devices = <FlutterDevice>[ FlutterDevice(device, generator: residentCompiler, buildInfo: BuildInfo.debug, developmentShaderCompiler: const FakeShaderCompiler()) ..devFS = FakeDevFs(), ]; final OperationResult result = await HotRunner( devices, debuggingOptions: DebuggingOptions.disabled(BuildInfo.debug), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ).restart(fullRestart: true); expect(result.isOk, false); expect(result.message, 'setupHotRestart failed'); expect(failingTestingConfig.updateDevFSCompleteCalled, false); }, overrides: <Type, Generator>{ HotRunnerConfig: () => failingTestingConfig, Artifacts: () => Artifacts.test(), FileSystem: () => fileSystem, Platform: () => FakePlatform(), ProcessManager: () => FakeProcessManager.any(), }); testUsingContext('setupHotReload function fails', () async { fileSystem.file('.packages') ..createSync(recursive: true) ..writeAsStringSync('\n'); final FakeDevice device = FakeDevice(); final FakeFlutterDevice fakeFlutterDevice = FakeFlutterDevice(device); final List<FlutterDevice> devices = <FlutterDevice>[ fakeFlutterDevice, ]; final OperationResult result = await HotRunner( devices, debuggingOptions: DebuggingOptions.disabled(BuildInfo.debug), target: 'main.dart', devtoolsHandler: createNoOpHandler, reassembleHelper: ( List<FlutterDevice?> flutterDevices, Map<FlutterDevice?, List<FlutterView>> viewCache, void Function(String message)? onSlow, String reloadMessage, ) async => ReassembleResult( <FlutterView?, FlutterVmService?>{null: null}, false, true, ), analytics: fakeAnalytics, ).restart(); expect(result.isOk, false); expect(result.message, 'setupHotReload failed'); expect(failingTestingConfig.updateDevFSCompleteCalled, false); }, overrides: <Type, Generator>{ HotRunnerConfig: () => failingTestingConfig, Artifacts: () => Artifacts.test(), FileSystem: () => fileSystem, Platform: () => FakePlatform(), ProcessManager: () => FakeProcessManager.any(), }); }); group('shutdown hook tests', () { late TestHotRunnerConfig shutdownTestingConfig; setUp(() { shutdownTestingConfig = TestHotRunnerConfig(); }); testUsingContext('shutdown hook called after signal', () async { fileSystem.file('.packages') ..createSync(recursive: true) ..writeAsStringSync('\n'); final FakeDevice device = FakeDevice(); final List<FlutterDevice> devices = <FlutterDevice>[ FlutterDevice(device, generator: residentCompiler, buildInfo: BuildInfo.debug, developmentShaderCompiler: const FakeShaderCompiler()), ]; await HotRunner( devices, debuggingOptions: DebuggingOptions.disabled(BuildInfo.debug), target: 'main.dart', analytics: fakeAnalytics, ).cleanupAfterSignal(); expect(shutdownTestingConfig.shutdownHookCalled, true); }, overrides: <Type, Generator>{ HotRunnerConfig: () => shutdownTestingConfig, Artifacts: () => Artifacts.test(), FileSystem: () => fileSystem, Platform: () => FakePlatform(), ProcessManager: () => FakeProcessManager.any(), }); testUsingContext('shutdown hook called after app stop', () async { fileSystem.file('.packages') ..createSync(recursive: true) ..writeAsStringSync('\n'); final FakeDevice device = FakeDevice(); final List<FlutterDevice> devices = <FlutterDevice>[ FlutterDevice(device, generator: residentCompiler, buildInfo: BuildInfo.debug, developmentShaderCompiler: const FakeShaderCompiler()), ]; await HotRunner( devices, debuggingOptions: DebuggingOptions.disabled(BuildInfo.debug), target: 'main.dart', analytics: fakeAnalytics, ).preExit(); expect(shutdownTestingConfig.shutdownHookCalled, true); }, overrides: <Type, Generator>{ HotRunnerConfig: () => shutdownTestingConfig, Artifacts: () => Artifacts.test(), FileSystem: () => fileSystem, Platform: () => FakePlatform(), ProcessManager: () => FakeProcessManager.any(), }); }); group('successful hot restart', () { late TestHotRunnerConfig testingConfig; setUp(() { testingConfig = TestHotRunnerConfig( successfulHotRestartSetup: true, ); }); testUsingContext('correctly tracks time spent for analytics for hot restart', () async { final FakeDevice device = FakeDevice(); final FakeFlutterDevice fakeFlutterDevice = FakeFlutterDevice(device); final List<FlutterDevice> devices = <FlutterDevice>[ fakeFlutterDevice, ]; fakeFlutterDevice.updateDevFSReportCallback = () async => UpdateFSReport( success: true, invalidatedSourcesCount: 2, syncedBytes: 4, scannedSourcesCount: 8, compileDuration: const Duration(seconds: 16), transferDuration: const Duration(seconds: 32), ); final FakeStopwatchFactory fakeStopwatchFactory = FakeStopwatchFactory( stopwatches: <String, Stopwatch>{ 'fullRestartHelper': FakeStopwatch()..elapsed = const Duration(seconds: 64), 'updateDevFS': FakeStopwatch()..elapsed = const Duration(seconds: 128), }, ); (fakeFlutterDevice.devFS! as FakeDevFs).baseUri = Uri.parse('file:///base_uri'); final OperationResult result = await HotRunner( devices, debuggingOptions: DebuggingOptions.disabled(BuildInfo.debug), target: 'main.dart', devtoolsHandler: createNoOpHandler, stopwatchFactory: fakeStopwatchFactory, analytics: fakeAnalytics, ).restart(fullRestart: true); expect(result.isOk, true); expect(testUsage.events, <TestUsageEvent>[ const TestUsageEvent('hot', 'restart', parameters: CustomDimensions( hotEventTargetPlatform: 'flutter-tester', hotEventSdkName: 'Tester', hotEventEmulator: false, hotEventFullRestart: true, hotEventOverallTimeInMs: 64000, hotEventSyncedBytes: 4, hotEventInvalidatedSourcesCount: 2, hotEventTransferTimeInMs: 32000, hotEventCompileTimeInMs: 16000, hotEventFindInvalidatedTimeInMs: 128000, hotEventScannedSourcesCount: 8, )), ]); expect(fakeAnalytics.sentEvents, contains( Event.hotRunnerInfo( label: 'restart', targetPlatform: 'flutter-tester', sdkName: 'Tester', emulator: false, fullRestart: true, syncedBytes: 4, invalidatedSourcesCount: 2, transferTimeInMs: 32000, overallTimeInMs: 64000, compileTimeInMs: 16000, findInvalidatedTimeInMs: 128000, scannedSourcesCount: 8 ) )); expect(testingConfig.updateDevFSCompleteCalled, true); }, overrides: <Type, Generator>{ HotRunnerConfig: () => testingConfig, Artifacts: () => Artifacts.test(), FileSystem: () => fileSystem, Platform: () => FakePlatform(), ProcessManager: () => FakeProcessManager.any(), Usage: () => testUsage, }); }); group('successful hot reload', () { late TestHotRunnerConfig testingConfig; setUp(() { testingConfig = TestHotRunnerConfig( successfulHotReloadSetup: true, ); }); testUsingContext('correctly tracks time spent for analytics for hot reload', () async { final FakeDevice device = FakeDevice(); final FakeFlutterDevice fakeFlutterDevice = FakeFlutterDevice(device); final List<FlutterDevice> devices = <FlutterDevice>[ fakeFlutterDevice, ]; fakeFlutterDevice.updateDevFSReportCallback = () async => UpdateFSReport( success: true, invalidatedSourcesCount: 6, syncedBytes: 8, scannedSourcesCount: 16, compileDuration: const Duration(seconds: 16), transferDuration: const Duration(seconds: 32), ); final FakeStopwatchFactory fakeStopwatchFactory = FakeStopwatchFactory( stopwatches: <String, Stopwatch>{ 'updateDevFS': FakeStopwatch()..elapsed = const Duration(seconds: 64), 'reloadSources:reload': FakeStopwatch()..elapsed = const Duration(seconds: 128), 'reloadSources:reassemble': FakeStopwatch()..elapsed = const Duration(seconds: 256), 'reloadSources:vm': FakeStopwatch()..elapsed = const Duration(seconds: 512), }, ); (fakeFlutterDevice.devFS! as FakeDevFs).baseUri = Uri.parse('file:///base_uri'); final OperationResult result = await HotRunner( devices, debuggingOptions: DebuggingOptions.disabled(BuildInfo.debug), target: 'main.dart', devtoolsHandler: createNoOpHandler, stopwatchFactory: fakeStopwatchFactory, analytics: fakeAnalytics, reloadSourcesHelper: ( HotRunner hotRunner, List<FlutterDevice?> flutterDevices, bool? pause, Map<String, dynamic> firstReloadDetails, String? targetPlatform, String? sdkName, bool? emulator, String? reason, Usage usage, Analytics? analytics, ) async { firstReloadDetails['finalLibraryCount'] = 2; firstReloadDetails['receivedLibraryCount'] = 3; firstReloadDetails['receivedClassesCount'] = 4; firstReloadDetails['receivedProceduresCount'] = 5; return OperationResult.ok; }, reassembleHelper: ( List<FlutterDevice?> flutterDevices, Map<FlutterDevice?, List<FlutterView>> viewCache, void Function(String message)? onSlow, String reloadMessage, ) async => ReassembleResult( <FlutterView?, FlutterVmService?>{null: null}, false, true, ), ).restart(); expect(result.isOk, true); expect(testUsage.events, <TestUsageEvent>[ const TestUsageEvent('hot', 'reload', parameters: CustomDimensions( hotEventFinalLibraryCount: 2, hotEventSyncedLibraryCount: 3, hotEventSyncedClassesCount: 4, hotEventSyncedProceduresCount: 5, hotEventSyncedBytes: 8, hotEventInvalidatedSourcesCount: 6, hotEventTransferTimeInMs: 32000, hotEventOverallTimeInMs: 128000, hotEventTargetPlatform: 'flutter-tester', hotEventSdkName: 'Tester', hotEventEmulator: false, hotEventFullRestart: false, hotEventCompileTimeInMs: 16000, hotEventFindInvalidatedTimeInMs: 64000, hotEventScannedSourcesCount: 16, hotEventReassembleTimeInMs: 256000, hotEventReloadVMTimeInMs: 512000, )), ]); expect(fakeAnalytics.sentEvents, contains( Event.hotRunnerInfo( label: 'reload', targetPlatform: 'flutter-tester', sdkName: 'Tester', emulator: false, fullRestart: false, finalLibraryCount: 2, syncedLibraryCount: 3, syncedClassesCount: 4, syncedProceduresCount: 5, syncedBytes: 8, invalidatedSourcesCount: 6, transferTimeInMs: 32000, overallTimeInMs: 128000, compileTimeInMs: 16000, findInvalidatedTimeInMs: 64000, scannedSourcesCount: 16, reassembleTimeInMs: 256000, reloadVMTimeInMs: 512000 ), )); expect(testingConfig.updateDevFSCompleteCalled, true); }, overrides: <Type, Generator>{ HotRunnerConfig: () => testingConfig, Artifacts: () => Artifacts.test(), FileSystem: () => fileSystem, Platform: () => FakePlatform(), ProcessManager: () => FakeProcessManager.any(), Usage: () => testUsage, }); }); group('hot restart that failed to sync dev fs', () { late TestHotRunnerConfig testingConfig; setUp(() { testingConfig = TestHotRunnerConfig( successfulHotRestartSetup: true, ); }); testUsingContext('still calls the devfs complete callback', () async { final FakeDevice device = FakeDevice(); final FakeFlutterDevice fakeFlutterDevice = FakeFlutterDevice(device); final List<FlutterDevice> devices = <FlutterDevice>[ fakeFlutterDevice, ]; fakeFlutterDevice.updateDevFSReportCallback = () async => throw Exception('updateDevFS failed'); final HotRunner runner = HotRunner( devices, debuggingOptions: DebuggingOptions.disabled(BuildInfo.debug), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); await expectLater(runner.restart(fullRestart: true), throwsA(isA<Exception>().having((Exception e) => e.toString(), 'message', 'Exception: updateDevFS failed'))); expect(testingConfig.updateDevFSCompleteCalled, true); }, overrides: <Type, Generator>{ HotRunnerConfig: () => testingConfig, Artifacts: () => Artifacts.test(), FileSystem: () => fileSystem, Platform: () => FakePlatform(), ProcessManager: () => FakeProcessManager.any(), Usage: () => testUsage, }); }); group('hot reload that failed to sync dev fs', () { late TestHotRunnerConfig testingConfig; setUp(() { testingConfig = TestHotRunnerConfig( successfulHotReloadSetup: true, ); }); testUsingContext('still calls the devfs complete callback', () async { final FakeDevice device = FakeDevice(); final FakeFlutterDevice fakeFlutterDevice = FakeFlutterDevice(device); final List<FlutterDevice> devices = <FlutterDevice>[ fakeFlutterDevice, ]; fakeFlutterDevice.updateDevFSReportCallback = () async => throw Exception('updateDevFS failed'); final HotRunner runner = HotRunner( devices, debuggingOptions: DebuggingOptions.disabled(BuildInfo.debug), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); await expectLater(runner.restart(), throwsA(isA<Exception>().having((Exception e) => e.toString(), 'message', 'Exception: updateDevFS failed'))); expect(testingConfig.updateDevFSCompleteCalled, true); }, overrides: <Type, Generator>{ HotRunnerConfig: () => testingConfig, Artifacts: () => Artifacts.test(), FileSystem: () => fileSystem, Platform: () => FakePlatform(), ProcessManager: () => FakeProcessManager.any(), Usage: () => testUsage, }); }); }); group('hot attach', () { late FileSystem fileSystem; late FakeAnalytics fakeAnalytics; setUp(() { fileSystem = MemoryFileSystem.test(); fakeAnalytics = getInitializedFakeAnalyticsInstance( fs: fileSystem, fakeFlutterVersion: FakeFlutterVersion(), ); }); testUsingContext('Exits with code 2 when HttpException is thrown ' 'during VM service connection', () async { fileSystem.file('.packages') ..createSync(recursive: true) ..writeAsStringSync('\n'); final FakeResidentCompiler residentCompiler = FakeResidentCompiler(); final FakeDevice device = FakeDevice(); final List<FlutterDevice> devices = <FlutterDevice>[ TestFlutterDevice( device: device, generator: residentCompiler, exception: const HttpException('Connection closed before full header was received, ' 'uri = http://127.0.0.1:63394/5ZmLv8A59xY=/ws'), ), ]; final int exitCode = await HotRunner(devices, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), target: 'main.dart', analytics: fakeAnalytics, ).attach(needsFullRestart: false); expect(exitCode, 2); }, overrides: <Type, Generator>{ HotRunnerConfig: () => TestHotRunnerConfig(), Artifacts: () => Artifacts.test(), FileSystem: () => fileSystem, Platform: () => FakePlatform(), ProcessManager: () => FakeProcessManager.any(), }); }); group('hot cleanupAtFinish()', () { late FileSystem fileSystem; late FakeAnalytics fakeAnalytics; setUp(() { fileSystem = MemoryFileSystem.test(); fakeAnalytics = getInitializedFakeAnalyticsInstance( fs: fileSystem, fakeFlutterVersion: FakeFlutterVersion(), ); }); testUsingContext('disposes each device', () async { final FakeDevice device1 = FakeDevice(); final FakeDevice device2 = FakeDevice(); final FakeFlutterDevice flutterDevice1 = FakeFlutterDevice(device1); final FakeFlutterDevice flutterDevice2 = FakeFlutterDevice(device2); final List<FlutterDevice> devices = <FlutterDevice>[ flutterDevice1, flutterDevice2, ]; await HotRunner(devices, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), target: 'main.dart', analytics: fakeAnalytics, ).cleanupAtFinish(); expect(device1.disposed, true); expect(device2.disposed, true); expect(flutterDevice1.stoppedEchoingDeviceLog, true); expect(flutterDevice2.stoppedEchoingDeviceLog, true); }); }); }
flutter/packages/flutter_tools/test/general.shard/hot_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/hot_test.dart", "repo_id": "flutter", "token_count": 9749 }
836
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/file.dart'; import 'package:file/memory.dart'; import 'package:flutter_tools/src/artifacts.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/base/process.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/code_signing.dart'; import 'package:flutter_tools/src/ios/mac.dart'; import 'package:flutter_tools/src/ios/xcresult.dart'; import 'package:flutter_tools/src/project.dart'; import 'package:flutter_tools/src/reporting/reporting.dart'; import 'package:test/fake.dart'; import 'package:unified_analytics/unified_analytics.dart'; import '../../src/common.dart'; import '../../src/fake_process_manager.dart'; import '../../src/fakes.dart'; void main() { late BufferLogger logger; setUp(() { logger = BufferLogger.test(); }); group('IMobileDevice', () { late Artifacts artifacts; late Cache cache; setUp(() { artifacts = Artifacts.test(); cache = Cache.test( artifacts: <ArtifactSet>[ FakeDyldEnvironmentArtifact(), ], processManager: FakeProcessManager.any(), ); }); group('startLogger', () { testWithoutContext('starts idevicesyslog when USB connected', () async { final FakeProcessManager fakeProcessManager = FakeProcessManager.list( <FakeCommand>[ const FakeCommand( command: <String>['HostArtifact.idevicesyslog', '-u', '1234'], environment: <String, String>{ 'DYLD_LIBRARY_PATH': '/path/to/libraries' }, ), ], ); final IMobileDevice iMobileDevice = IMobileDevice( artifacts: artifacts, cache: cache, processManager: fakeProcessManager, logger: logger, ); await iMobileDevice.startLogger( '1234', false, ); expect(fakeProcessManager, hasNoRemainingExpectations); }); testWithoutContext('starts idevicesyslog when wirelessly connected', () async { final FakeProcessManager fakeProcessManager = FakeProcessManager.list( <FakeCommand>[ const FakeCommand( command: <String>[ 'HostArtifact.idevicesyslog', '-u', '1234', '--network' ], environment: <String, String>{ 'DYLD_LIBRARY_PATH': '/path/to/libraries' }, ), ], ); final IMobileDevice iMobileDevice = IMobileDevice( artifacts: artifacts, cache: cache, processManager: fakeProcessManager, logger: logger, ); await iMobileDevice.startLogger( '1234', true, ); expect(fakeProcessManager, hasNoRemainingExpectations); }); }); group('screenshot', () { late FakeProcessManager fakeProcessManager; late File outputFile; setUp(() { fakeProcessManager = FakeProcessManager.empty(); outputFile = MemoryFileSystem.test().file('image.png'); }); testWithoutContext('error if idevicescreenshot is not installed', () async { // Let `idevicescreenshot` fail with exit code 1. fakeProcessManager.addCommand(FakeCommand( command: <String>[ 'HostArtifact.idevicescreenshot', outputFile.path, '--udid', '1234', ], environment: const <String, String>{ 'DYLD_LIBRARY_PATH': '/path/to/libraries', }, exitCode: 1, )); final IMobileDevice iMobileDevice = IMobileDevice( artifacts: artifacts, cache: cache, processManager: fakeProcessManager, logger: logger, ); expect(() async => iMobileDevice.takeScreenshot( outputFile, '1234', DeviceConnectionInterface.attached, ), throwsA(anything)); expect(fakeProcessManager, hasNoRemainingExpectations); }); testWithoutContext('idevicescreenshot captures and returns USB screenshot', () async { fakeProcessManager.addCommand(FakeCommand( command: <String>[ 'HostArtifact.idevicescreenshot', outputFile.path, '--udid', '1234', ], environment: const <String, String>{'DYLD_LIBRARY_PATH': '/path/to/libraries'}, )); final IMobileDevice iMobileDevice = IMobileDevice( artifacts: artifacts, cache: cache, processManager: fakeProcessManager, logger: logger, ); await iMobileDevice.takeScreenshot( outputFile, '1234', DeviceConnectionInterface.attached, ); expect(fakeProcessManager, hasNoRemainingExpectations); }); testWithoutContext('idevicescreenshot captures and returns network screenshot', () async { fakeProcessManager.addCommand(FakeCommand( command: <String>[ 'HostArtifact.idevicescreenshot', outputFile.path, '--udid', '1234', '--network', ], environment: const <String, String>{'DYLD_LIBRARY_PATH': '/path/to/libraries'}, )); final IMobileDevice iMobileDevice = IMobileDevice( artifacts: artifacts, cache: cache, processManager: fakeProcessManager, logger: logger, ); await iMobileDevice.takeScreenshot( outputFile, '1234', DeviceConnectionInterface.wireless, ); expect(fakeProcessManager, hasNoRemainingExpectations); }); }); }); group('Diagnose Xcode build failure', () { late Map<String, String> buildSettings; late TestUsage testUsage; late FakeAnalytics fakeAnalytics; setUp(() { buildSettings = <String, String>{ 'PRODUCT_BUNDLE_IDENTIFIER': 'test.app', }; testUsage = TestUsage(); final MemoryFileSystem fs = MemoryFileSystem.test(); fakeAnalytics = getInitializedFakeAnalyticsInstance( fs: fs, fakeFlutterVersion: FakeFlutterVersion(), ); }); testWithoutContext('Sends analytics when bitcode fails', () async { const List<String> buildCommands = <String>['xcrun', 'cc', 'blah']; final XcodeBuildResult buildResult = XcodeBuildResult( success: false, stdout: 'BITCODE_ENABLED = YES', xcodeBuildExecution: XcodeBuildExecution( buildCommands: buildCommands, appDirectory: '/blah/blah', environmentType: EnvironmentType.physical, buildSettings: buildSettings, ), ); await diagnoseXcodeBuildFailure(buildResult, testUsage, logger, fakeAnalytics); expect(testUsage.events, contains( TestUsageEvent( 'build', 'ios', label: 'xcode-bitcode-failure', parameters: CustomDimensions( buildEventCommand: buildCommands.toString(), buildEventSettings: buildSettings.toString(), ), ), )); expect( fakeAnalytics.sentEvents, contains(Event.flutterBuildInfo( label: 'xcode-bitcode-failure', buildType: 'ios', command: '[xcrun, cc, blah]', settings: '{PRODUCT_BUNDLE_IDENTIFIER: test.app}' )), ); }); testWithoutContext('fallback to stdout: No provisioning profile shows message', () async { final Map<String, String> buildSettingsWithDevTeam = <String, String>{ 'PRODUCT_BUNDLE_IDENTIFIER': 'test.app', 'DEVELOPMENT_TEAM': 'a team', }; final XcodeBuildResult buildResult = XcodeBuildResult( success: false, stdout: ''' Launching lib/main.dart on iPhone in debug mode... Signing iOS app for device deployment using developer identity: "iPhone Developer: [email protected] (1122334455)" Running Xcode build... 1.3s Failed to build iOS app Error output from Xcode build: ↳ ** BUILD FAILED ** The following build commands failed: Check dependencies (1 failure) Xcode's output: ↳ Build settings from command line: ARCHS = arm64 BUILD_DIR = /Users/blah/blah DEVELOPMENT_TEAM = AABBCCDDEE ONLY_ACTIVE_ARCH = YES SDKROOT = iphoneos10.3 === CLEAN TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release === Check dependencies [BCEROR]"Runner" requires a provisioning profile. Select a provisioning profile in the Signing & Capabilities editor. [BCEROR]Code signing is required for product type 'Application' in SDK 'iOS 10.3' [BCEROR]Code signing is required for product type 'Application' in SDK 'iOS 10.3' [BCEROR]Code signing is required for product type 'Application' in SDK 'iOS 10.3' Create product structure /bin/mkdir -p /Users/blah/Runner.app Clean.Remove clean /Users/blah/Runner.app.dSYM builtin-rm -rf /Users/blah/Runner.app.dSYM Clean.Remove clean /Users/blah/Runner.app builtin-rm -rf /Users/blah/Runner.app Clean.Remove clean /Users/blah/Runner-dfvicjniknvzghgwsthwtgcjhtsk/Build/Intermediates/Runner.build/Release-iphoneos/Runner.build builtin-rm -rf /Users/blah/Runner-dfvicjniknvzghgwsthwtgcjhtsk/Build/Intermediates/Runner.build/Release-iphoneos/Runner.build ** CLEAN SUCCEEDED ** === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release === Check dependencies No profiles for 'com.example.test' were found: Xcode couldn't find a provisioning profile matching 'com.example.test'. Code signing is required for product type 'Application' in SDK 'iOS 10.3' Code signing is required for product type 'Application' in SDK 'iOS 10.3' Code signing is required for product type 'Application' in SDK 'iOS 10.3' Could not build the precompiled application for the device. Error launching application on iPhone.''', xcodeBuildExecution: XcodeBuildExecution( buildCommands: <String>['xcrun', 'xcodebuild', 'blah'], appDirectory: '/blah/blah', environmentType: EnvironmentType.physical, buildSettings: buildSettingsWithDevTeam, ), ); await diagnoseXcodeBuildFailure(buildResult, testUsage, logger, fakeAnalytics); expect( logger.errorText, contains(noProvisioningProfileInstruction), ); }); testWithoutContext('fallback to stdout: Ineligible destinations', () async { final Map<String, String> buildSettingsWithDevTeam = <String, String>{ 'PRODUCT_BUNDLE_IDENTIFIER': 'test.app', 'DEVELOPMENT_TEAM': 'a team', }; final XcodeBuildResult buildResult = XcodeBuildResult( success: false, stderr: ''' Launching lib/main.dart on iPhone in debug mode... Signing iOS app for device deployment using developer identity: "iPhone Developer: [email protected] (1122334455)" Running Xcode build... 1.3s Failed to build iOS app Error output from Xcode build: ↳ xcodebuild: error: Unable to find a destination matching the provided destination specifier: { id:1234D567-890C-1DA2-34E5-F6789A0123C4 } Ineligible destinations for the "Runner" scheme: { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device, error:iOS 17.0 is not installed. To use with Xcode, first download and install the platform } Could not build the precompiled application for the device. Error launching application on iPhone.''', xcodeBuildExecution: XcodeBuildExecution( buildCommands: <String>['xcrun', 'xcodebuild', 'blah'], appDirectory: '/blah/blah', environmentType: EnvironmentType.physical, buildSettings: buildSettingsWithDevTeam, ), ); await diagnoseXcodeBuildFailure(buildResult, testUsage, logger, fakeAnalytics); expect( logger.errorText, contains(missingPlatformInstructions('iOS 17.0')), ); }); testWithoutContext('No development team shows message', () async { final XcodeBuildResult buildResult = XcodeBuildResult( success: false, stdout: ''' Running "flutter pub get" in flutter_gallery... 0.6s Launching lib/main.dart on x in release mode... Running pod install... 1.2s Running Xcode build... 1.4s Failed to build iOS app Error output from Xcode build: ↳ ** BUILD FAILED ** The following build commands failed: Check dependencies (1 failure) Xcode's output: ↳ blah Check dependencies [BCEROR]Signing for "Runner" requires a development team. Select a development team in the project editor. Could not build the precompiled application for the device.''', xcodeBuildExecution: XcodeBuildExecution( buildCommands: <String>['xcrun', 'xcodebuild', 'blah'], appDirectory: '/blah/blah', environmentType: EnvironmentType.physical, buildSettings: buildSettings, ), ); await diagnoseXcodeBuildFailure(buildResult, testUsage, logger, fakeAnalytics); expect( logger.errorText, contains('Building a deployable iOS app requires a selected Development Team with a \nProvisioning Profile.'), ); }); testWithoutContext('does not show no development team message when other Xcode issues detected', () async { final XcodeBuildResult buildResult = XcodeBuildResult( success: false, stdout: ''' Running "flutter pub get" in flutter_gallery... 0.6s Launching lib/main.dart on x in release mode... Running pod install... 1.2s Running Xcode build... 1.4s Failed to build iOS app Error output from Xcode build: ↳ ** BUILD FAILED ** The following build commands failed: Check dependencies (1 failure) Xcode's output: ↳ blah Check dependencies [BCEROR]Signing for "Runner" requires a development team. Select a development team in the project editor. Could not build the precompiled application for the device.''', xcodeBuildExecution: XcodeBuildExecution( buildCommands: <String>['xcrun', 'xcodebuild', 'blah'], appDirectory: '/blah/blah', environmentType: EnvironmentType.physical, buildSettings: buildSettings, ), xcResult: XCResult.test(issues: <XCResultIssue>[ XCResultIssue.test(message: 'Target aot_assembly_release failed', subType: 'Error'), ]) ); await diagnoseXcodeBuildFailure(buildResult, testUsage, logger, fakeAnalytics); expect(logger.errorText, contains('Error (Xcode): Target aot_assembly_release failed')); expect(logger.errorText, isNot(contains('Building a deployable iOS app requires a selected Development Team'))); }); }); group('Upgrades project.pbxproj for old asset usage', () { const String flutterAssetPbxProjLines = '/* flutter_assets */\n' '/* App.framework\n' 'another line'; const String appFlxPbxProjLines = '/* app.flx\n' '/* App.framework\n' 'another line'; const String cleanPbxProjLines = '/* App.framework\n' 'another line'; testWithoutContext('upgradePbxProjWithFlutterAssets', () async { final File pbxprojFile = MemoryFileSystem.test().file('project.pbxproj') ..writeAsStringSync(flutterAssetPbxProjLines); final FakeIosProject project = FakeIosProject(pbxprojFile); bool result = upgradePbxProjWithFlutterAssets(project, logger); expect(result, true); expect( logger.statusText, contains('Removing obsolete reference to flutter_assets'), ); logger.clear(); pbxprojFile.writeAsStringSync(appFlxPbxProjLines); result = upgradePbxProjWithFlutterAssets(project, logger); expect(result, true); expect( logger.statusText, contains('Removing obsolete reference to app.flx'), ); logger.clear(); pbxprojFile.writeAsStringSync(cleanPbxProjLines); result = upgradePbxProjWithFlutterAssets(project, logger); expect(result, true); expect( logger.statusText, isEmpty, ); }); }); group('remove Finder extended attributes', () { late Directory projectDirectory; setUp(() { final MemoryFileSystem fs = MemoryFileSystem.test(); projectDirectory = fs.directory('flutter_project'); }); testWithoutContext('removes xattr', () async { final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[ FakeCommand(command: <String>[ 'xattr', '-r', '-d', 'com.apple.FinderInfo', projectDirectory.path, ]), ]); await removeFinderExtendedAttributes(projectDirectory, ProcessUtils(processManager: processManager, logger: logger), logger); expect(processManager, hasNoRemainingExpectations); }); testWithoutContext('ignores errors', () async { final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[ FakeCommand( command: <String>[ 'xattr', '-r', '-d', 'com.apple.FinderInfo', projectDirectory.path, ], exitCode: 1, ), ]); await removeFinderExtendedAttributes(projectDirectory, ProcessUtils(processManager: processManager, logger: logger), logger); expect(logger.traceText, contains('Failed to remove xattr com.apple.FinderInfo')); expect(processManager, hasNoRemainingExpectations); }); }); } class FakeIosProject extends Fake implements IosProject { FakeIosProject(this.xcodeProjectInfoFile); @override final File xcodeProjectInfoFile; @override Future<String> hostAppBundleName(BuildInfo? buildInfo) async => 'UnitTestRunner.app'; @override Directory get xcodeProject => xcodeProjectInfoFile.fileSystem.directory('Runner.xcodeproj'); }
flutter/packages/flutter_tools/test/general.shard/ios/mac_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/ios/mac_test.dart", "repo_id": "flutter", "token_count": 7479 }
837
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/memory.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/persistent_tool_state.dart'; import 'package:flutter_tools/src/version.dart'; import '../src/common.dart'; void main() { testWithoutContext('state can be set and persists', () { final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final Directory directory = fileSystem.directory('state_dir'); directory.createSync(); final File stateFile = directory.childFile('.flutter_tool_state'); final PersistentToolState state1 = PersistentToolState.test( directory: directory, logger: BufferLogger.test(), ); expect(state1.shouldRedisplayWelcomeMessage, null); state1.setShouldRedisplayWelcomeMessage(true); expect(stateFile.existsSync(), true); expect(state1.shouldRedisplayWelcomeMessage, true); state1.setShouldRedisplayWelcomeMessage(false); expect(state1.shouldRedisplayWelcomeMessage, false); final PersistentToolState state2 = PersistentToolState.test( directory: directory, logger: BufferLogger.test(), ); expect(state2.shouldRedisplayWelcomeMessage, false); }); testWithoutContext('channel versions can be cached and stored', () { final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final Directory directory = fileSystem.directory('state_dir')..createSync(); final PersistentToolState state1 = PersistentToolState.test( directory: directory, logger: BufferLogger.test(), ); state1.updateLastActiveVersion('abc', Channel.master); state1.updateLastActiveVersion('ghi', Channel.beta); state1.updateLastActiveVersion('jkl', Channel.stable); final PersistentToolState state2 = PersistentToolState.test( directory: directory, logger: BufferLogger.test(), ); expect(state2.lastActiveVersion(Channel.master), 'abc'); expect(state2.lastActiveVersion(Channel.beta), 'ghi'); expect(state2.lastActiveVersion(Channel.stable), 'jkl'); }); }
flutter/packages/flutter_tools/test/general.shard/persistent_tool_state_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/persistent_tool_state_test.dart", "repo_id": "flutter", "token_count": 725 }
838
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'package:dds/dds.dart' as dds; 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/command_help.dart'; import 'package:flutter_tools/src/base/common.dart'; import 'package:flutter_tools/src/base/dds.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/io.dart' as io; 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/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/features.dart'; import 'package:flutter_tools/src/globals.dart' as globals; import 'package:flutter_tools/src/project.dart'; import 'package:flutter_tools/src/reporting/reporting.dart'; import 'package:flutter_tools/src/resident_devtools_handler.dart'; import 'package:flutter_tools/src/resident_runner.dart'; import 'package:flutter_tools/src/run_cold.dart'; import 'package:flutter_tools/src/run_hot.dart'; import 'package:flutter_tools/src/version.dart'; import 'package:flutter_tools/src/vmservice.dart'; import 'package:unified_analytics/testing.dart'; import 'package:unified_analytics/unified_analytics.dart'; import 'package:vm_service/vm_service.dart' as vm_service; import '../src/common.dart'; import '../src/context.dart'; import '../src/fake_vm_services.dart'; import '../src/fakes.dart'; import '../src/testbed.dart'; import 'resident_runner_helpers.dart'; void main() { late Testbed testbed; late FakeFlutterDevice flutterDevice; late FakeDevFS devFS; late ResidentRunner residentRunner; late FakeDevice device; late FakeAnalytics fakeAnalytics; FakeVmServiceHost? fakeVmServiceHost; setUp(() { testbed = Testbed(setup: () { fakeAnalytics = getInitializedFakeAnalyticsInstance( fs: globals.fs, fakeFlutterVersion: FakeFlutterVersion(), ); globals.fs.file('.packages') .writeAsStringSync('\n'); globals.fs.file(globals.fs.path.join('build', 'app.dill')) ..createSync(recursive: true) ..writeAsStringSync('ABC'); residentRunner = HotRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); }); device = FakeDevice(); devFS = FakeDevFS(); flutterDevice = FakeFlutterDevice() ..testUri = testUri ..vmServiceHost = (() => fakeVmServiceHost) ..device = device ..fakeDevFS = devFS; }); testUsingContext('ResidentRunner can attach to device successfully', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, ]); final Completer<DebugConnectionInfo> futureConnectionInfo = Completer<DebugConnectionInfo>.sync(); final Completer<void> futureAppStart = Completer<void>.sync(); final Future<int?> result = residentRunner.attach( appStartedCompleter: futureAppStart, connectionInfoCompleter: futureConnectionInfo, enableDevTools: true, ); final Future<DebugConnectionInfo> connectionInfo = futureConnectionInfo.future; expect(await result, 0); expect(futureConnectionInfo.isCompleted, true); expect((await connectionInfo).baseUri, 'foo://bar'); expect(futureAppStart.isCompleted, true); expect(fakeVmServiceHost?.hasRemainingExpectations, false); })); testUsingContext('ResidentRunner suppresses errors for the initial compilation', () => testbed.run(() async { globals.fs.file(globals.fs.path.join('lib', 'main.dart')) .createSync(recursive: true); fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, ]); final FakeResidentCompiler residentCompiler = FakeResidentCompiler() ..nextOutput = const CompilerOutput('foo', 0 ,<Uri>[]); residentRunner = HotRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); flutterDevice.generator = residentCompiler; expect(await residentRunner.run(enableDevTools: true), 0); expect(residentCompiler.didSuppressErrors, true); expect(fakeVmServiceHost?.hasRemainingExpectations, false); })); // Regression test for https://github.com/flutter/flutter/issues/60613 testUsingContext('ResidentRunner calls appFailedToStart if initial compilation fails', () => testbed.run(() async { globals.fs.file(globals.fs.path.join('lib', 'main.dart')) .createSync(recursive: true); fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]); final FakeResidentCompiler residentCompiler = FakeResidentCompiler() ..nextOutput = const CompilerOutput('foo', 1 ,<Uri>[]); residentRunner = HotRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); flutterDevice.generator = residentCompiler; expect(await residentRunner.run(), 1); // Completing this future ensures that the daemon can exit correctly. expect(await residentRunner.waitForAppToFinish(), 1); })); // Regression test for https://github.com/flutter/flutter/issues/60613 testUsingContext('ResidentRunner calls appFailedToStart if initial compilation fails - cold mode', () => testbed.run(() async { globals.fs.file(globals.fs.path.join('lib', 'main.dart')) .createSync(recursive: true); fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]); residentRunner = ColdRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled(BuildInfo.release), target: 'main.dart', devtoolsHandler: createNoOpHandler, ); flutterDevice.runColdCode = 1; expect(await residentRunner.run(), 1); // Completing this future ensures that the daemon can exit correctly. expect(await residentRunner.waitForAppToFinish(), 1); })); // Regression test for https://github.com/flutter/flutter/issues/60613 testUsingContext('ResidentRunner calls appFailedToStart if exception is thrown - cold mode', () => testbed.run(() async { globals.fs.file(globals.fs.path.join('lib', 'main.dart')) .createSync(recursive: true); fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]); residentRunner = ColdRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled(BuildInfo.release), target: 'main.dart', devtoolsHandler: createNoOpHandler, ); flutterDevice.runColdError = Exception('BAD STUFF'); expect(await residentRunner.run(), 1); // Completing this future ensures that the daemon can exit correctly. expect(await residentRunner.waitForAppToFinish(), 1); })); testUsingContext('ResidentRunner does not suppressErrors if running with an applicationBinary', () => testbed.run(() async { globals.fs.file(globals.fs.path.join('lib', 'main.dart')) .createSync(recursive: true); fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, ]); final FakeResidentCompiler residentCompiler = FakeResidentCompiler() ..nextOutput = const CompilerOutput('foo', 0 ,<Uri>[]); residentRunner = HotRunner( <FlutterDevice>[ flutterDevice, ], applicationBinary: globals.fs.file('app-debug.apk'), stayResident: false, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); flutterDevice.generator = residentCompiler; expect(await residentRunner.run(enableDevTools: true), 0); expect(residentCompiler.didSuppressErrors, false); expect(fakeVmServiceHost?.hasRemainingExpectations, false); })); testUsingContext('ResidentRunner can attach to device successfully with --fast-start', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, listViews, FakeVmServiceRequest( method: 'getIsolate', args: <String, Object?>{ 'isolateId': fakeUnpausedIsolate.id, }, jsonResponse: fakeUnpausedIsolate.toJson(), ), FakeVmServiceRequest( method: 'getVM', jsonResponse: vm_service.VM.parse(<String, Object>{})!.toJson(), ), listViews, const FakeVmServiceRequest( method: 'streamListen', args: <String, Object>{ 'streamId': 'Isolate', } ), FakeVmServiceRequest( method: kRunInViewMethod, args: <String, Object>{ 'viewId': fakeFlutterView.id, 'mainScript': 'main.dart.dill', 'assetDirectory': 'build/flutter_assets', } ), FakeVmServiceStreamResponse( streamId: 'Isolate', event: vm_service.Event( timestamp: 0, kind: vm_service.EventKind.kIsolateRunnable, ) ), ]); residentRunner = HotRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled( BuildInfo.debug, fastStart: true, startPaused: true, ), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); final Completer<DebugConnectionInfo> futureConnectionInfo = Completer<DebugConnectionInfo>.sync(); final Completer<void> futureAppStart = Completer<void>.sync(); final Future<int?> result = residentRunner.attach( appStartedCompleter: futureAppStart, connectionInfoCompleter: futureConnectionInfo, enableDevTools: true, ); final Future<DebugConnectionInfo> connectionInfo = futureConnectionInfo.future; expect(await result, 0); expect(futureConnectionInfo.isCompleted, true); expect((await connectionInfo).baseUri, 'foo://bar'); expect(futureAppStart.isCompleted, true); expect(fakeVmServiceHost?.hasRemainingExpectations, false); })); testUsingContext('ResidentRunner can handle an RPC exception from hot reload', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, listViews, ]); final Completer<DebugConnectionInfo> futureConnectionInfo = Completer<DebugConnectionInfo>.sync(); final Completer<void> futureAppStart = Completer<void>.sync(); unawaited(residentRunner.attach( appStartedCompleter: futureAppStart, connectionInfoCompleter: futureConnectionInfo, enableDevTools: true, )); await futureAppStart.future; flutterDevice.reportError = vm_service.RPCError('something bad happened', 666, ''); final OperationResult result = await residentRunner.restart(); expect(result.fatal, true); expect(result.code, 1); expect((globals.flutterUsage as TestUsage).events, contains( TestUsageEvent('hot', 'exception', parameters: CustomDimensions( hotEventTargetPlatform: getNameForTargetPlatform(TargetPlatform.android_arm), hotEventSdkName: 'Android', hotEventEmulator: false, hotEventFullRestart: false, )), )); expect(fakeAnalytics.sentEvents, contains( Event.hotRunnerInfo( label: 'exception', targetPlatform: getNameForTargetPlatform(TargetPlatform.android_arm), sdkName: 'Android', emulator: false, fullRestart: false, ), )); expect(fakeVmServiceHost?.hasRemainingExpectations, false); }, overrides: <Type, Generator>{ Usage: () => TestUsage(), })); testUsingContext('ResidentRunner can handle an RPC exception from debugFrameJankMetrics', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, listViews, renderFrameRasterStats, ]); final Completer<DebugConnectionInfo> futureConnectionInfo = Completer<DebugConnectionInfo>.sync(); final Completer<void> futureAppStart = Completer<void>.sync(); unawaited(residentRunner.attach( appStartedCompleter: futureAppStart, connectionInfoCompleter: futureConnectionInfo, enableDevTools: true, )); await futureAppStart.future; final bool result = await residentRunner.debugFrameJankMetrics(); expect(result, true); expect((globals.flutterUsage as TestUsage).events, isEmpty); expect(fakeAnalytics.sentEvents, isEmpty); expect(fakeVmServiceHost?.hasRemainingExpectations, false); expect((globals.logger as BufferLogger).warningText, contains('Unable to get jank metrics for Impeller renderer')); }, overrides: <Type, Generator>{ Usage: () => TestUsage(), })); testUsingContext('ResidentRunner fails its operation if the device initialization is not complete', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, ]); final Completer<DebugConnectionInfo> futureConnectionInfo = Completer<DebugConnectionInfo>.sync(); final Completer<void> futureAppStart = Completer<void>.sync(); unawaited(residentRunner.attach( appStartedCompleter: futureAppStart, connectionInfoCompleter: futureConnectionInfo, )); await futureAppStart.future; flutterDevice.fakeDevFS = null; final OperationResult result = await residentRunner.restart(); expect(result.fatal, false); expect(result.code, 1); expect(result.message, contains('Device initialization has not completed.')); expect(fakeVmServiceHost?.hasRemainingExpectations, false); })); testUsingContext('ResidentRunner can handle an reload-barred exception from hot reload', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, listViews, ]); final Completer<DebugConnectionInfo> futureConnectionInfo = Completer<DebugConnectionInfo>.sync(); final Completer<void> futureAppStart = Completer<void>.sync(); unawaited(residentRunner.attach( appStartedCompleter: futureAppStart, connectionInfoCompleter: futureConnectionInfo, enableDevTools: true, )); await futureAppStart.future; flutterDevice.reportError = vm_service.RPCError('something bad happened', kIsolateReloadBarred, ''); final OperationResult result = await residentRunner.restart(); expect(result.fatal, true); expect(result.code, kIsolateReloadBarred); expect(result.message, contains('Unable to hot reload application due to an unrecoverable error')); expect((globals.flutterUsage as TestUsage).events, contains( TestUsageEvent('hot', 'reload-barred', parameters: CustomDimensions( hotEventTargetPlatform: getNameForTargetPlatform(TargetPlatform.android_arm), hotEventSdkName: 'Android', hotEventEmulator: false, hotEventFullRestart: false, )), )); expect(fakeAnalytics.sentEvents, contains( Event.hotRunnerInfo( label: 'reload-barred', targetPlatform: getNameForTargetPlatform(TargetPlatform.android_arm), sdkName: 'Android', emulator: false, fullRestart: false, ) )); expect(fakeVmServiceHost?.hasRemainingExpectations, false); }, overrides: <Type, Generator>{ Usage: () => TestUsage(), })); testUsingContext('ResidentRunner reports hot reload event with null safety analytics', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, listViews, ]); residentRunner = HotRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, target: 'main.dart', debuggingOptions: DebuggingOptions.enabled(const BuildInfo( BuildMode.debug, '', treeShakeIcons: false, extraFrontEndOptions: <String>[ '--enable-experiment=non-nullable', ], )), devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); final Completer<DebugConnectionInfo> futureConnectionInfo = Completer<DebugConnectionInfo>.sync(); final Completer<void> futureAppStart = Completer<void>.sync(); unawaited(residentRunner.attach( appStartedCompleter: futureAppStart, connectionInfoCompleter: futureConnectionInfo, enableDevTools: true, )); await futureAppStart.future; flutterDevice.reportError = vm_service.RPCError('something bad happened', 666, ''); final OperationResult result = await residentRunner.restart(); expect(result.fatal, true); expect(result.code, 1); expect((globals.flutterUsage as TestUsage).events, contains( TestUsageEvent('hot', 'exception', parameters: CustomDimensions( hotEventTargetPlatform: getNameForTargetPlatform(TargetPlatform.android_arm), hotEventSdkName: 'Android', hotEventEmulator: false, hotEventFullRestart: false, )), )); expect(fakeAnalytics.sentEvents, contains( Event.hotRunnerInfo( label: 'exception', targetPlatform: getNameForTargetPlatform(TargetPlatform.android_arm), sdkName: 'Android', emulator: false, fullRestart: false, ) )); expect(fakeVmServiceHost?.hasRemainingExpectations, false); }, overrides: <Type, Generator>{ Usage: () => TestUsage(), })); testUsingContext('ResidentRunner does not reload sources if no sources changed', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, listViews, FakeVmServiceRequest( method: 'getIsolatePauseEvent', args: <String, Object>{ 'isolateId': '1', }, jsonResponse: fakeUnpausedEvent.toJson(), ), FakeVmServiceRequest( method: 'ext.flutter.reassemble', args: <String, Object?>{ 'isolateId': fakeUnpausedIsolate.id, }, ), ]); residentRunner = HotRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); final Completer<DebugConnectionInfo> futureConnectionInfo = Completer<DebugConnectionInfo>.sync(); final Completer<void> futureAppStart = Completer<void>.sync(); unawaited(residentRunner.attach( appStartedCompleter: futureAppStart, connectionInfoCompleter: futureConnectionInfo, enableDevTools: true, )); await futureAppStart.future; flutterDevice.report = UpdateFSReport(success: true); final OperationResult result = await residentRunner.restart(); expect(result.code, 0); expect(fakeVmServiceHost?.hasRemainingExpectations, false); })); testUsingContext('ResidentRunner reports error with missing entrypoint file', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, listViews, FakeVmServiceRequest( method: 'getVM', jsonResponse: vm_service.VM.parse(<String, Object>{ 'isolates': <Object>[ fakeUnpausedIsolate.toJson(), ], })!.toJson(), ), const FakeVmServiceRequest( method: kReloadSourcesServiceName, args: <String, Object>{ 'isolateId': '1', 'pause': false, 'rootLibUri': 'main.dart.incremental.dill', }, jsonResponse: <String, Object>{ 'type': 'ReloadReport', 'success': true, 'details': <String, Object>{ 'loadedLibraryCount': 1, }, }, ), FakeVmServiceRequest( method: 'getIsolatePauseEvent', args: <String, Object>{ 'isolateId': '1', }, jsonResponse: fakeUnpausedEvent.toJson(), ), FakeVmServiceRequest( method: 'ext.flutter.reassemble', args: <String, Object?>{ 'isolateId': fakeUnpausedIsolate.id, }, ), ]); final Completer<DebugConnectionInfo> futureConnectionInfo = Completer<DebugConnectionInfo>.sync(); final Completer<void> futureAppStart = Completer<void>.sync(); unawaited(residentRunner.attach( appStartedCompleter: futureAppStart, connectionInfoCompleter: futureConnectionInfo, enableDevTools: true, )); await futureAppStart.future; flutterDevice.report = UpdateFSReport(success: true, invalidatedSourcesCount: 1); final OperationResult result = await residentRunner.restart(); expect(globals.fs.file(globals.fs.path.join('lib', 'main.dart')), isNot(exists)); expect(testLogger.errorText, contains('The entrypoint file (i.e. the file with main())')); expect(result.fatal, false); expect(result.code, 0); })); testUsingContext('ResidentRunner resets compilation time on reload reject', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, listViews, FakeVmServiceRequest( method: 'getVM', jsonResponse: vm_service.VM.parse(<String, Object>{ 'isolates': <Object>[ fakeUnpausedIsolate.toJson(), ], })!.toJson(), ), const FakeVmServiceRequest( method: kReloadSourcesServiceName, args: <String, Object>{ 'isolateId': '1', 'pause': false, 'rootLibUri': 'main.dart.incremental.dill', }, jsonResponse: <String, Object>{ 'type': 'ReloadReport', 'success': false, 'notices': <Object>[ <String, Object>{ 'message': 'Failed to hot reload', }, ], 'details': <String, Object>{}, }, ), listViews, FakeVmServiceRequest( method: 'getIsolate', args: <String, Object>{ 'isolateId': '1', }, jsonResponse: fakeUnpausedIsolate.toJson(), ), FakeVmServiceRequest( method: 'ext.flutter.reassemble', args: <String, Object?>{ 'isolateId': fakeUnpausedIsolate.id, }, ), ]); final Completer<DebugConnectionInfo> futureConnectionInfo = Completer<DebugConnectionInfo>.sync(); final Completer<void> futureAppStart = Completer<void>.sync(); unawaited(residentRunner.attach( appStartedCompleter: futureAppStart, connectionInfoCompleter: futureConnectionInfo, enableDevTools: true, )); await futureAppStart.future; flutterDevice.report = UpdateFSReport(success: true, invalidatedSourcesCount: 1); final OperationResult result = await residentRunner.restart(); expect(result.fatal, false); expect(result.message, contains('Reload rejected: Failed to hot reload')); // contains error message from reload report. expect(result.code, 1); expect(devFS.lastCompiled, null); })); testUsingContext('ResidentRunner can send target platform to analytics from hot reload', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, listViews, FakeVmServiceRequest( method: 'getVM', jsonResponse: vm_service.VM.parse(<String, Object>{ 'isolates': <Object>[ fakeUnpausedIsolate.toJson(), ], })!.toJson(), ), const FakeVmServiceRequest( method: kReloadSourcesServiceName, args: <String, Object>{ 'isolateId': '1', 'pause': false, 'rootLibUri': 'main.dart.incremental.dill', }, jsonResponse: <String, Object>{ 'type': 'ReloadReport', 'success': true, 'details': <String, Object>{ 'loadedLibraryCount': 1, }, }, ), FakeVmServiceRequest( method: 'getIsolatePauseEvent', args: <String, Object>{ 'isolateId': '1', }, jsonResponse: fakeUnpausedEvent.toJson(), ), FakeVmServiceRequest( method: 'ext.flutter.reassemble', args: <String, Object?>{ 'isolateId': fakeUnpausedIsolate.id, }, ), ]); final Completer<DebugConnectionInfo> futureConnectionInfo = Completer<DebugConnectionInfo>.sync(); final Completer<void> futureAppStart = Completer<void>.sync(); unawaited(residentRunner.attach( appStartedCompleter: futureAppStart, connectionInfoCompleter: futureConnectionInfo, enableDevTools: true, )); await futureAppStart.future; final OperationResult result = await residentRunner.restart(); expect(result.fatal, false); expect(result.code, 0); final TestUsageEvent event = (globals.flutterUsage as TestUsage).events.first; expect(event.category, 'hot'); expect(event.parameter, 'reload'); expect(event.parameters?.hotEventTargetPlatform, getNameForTargetPlatform(TargetPlatform.android_arm)); final Event newEvent = fakeAnalytics.sentEvents.first; expect(newEvent.eventName.label, 'hot_runner_info'); expect(newEvent.eventData['label'], 'reload'); expect(newEvent.eventData['targetPlatform'], getNameForTargetPlatform(TargetPlatform.android_arm)); }, overrides: <Type, Generator>{ Usage: () => TestUsage(), })); testUsingContext('ResidentRunner reports hot reload time details', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, FakeVmServiceRequest( method: 'getVM', jsonResponse: fakeVM.toJson(), ), listViews, listViews, FakeVmServiceRequest( method: 'getVM', jsonResponse: fakeVM.toJson(), ), const FakeVmServiceRequest( method: kReloadSourcesServiceName, args: <String, Object>{ 'isolateId': '1', 'pause': false, 'rootLibUri': 'main.dart.incremental.dill', }, jsonResponse: <String, Object>{ 'type': 'ReloadReport', 'success': true, 'details': <String, Object>{ 'loadedLibraryCount': 1, 'finalLibraryCount': 42, }, }, ), FakeVmServiceRequest( method: 'getIsolatePauseEvent', args: <String, Object>{ 'isolateId': '1', }, jsonResponse: fakeUnpausedEvent.toJson(), ), FakeVmServiceRequest( method: 'ext.flutter.reassemble', args: <String, Object?>{ 'isolateId': fakeUnpausedIsolate.id, }, ), ]); final FakeDelegateFlutterDevice flutterDevice = FakeDelegateFlutterDevice( device, BuildInfo.debug, FakeResidentCompiler(), devFS, )..vmService = fakeVmServiceHost!.vmService; residentRunner = HotRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); devFS.nextUpdateReport = UpdateFSReport( success: true, invalidatedSourcesCount: 1, ); final Completer<DebugConnectionInfo> futureConnectionInfo = Completer<DebugConnectionInfo>.sync(); final Completer<void> futureAppStart = Completer<void>.sync(); unawaited(residentRunner.attach( appStartedCompleter: futureAppStart, connectionInfoCompleter: futureConnectionInfo, enableDevTools: true, )); await futureAppStart.future; await residentRunner.restart(); // The actual test: Expect to have compile, reload and reassemble times. expect( testLogger.statusText, contains(RegExp(r'Reloaded 1 of 42 libraries in \d+ms ' r'\(compile: \d+ ms, reload: \d+ ms, reassemble: \d+ ms\)\.'))); }, overrides: <Type, Generator>{ FileSystem: () => MemoryFileSystem.test(), Platform: () => FakePlatform(), ProjectFileInvalidator: () => FakeProjectFileInvalidator(), Usage: () => TestUsage(), })); testUsingContext('ResidentRunner can send target platform to analytics from full restart', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, listViews, FakeVmServiceRequest( method: 'getIsolate', args: <String, Object?>{ 'isolateId': fakeUnpausedIsolate.id, }, jsonResponse: fakeUnpausedIsolate.toJson(), ), FakeVmServiceRequest( method: 'getVM', jsonResponse: vm_service.VM.parse(<String, Object>{})!.toJson(), ), listViews, const FakeVmServiceRequest( method: 'streamListen', args: <String, Object>{ 'streamId': 'Isolate', }, ), FakeVmServiceRequest( method: kRunInViewMethod, args: <String, Object>{ 'viewId': fakeFlutterView.id, 'mainScript': 'main.dart.dill', 'assetDirectory': 'build/flutter_assets', }, ), FakeVmServiceStreamResponse( streamId: 'Isolate', event: vm_service.Event( timestamp: 0, kind: vm_service.EventKind.kIsolateRunnable, ) ), ]); final Completer<DebugConnectionInfo> futureConnectionInfo = Completer<DebugConnectionInfo>.sync(); final Completer<void> futureAppStart = Completer<void>.sync(); unawaited(residentRunner.attach( appStartedCompleter: futureAppStart, connectionInfoCompleter: futureConnectionInfo, enableDevTools: true, )); final OperationResult result = await residentRunner.restart(fullRestart: true); expect(result.fatal, false); expect(result.code, 0); final TestUsageEvent event = (globals.flutterUsage as TestUsage).events.first; expect(event.category, 'hot'); expect(event.parameter, 'restart'); expect(event.parameters?.hotEventTargetPlatform, getNameForTargetPlatform(TargetPlatform.android_arm)); expect(fakeVmServiceHost?.hasRemainingExpectations, false); // Parse out the event of interest since we may have timing events with // the new analytics package final List<Event> newEventList = fakeAnalytics.sentEvents.where((Event e) => e.eventName == DashEvent.hotRunnerInfo).toList(); expect(newEventList, hasLength(1)); final Event newEvent = newEventList.first; expect(newEvent.eventName.label, 'hot_runner_info'); expect(newEvent.eventData['label'], 'restart'); expect(newEvent.eventData['targetPlatform'], getNameForTargetPlatform(TargetPlatform.android_arm)); }, overrides: <Type, Generator>{ Usage: () => TestUsage(), })); testUsingContext('ResidentRunner can remove breakpoints and exception-pause-mode from paused isolate during hot restart', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, listViews, FakeVmServiceRequest( method: 'getIsolate', args: <String, Object?>{ 'isolateId': fakeUnpausedIsolate.id, }, jsonResponse: fakePausedIsolate.toJson(), ), FakeVmServiceRequest( method: 'getVM', jsonResponse: vm_service.VM.parse(<String, Object>{})!.toJson(), ), const FakeVmServiceRequest( method: 'setIsolatePauseMode', args: <String, String>{ 'isolateId': '1', 'exceptionPauseMode': 'None', } ), const FakeVmServiceRequest( method: 'removeBreakpoint', args: <String, String>{ 'isolateId': '1', 'breakpointId': 'test-breakpoint', } ), const FakeVmServiceRequest( method: 'resume', args: <String, String>{ 'isolateId': '1', } ), listViews, const FakeVmServiceRequest( method: 'streamListen', args: <String, Object>{ 'streamId': 'Isolate', }, ), FakeVmServiceRequest( method: kRunInViewMethod, args: <String, Object>{ 'viewId': fakeFlutterView.id, 'mainScript': 'main.dart.dill', 'assetDirectory': 'build/flutter_assets', }, ), FakeVmServiceStreamResponse( streamId: 'Isolate', event: vm_service.Event( timestamp: 0, kind: vm_service.EventKind.kIsolateRunnable, ), ), ]); final Completer<DebugConnectionInfo> futureConnectionInfo = Completer<DebugConnectionInfo>.sync(); final Completer<void> futureAppStart = Completer<void>.sync(); unawaited(residentRunner.attach( appStartedCompleter: futureAppStart, connectionInfoCompleter: futureConnectionInfo, enableDevTools: true, )); final OperationResult result = await residentRunner.restart(fullRestart: true); expect(result.isOk, true); expect(fakeVmServiceHost?.hasRemainingExpectations, false); })); testUsingContext('ResidentRunner will alternative the name of the dill file uploaded for a hot restart', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, listViews, FakeVmServiceRequest( method: 'getIsolate', args: <String, Object?>{ 'isolateId': fakeUnpausedIsolate.id, }, jsonResponse: fakeUnpausedIsolate.toJson(), ), FakeVmServiceRequest( method: 'getVM', jsonResponse: vm_service.VM.parse(<String, Object>{})!.toJson(), ), listViews, const FakeVmServiceRequest( method: 'streamListen', args: <String, Object>{ 'streamId': 'Isolate', }, ), FakeVmServiceRequest( method: kRunInViewMethod, args: <String, Object>{ 'viewId': fakeFlutterView.id, 'mainScript': 'main.dart.dill', 'assetDirectory': 'build/flutter_assets', }, ), FakeVmServiceStreamResponse( streamId: 'Isolate', event: vm_service.Event( timestamp: 0, kind: vm_service.EventKind.kIsolateRunnable, ), ), listViews, FakeVmServiceRequest( method: 'getIsolate', args: <String, Object?>{ 'isolateId': fakeUnpausedIsolate.id, }, jsonResponse: fakeUnpausedIsolate.toJson(), ), FakeVmServiceRequest( method: 'getVM', jsonResponse: vm_service.VM.parse(<String, Object>{})!.toJson(), ), listViews, const FakeVmServiceRequest( method: 'streamListen', args: <String, Object>{ 'streamId': 'Isolate', }, ), FakeVmServiceRequest( method: kRunInViewMethod, args: <String, Object>{ 'viewId': fakeFlutterView.id, 'mainScript': 'main.dart.swap.dill', 'assetDirectory': 'build/flutter_assets', }, ), FakeVmServiceStreamResponse( streamId: 'Isolate', event: vm_service.Event( timestamp: 0, kind: vm_service.EventKind.kIsolateRunnable, ), ), listViews, FakeVmServiceRequest( method: 'getIsolate', args: <String, Object?>{ 'isolateId': fakeUnpausedIsolate.id, }, jsonResponse: fakeUnpausedIsolate.toJson(), ), FakeVmServiceRequest( method: 'getVM', jsonResponse: vm_service.VM.parse(<String, Object>{})!.toJson(), ), listViews, const FakeVmServiceRequest( method: 'streamListen', args: <String, Object>{ 'streamId': 'Isolate', }, ), FakeVmServiceRequest( method: kRunInViewMethod, args: <String, Object>{ 'viewId': fakeFlutterView.id, 'mainScript': 'main.dart.dill', 'assetDirectory': 'build/flutter_assets', }, ), FakeVmServiceStreamResponse( streamId: 'Isolate', event: vm_service.Event( timestamp: 0, kind: vm_service.EventKind.kIsolateRunnable, ), ), ]); final Completer<DebugConnectionInfo> futureConnectionInfo = Completer<DebugConnectionInfo>.sync(); final Completer<void> futureAppStart = Completer<void>.sync(); unawaited(residentRunner.attach( appStartedCompleter: futureAppStart, connectionInfoCompleter: futureConnectionInfo, enableDevTools: true, )); await residentRunner.restart(fullRestart: true); await residentRunner.restart(fullRestart: true); await residentRunner.restart(fullRestart: true); expect(fakeVmServiceHost?.hasRemainingExpectations, false); })); testUsingContext('ResidentRunner Can handle an RPC exception from hot restart', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, ]); final Completer<DebugConnectionInfo> futureConnectionInfo = Completer<DebugConnectionInfo>.sync(); final Completer<void> futureAppStart = Completer<void>.sync(); unawaited(residentRunner.attach( appStartedCompleter: futureAppStart, connectionInfoCompleter: futureConnectionInfo, enableDevTools: true, )); await futureAppStart.future; flutterDevice.reportError = vm_service.RPCError('something bad happened', 666, ''); final OperationResult result = await residentRunner.restart(fullRestart: true); expect(result.fatal, true); expect(result.code, 1); expect((globals.flutterUsage as TestUsage).events, contains( TestUsageEvent('hot', 'exception', parameters: CustomDimensions( hotEventTargetPlatform: getNameForTargetPlatform(TargetPlatform.android_arm), hotEventSdkName: 'Android', hotEventEmulator: false, hotEventFullRestart: true, )), )); expect(fakeAnalytics.sentEvents, contains( Event.hotRunnerInfo( label: 'exception', targetPlatform: getNameForTargetPlatform(TargetPlatform.android_arm), sdkName: 'Android', emulator: false, fullRestart: true, ), )); expect(fakeVmServiceHost?.hasRemainingExpectations, false); }, overrides: <Type, Generator>{ Usage: () => TestUsage(), })); testUsingContext('ResidentRunner uses temp directory when there is no output dill path', () => testbed.run(() { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]); expect(residentRunner.artifactDirectory.path, contains('flutter_tool.')); final ResidentRunner otherRunner = HotRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), dillOutputPath: globals.fs.path.join('foobar', 'app.dill'), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); expect(otherRunner.artifactDirectory.path, contains('foobar')); })); testUsingContext('ResidentRunner deletes artifact directory on preExit', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]); residentRunner.artifactDirectory.childFile('app.dill').createSync(); await residentRunner.preExit(); expect(residentRunner.artifactDirectory, isNot(exists)); })); testUsingContext('ResidentRunner can run source generation', () => testbed.run(() async { final File arbFile = globals.fs.file(globals.fs.path.join('lib', 'l10n', 'app_en.arb')) ..createSync(recursive: true); arbFile.writeAsStringSync(''' { "helloWorld": "Hello, World!", "@helloWorld": { "description": "Sample description" } }'''); globals.fs.file('l10n.yaml').createSync(); globals.fs.file('pubspec.yaml').writeAsStringSync('flutter:\n generate: true\n'); // Create necessary files for [DartPluginRegistrantTarget] final File packageConfig = globals.fs.directory('.dart_tool') .childFile('package_config.json'); packageConfig.createSync(recursive: true); packageConfig.writeAsStringSync(''' { "configVersion": 2, "packages": [ { "name": "path_provider_linux", "rootUri": "../../../path_provider_linux", "packageUri": "lib/", "languageVersion": "2.12" } ] } '''); // Start from an empty dart_plugin_registrant.dart file. globals.fs.directory('.dart_tool').childDirectory('flutter_build').childFile('dart_plugin_registrant.dart').createSync(recursive: true); await residentRunner.runSourceGenerators(); expect(testLogger.errorText, isEmpty); expect(testLogger.statusText, isEmpty); })); testUsingContext('generated main uses correct target', () => testbed.run(() async { final File arbFile = globals.fs.file(globals.fs.path.join('lib', 'l10n', 'app_en.arb')) ..createSync(recursive: true); arbFile.writeAsStringSync(''' { "helloWorld": "Hello, World!", "@helloWorld": { "description": "Sample description" } }'''); globals.fs.file('l10n.yaml').createSync(); globals.fs.file('pubspec.yaml').writeAsStringSync(''' flutter: generate: true dependencies: flutter: sdk: flutter path_provider_linux: 1.0.0 '''); // Create necessary files for [DartPluginRegistrantTarget], including a // plugin that will trigger generation. final File packageConfig = globals.fs.directory('.dart_tool') .childFile('package_config.json'); packageConfig.createSync(recursive: true); packageConfig.writeAsStringSync(''' { "configVersion": 2, "packages": [ { "name": "path_provider_linux", "rootUri": "../path_provider_linux", "packageUri": "lib/", "languageVersion": "2.12" } ] } '''); globals.fs.file('.packages').writeAsStringSync(''' path_provider_linux:/path_provider_linux/lib/ '''); final Directory fakePluginDir = globals.fs.directory('path_provider_linux'); final File pluginPubspec = fakePluginDir.childFile('pubspec.yaml'); pluginPubspec.createSync(recursive: true); pluginPubspec.writeAsStringSync(''' name: path_provider_linux flutter: plugin: implements: path_provider platforms: linux: dartPluginClass: PathProviderLinux '''); residentRunner = HotRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), target: 'custom_main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); await residentRunner.runSourceGenerators(); final File generatedMain = globals.fs.directory('.dart_tool') .childDirectory('flutter_build') .childFile('dart_plugin_registrant.dart'); expect(generatedMain.existsSync(), isTrue); expect(testLogger.errorText, isEmpty); expect(testLogger.statusText, isEmpty); })); testUsingContext('ResidentRunner can run source generation - generation fails', () => testbed.run(() async { // Intentionally define arb file with wrong name. generate_localizations defaults // to app_en.arb. final File arbFile = globals.fs.file(globals.fs.path.join('lib', 'l10n', 'foo.arb')) ..createSync(recursive: true); arbFile.writeAsStringSync(''' { "helloWorld": "Hello, World!", "@helloWorld": { "description": "Sample description" } }'''); globals.fs.file('l10n.yaml').createSync(); globals.fs.file('pubspec.yaml').writeAsStringSync('flutter:\n generate: true\n'); await residentRunner.runSourceGenerators(); expect(testLogger.errorText, contains('Error')); expect(testLogger.statusText, isEmpty); })); testUsingContext('ResidentRunner generates files when l10n.yaml exists', () => testbed.run(() async { globals.fs.file(globals.fs.path.join('lib', 'main.dart')) .createSync(recursive: true); final File arbFile = globals.fs.file(globals.fs.path.join('lib', 'l10n', 'app_en.arb')) ..createSync(recursive: true); arbFile.writeAsStringSync(''' { "helloWorld": "Hello, World!", "@helloWorld": { "description": "Sample description" } }'''); globals.fs.file('l10n.yaml').createSync(); globals.fs.file('pubspec.yaml').writeAsStringSync('flutter:\n generate: true\n'); fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]); final FakeResidentCompiler residentCompiler = FakeResidentCompiler() ..nextOutput = const CompilerOutput('foo', 1 ,<Uri>[]); residentRunner = HotRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); flutterDevice.generator = residentCompiler; await residentRunner.run(); final File generatedLocalizationsFile = globals.fs.directory('.dart_tool') .childDirectory('flutter_gen') .childDirectory('gen_l10n') .childFile('app_localizations.dart'); expect(generatedLocalizationsFile.existsSync(), isTrue); // Completing this future ensures that the daemon can exit correctly. expect(await residentRunner.waitForAppToFinish(), 1); })); testUsingContext('ResidentRunner printHelpDetails hot runner', () => testbed.run(() { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]); residentRunner.printHelp(details: true); final CommandHelp commandHelp = residentRunner.commandHelp; // supports service protocol expect(residentRunner.supportsServiceProtocol, true); // isRunningDebug expect(residentRunner.isRunningDebug, true); // does support SkSL expect(residentRunner.supportsWriteSkSL, true); // commands expect(testLogger.statusText, equals( <dynamic>[ 'Flutter run key commands.', commandHelp.r, commandHelp.R, commandHelp.v, commandHelp.s, commandHelp.w, commandHelp.t, commandHelp.L, commandHelp.f, commandHelp.S, commandHelp.U, commandHelp.i, commandHelp.p, commandHelp.I, commandHelp.o, commandHelp.b, commandHelp.P, commandHelp.a, commandHelp.M, commandHelp.g, commandHelp.j, commandHelp.hWithDetails, commandHelp.c, commandHelp.q, '', 'A Dart VM Service on FakeDevice is available at: null', '', ].join('\n') )); })); testUsingContext('ResidentRunner printHelp hot runner', () => testbed.run(() { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]); residentRunner.printHelp(details: false); final CommandHelp commandHelp = residentRunner.commandHelp; // supports service protocol expect(residentRunner.supportsServiceProtocol, true); // isRunningDebug expect(residentRunner.isRunningDebug, true); // does support SkSL expect(residentRunner.supportsWriteSkSL, true); // commands expect(testLogger.statusText, equals( <dynamic>[ 'Flutter run key commands.', commandHelp.r, commandHelp.R, commandHelp.hWithoutDetails, commandHelp.c, commandHelp.q, '', 'A Dart VM Service on FakeDevice is available at: null', '', ].join('\n') )); })); testUsingContext('ResidentRunner printHelpDetails cold runner', () => testbed.run(() { fakeVmServiceHost = null; residentRunner = ColdRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.disabled(BuildInfo.release), target: 'main.dart', devtoolsHandler: createNoOpHandler, ); residentRunner.printHelp(details: true); final CommandHelp commandHelp = residentRunner.commandHelp; // does not supports service protocol expect(residentRunner.supportsServiceProtocol, false); // isRunningDebug expect(residentRunner.isRunningDebug, false); // does support SkSL expect(residentRunner.supportsWriteSkSL, false); // commands expect(testLogger.statusText, equals( <dynamic>[ 'Flutter run key commands.', commandHelp.v, commandHelp.s, commandHelp.hWithDetails, commandHelp.c, commandHelp.q, '', ].join('\n') )); })); testUsingContext('ResidentRunner printHelp cold runner', () => testbed.run(() { fakeVmServiceHost = null; residentRunner = ColdRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.disabled(BuildInfo.release), target: 'main.dart', devtoolsHandler: createNoOpHandler, ); residentRunner.printHelp(details: false); final CommandHelp commandHelp = residentRunner.commandHelp; // does not supports service protocol expect(residentRunner.supportsServiceProtocol, false); // isRunningDebug expect(residentRunner.isRunningDebug, false); // does support SkSL expect(residentRunner.supportsWriteSkSL, false); // commands expect(testLogger.statusText, equals( <dynamic>[ 'Flutter run key commands.', commandHelp.hWithoutDetails, commandHelp.c, commandHelp.q, '', ].join('\n') )); })); testUsingContext('ResidentRunner handles writeSkSL returning no data', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, FakeVmServiceRequest( method: kGetSkSLsMethod, args: <String, Object>{ 'viewId': fakeFlutterView.id, }, jsonResponse: <String, Object>{ 'SkSLs': <String, Object>{}, } ), ]); await residentRunner.writeSkSL(); expect(testLogger.statusText, contains('No data was received')); expect(fakeVmServiceHost?.hasRemainingExpectations, false); })); testUsingContext('ResidentRunner can write SkSL data to a unique file with engine revision, platform, and device name', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, FakeVmServiceRequest( method: kGetSkSLsMethod, args: <String, Object>{ 'viewId': fakeFlutterView.id, }, jsonResponse: <String, Object>{ 'SkSLs': <String, Object>{ 'A': 'B', }, }, ), ]); await residentRunner.writeSkSL(); expect(testLogger.statusText, contains('flutter_01.sksl.json')); expect(globals.fs.file('flutter_01.sksl.json'), exists); expect(json.decode(globals.fs.file('flutter_01.sksl.json').readAsStringSync()), <String, Object>{ 'platform': 'android', 'name': 'FakeDevice', 'engineRevision': 'abcdefg', 'data': <String, Object>{'A': 'B'}, }); expect(fakeVmServiceHost?.hasRemainingExpectations, false); }, overrides: <Type, Generator>{ FileSystemUtils: () => FileSystemUtils( fileSystem: globals.fs, platform: globals.platform, ), FlutterVersion: () => FakeFlutterVersion(engineRevision: 'abcdefg'), })); testUsingContext('ResidentRunner ignores DevtoolsLauncher when attaching with enableDevTools: false - cold mode', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, ]); residentRunner = ColdRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled(BuildInfo.profile, vmserviceOutFile: 'foo'), target: 'main.dart', devtoolsHandler: createNoOpHandler, ); final Future<int?> result = residentRunner.attach(); expect(await result, 0); })); testUsingContext('FlutterDevice can exit from a release mode isolate with no VmService', () => testbed.run(() async { final TestFlutterDevice flutterDevice = TestFlutterDevice( device, ); await flutterDevice.exitApps(); expect(device.appStopped, true); })); testUsingContext('FlutterDevice will exit an un-paused isolate using stopApp', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]); final TestFlutterDevice flutterDevice = TestFlutterDevice( device, ); flutterDevice.vmService = fakeVmServiceHost!.vmService; final Future<void> exitFuture = flutterDevice.exitApps(); await expectLater(exitFuture, completes); expect(device.appStopped, true); expect(fakeVmServiceHost?.hasRemainingExpectations, false); })); testUsingContext('HotRunner writes vm service file when providing debugging option', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, ], wsAddress: testUri); globals.fs.file(globals.fs.path.join('lib', 'main.dart')).createSync(recursive: true); residentRunner = HotRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug, vmserviceOutFile: 'foo'), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); await residentRunner.run(enableDevTools: true); expect(fakeVmServiceHost?.hasRemainingExpectations, false); expect(await globals.fs.file('foo').readAsString(), testUri.toString()); })); testUsingContext('HotRunner copies compiled app.dill to cache during startup', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, ], wsAddress: testUri); globals.fs.file(globals.fs.path.join('lib', 'main.dart')).createSync(recursive: true); residentRunner = HotRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled( const BuildInfo( BuildMode.debug, null, treeShakeIcons: false, ) ), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); residentRunner.artifactDirectory.childFile('app.dill').writeAsStringSync('ABC'); await residentRunner.run(enableDevTools: true); expect(await globals.fs.file(globals.fs.path.join('build', 'cache.dill')).readAsString(), 'ABC'); })); testUsingContext('HotRunner copies compiled app.dill to cache during startup with dart defines', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, ], wsAddress: testUri); globals.fs.file(globals.fs.path.join('lib', 'main.dart')).createSync(recursive: true); residentRunner = HotRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled( const BuildInfo( BuildMode.debug, '', treeShakeIcons: false, dartDefines: <String>['a', 'b'], ) ), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); residentRunner.artifactDirectory.childFile('app.dill').writeAsStringSync('ABC'); await residentRunner.run(enableDevTools: true); expect(await globals.fs.file(globals.fs.path.join( 'build', '187ef4436122d1cc2f40dc2b92f0eba0.cache.dill')).readAsString(), 'ABC'); })); testUsingContext('HotRunner copies compiled app.dill to cache during startup with null safety', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, ], wsAddress: testUri); globals.fs.file(globals.fs.path.join('lib', 'main.dart')).createSync(recursive: true); residentRunner = HotRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled( const BuildInfo( BuildMode.debug, '', treeShakeIcons: false, extraFrontEndOptions: <String>['--enable-experiment=non-nullable'] ) ), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); residentRunner.artifactDirectory.childFile('app.dill').writeAsStringSync('ABC'); await residentRunner.run(enableDevTools: true); expect(await globals.fs.file(globals.fs.path.join( 'build', 'cache.dill')).readAsString(), 'ABC'); })); testUsingContext('HotRunner copies compiled app.dill to cache during startup with track-widget-creation', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, ], wsAddress: testUri); globals.fs.file(globals.fs.path.join('lib', 'main.dart')).createSync(recursive: true); residentRunner = HotRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); residentRunner.artifactDirectory.childFile('app.dill').writeAsStringSync('ABC'); await residentRunner.run(enableDevTools: true); expect(await globals.fs.file(globals.fs.path.join( 'build', 'cache.dill.track.dill')).readAsString(), 'ABC'); })); testUsingContext('HotRunner does not copy app.dill if a dillOutputPath is given', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, ], wsAddress: testUri); globals.fs.file(globals.fs.path.join('lib', 'main.dart')).createSync(recursive: true); residentRunner = HotRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, dillOutputPath: 'test', debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); residentRunner.artifactDirectory.childFile('app.dill').writeAsStringSync('ABC'); await residentRunner.run(enableDevTools: true); expect(globals.fs.file(globals.fs.path.join('build', 'cache.dill')), isNot(exists)); })); testUsingContext('HotRunner copies compiled app.dill to cache during startup with --track-widget-creation', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, ], wsAddress: testUri); globals.fs.file(globals.fs.path.join('lib', 'main.dart')).createSync(recursive: true); residentRunner = HotRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled(const BuildInfo( BuildMode.debug, '', treeShakeIcons: false, trackWidgetCreation: true, )), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); residentRunner.artifactDirectory.childFile('app.dill').writeAsStringSync('ABC'); await residentRunner.run(enableDevTools: true); expect(await globals.fs.file(globals.fs.path.join('build', 'cache.dill.track.dill')).readAsString(), 'ABC'); })); testUsingContext('HotRunner calls device dispose', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, ], wsAddress: testUri); globals.fs.file(globals.fs.path.join('lib', 'main.dart')).createSync(recursive: true); residentRunner = HotRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); await residentRunner.run(); expect(device.disposed, true); })); testUsingContext('HotRunner handles failure to write vmservice file', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, ]); globals.fs.file(globals.fs.path.join('lib', 'main.dart')).createSync(recursive: true); residentRunner = HotRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug, vmserviceOutFile: 'foo'), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); await residentRunner.run(enableDevTools: true); expect(testLogger.errorText, contains('Failed to write vmservice-out-file at foo')); expect(fakeVmServiceHost?.hasRemainingExpectations, false); }, overrides: <Type, Generator>{ FileSystem: () => ThrowingForwardingFileSystem(MemoryFileSystem.test()), })); testUsingContext('ColdRunner writes vm service file when providing debugging option', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, ], wsAddress: testUri); globals.fs.file(globals.fs.path.join('lib', 'main.dart')).createSync(recursive: true); residentRunner = ColdRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled(BuildInfo.profile, vmserviceOutFile: 'foo'), target: 'main.dart', devtoolsHandler: createNoOpHandler, ); await residentRunner.run(enableDevTools: true); expect(await globals.fs.file('foo').readAsString(), testUri.toString()); expect(fakeVmServiceHost?.hasRemainingExpectations, false); })); testUsingContext('FlutterDevice uses dartdevc configuration when targeting web', () async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]); final FakeDevice device = FakeDevice(targetPlatform: TargetPlatform.web_javascript); final DefaultResidentCompiler? residentCompiler = (await FlutterDevice.create( device, buildInfo: const BuildInfo( BuildMode.debug, '', treeShakeIcons: false, nullSafetyMode: NullSafetyMode.unsound, ), target: null, platform: FakePlatform(), )).generator as DefaultResidentCompiler?; expect(residentCompiler!.initializeFromDill, globals.fs.path.join(getBuildDirectory(), 'fbbe6a61fb7a1de317d381f8df4814e5.cache.dill')); expect(residentCompiler.librariesSpec, globals.fs.file(globals.artifacts!.getHostArtifact(HostArtifact.flutterWebLibrariesJson)) .uri.toString()); expect(residentCompiler.targetModel, TargetModel.dartdevc); expect(residentCompiler.sdkRoot, '${globals.artifacts!.getHostArtifact(HostArtifact.flutterWebSdk).path}/'); expect(residentCompiler.platformDill, 'file:///HostArtifact.webPlatformKernelFolder/ddc_outline.dill'); }, overrides: <Type, Generator>{ Artifacts: () => Artifacts.test(), FileSystem: () => MemoryFileSystem.test(), ProcessManager: () => FakeProcessManager.any(), }); testUsingContext('FlutterDevice uses dartdevc configuration when targeting web with null-safety autodetected', () async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]); final FakeDevice device = FakeDevice(targetPlatform: TargetPlatform.web_javascript); final DefaultResidentCompiler? residentCompiler = (await FlutterDevice.create( device, buildInfo: const BuildInfo( BuildMode.debug, '', treeShakeIcons: false, extraFrontEndOptions: <String>['--enable-experiment=non-nullable'], ), target: null, platform: FakePlatform(), )).generator as DefaultResidentCompiler?; expect(residentCompiler!.initializeFromDill, globals.fs.path.join(getBuildDirectory(), '80b1a4cf4e7b90e1ab5f72022a0bc624.cache.dill')); expect(residentCompiler.librariesSpec, globals.fs.file(globals.artifacts!.getHostArtifact(HostArtifact.flutterWebLibrariesJson)) .uri.toString()); expect(residentCompiler.targetModel, TargetModel.dartdevc); expect(residentCompiler.sdkRoot, '${globals.artifacts!.getHostArtifact(HostArtifact.flutterWebSdk).path}/'); expect(residentCompiler.platformDill, 'file:///HostArtifact.webPlatformKernelFolder/ddc_outline_sound.dill'); }, overrides: <Type, Generator>{ Artifacts: () => Artifacts.test(), FileSystem: () => MemoryFileSystem.test(), ProcessManager: () => FakeProcessManager.any(), }); testUsingContext('FlutterDevice passes alternative-invalidation-strategy flag', () async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]); final FakeDevice device = FakeDevice(); final DefaultResidentCompiler? residentCompiler = (await FlutterDevice.create( device, buildInfo: const BuildInfo( BuildMode.debug, '', treeShakeIcons: false, extraFrontEndOptions: <String>[], ), target: null, platform: FakePlatform(), )).generator as DefaultResidentCompiler?; expect(residentCompiler!.extraFrontEndOptions, contains('--enable-experiment=alternative-invalidation-strategy')); }, overrides: <Type, Generator>{ Artifacts: () => Artifacts.test(), FileSystem: () => MemoryFileSystem.test(), ProcessManager: () => FakeProcessManager.any(), }); testUsingContext('FlutterDevice passes initializeFromDill parameter if specified', () async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]); final FakeDevice device = FakeDevice(); final DefaultResidentCompiler? residentCompiler = (await FlutterDevice.create( device, buildInfo: const BuildInfo( BuildMode.debug, '', treeShakeIcons: false, extraFrontEndOptions: <String>[], initializeFromDill: '/foo/bar.dill', ), target: null, platform: FakePlatform(), )).generator as DefaultResidentCompiler?; expect(residentCompiler!.initializeFromDill, '/foo/bar.dill'); expect(residentCompiler.assumeInitializeFromDillUpToDate, false); }, overrides: <Type, Generator>{ Artifacts: () => Artifacts.test(), FileSystem: () => MemoryFileSystem.test(), ProcessManager: () => FakeProcessManager.any(), }); testUsingContext('FlutterDevice passes assumeInitializeFromDillUpToDate parameter if specified', () async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]); final FakeDevice device = FakeDevice(); final DefaultResidentCompiler? residentCompiler = (await FlutterDevice.create( device, buildInfo: const BuildInfo( BuildMode.debug, '', treeShakeIcons: false, extraFrontEndOptions: <String>[], assumeInitializeFromDillUpToDate: true, ), target: null, platform: FakePlatform(), )).generator as DefaultResidentCompiler?; expect(residentCompiler!.assumeInitializeFromDillUpToDate, true); }, overrides: <Type, Generator>{ Artifacts: () => Artifacts.test(), FileSystem: () => MemoryFileSystem.test(), ProcessManager: () => FakeProcessManager.any(), }); testUsingContext('FlutterDevice passes frontendServerStarterPath parameter if specified', () async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]); final FakeDevice device = FakeDevice(); final DefaultResidentCompiler? residentCompiler = (await FlutterDevice.create( device, buildInfo: const BuildInfo( BuildMode.debug, '', treeShakeIcons: false, frontendServerStarterPath: '/foo/bar/frontend_server_starter.dart', ), target: null, platform: FakePlatform(), )).generator as DefaultResidentCompiler?; expect(residentCompiler!.frontendServerStarterPath, '/foo/bar/frontend_server_starter.dart'); }, overrides: <Type, Generator>{ Artifacts: () => Artifacts.test(), FileSystem: () => MemoryFileSystem.test(), ProcessManager: () => FakeProcessManager.any(), }); testUsingContext('Handle existing VM service clients DDS error', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]); final FakeDevice device = FakeDevice() ..dds = DartDevelopmentService(); ddsLauncherCallback = (Uri uri, {bool enableAuthCodes = true, bool ipv6 = false, Uri? serviceUri, List<String> cachedUserTags = const <String>[], dds.UriConverter? uriConverter}) { expect(uri, Uri(scheme: 'foo', host: 'bar')); expect(enableAuthCodes, isTrue); expect(ipv6, isFalse); expect(serviceUri, Uri(scheme: 'http', host: '127.0.0.1', port: 0)); expect(cachedUserTags, isEmpty); expect(uriConverter, isNull); throw FakeDartDevelopmentServiceException(message: 'Existing VM service clients prevent DDS from taking control.', ); }; final TestFlutterDevice flutterDevice = TestFlutterDevice( device, vmServiceUris: Stream<Uri>.value(testUri), ); bool caught = false; final Completer<void>done = Completer<void>(); runZonedGuarded(() { flutterDevice.connect(allowExistingDdsInstance: true).then((_) => done.complete()); }, (Object e, StackTrace st) { expect(e, isA<ToolExit>()); expect((e as ToolExit).message, contains('Existing VM service clients prevent DDS from taking control.', )); done.complete(); caught = true; }); await done.future; if (!caught) { fail('Expected ToolExit to be thrown.'); } }, overrides: <Type, Generator>{ VMServiceConnector: () => (Uri httpUri, { ReloadSources? reloadSources, Restart? restart, CompileExpression? compileExpression, GetSkSLMethod? getSkSLMethod, FlutterProject? flutterProject, PrintStructuredErrorLogMethod? printStructuredErrorLogMethod, io.CompressionOptions? compression, Device? device, required Logger logger, }) async => FakeVmServiceHost(requests: <VmServiceExpectation>[]).vmService, })); testUsingContext('Uses existing DDS URI from exception field', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]); final FakeDevice device = FakeDevice() ..dds = DartDevelopmentService(); ddsLauncherCallback = (Uri uri, {bool enableAuthCodes = true, bool ipv6 = false, Uri? serviceUri, List<String> cachedUserTags = const <String>[], dds.UriConverter? uriConverter}) { throw dds.DartDevelopmentServiceException.existingDdsInstance( 'Existing DDS at http://localhost/existingDdsInMessage.', ddsUri: Uri.parse('http://localhost/existingDdsInField'), ); }; final TestFlutterDevice flutterDevice = TestFlutterDevice( device, vmServiceUris: Stream<Uri>.value(testUri), ); final Completer<void> done = Completer<void>(); unawaited(runZonedGuarded( () => flutterDevice.connect(allowExistingDdsInstance: true).then((_) => done.complete()), (_, __) => done.complete(), )); await done.future; expect(device.dds.uri, Uri.parse('http://localhost/existingDdsInField')); }, overrides: <Type, Generator>{ VMServiceConnector: () => (Uri httpUri, { ReloadSources? reloadSources, Restart? restart, CompileExpression? compileExpression, GetSkSLMethod? getSkSLMethod, FlutterProject? flutterProject, PrintStructuredErrorLogMethod? printStructuredErrorLogMethod, io.CompressionOptions? compression, Device? device, required Logger logger, }) async => FakeVmServiceHost(requests: <VmServiceExpectation>[]).vmService, })); testUsingContext('Falls back to existing DDS URI from exception message', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]); final FakeDevice device = FakeDevice() ..dds = DartDevelopmentService(); ddsLauncherCallback = (Uri uri, {bool enableAuthCodes = true, bool ipv6 = false, Uri? serviceUri, List<String> cachedUserTags = const <String>[], dds.UriConverter? uriConverter}) { throw dds.DartDevelopmentServiceException.existingDdsInstance( 'Existing DDS at http://localhost/existingDdsInMessage.', ); }; final TestFlutterDevice flutterDevice = TestFlutterDevice( device, vmServiceUris: Stream<Uri>.value(testUri), ); final Completer<void>done = Completer<void>(); unawaited(runZonedGuarded( () => flutterDevice.connect(allowExistingDdsInstance: true).then((_) => done.complete()), (_, __) => done.complete(), )); await done.future; expect(device.dds.uri, Uri.parse('http://localhost/existingDdsInMessage')); }, overrides: <Type, Generator>{ VMServiceConnector: () => (Uri httpUri, { ReloadSources? reloadSources, Restart? restart, CompileExpression? compileExpression, GetSkSLMethod? getSkSLMethod, FlutterProject? flutterProject, PrintStructuredErrorLogMethod? printStructuredErrorLogMethod, io.CompressionOptions? compression, Device? device, required Logger logger, }) async => FakeVmServiceHost(requests: <VmServiceExpectation>[]).vmService, })); testUsingContext('Host VM service ipv6 defaults', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]); final FakeDevice device = FakeDevice() ..dds = DartDevelopmentService(); final Completer<void>done = Completer<void>(); ddsLauncherCallback = (Uri uri, {bool enableAuthCodes = true, bool ipv6 = false, Uri? serviceUri, List<String> cachedUserTags = const <String>[], dds.UriConverter? uriConverter}) async { expect(uri, Uri(scheme: 'foo', host: 'bar')); expect(enableAuthCodes, isFalse); expect(ipv6, isTrue); expect(serviceUri, Uri(scheme: 'http', host: '::1', port: 0)); expect(cachedUserTags, isEmpty); expect(uriConverter, isNull); done.complete(); return FakeDartDevelopmentService(); }; final TestFlutterDevice flutterDevice = TestFlutterDevice( device, vmServiceUris: Stream<Uri>.value(testUri), ); await flutterDevice.connect(allowExistingDdsInstance: true, ipv6: true, disableServiceAuthCodes: true); await done.future; }, overrides: <Type, Generator>{ VMServiceConnector: () => (Uri httpUri, { ReloadSources? reloadSources, Restart? restart, CompileExpression? compileExpression, GetSkSLMethod? getSkSLMethod, FlutterProject? flutterProject, PrintStructuredErrorLogMethod? printStructuredErrorLogMethod, io.CompressionOptions? compression, Device? device, required Logger logger, }) async => FakeVmServiceHost(requests: <VmServiceExpectation>[]).vmService, })); testUsingContext('Context includes URI converter', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]); final FakeDevice device = FakeDevice() ..dds = DartDevelopmentService(); final Completer<void>done = Completer<void>(); ddsLauncherCallback = ( Uri uri, { bool enableAuthCodes = false, bool ipv6 = false, Uri? serviceUri, List<String> cachedUserTags = const <String>[], dds.UriConverter? uriConverter, }) async { expect(uri, Uri(scheme: 'foo', host: 'bar')); expect(enableAuthCodes, isFalse); expect(ipv6, isTrue); expect(serviceUri, Uri(scheme: 'http', host: '::1', port: 0)); expect(cachedUserTags, isEmpty); expect(uriConverter, isNotNull); done.complete(); return FakeDartDevelopmentService(); }; final TestFlutterDevice flutterDevice = TestFlutterDevice( device, vmServiceUris: Stream<Uri>.value(testUri), ); await flutterDevice.connect(allowExistingDdsInstance: true, ipv6: true, disableServiceAuthCodes: true); await done.future; }, overrides: <Type, Generator>{ VMServiceConnector: () => (Uri httpUri, { ReloadSources? reloadSources, Restart? restart, CompileExpression? compileExpression, GetSkSLMethod? getSkSLMethod, FlutterProject? flutterProject, PrintStructuredErrorLogMethod? printStructuredErrorLogMethod, io.CompressionOptions compression = io.CompressionOptions.compressionDefault, Device? device, required Logger logger, }) async => FakeVmServiceHost(requests: <VmServiceExpectation>[]).vmService, dds.UriConverter: () => (String uri) => 'test', })); testUsingContext('Failed DDS start outputs error message', () => testbed.run(() async { // See https://github.com/flutter/flutter/issues/72385 for context. final FakeDevice device = FakeDevice() ..dds = DartDevelopmentService(); ddsLauncherCallback = ( Uri uri, { bool enableAuthCodes = false, bool ipv6 = false, Uri? serviceUri, List<String> cachedUserTags = const <String>[], dds.UriConverter? uriConverter, }) { expect(uri, Uri(scheme: 'foo', host: 'bar')); expect(enableAuthCodes, isTrue); expect(ipv6, isFalse); expect(serviceUri, Uri(scheme: 'http', host: '127.0.0.1', port: 0)); expect(cachedUserTags, isEmpty); expect(uriConverter, isNull); throw FakeDartDevelopmentServiceException(message: 'No URI'); }; final TestFlutterDevice flutterDevice = TestFlutterDevice( device, vmServiceUris: Stream<Uri>.value(testUri), ); bool caught = false; final Completer<void>done = Completer<void>(); runZonedGuarded(() { flutterDevice.connect(allowExistingDdsInstance: true).then((_) => done.complete()); }, (Object e, StackTrace st) { expect(e, isA<StateError>()); expect((e as StateError).message, contains('No URI')); expect(testLogger.errorText, contains( 'DDS has failed to start and there is not an existing DDS instance', )); done.complete(); caught = true; }); await done.future; if (!caught) { fail('Expected a StateError to be thrown.'); } }, overrides: <Type, Generator>{ VMServiceConnector: () => (Uri httpUri, { ReloadSources? reloadSources, Restart? restart, CompileExpression? compileExpression, GetSkSLMethod? getSkSLMethod, FlutterProject? flutterProject, PrintStructuredErrorLogMethod? printStructuredErrorLogMethod, io.CompressionOptions compression = io.CompressionOptions.compressionDefault, Device? device, required Logger logger, }) async => FakeVmServiceHost(requests: <VmServiceExpectation>[]).vmService, })); testUsingContext('nextPlatform moves through expected platforms', () { expect(nextPlatform('android'), 'iOS'); expect(nextPlatform('iOS'), 'windows'); expect(nextPlatform('windows'), 'macOS'); expect(nextPlatform('macOS'), 'linux'); expect(nextPlatform('linux'), 'fuchsia'); expect(nextPlatform('fuchsia'), 'android'); expect(() => nextPlatform('unknown'), throwsAssertionError); }); testUsingContext('cleanupAtFinish shuts down resident devtools handler', () => testbed.run(() async { residentRunner = HotRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug, vmserviceOutFile: 'foo'), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); await residentRunner.cleanupAtFinish(); expect((residentRunner.residentDevtoolsHandler! as NoOpDevtoolsHandler).wasShutdown, true); })); testUsingContext('HotRunner sets asset directory when first evict assets', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, setAssetBundlePath, evict, ]); residentRunner = HotRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); (flutterDevice.devFS! as FakeDevFS).assetPathsToEvict = <String>{'asset'}; expect(flutterDevice.devFS!.hasSetAssetDirectory, isFalse); await (residentRunner as HotRunner).evictDirtyAssets(); expect(flutterDevice.devFS!.hasSetAssetDirectory, isTrue); expect(fakeVmServiceHost!.hasRemainingExpectations, isFalse); })); testUsingContext('HotRunner sets asset directory when first evict shaders', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, setAssetBundlePath, evictShader, ]); residentRunner = HotRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); (flutterDevice.devFS! as FakeDevFS).shaderPathsToEvict = <String>{'foo.frag'}; expect(flutterDevice.devFS!.hasSetAssetDirectory, false); await (residentRunner as HotRunner).evictDirtyAssets(); expect(flutterDevice.devFS!.hasSetAssetDirectory, true); expect(fakeVmServiceHost!.hasRemainingExpectations, false); })); testUsingContext('HotRunner does not sets asset directory when no assets to evict', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ ]); residentRunner = HotRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); expect(flutterDevice.devFS!.hasSetAssetDirectory, false); await (residentRunner as HotRunner).evictDirtyAssets(); expect(flutterDevice.devFS!.hasSetAssetDirectory, false); expect(fakeVmServiceHost!.hasRemainingExpectations, false); })); testUsingContext('HotRunner does not set asset directory if it has been set before', () => testbed.run(() async { fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, evict, ]); residentRunner = HotRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, ); (flutterDevice.devFS! as FakeDevFS).assetPathsToEvict = <String>{'asset'}; flutterDevice.devFS!.hasSetAssetDirectory = true; await (residentRunner as HotRunner).evictDirtyAssets(); expect(flutterDevice.devFS!.hasSetAssetDirectory, true); expect(fakeVmServiceHost!.hasRemainingExpectations, false); })); testUsingContext( 'use the nativeAssetsYamlFile when provided', () => testbed.run(() async { final FakeDevice device = FakeDevice( targetPlatform: TargetPlatform.darwin, sdkNameAndVersion: 'Macos', ); final FakeResidentCompiler residentCompiler = FakeResidentCompiler(); final FakeFlutterDevice flutterDevice = FakeFlutterDevice() ..testUri = testUri ..vmServiceHost = (() => fakeVmServiceHost) ..device = device ..fakeDevFS = devFS ..targetPlatform = TargetPlatform.darwin ..generator = residentCompiler; fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[ listViews, listViews, ]); globals.fs .file(globals.fs.path.join('lib', 'main.dart')) .createSync(recursive: true); residentRunner = HotRunner( <FlutterDevice>[ flutterDevice, ], stayResident: false, debuggingOptions: DebuggingOptions.enabled(const BuildInfo( BuildMode.debug, '', treeShakeIcons: false, trackWidgetCreation: true, )), target: 'main.dart', devtoolsHandler: createNoOpHandler, analytics: fakeAnalytics, nativeAssetsYamlFile: 'foo.yaml', ); final int? result = await residentRunner.run(); expect(result, 0); expect(residentCompiler.recompileCalled, true); expect(residentCompiler.receivedNativeAssetsYaml, globals.fs.path.toUri('foo.yaml')); }), overrides: <Type, Generator>{ ProcessManager: () => FakeProcessManager.any(), FeatureFlags: () => TestFeatureFlags(isNativeAssetsEnabled: true, isMacOSEnabled: true), }); }
flutter/packages/flutter_tools/test/general.shard/resident_runner_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/resident_runner_test.dart", "repo_id": "flutter", "token_count": 33838 }
839
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'dart:io'; import 'package:file/file.dart'; import 'package:file/memory.dart'; import 'package:flutter_tools/src/base/context.dart'; import 'package:flutter_tools/src/base/error_handling_io.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/process.dart'; import 'package:flutter_tools/src/globals.dart' as globals; import '../src/common.dart'; import '../src/testbed.dart'; void main() { group('Testbed', () { test('Can provide default interfaces', () async { final Testbed testbed = Testbed(); late FileSystem localFileSystem; await testbed.run(() { localFileSystem = globals.fs; }); expect(localFileSystem, isA<ErrorHandlingFileSystem>()); expect((localFileSystem as ErrorHandlingFileSystem).fileSystem, isA<MemoryFileSystem>()); }); test('Can provide setup interfaces', () async { final Testbed testbed = Testbed(overrides: <Type, Generator>{ A: () => A(), }); A? instance; await testbed.run(() { instance = context.get<A>(); }); expect(instance, isA<A>()); }); test('Can provide local overrides', () async { final Testbed testbed = Testbed(overrides: <Type, Generator>{ A: () => A(), }); A? instance; await testbed.run(() { instance = context.get<A>(); }, overrides: <Type, Generator>{ A: () => B(), }); expect(instance, isA<B>()); }); test('provides a mocked http client', () async { final Testbed testbed = Testbed(); await testbed.run(() async { final HttpClient client = HttpClient(); final HttpClientRequest request = await client.getUrl(Uri.parse('http://foo.dev')); final HttpClientResponse response = await request.close(); expect(response.statusCode, HttpStatus.ok); expect(response.contentLength, 0); }); }); test('Throws StateError if Timer is left pending', () async { final Testbed testbed = Testbed(); expect(testbed.run(() async { Timer.periodic(const Duration(seconds: 1), (Timer timer) { }); }), throwsStateError); }); test("Doesn't throw a StateError if Timer is left cleaned up", () async { final Testbed testbed = Testbed(); await testbed.run(() async { final Timer timer = Timer.periodic(const Duration(seconds: 1), (Timer timer) { }); timer.cancel(); }); }); test('Throws if ProcessUtils is injected',() { final Testbed testbed = Testbed(overrides: <Type, Generator>{ ProcessUtils: () => null, }); expect(() => testbed.run(() {}), throwsStateError); }); }); } class A { } class B extends A { }
flutter/packages/flutter_tools/test/general.shard/testbed_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/testbed_test.dart", "repo_id": "flutter", "token_count": 1151 }
840
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:convert'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/globals.dart' as globals; import 'package:flutter_tools/src/test/flutter_web_goldens.dart'; import '../../src/common.dart'; import '../../src/fakes.dart'; void main() { group('Test that TestGoldenComparatorProcess', () { late File imageFile; late Uri goldenKey; late File imageFile2; late Uri goldenKey2; late FakeProcess Function(String) createFakeProcess; setUpAll(() { imageFile = globals.fs.file('test_image_file'); goldenKey = Uri.parse('file://golden_key'); imageFile2 = globals.fs.file('second_test_image_file'); goldenKey2 = Uri.parse('file://second_golden_key'); createFakeProcess = (String stdout) => FakeProcess( exitCode: Future<int>.value(0), stdout: stdoutFromString(stdout), ); }); testWithoutContext('can pass data', () async { final Map<String, dynamic> expectedResponse = <String, dynamic>{ 'success': true, 'message': 'some message', }; final FakeProcess mockProcess = createFakeProcess('${jsonEncode(expectedResponse)}\n'); final MemoryIOSink ioSink = mockProcess.stdin as MemoryIOSink; final TestGoldenComparatorProcess process = TestGoldenComparatorProcess(mockProcess, logger: BufferLogger.test()); process.sendCommand(imageFile, goldenKey, false); final Map<String, dynamic> response = await process.getResponse(); final String stringToStdin = ioSink.getAndClear(); expect(response, expectedResponse); expect(stringToStdin, '{"imageFile":"test_image_file","key":"file://golden_key/","update":false}\n'); }); testWithoutContext('can handle multiple requests', () async { final Map<String, dynamic> expectedResponse1 = <String, dynamic>{ 'success': true, 'message': 'some message', }; final Map<String, dynamic> expectedResponse2 = <String, dynamic>{ 'success': false, 'message': 'some other message', }; final FakeProcess mockProcess = createFakeProcess('${jsonEncode(expectedResponse1)}\n${jsonEncode(expectedResponse2)}\n'); final MemoryIOSink ioSink = mockProcess.stdin as MemoryIOSink; final TestGoldenComparatorProcess process = TestGoldenComparatorProcess(mockProcess, logger: BufferLogger.test()); process.sendCommand(imageFile, goldenKey, false); final Map<String, dynamic> response1 = await process.getResponse(); process.sendCommand(imageFile2, goldenKey2, true); final Map<String, dynamic> response2 = await process.getResponse(); final String stringToStdin = ioSink.getAndClear(); expect(response1, expectedResponse1); expect(response2, expectedResponse2); expect(stringToStdin, '{"imageFile":"test_image_file","key":"file://golden_key/","update":false}\n{"imageFile":"second_test_image_file","key":"file://second_golden_key/","update":true}\n'); }); testWithoutContext('ignores anything that does not look like JSON', () async { final Map<String, dynamic> expectedResponse = <String, dynamic>{ 'success': true, 'message': 'some message', }; final FakeProcess mockProcess = createFakeProcess(''' Some random data including {} curly bracket {} curly bracket that is not on the beginning of the line ${jsonEncode(expectedResponse)} {"success": false} Other JSON data after the initial data '''); final MemoryIOSink ioSink = mockProcess.stdin as MemoryIOSink; final TestGoldenComparatorProcess process = TestGoldenComparatorProcess(mockProcess,logger: BufferLogger.test()); process.sendCommand(imageFile, goldenKey, false); final Map<String, dynamic> response = await process.getResponse(); final String stringToStdin = ioSink.getAndClear(); expect(response, expectedResponse); expect(stringToStdin, '{"imageFile":"test_image_file","key":"file://golden_key/","update":false}\n'); }); }); } Stream<List<int>> stdoutFromString(String string) => Stream<List<int>>.fromIterable(<List<int>>[ utf8.encode(string), ]);
flutter/packages/flutter_tools/test/general.shard/web/golden_comparator_process_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/web/golden_comparator_process_test.dart", "repo_id": "flutter", "token_count": 1498 }
841
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/memory.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/build_info.dart'; import 'package:flutter_tools/src/device.dart'; import 'package:flutter_tools/src/project.dart'; import 'package:flutter_tools/src/windows/application_package.dart'; import 'package:flutter_tools/src/windows/windows_device.dart'; import 'package:flutter_tools/src/windows/windows_workflow.dart'; import 'package:test/fake.dart'; import '../../src/common.dart'; import '../../src/fake_process_manager.dart'; import '../../src/fakes.dart'; void main() { testWithoutContext('WindowsDevice defaults', () async { final WindowsDevice windowsDevice = setUpWindowsDevice(); final File dummyFile = MemoryFileSystem.test().file('dummy'); final PrebuiltWindowsApp windowsApp = PrebuiltWindowsApp(executable: 'foo', applicationPackage: dummyFile); expect(await windowsDevice.targetPlatform, TargetPlatform.windows_x64); expect(windowsDevice.name, 'Windows'); expect(await windowsDevice.installApp(windowsApp), true); expect(await windowsDevice.uninstallApp(windowsApp), true); expect(await windowsDevice.isLatestBuildInstalled(windowsApp), true); expect(await windowsDevice.isAppInstalled(windowsApp), true); expect(windowsDevice.category, Category.desktop); expect(windowsDevice.supportsRuntimeMode(BuildMode.debug), true); expect(windowsDevice.supportsRuntimeMode(BuildMode.profile), true); expect(windowsDevice.supportsRuntimeMode(BuildMode.release), true); expect(windowsDevice.supportsRuntimeMode(BuildMode.jitRelease), false); }); testWithoutContext('WindowsDevices does not list devices if the workflow is unsupported', () async { expect(await WindowsDevices( windowsWorkflow: WindowsWorkflow( featureFlags: TestFeatureFlags(), platform: FakePlatform(operatingSystem: 'windows'), ), operatingSystemUtils: FakeOperatingSystemUtils(), logger: BufferLogger.test(), processManager: FakeProcessManager.any(), fileSystem: MemoryFileSystem.test(), ).devices(), <Device>[]); }); testWithoutContext('WindowsDevices lists a devices if the workflow is supported', () async { expect(await WindowsDevices( windowsWorkflow: WindowsWorkflow( featureFlags: TestFeatureFlags(isWindowsEnabled: true), platform: FakePlatform(operatingSystem: 'windows') ), operatingSystemUtils: FakeOperatingSystemUtils(), logger: BufferLogger.test(), processManager: FakeProcessManager.any(), fileSystem: MemoryFileSystem.test(), ).devices(), hasLength(1)); }); testWithoutContext('isSupportedForProject is true with editable host app', () async { final FileSystem fileSystem = MemoryFileSystem.test(); final WindowsDevice windowsDevice = setUpWindowsDevice(fileSystem: fileSystem); fileSystem.file('pubspec.yaml').createSync(); fileSystem.file('.packages').createSync(); fileSystem.directory('windows').createSync(); fileSystem.file(fileSystem.path.join('windows', 'CMakeLists.txt')).createSync(); final FlutterProject flutterProject = setUpFlutterProject(fileSystem.currentDirectory); expect(windowsDevice.isSupportedForProject(flutterProject), true); }); testWithoutContext('isSupportedForProject is false with no host app', () async { final FileSystem fileSystem = MemoryFileSystem.test(); final WindowsDevice windowsDevice = setUpWindowsDevice(fileSystem: fileSystem); fileSystem.file('pubspec.yaml').createSync(); fileSystem.file('.packages').createSync(); final FlutterProject flutterProject = setUpFlutterProject(fileSystem.currentDirectory); expect(windowsDevice.isSupportedForProject(flutterProject), false); }); testWithoutContext('isSupportedForProject is false with no build file', () async { final FileSystem fileSystem = MemoryFileSystem.test(); final WindowsDevice windowsDevice = setUpWindowsDevice(fileSystem: fileSystem); fileSystem.file('pubspec.yaml').createSync(); fileSystem.file('.packages').createSync(); fileSystem.directory('windows').createSync(); final FlutterProject flutterProject = setUpFlutterProject(fileSystem.currentDirectory); expect(windowsDevice.isSupportedForProject(flutterProject), false); }); testWithoutContext('executablePathForDevice uses the correct package executable', () async { final WindowsDevice windowsDevice = setUpWindowsDevice(); final FakeWindowsApp fakeApp = FakeWindowsApp(); expect(windowsDevice.executablePathForDevice(fakeApp, BuildInfo.debug), 'debug/executable'); expect(windowsDevice.executablePathForDevice(fakeApp, BuildInfo.profile), 'profile/executable'); expect(windowsDevice.executablePathForDevice(fakeApp, BuildInfo.release), 'release/executable'); }); } FlutterProject setUpFlutterProject(Directory directory) { final FlutterProjectFactory flutterProjectFactory = FlutterProjectFactory( fileSystem: directory.fileSystem, logger: BufferLogger.test(), ); return flutterProjectFactory.fromDirectory(directory); } WindowsDevice setUpWindowsDevice({ FileSystem? fileSystem, Logger? logger, ProcessManager? processManager, }) { return WindowsDevice( fileSystem: fileSystem ?? MemoryFileSystem.test(), logger: logger ?? BufferLogger.test(), processManager: processManager ?? FakeProcessManager.any(), operatingSystemUtils: FakeOperatingSystemUtils(), ); } class FakeWindowsApp extends Fake implements WindowsApp { @override String executable(BuildMode buildMode, TargetPlatform targetPlatform) => '${buildMode.cliName}/executable'; }
flutter/packages/flutter_tools/test/general.shard/windows/windows_device_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/windows/windows_device_test.dart", "repo_id": "flutter", "token_count": 1769 }
842
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/file.dart'; import 'package:flutter_tools/src/android/gradle_utils.dart' show getGradlewFileName; import 'package:flutter_tools/src/base/io.dart'; import '../src/common.dart'; import 'test_utils.dart'; void main() { late Directory tempDir; setUp(() async { tempDir = createResolvedTempDirectorySync('run_test.'); }); tearDown(() async { tryToDelete(tempDir); }); testWithoutContext( 'gradle task exists named javaVersion that prints jdk version', () async { // Create a new flutter project. final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); ProcessResult result = await processManager.run(<String>[ flutterBin, 'create', tempDir.path, '--project-name=testapp', ], workingDirectory: tempDir.path); expect(result, const ProcessResultMatcher()); // Ensure that gradle files exists from templates. result = await processManager.run(<String>[ flutterBin, 'build', 'apk', '--config-only', ], workingDirectory: tempDir.path); expect(result, const ProcessResultMatcher()); final Directory androidApp = tempDir.childDirectory('android'); result = await processManager.run(<String>[ '.${platform.pathSeparator}${getGradlewFileName(platform)}', ...getLocalEngineArguments(), '-q', // quiet output. 'javaVersion', ], workingDirectory: androidApp.path); // Verify that gradlew has a javaVersion task. expect(result, const ProcessResultMatcher()); // Verify the format is a number on its own line. expect(result.stdout.toString(), matches(RegExp(r'\d+$', multiLine: true))); }); }
flutter/packages/flutter_tools/test/integration.shard/android_gradle_java_version_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/integration.shard/android_gradle_java_version_test.dart", "repo_id": "flutter", "token_count": 652 }
843
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:convert'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/io.dart'; import 'package:flutter_tools/src/features.dart'; import '../src/common.dart'; import 'test_utils.dart'; // This test file does not use [getLocalEngineArguments] because it is testing // command output and not using cached artifacts. void main() { testWithoutContext('All development tools and deprecated commands are hidden and help text is not verbose', () async { final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final ProcessResult result = await processManager.run(<String>[ flutterBin, '-h', '-v', ]); // Development tools. expect(result.stdout, isNot(contains('update-packages'))); // Deprecated. expect(result.stdout, isNot(contains('make-host-app-editable'))); // Only printed by verbose tool. expect(result.stdout, isNot(contains('exiting with code 0'))); }); testWithoutContext('Flutter help is shown with -? command line argument', () async { final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final ProcessResult result = await processManager.run(<String>[ flutterBin, '-?', ]); // Development tools. expect(result.stdout, contains( 'Run "flutter help <command>" for more information about a command.\n' 'Run "flutter help -v" for verbose help output, including less commonly used options.' )); }); testWithoutContext('flutter doctor is not verbose', () async { final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final ProcessResult result = await processManager.run(<String>[ flutterBin, 'doctor', '-v', ]); // Only printed by verbose tool. expect(result.stdout, isNot(contains('exiting with code 0'))); }); testWithoutContext('flutter doctor -vv super verbose', () async { final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final ProcessResult result = await processManager.run(<String>[ flutterBin, 'doctor', '-vv', ]); // Check for message only printed in verbose mode. expect(result.stdout, contains('Shutdown hooks complete')); }); testWithoutContext('flutter config --list contains all features', () async { final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final ProcessResult result = await processManager.run(<String>[ flutterBin, 'config', '--list' ]); // contains all of the experiments in features.dart expect((result.stdout as String).split('\n'), containsAll(<Matcher>[ for (final Feature feature in allConfigurableFeatures) contains(feature.configSetting), ])); }); testWithoutContext('flutter run --machine uses AppRunLogger', () async { final Directory directory = createResolvedTempDirectorySync('flutter_run_test.') .createTempSync('_flutter_run_test.') ..createSync(recursive: true); try { directory .childFile('pubspec.yaml') .writeAsStringSync('name: foo'); directory .childFile('.packages') .writeAsStringSync('\n'); directory .childDirectory('lib') .childFile('main.dart') .createSync(recursive: true); final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final ProcessResult result = await processManager.run(<String>[ flutterBin, 'run', '--show-test-device', // ensure command can fail to run and hit injection of correct logger. '--machine', '-v', '--no-resident', ], workingDirectory: directory.path); expect(result.stderr, isNot(contains('Oops; flutter has exited unexpectedly:'))); } finally { tryToDelete(directory); } }); testWithoutContext('flutter attach --machine uses AppRunLogger', () async { final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final ProcessResult result = await processManager.run(<String>[ flutterBin, 'attach', '--machine', '-v', ]); expect(result.stderr, contains('Target file')); // Target file not found, but different paths on Windows and Linux/macOS. }); testWithoutContext('flutter --version --machine outputs JSON with flutterRoot', () async { final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final ProcessResult result = await processManager.run(<String>[ flutterBin, '--version', '--machine', ]); final Map<String, Object?> versionInfo = json.decode(result.stdout .toString() .replaceAll('Building flutter tool...', '') .replaceAll('Waiting for another flutter command to release the startup lock...', '') .trim()) as Map<String, Object?>; expect(versionInfo, containsPair('flutterRoot', isNotNull)); }); testWithoutContext('A tool exit is thrown for an invalid debug-url in flutter attach', () async { // This test is almost exactly like the next one; update them together please. final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final String helloWorld = fileSystem.path.join(getFlutterRoot(), 'examples', 'hello_world'); final ProcessResult result = await processManager.run(<String>[ flutterBin, '--show-test-device', 'attach', '-d', 'flutter-tester', '--debug-url=http://127.0.0.1:3333*/', ], workingDirectory: helloWorld); expect( result, const ProcessResultMatcher(exitCode: 1, stderrPattern: 'Invalid `--debug-url`: http://127.0.0.1:3333*/'), ); }); testWithoutContext('--debug-uri is an alias for --debug-url', () async { // This text is exactly the same as the previous one but with a "l" turned to an "i". final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final String helloWorld = fileSystem.path.join(getFlutterRoot(), 'examples', 'hello_world'); final ProcessResult result = await processManager.run(<String>[ flutterBin, '--show-test-device', 'attach', '-d', 'flutter-tester', '--debug-uri=http://127.0.0.1:3333*/', // "uri" not "url" ], workingDirectory: helloWorld); expect( result, const ProcessResultMatcher( exitCode: 1, // _"url"_ not "uri"! stderrPattern: 'Invalid `--debug-url`: http://127.0.0.1:3333*/', ), ); }); testWithoutContext('will load bootstrap script before starting', () async { final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final File bootstrap = fileSystem.file(fileSystem.path.join( getFlutterRoot(), 'bin', 'internal', platform.isWindows ? 'bootstrap.bat' : 'bootstrap.sh'), ); try { bootstrap.writeAsStringSync('echo TESTING 1 2 3'); final ProcessResult result = await processManager.run(<String>[ flutterBin, ]); expect(result.stdout, contains('TESTING 1 2 3')); } finally { bootstrap.deleteSync(); } }); testWithoutContext('Providing sksl bundle with missing file with tool exit', () async { final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final String helloWorld = fileSystem.path.join(getFlutterRoot(), 'examples', 'hello_world'); final ProcessResult result = await processManager.run(<String>[ flutterBin, 'build', 'apk', '--bundle-sksl-path=foo/bar/baz.json', // This file does not exist. ], workingDirectory: helloWorld); expect(result, const ProcessResultMatcher( exitCode: 1, stderrPattern: 'No SkSL shader bundle found at foo/bar/baz.json'), ); }); testWithoutContext('flutter attach does not support --release', () async { final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final String helloWorld = fileSystem.path.join(getFlutterRoot(), 'examples', 'hello_world'); final ProcessResult result = await processManager.run(<String>[ flutterBin, '--show-test-device', 'attach', '--release', ], workingDirectory: helloWorld); expect(result.exitCode, isNot(0)); expect(result.stderr, contains('Could not find an option named "release"')); }); testWithoutContext('flutter can report crashes', () async { final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final ProcessResult result = await processManager.run(<String>[ flutterBin, 'update-packages', '--crash', ], environment: <String, String>{ 'BOT': 'false', }); expect(result.exitCode, isNot(0)); expect(result.stderr, contains( 'Oops; flutter has exited unexpectedly: "Bad state: test crash please ignore.".\n' 'A crash report has been written to', )); }); testWithoutContext('flutter supports trailing args', () async { final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final String helloWorld = fileSystem.path.join(getFlutterRoot(), 'examples', 'hello_world'); final ProcessResult result = await processManager.run(<String>[ flutterBin, 'test', 'test/hello_test.dart', '-r', 'json', ], workingDirectory: helloWorld); expect(result, const ProcessResultMatcher()); expect(result.stderr, isEmpty); }); }
flutter/packages/flutter_tools/test/integration.shard/command_output_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/integration.shard/command_output_test.dart", "repo_id": "flutter", "token_count": 3534 }
844
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file_testing/file_testing.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import '../src/common.dart'; import 'test_utils.dart'; // Test the android/app/build directory not be created unexpectedly after // `flutter build` commands, see https://github.com/flutter/flutter/issues/91018. // // The easiest way to reproduce this issue is to create a plugin project, then run // `flutter build` command inside the `example` directory, so we create a plugin // project in the test. void main() { late Directory tempDir; late String flutterBin; late Directory exampleAppDir; setUp(() async { tempDir = createResolvedTempDirectorySync('flutter_plugin_test.'); flutterBin = fileSystem.path.join( getFlutterRoot(), 'bin', 'flutter', ); exampleAppDir = tempDir.childDirectory('aaa').childDirectory('example'); processManager.runSync(<String>[ flutterBin, ...getLocalEngineArguments(), 'create', '--template=plugin', '--platforms=android', 'aaa', ], workingDirectory: tempDir.path); }); tearDown(() async { tryToDelete(tempDir); }); void checkBuildDir() { // The android/app/build directory should not exists final Directory appBuildDir = fileSystem.directory(fileSystem.path.join( exampleAppDir.path, 'android', 'app', 'build', )); expect(appBuildDir, isNot(exists)); } test( 'android/app/build should not exists after flutter build apk', () async { processManager.runSync(<String>[ flutterBin, ...getLocalEngineArguments(), 'build', 'apk', '--target-platform=android-arm', ], workingDirectory: exampleAppDir.path); checkBuildDir(); }, ); test( 'android/app/build should not exists after flutter build appbundle', () async { processManager.runSync(<String>[ flutterBin, ...getLocalEngineArguments(), 'build', 'appbundle', '--target-platform=android-arm', ], workingDirectory: exampleAppDir.path); checkBuildDir(); }, ); }
flutter/packages/flutter_tools/test/integration.shard/flutter_build_android_app_project_builddir_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/integration.shard/flutter_build_android_app_project_builddir_test.dart", "repo_id": "flutter", "token_count": 850 }
845
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/file.dart'; import '../src/common.dart'; import 'test_data/basic_project.dart'; import 'test_driver.dart'; import 'test_utils.dart'; /// This duration is arbitrary but is ideally: /// a) Long enough to ensure that if the app is crashing at startup, we notice. /// b) As short as possible, to avoid inflating build times. const Duration requiredLifespan = Duration(seconds: 5); void main() { final BasicProject project = BasicProject(); late FlutterRunTestDriver flutter; late Directory tempDir; setUp(() async { tempDir = createResolvedTempDirectorySync('lifetime_test.'); await project.setUpIn(tempDir); flutter = FlutterRunTestDriver(tempDir); }); tearDown(() async { await flutter.stop(); tryToDelete(tempDir); }); testWithoutContext('flutter run does not terminate when a debugger is attached', () async { await flutter.run(withDebugger: true); await Future<void>.delayed(requiredLifespan); expect(flutter.hasExited, equals(false)); }); testWithoutContext('flutter run does not terminate when a debugger is attached and pause-on-exceptions', () async { await flutter.run(withDebugger: true, pauseOnExceptions: true); await Future<void>.delayed(requiredLifespan); expect(flutter.hasExited, equals(false)); }); }
flutter/packages/flutter_tools/test/integration.shard/lifetime_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/integration.shard/lifetime_test.dart", "repo_id": "flutter", "token_count": 455 }
846
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import '../test_utils.dart'; import 'project.dart'; class HotReloadWithAssetProject extends Project { @override final String pubspec = ''' name: test environment: sdk: '>=3.2.0-0 <4.0.0' dependencies: flutter: sdk: flutter flutter: assets: - pubspec.yaml '''; @override final String main = r''' import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter/widgets.dart'; Future<void> main() async { WidgetsFlutterBinding.ensureInitialized(); final ByteData message = const StringCodec().encodeMessage('AppLifecycleState.resumed')!; await ServicesBinding.instance!.defaultBinaryMessenger.handlePlatformMessage('flutter/lifecycle', message, (_) { }); runApp(MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { rootBundle.evict('pubspec.yaml'); rootBundle.load('pubspec.yaml').then((_) { print('LOADED DATA'); }, onError: (dynamic error, StackTrace stackTrace) { print('FAILED TO LOAD'); }); return Container(); } } '''; void uncommentHotReloadPrint() { final String newMainContents = main.replaceAll( 'LOADED DATA', 'SECOND DATA', ); writeFile( fileSystem.path.join(dir.path, 'lib', 'main.dart'), newMainContents, writeFutureModifiedDate: true, ); } }
flutter/packages/flutter_tools/test/integration.shard/test_data/hot_reload_with_asset.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/integration.shard/test_data/hot_reload_with_asset.dart", "repo_id": "flutter", "token_count": 555 }
847
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter_tools/src/base/io.dart'; import '../src/common.dart'; import 'test_utils.dart'; final String toolBackend = fileSystem.path.join(getFlutterRoot(), 'packages', 'flutter_tools', 'bin', 'tool_backend.dart'); final String examplePath = fileSystem.path.join(getFlutterRoot(), 'examples', 'hello_world'); final String dart = fileSystem.path.join(getFlutterRoot(), 'bin', platform.isWindows ? 'dart.bat' : 'dart'); void main() { testWithoutContext('tool_backend.dart exits if PROJECT_DIR is not set', () async { final ProcessResult result = await processManager.run(<String>[ dart, toolBackend, 'linux-x64', 'debug', ]); expect( result, const ProcessResultMatcher( exitCode: 1, stderrPattern: 'PROJECT_DIR environment variable must be set to the location of Flutter project to be built.', ), ); }); testWithoutContext('tool_backend.dart exits if FLUTTER_ROOT is not set', () async { // Removing parent environment means that batch script cannot be run. final String dart = fileSystem.path.join(getFlutterRoot(), 'bin', 'cache', 'dart-sdk', 'bin', platform.isWindows ? 'dart.exe' : 'dart'); final ProcessResult result = await processManager.run(<String>[ dart, toolBackend, 'linux-x64', 'debug', ], environment: <String, String>{ 'PROJECT_DIR': examplePath, }, includeParentEnvironment: false); // Prevent FLUTTER_ROOT set by test environment from leaking expect( result, const ProcessResultMatcher( exitCode: 1, stderrPattern: 'FLUTTER_ROOT environment variable must be set to the location of the Flutter SDK.', ), ); }); testWithoutContext('tool_backend.dart exits if local engine does not match build mode', () async { final ProcessResult result = await processManager.run(<String>[ dart, toolBackend, 'linux-x64', 'debug', ], environment: <String, String>{ 'PROJECT_DIR': examplePath, 'LOCAL_ENGINE': 'release_foo_bar', // Does not contain "debug", }); expect( result, const ProcessResultMatcher( exitCode: 1, stderrPattern: "ERROR: Requested build with Flutter local engine at 'release_foo_bar'", ), ); }); testWithoutContext('tool_backend.dart exits if local engine host does not match build mode', () async { final ProcessResult result = await processManager.run(<String>[ dart, toolBackend, 'linux-x64', 'debug', ], environment: <String, String>{ 'PROJECT_DIR': examplePath, 'LOCAL_ENGINE': 'debug_foo_bar', // OK 'LOCAL_ENGINE_HOST': 'release_foo_bar', // Does not contain "debug", }); expect( result, const ProcessResultMatcher( exitCode: 1, stderrPattern: "ERROR: Requested build with Flutter local engine host at 'release_foo_bar'", ), ); }); }
flutter/packages/flutter_tools/test/integration.shard/tool_backend_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/integration.shard/tool_backend_test.dart", "repo_id": "flutter", "token_count": 1156 }
848
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'dart:io' as io show IOSink, ProcessSignal, Stdout, StdoutException; import 'package:flutter_tools/src/android/android_sdk.dart'; import 'package:flutter_tools/src/android/android_studio.dart'; import 'package:flutter_tools/src/android/java.dart'; import 'package:flutter_tools/src/base/bot_detector.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/io.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/base/os.dart'; import 'package:flutter_tools/src/base/time.dart'; import 'package:flutter_tools/src/base/version.dart'; import 'package:flutter_tools/src/cache.dart'; import 'package:flutter_tools/src/convert.dart'; import 'package:flutter_tools/src/features.dart'; import 'package:flutter_tools/src/ios/plist_parser.dart'; import 'package:flutter_tools/src/project.dart'; import 'package:flutter_tools/src/version.dart'; import 'package:test/fake.dart'; /// Environment with DYLD_LIBRARY_PATH=/path/to/libraries class FakeDyldEnvironmentArtifact extends ArtifactSet { FakeDyldEnvironmentArtifact() : super(DevelopmentArtifact.iOS); @override Map<String, String> get environment => <String, String>{ 'DYLD_LIBRARY_PATH': '/path/to/libraries', }; @override Future<bool> isUpToDate(FileSystem fileSystem) => Future<bool>.value(true); @override String get name => 'fake'; @override Future<void> update(ArtifactUpdater artifactUpdater, Logger logger, FileSystem fileSystem, OperatingSystemUtils operatingSystemUtils, {bool offline = false}) async { } } /// A fake process implementation which can be provided all necessary values. class FakeProcess implements Process { FakeProcess({ this.pid = 1, Future<int>? exitCode, IOSink? stdin, this.stdout = const Stream<List<int>>.empty(), this.stderr = const Stream<List<int>>.empty(), }) : exitCode = exitCode ?? Future<int>.value(0), stdin = stdin ?? MemoryIOSink(); @override final int pid; @override final Future<int> exitCode; @override final io.IOSink stdin; @override final Stream<List<int>> stdout; @override final Stream<List<int>> stderr; @override bool kill([io.ProcessSignal signal = io.ProcessSignal.sigterm]) { return true; } } /// An IOSink that completes a future with the first line written to it. class CompleterIOSink extends MemoryIOSink { CompleterIOSink({ this.throwOnAdd = false, }); final bool throwOnAdd; final Completer<List<int>> _completer = Completer<List<int>>(); Future<List<int>> get future => _completer.future; @override void add(List<int> data) { if (!_completer.isCompleted) { // When throwOnAdd is true, complete with empty so any expected output // doesn't appear. _completer.complete(throwOnAdd ? <int>[] : data); } if (throwOnAdd) { throw Exception('CompleterIOSink Error'); } super.add(data); } } /// An IOSink that collects whatever is written to it. class MemoryIOSink implements IOSink { @override Encoding encoding = utf8; final List<List<int>> writes = <List<int>>[]; @override void add(List<int> data) { writes.add(data); } @override Future<void> addStream(Stream<List<int>> stream) { final Completer<void> completer = Completer<void>(); late StreamSubscription<List<int>> sub; sub = stream.listen( (List<int> data) { try { add(data); // Catches all exceptions to propagate them to the completer. } catch (err, stack) { // ignore: avoid_catches_without_on_clauses sub.cancel(); completer.completeError(err, stack); } }, onError: completer.completeError, onDone: completer.complete, cancelOnError: true, ); return completer.future; } @override void writeCharCode(int charCode) { add(<int>[charCode]); } @override void write(Object? obj) { add(encoding.encode('$obj')); } @override void writeln([ Object? obj = '' ]) { add(encoding.encode('$obj\n')); } @override void writeAll(Iterable<dynamic> objects, [ String separator = '' ]) { bool addSeparator = false; for (final dynamic object in objects) { if (addSeparator) { write(separator); } write(object); addSeparator = true; } } @override void addError(dynamic error, [ StackTrace? stackTrace ]) { throw UnimplementedError(); } @override Future<void> get done => close(); @override Future<void> close() async { } @override Future<void> flush() async { } void clear() { writes.clear(); } String getAndClear() { final String result = utf8.decode(writes.expand((List<int> l) => l).toList()); clear(); return result; } } class MemoryStdout extends MemoryIOSink implements io.Stdout { @override bool get hasTerminal => _hasTerminal; set hasTerminal(bool value) { _hasTerminal = value; } bool _hasTerminal = true; @override // ignore: override_on_non_overriding_member String get lineTerminator => '\n'; @override // ignore: override_on_non_overriding_member set lineTerminator(String value) { throw UnimplementedError('Setting the line terminator is not supported'); } @override io.IOSink get nonBlocking => this; @override bool get supportsAnsiEscapes => _supportsAnsiEscapes; set supportsAnsiEscapes(bool value) { _supportsAnsiEscapes = value; } bool _supportsAnsiEscapes = true; @override int get terminalColumns { if (_terminalColumns != null) { return _terminalColumns!; } throw const io.StdoutException('unspecified mock value'); } set terminalColumns(int value) => _terminalColumns = value; int? _terminalColumns; @override int get terminalLines { if (_terminalLines != null) { return _terminalLines!; } throw const io.StdoutException('unspecified mock value'); } set terminalLines(int value) => _terminalLines = value; int? _terminalLines; } /// A Stdio that collects stdout and supports simulated stdin. class FakeStdio extends Stdio { final MemoryStdout _stdout = MemoryStdout()..terminalColumns = 80; final MemoryIOSink _stderr = MemoryIOSink(); final FakeStdin _stdin = FakeStdin(); @override MemoryStdout get stdout => _stdout; @override MemoryIOSink get stderr => _stderr; @override Stream<List<int>> get stdin => _stdin; void simulateStdin(String line) { _stdin.controller.add(utf8.encode('$line\n')); } @override bool hasTerminal = true; List<String> get writtenToStdout => _stdout.writes.map<String>(_stdout.encoding.decode).toList(); List<String> get writtenToStderr => _stderr.writes.map<String>(_stderr.encoding.decode).toList(); } class FakeStdin extends Fake implements Stdin { final StreamController<List<int>> controller = StreamController<List<int>>(); void Function(bool mode)? echoModeCallback; bool _echoMode = true; @override bool get echoMode => _echoMode; @override set echoMode(bool mode) { _echoMode = mode; if (echoModeCallback != null) { echoModeCallback!(mode); } } @override bool lineMode = true; @override Stream<S> transform<S>(StreamTransformer<List<int>, S> transformer) { return controller.stream.transform(transformer); } @override StreamSubscription<List<int>> listen( void Function(List<int> event)? onData, { Function? onError, void Function()? onDone, bool? cancelOnError, }) { return controller.stream.listen( onData, onError: onError, onDone: onDone, cancelOnError: cancelOnError, ); } } class FakePlistParser implements PlistParser { FakePlistParser([Map<String, Object>? underlyingValues]): _underlyingValues = underlyingValues ?? <String, Object>{}; final Map<String, Object> _underlyingValues; void setProperty(String key, Object value) { _underlyingValues[key] = value; } @override String? plistXmlContent(String plistFilePath) => throw UnimplementedError(); @override Map<String, Object> parseFile(String plistFilePath) { return _underlyingValues; } @override T? getValueFromFile<T>(String plistFilePath, String key) { return _underlyingValues[key] as T?; } @override bool replaceKey(String plistFilePath, {required String key, String? value}) { if (value == null) { _underlyingValues.remove(key); return true; } setProperty(key, value); return true; } } class FakeBotDetector implements BotDetector { const FakeBotDetector(bool isRunningOnBot) : _isRunningOnBot = isRunningOnBot; @override Future<bool> get isRunningOnBot async => _isRunningOnBot; final bool _isRunningOnBot; } class FakeFlutterVersion implements FlutterVersion { FakeFlutterVersion({ this.branch = 'master', this.dartSdkVersion = '12', this.devToolsVersion = '2.8.0', this.engineRevision = 'abcdefghijklmnopqrstuvwxyz', this.engineRevisionShort = 'abcde', this.repositoryUrl = 'https://github.com/flutter/flutter.git', this.frameworkVersion = '0.0.0', this.frameworkRevision = '11111111111111111111', this.frameworkRevisionShort = '11111', this.frameworkAge = '0 hours ago', this.frameworkCommitDate = '12/01/01', this.gitTagVersion = const GitTagVersion.unknown(), this.flutterRoot = '/path/to/flutter', this.nextFlutterVersion, }); final String branch; bool get didFetchTagsAndUpdate => _didFetchTagsAndUpdate; bool _didFetchTagsAndUpdate = false; /// Will be returned by [fetchTagsAndGetVersion] if not null. final FlutterVersion? nextFlutterVersion; @override FlutterVersion fetchTagsAndGetVersion({ SystemClock clock = const SystemClock(), }) { _didFetchTagsAndUpdate = true; return nextFlutterVersion ?? this; } bool get didCheckFlutterVersionFreshness => _didCheckFlutterVersionFreshness; bool _didCheckFlutterVersionFreshness = false; @override String get channel { if (kOfficialChannels.contains(branch) || kObsoleteBranches.containsKey(branch)) { return branch; } return kUserBranch; } @override final String flutterRoot; @override final String devToolsVersion; @override final String dartSdkVersion; @override final String engineRevision; @override final String engineRevisionShort; @override final String? repositoryUrl; @override final String frameworkVersion; @override final String frameworkRevision; @override final String frameworkRevisionShort; @override final String frameworkAge; @override final String frameworkCommitDate; @override final GitTagVersion gitTagVersion; @override FileSystem get fs => throw UnimplementedError('FakeFlutterVersion.fs is not implemented'); @override Future<void> checkFlutterVersionFreshness() async { _didCheckFlutterVersionFreshness = true; } @override Future<void> ensureVersionFile() async { } @override String getBranchName({bool redactUnknownBranches = false}) { if (!redactUnknownBranches || kOfficialChannels.contains(branch) || kObsoleteBranches.containsKey(branch)) { return branch; } return kUserBranch; } @override String getVersionString({bool redactUnknownBranches = false}) { return '${getBranchName(redactUnknownBranches: redactUnknownBranches)}/$frameworkRevision'; } @override Map<String, Object> toJson() { return <String, Object>{}; } } // A test implementation of [FeatureFlags] that allows enabling without reading // config. If not otherwise specified, all values default to false. class TestFeatureFlags implements FeatureFlags { TestFeatureFlags({ this.isLinuxEnabled = false, this.isMacOSEnabled = false, this.isWebEnabled = false, this.isWindowsEnabled = false, this.isAndroidEnabled = true, this.isIOSEnabled = true, this.isFuchsiaEnabled = false, this.areCustomDevicesEnabled = false, this.isFlutterWebWasmEnabled = false, this.isCliAnimationEnabled = true, this.isNativeAssetsEnabled = false, this.isPreviewDeviceEnabled = false, }); @override final bool isLinuxEnabled; @override final bool isMacOSEnabled; @override final bool isWebEnabled; @override final bool isWindowsEnabled; @override final bool isAndroidEnabled; @override final bool isIOSEnabled; @override final bool isFuchsiaEnabled; @override final bool areCustomDevicesEnabled; @override final bool isFlutterWebWasmEnabled; @override final bool isCliAnimationEnabled; @override final bool isNativeAssetsEnabled; @override final bool isPreviewDeviceEnabled; @override bool isEnabled(Feature feature) { return switch (feature) { flutterWebFeature => isWebEnabled, flutterLinuxDesktopFeature => isLinuxEnabled, flutterMacOSDesktopFeature => isMacOSEnabled, flutterWindowsDesktopFeature => isWindowsEnabled, flutterAndroidFeature => isAndroidEnabled, flutterIOSFeature => isIOSEnabled, flutterFuchsiaFeature => isFuchsiaEnabled, flutterCustomDevicesFeature => areCustomDevicesEnabled, cliAnimation => isCliAnimationEnabled, nativeAssets => isNativeAssetsEnabled, _ => false, }; } } class FakeOperatingSystemUtils extends Fake implements OperatingSystemUtils { FakeOperatingSystemUtils({this.hostPlatform = HostPlatform.linux_x64}); final List<List<String>> chmods = <List<String>>[]; @override void makeExecutable(File file) { } @override HostPlatform hostPlatform = HostPlatform.linux_x64; @override void chmod(FileSystemEntity entity, String mode) { chmods.add(<String>[entity.path, mode]); } @override File? which(String execName) => null; @override List<File> whichAll(String execName) => <File>[]; @override void unzip(File file, Directory targetDirectory) { } @override void unpack(File gzippedTarFile, Directory targetDirectory) { } @override Stream<List<int>> gzipLevel1Stream(Stream<List<int>> stream) => stream; @override String get name => 'fake OS name and version'; @override String get pathVarSeparator => ';'; @override Future<int> findFreePort({bool ipv6 = false}) async => 12345; } class FakeStopwatch implements Stopwatch { @override bool get isRunning => _isRunning; bool _isRunning = false; @override void start() => _isRunning = true; @override void stop() => _isRunning = false; @override Duration elapsed = Duration.zero; @override int get elapsedMicroseconds => elapsed.inMicroseconds; @override int get elapsedMilliseconds => elapsed.inMilliseconds; @override int get elapsedTicks => elapsed.inMilliseconds; @override int get frequency => 1000; @override void reset() { _isRunning = false; elapsed = Duration.zero; } @override String toString() => '$runtimeType $elapsed $isRunning'; } class FakeStopwatchFactory implements StopwatchFactory { FakeStopwatchFactory({ Stopwatch? stopwatch, Map<String, Stopwatch>? stopwatches }) : stopwatches = <String, Stopwatch>{ if (stopwatches != null) ...stopwatches, if (stopwatch != null) '': stopwatch, }; Map<String, Stopwatch> stopwatches; @override Stopwatch createStopwatch([String name = '']) { return stopwatches[name] ?? FakeStopwatch(); } } class FakeFlutterProjectFactory implements FlutterProjectFactory { @override FlutterProject fromDirectory(Directory directory) { return FlutterProject.fromDirectoryTest(directory); } @override Map<String, FlutterProject> get projects => throw UnimplementedError(); } class FakeAndroidSdk extends Fake implements AndroidSdk { @override late bool platformToolsAvailable; @override late bool licensesAvailable; @override AndroidSdkVersion? latestVersion; } class FakeAndroidStudio extends Fake implements AndroidStudio { @override String get javaPath => 'java'; } class FakeJava extends Fake implements Java { FakeJava({ this.javaHome = '/android-studio/jbr', String binary = '/android-studio/jbr/bin/java', Version? version, bool canRun = true, }): binaryPath = binary, version = version ?? const Version.withText(19, 0, 2, 'openjdk 19.0.2 2023-01-17'), _environment = <String, String>{ if (javaHome != null) Java.javaHomeEnvironmentVariable: javaHome, 'PATH': '/android-studio/jbr/bin', }, _canRun = canRun; @override String? javaHome; @override String binaryPath; final Map<String, String> _environment; final bool _canRun; @override Map<String, String> get environment => _environment; @override Version? version; @override bool canRun() { return _canRun; } }
flutter/packages/flutter_tools/test/src/fakes.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/src/fakes.dart", "repo_id": "flutter", "token_count": 5921 }
849
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'package:file/file.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/vmservice.dart'; import 'package:vm_service/vm_service.dart'; import 'package:vm_service/vm_service_io.dart'; import '../integration.shard/test_data/basic_project.dart'; import '../integration.shard/test_driver.dart'; import '../integration.shard/test_utils.dart'; import '../src/common.dart'; void main() { late Directory tempDir; final BasicProjectWithUnaryMain project = BasicProjectWithUnaryMain(); late FlutterRunTestDriver flutter; group('Clients of flutter run on web with DDS enabled', () { setUp(() async { tempDir = createResolvedTempDirectorySync('run_test.'); await project.setUpIn(tempDir); flutter = FlutterRunTestDriver(tempDir); }); tearDown(() async { await flutter.stop(); tryToDelete(tempDir); }); testWithoutContext('can validate flutter version', () async { await flutter.run( withDebugger: true, chrome: true, additionalCommandArgs: <String>['--verbose', '--web-renderer=html']); expect(flutter.vmServiceWsUri, isNotNull); final VmService client = await vmServiceConnectUri('${flutter.vmServiceWsUri}'); await validateFlutterVersion(client); }); testWithoutContext('can validate flutter version in parallel', () async { await flutter.run( withDebugger: true, chrome: true, additionalCommandArgs: <String>['--verbose', '--web-renderer=html']); expect(flutter.vmServiceWsUri, isNotNull); final VmService client1 = await vmServiceConnectUri('${flutter.vmServiceWsUri}'); final VmService client2 = await vmServiceConnectUri('${flutter.vmServiceWsUri}'); await Future.wait(<Future<void>>[ validateFlutterVersion(client1), validateFlutterVersion(client2), ]); }, skip: true); // https://github.com/flutter/flutter/issues/99003 }); group('Clients of flutter run on web with DDS disabled', () { setUp(() async { tempDir = createResolvedTempDirectorySync('run_test.'); await project.setUpIn(tempDir); flutter = FlutterRunTestDriver(tempDir, spawnDdsInstance: false); }); tearDown(() async { await flutter.stop(); tryToDelete(tempDir); }); testWithoutContext('can validate flutter version', () async { await flutter.run( withDebugger: true, chrome: true, additionalCommandArgs: <String>['--verbose', '--web-renderer=html']); expect(flutter.vmServiceWsUri, isNotNull); final VmService client = await vmServiceConnectUri('${flutter.vmServiceWsUri}'); await validateFlutterVersion(client); }); }); } Future<void> validateFlutterVersion(VmService client) async { String? method; final Future<dynamic> registration = expectLater( client.onEvent('Service'), emitsThrough(predicate((Event e) { if (e.kind == EventKind.kServiceRegistered && e.service == kFlutterVersionServiceName) { method = e.method; return true; } return false; })) ); await client.streamListen('Service'); await registration; await client.streamCancel('Service'); final dynamic version1 = await client.callServiceExtension(method!); expect(version1, const TypeMatcher<Success>() .having((Success r) => r.type, 'type', 'Success') .having((Success r) => r.json!['frameworkVersion'], 'frameworkVersion', isNotNull)); await client.dispose(); }
flutter/packages/flutter_tools/test/web.shard/vm_service_web_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/web.shard/vm_service_web_test.dart", "repo_id": "flutter", "token_count": 1381 }
850
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter_web_plugins/url_strategy.dart'; /// A mock implementation of [PlatformLocation] that doesn't access the browser. class TestPlatformLocation implements PlatformLocation { @override String pathname = ''; @override String search = ''; @override String hash = ''; @override Object? get state => null; /// Mocks the base href of the document. String baseHref = ''; @override void addPopStateListener(EventListener fn) { throw UnimplementedError(); } @override void removePopStateListener(EventListener fn) { throw UnimplementedError(); } @override void pushState(Object? state, String title, String url) {} @override void replaceState(Object? state, String title, String url) {} @override void go(int count) { throw UnimplementedError(); } @override String getBaseHref() => baseHref; }
flutter/packages/flutter_web_plugins/test/navigation/common.dart/0
{ "file_path": "flutter/packages/flutter_web_plugins/test/navigation/common.dart", "repo_id": "flutter", "token_count": 317 }
851
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'package:fuchsia_remote_debug_protocol/src/dart/dart_vm.dart'; import 'package:test/fake.dart'; import 'package:test/test.dart'; import 'package:vm_service/vm_service.dart' as vms; void main() { group('DartVm.connect', () { tearDown(() { restoreVmServiceConnectionFunction(); }); test('disconnect closes peer', () async { final FakeVmService service = FakeVmService(); Future<vms.VmService> fakeServiceFunction( Uri uri, { Duration? timeout, }) { return Future<vms.VmService>(() => service); } fuchsiaVmServiceConnectionFunction = fakeServiceFunction; final DartVm vm = await DartVm.connect(Uri.parse('http://this.whatever/ws')); expect(vm, isNot(null)); await vm.stop(); expect(service.disposed, true); }); }); group('DartVm.getAllFlutterViews', () { late FakeVmService fakeService; setUp(() { fakeService = FakeVmService(); }); tearDown(() { restoreVmServiceConnectionFunction(); }); test('basic flutter view parsing', () async { final Map<String, dynamic> flutterViewCannedResponses = <String, dynamic>{ 'views': <Map<String, dynamic>>[ <String, dynamic>{ 'type': 'FlutterView', 'id': 'flutterView0', }, <String, dynamic>{ 'type': 'FlutterView', 'id': 'flutterView1', 'isolate': <String, dynamic>{ 'type': '@Isolate', 'fixedId': 'true', 'id': 'isolates/1', 'name': 'file://flutterBinary1', 'number': '1', }, }, <String, dynamic>{ 'type': 'FlutterView', 'id': 'flutterView2', 'isolate': <String, dynamic>{ 'type': '@Isolate', 'fixedId': 'true', 'id': 'isolates/2', 'name': 'file://flutterBinary2', 'number': '2', }, }, ], }; Future<vms.VmService> fakeVmConnectionFunction( Uri uri, { Duration? timeout, }) { fakeService.flutterListViews = vms.Response.parse(flutterViewCannedResponses); return Future<vms.VmService>(() => fakeService); } fuchsiaVmServiceConnectionFunction = fakeVmConnectionFunction; final DartVm vm = await DartVm.connect(Uri.parse('http://whatever.com/ws')); expect(vm, isNot(null)); final List<FlutterView> views = await vm.getAllFlutterViews(); expect(views.length, 3); // Check ID's as they cannot be null. expect(views[0].id, 'flutterView0'); expect(views[1].id, 'flutterView1'); expect(views[2].id, 'flutterView2'); // Verify names. expect(views[0].name, equals(null)); expect(views[1].name, 'file://flutterBinary1'); expect(views[2].name, 'file://flutterBinary2'); }); test('basic flutter view parsing with casting checks', () async { final Map<String, dynamic> flutterViewCannedResponses = <String, dynamic>{ 'views': <dynamic>[ <String, dynamic>{ 'type': 'FlutterView', 'id': 'flutterView0', }, <String, dynamic>{ 'type': 'FlutterView', 'id': 'flutterView1', 'isolate': <String, dynamic>{ 'type': '@Isolate', 'fixedId': 'true', 'id': 'isolates/1', 'name': 'file://flutterBinary1', 'number': '1', }, }, <String, dynamic>{ 'type': 'FlutterView', 'id': 'flutterView2', 'isolate': <String, dynamic>{ 'type': '@Isolate', 'fixedId': 'true', 'id': 'isolates/2', 'name': 'file://flutterBinary2', 'number': '2', }, }, ], }; Future<vms.VmService> fakeVmConnectionFunction( Uri uri, { Duration? timeout, }) { fakeService.flutterListViews = vms.Response.parse(flutterViewCannedResponses); return Future<vms.VmService>(() => fakeService); } fuchsiaVmServiceConnectionFunction = fakeVmConnectionFunction; final DartVm vm = await DartVm.connect(Uri.parse('http://whatever.com/ws')); expect(vm, isNot(null)); final List<FlutterView> views = await vm.getAllFlutterViews(); expect(views.length, 3); // Check ID's as they cannot be null. expect(views[0].id, 'flutterView0'); expect(views[1].id, 'flutterView1'); expect(views[2].id, 'flutterView2'); // Verify names. expect(views[0].name, equals(null)); expect(views[1].name, 'file://flutterBinary1'); expect(views[2].name, 'file://flutterBinary2'); }); test('invalid flutter view missing ID', () async { final Map<String, dynamic> flutterViewCannedResponseMissingId = <String, dynamic>{ 'views': <Map<String, dynamic>>[ // Valid flutter view. <String, dynamic>{ 'type': 'FlutterView', 'id': 'flutterView1', 'isolate': <String, dynamic>{ 'type': '@Isolate', 'name': 'IsolateThing', 'fixedId': 'true', 'id': 'isolates/1', 'number': '1', }, }, // Missing ID. <String, dynamic>{ 'type': 'FlutterView', }, ], }; Future<vms.VmService> fakeVmConnectionFunction( Uri uri, { Duration? timeout, }) { fakeService.flutterListViews = vms.Response.parse(flutterViewCannedResponseMissingId); return Future<vms.VmService>(() => fakeService); } fuchsiaVmServiceConnectionFunction = fakeVmConnectionFunction; final DartVm vm = await DartVm.connect(Uri.parse('http://whatever.com/ws')); expect(vm, isNot(null)); Future<void> failingFunction() async { await vm.getAllFlutterViews(); } // Both views should be invalid as they were missing required fields. expect(failingFunction, throwsA(isA<RpcFormatError>())); }); test('get isolates by pattern', () async { final List<vms.IsolateRef> isolates = <vms.IsolateRef>[ vms.IsolateRef.parse(<String, dynamic>{ 'type': '@Isolate', 'fixedId': 'true', 'id': 'isolates/1', 'name': 'file://thingThatWillNotMatch:main()', 'number': '1', })!, vms.IsolateRef.parse(<String, dynamic>{ 'type': '@Isolate', 'fixedId': 'true', 'id': 'isolates/2', 'name': '0:dart_name_pattern()', 'number': '2', })!, vms.IsolateRef.parse(<String, dynamic>{ 'type': '@Isolate', 'fixedId': 'true', 'id': 'isolates/3', 'name': 'flutterBinary.cm', 'number': '3', })!, vms.IsolateRef.parse(<String, dynamic>{ 'type': '@Isolate', 'fixedId': 'true', 'id': 'isolates/4', 'name': '0:some_other_dart_name_pattern()', 'number': '4', })!, ]; Future<vms.VmService> fakeVmConnectionFunction( Uri uri, { Duration? timeout, }) { fakeService.vm = FakeVM(isolates: isolates); return Future<vms.VmService>(() => fakeService); } fuchsiaVmServiceConnectionFunction = fakeVmConnectionFunction; final DartVm vm = await DartVm.connect(Uri.parse('http://whatever.com/ws')); expect(vm, isNot(null)); final List<IsolateRef> matchingFlutterIsolates = await vm.getMainIsolatesByPattern('flutterBinary.cm'); expect(matchingFlutterIsolates.length, 1); final List<IsolateRef> allIsolates = await vm.getMainIsolatesByPattern(''); expect(allIsolates.length, 4); }); test('invalid flutter view missing ID', () async { final Map<String, dynamic> flutterViewCannedResponseMissingIsolateName = <String, dynamic>{ 'views': <Map<String, dynamic>>[ // Missing isolate name. <String, dynamic>{ 'type': 'FlutterView', 'id': 'flutterView1', 'isolate': <String, dynamic>{ 'type': '@Isolate', 'fixedId': 'true', 'id': 'isolates/1', 'number': '1', }, }, ], }; Future<vms.VmService> fakeVmConnectionFunction( Uri uri, { Duration? timeout, }) { fakeService.flutterListViews = vms.Response.parse(flutterViewCannedResponseMissingIsolateName); return Future<vms.VmService>(() => fakeService); } fuchsiaVmServiceConnectionFunction = fakeVmConnectionFunction; final DartVm vm = await DartVm.connect(Uri.parse('http://whatever.com/ws')); expect(vm, isNot(null)); Future<void> failingFunction() async { await vm.getAllFlutterViews(); } // Both views should be invalid as they were missing required fields. expect(failingFunction, throwsA(isA<RpcFormatError>())); }); }); } class FakeVmService extends Fake implements vms.VmService { bool disposed = false; vms.Response? flutterListViews; vms.VM? vm; @override Future<vms.VM> getVM() async => vm!; @override Future<void> dispose() async { disposed = true; } @override Future<vms.Response> callMethod(String method, {String? isolateId, Map<String, dynamic>? args}) async { if (method == '_flutter.listViews') { return flutterListViews!; } throw UnimplementedError(method); } @override Future<void> onDone = Future<void>.value(); } class FakeVM extends Fake implements vms.VM { FakeVM({ this.isolates = const <vms.IsolateRef>[], }); @override List<vms.IsolateRef>? isolates; }
flutter/packages/fuchsia_remote_debug_protocol/test/src/dart/dart_vm_test.dart/0
{ "file_path": "flutter/packages/fuchsia_remote_debug_protocol/test/src/dart/dart_vm_test.dart", "repo_id": "flutter", "token_count": 4860 }
852
# integration_test_example Demonstrates how to use the `package:integration_test`. To run `integration_test/example_test.dart`, ## Android / iOS ```sh flutter drive \ --driver=test_driver/integration_test.dart \ --target=integration_test/example_test.dart ``` ## Web In one shell, run Chromedriver ([download here](https://chromedriver.chromium.org/downloads)): ``` chromedriver --port 8444 ``` Then, in another shell, run `flutter drive`: ```sh flutter drive \ --driver=test_driver/integration_test.dart \ --target=integration_test/example_test.dart \ -d web-server ```
flutter/packages/integration_test/example/README.md/0
{ "file_path": "flutter/packages/integration_test/example/README.md", "repo_id": "flutter", "token_count": 211 }
853
{ "name": "example", "short_name": "example", "start_url": ".", "display": "minimal-ui", "background_color": "#0175C2", "theme_color": "#0175C2", "description": "A new Flutter project.", "orientation": "portrait-primary", "prefer_related_applications": false, "icons": [ { "src": "icons/Icon-192.png", "sizes": "192x192", "type": "image/png" }, { "src": "icons/Icon-512.png", "sizes": "512x512", "type": "image/png" } ] }
flutter/packages/integration_test/example/web/manifest.json/0
{ "file_path": "flutter/packages/integration_test/example/web/manifest.json", "repo_id": "flutter", "token_count": 303 }
854
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'dart:convert'; /// A callback to use with [integrationDriver]. /// /// The callback receives the name of screenshot passed to `binding.takeScreenshot(<name>)`, /// a PNG byte buffer representing the screenshot, and an optional `Map` of arguments. /// /// The callback returns `true` if the test passes or `false` otherwise. /// /// You can use this callback to store the bytes locally in a file or upload them to a service /// that compares the image against a gold or baseline version. /// /// The optional `Map` of arguments can be passed from the /// `binding.takeScreenshot(<name>, <args>)` callsite in the integration test, /// and then the arguments can be used in the `onScreenshot` handler that is defined by /// the Flutter driver. This `Map` should only contain values that can be serialized /// to JSON. /// /// Since the function is executed on the host driving the test, you can access any environment /// variable from it. typedef ScreenshotCallback = Future<bool> Function(String name, List<int> image, [Map<String, Object?>? args]); /// Classes shared between `integration_test.dart` and `flutter drive` based /// adaptor (ex: `integration_test_driver.dart`). /// An object sent from integration_test back to the Flutter Driver in response to /// `request_data` command. class Response { /// Constructor to use for positive response. Response.allTestsPassed({this.data}) : _allTestsPassed = true, _failureDetails = null; /// Constructor for failure response. Response.someTestsFailed(this._failureDetails, {this.data}) : _allTestsPassed = false; /// Constructor for failure response. Response.toolException({String? ex}) : _allTestsPassed = false, _failureDetails = <Failure>[Failure('ToolException', ex)]; /// Constructor for web driver commands response. Response.webDriverCommand({this.data}) : _allTestsPassed = false, _failureDetails = null; final List<Failure>? _failureDetails; final bool _allTestsPassed; /// The extra information to be added along side the test result. Map<String, dynamic>? data; /// Whether the test ran successfully or not. bool get allTestsPassed => _allTestsPassed; /// If the result are failures get the formatted details. String get formattedFailureDetails => _allTestsPassed ? '' : formatFailures(_failureDetails!); /// Failure details as a list. List<Failure>? get failureDetails => _failureDetails; /// Serializes this message to a JSON map. String toJson() => json.encode(<String, dynamic>{ 'result': allTestsPassed.toString(), 'failureDetails': _failureDetailsAsString(), if (data != null) 'data': data, }); /// Deserializes the result from JSON. static Response fromJson(String source) { final Map<String, dynamic> responseJson = json.decode(source) as Map<String, dynamic>; if ((responseJson['result'] as String?) == 'true') { return Response.allTestsPassed(data: responseJson['data'] as Map<String, dynamic>?); } else { return Response.someTestsFailed( _failureDetailsFromJson(responseJson['failureDetails'] as List<dynamic>), data: responseJson['data'] as Map<String, dynamic>?, ); } } /// Method for formatting the test failures' details. String formatFailures(List<Failure> failureDetails) { if (failureDetails.isEmpty) { return ''; } final StringBuffer sb = StringBuffer(); int failureCount = 1; for (final Failure failure in failureDetails) { sb.writeln('Failure in method: ${failure.methodName}'); sb.writeln(failure.details); sb.writeln('end of failure $failureCount\n\n'); failureCount++; } return sb.toString(); } /// Create a list of Strings from [_failureDetails]. List<String> _failureDetailsAsString() { final List<String> list = <String>[]; if (_failureDetails == null || _failureDetails.isEmpty) { return list; } for (final Failure failure in _failureDetails) { list.add(failure.toJson()); } return list; } /// Creates a [Failure] list using a json response. static List<Failure> _failureDetailsFromJson(List<dynamic> list) { return list.map((dynamic s) { return Failure.fromJsonString(s as String); }).toList(); } } /// Representing a failure includes the method name and the failure details. class Failure { /// Constructor requiring all fields during initialization. Failure(this.methodName, this.details); /// The name of the test method which failed. final String methodName; /// The details of the failure such as stack trace. final String? details; /// Serializes the object to JSON. String toJson() { return json.encode(<String, String?>{ 'methodName': methodName, 'details': details, }); } @override String toString() => toJson(); /// Decode a JSON string to create a Failure object. static Failure fromJsonString(String jsonString) { final Map<String, dynamic> failure = json.decode(jsonString) as Map<String, dynamic>; return Failure(failure['methodName'] as String, failure['details'] as String?); } } /// Message used to communicate between app side tests and driver tests. /// /// Not all `integration_tests` use this message. They are only used when app /// side tests are sending [WebDriverCommand]s to the driver side. /// /// These messages are used for the handshake since they carry information on /// the driver side test such as: status pending or tests failed. class DriverTestMessage { /// When tests are failed on the driver side. DriverTestMessage.error() : _isSuccess = false, _isPending = false; /// When driver side is waiting on [WebDriverCommand]s to be sent from the /// app side. DriverTestMessage.pending() : _isSuccess = false, _isPending = true; /// When driver side successfully completed executing the [WebDriverCommand]. DriverTestMessage.complete() : _isSuccess = true, _isPending = false; final bool _isSuccess; final bool _isPending; // /// Status of this message. // /// // /// The status will be use to notify `integration_test` of driver side's // /// state. // String get status => _status; /// Has the command completed successfully by the driver. bool get isSuccess => _isSuccess; /// Is the driver waiting for a command. bool get isPending => _isPending; /// Depending on the values of [isPending] and [isSuccess], returns a string /// to represent the [DriverTestMessage]. /// /// Used as an alternative method to converting the object to json since /// [RequestData] is only accepting string as `message`. @override String toString() { if (isPending) { return 'pending'; } else if (isSuccess) { return 'complete'; } else { return 'error'; } } /// Return a DriverTestMessage depending on `status`. static DriverTestMessage fromString(String status) { switch (status) { case 'error': return DriverTestMessage.error(); case 'pending': return DriverTestMessage.pending(); case 'complete': return DriverTestMessage.complete(); default: throw StateError('This type of status does not exist: $status'); } } } /// Types of different WebDriver commands that can be used in web integration /// tests. /// /// These commands are either commands that WebDriver can execute or used /// for the communication between `integration_test` and the driver test. enum WebDriverCommandType { /// Acknowledgement for the previously sent message. ack, /// No further WebDriver commands is requested by the app-side tests. noop, /// Asking WebDriver to take a screenshot of the Web page. screenshot, } /// Command for WebDriver to execute. /// /// Only works on Web when tests are run via `flutter driver` command. /// /// See: https://www.w3.org/TR/webdriver/ class WebDriverCommand { /// Constructor for [WebDriverCommandType.noop] command. WebDriverCommand.noop() : type = WebDriverCommandType.noop, values = <String, dynamic>{}; /// Constructor for [WebDriverCommandType.noop] screenshot. WebDriverCommand.screenshot(String screenshotName, [Map<String, Object?>? args]) : type = WebDriverCommandType.screenshot, values = <String, dynamic>{ 'screenshot_name': screenshotName, if (args != null) 'args': args, }; /// Type of the [WebDriverCommand]. /// /// Currently the only command that triggers a WebDriver API is `screenshot`. /// /// There are also `ack` and `noop` commands defined to manage the handshake /// during the communication. final WebDriverCommandType type; /// Used for adding extra values to the commands such as file name for /// `screenshot`. final Map<String, dynamic> values; /// Util method for converting [WebDriverCommandType] to a map entry. /// /// Used for converting messages to json format. static Map<String, dynamic> typeToMap(WebDriverCommandType type) => <String, dynamic>{ 'web_driver_command': '$type', }; } /// Template methods each class that responses the driver side inputs must /// implement. /// /// Depending on the platform the communication between `integration_tests` and /// the `driver_tests` can be different. abstract class CallbackManager { /// The callback function to response the driver side input. Future<Map<String, dynamic>> callback( Map<String, String> params, IntegrationTestResults testRunner); /// Takes a screenshot of the application. /// Returns the data that is sent back to the host. Future<Map<String, dynamic>> takeScreenshot(String screenshot, [Map<String, Object?>? args]); /// Android only. Converts the Flutter surface to an image view. Future<void> convertFlutterSurfaceToImage(); /// Cleanup and completers or locks used during the communication. void cleanup(); } /// Interface that surfaces test results of integration tests. /// /// Implemented by [IntegrationTestWidgetsFlutterBinding]s. /// /// Any class which needs to access the test results but do not want to create /// a cyclic dependency [IntegrationTestWidgetsFlutterBinding]s can use this /// interface. Example [CallbackManager]. abstract class IntegrationTestResults { /// Stores failure details. /// /// Failed test method's names used as key. List<Failure> get failureMethodsDetails; /// The extra data for the reported result. Map<String, dynamic>? get reportData; /// Whether all the test methods completed successfully. /// /// Completes when the tests have finished. The boolean value will be true if /// all tests have passed, and false otherwise. Completer<bool> get allTestsPassed; }
flutter/packages/integration_test/lib/common.dart/0
{ "file_path": "flutter/packages/integration_test/lib/common.dart", "repo_id": "flutter", "token_count": 3322 }
855
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:convert'; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:integration_test/common.dart'; import 'package:integration_test/integration_test.dart'; import 'package:vm_service/vm_service.dart' as vm; vm.Timeline _kTimelines = vm.Timeline( traceEvents: <vm.TimelineEvent>[], timeOriginMicros: 100, timeExtentMicros: 200, ); Future<void> main() async { Future<Map<String, dynamic>>? request; group('Test Integration binding', () { final IntegrationTestWidgetsFlutterBinding binding = IntegrationTestWidgetsFlutterBinding.ensureInitialized(); FakeVM? fakeVM; setUp(() { request = binding.callback(<String, String>{ 'command': 'request_data', }); fakeVM = FakeVM( timeline: _kTimelines, ); }); testWidgets('Run Integration app', (WidgetTester tester) async { runApp(const MaterialApp( home: Text('Test'), )); expect(tester.binding, binding); binding.reportData = <String, dynamic>{'answer': 42}; await tester.pump(); }); testWidgets('hitTesting works when using setSurfaceSize', (WidgetTester tester) async { int invocations = 0; await tester.pumpWidget( MaterialApp( home: Center( child: GestureDetector( onTap: () { invocations++; }, child: const Text('Test'), ), ), ), ); await tester.tap(find.byType(Text)); await tester.pump(); expect(invocations, 1); await tester.binding.setSurfaceSize(const Size(200, 300)); await tester.pump(); await tester.tap(find.byType(Text)); await tester.pump(); expect(invocations, 2); await tester.binding.setSurfaceSize(null); await tester.pump(); await tester.tap(find.byType(Text)); await tester.pump(); expect(invocations, 3); }); testWidgets('setSurfaceSize works', (WidgetTester tester) async { await tester.pumpWidget(const MaterialApp(home: Center(child: Text('Test')))); final Size viewCenter = tester.view.physicalSize / tester.view.devicePixelRatio / 2; final double viewCenterX = viewCenter.width; final double viewCenterY = viewCenter.height; Offset widgetCenter = tester.getRect(find.byType(Text)).center; expect(widgetCenter.dx, viewCenterX); expect(widgetCenter.dy, viewCenterY); await tester.binding.setSurfaceSize(const Size(200, 300)); await tester.pump(); widgetCenter = tester.getRect(find.byType(Text)).center; expect(widgetCenter.dx, 100); expect(widgetCenter.dy, 150); await tester.binding.setSurfaceSize(null); await tester.pump(); widgetCenter = tester.getRect(find.byType(Text)).center; expect(widgetCenter.dx, viewCenterX); expect(widgetCenter.dy, viewCenterY); }); testWidgets('Test traceAction', (WidgetTester tester) async { await binding.enableTimeline(vmService: fakeVM); await binding.traceAction(() async {}); expect(binding.reportData, isNotNull); expect(binding.reportData!.containsKey('timeline'), true); expect( json.encode(binding.reportData!['timeline']), json.encode(_kTimelines), ); }); group('defaultTestTimeout', () { final Timeout originalTimeout = binding.defaultTestTimeout; tearDown(() { binding.defaultTestTimeout = originalTimeout; }); test('can be configured', () { const Timeout newTimeout = Timeout(Duration(seconds: 17)); binding.defaultTestTimeout = newTimeout; expect(binding.defaultTestTimeout, newTimeout); }); }); // TODO(jiahaog): Remove when https://github.com/flutter/flutter/issues/66006 is fixed. testWidgets('root widgets are wrapped with a RepaintBoundary', (WidgetTester tester) async { await tester.pumpWidget(const Placeholder()); expect(find.byType(RepaintBoundary), findsOneWidget); }); }); tearDownAll(() async { // This part is outside the group so that `request` has been completed as // part of the `tearDownAll` registered in the group during // `IntegrationTestWidgetsFlutterBinding` initialization. final Map<String, dynamic> response = (await request)!['response'] as Map<String, dynamic>; final String message = response['message'] as String; final Response result = Response.fromJson(message); assert(result.data!['answer'] == 42); }); } class FakeVM extends Fake implements vm.VmService { FakeVM({required this.timeline}); vm.Timeline timeline; @override Future<vm.Timeline> getVMTimeline({int? timeOriginMicros, int? timeExtentMicros}) async { return timeline; } int lastTimeStamp = 0; @override Future<vm.Timestamp> getVMTimelineMicros() async { lastTimeStamp += 100; return vm.Timestamp(timestamp: lastTimeStamp); } @override Future<vm.Success> setVMTimelineFlags(List<String> recordedStreams) async { return vm.Success(); } @override Future<vm.Success> clearVMTimeline() async { return vm.Success(); } }
flutter/packages/integration_test/test/binding_test.dart/0
{ "file_path": "flutter/packages/integration_test/test/binding_test.dart", "repo_id": "flutter", "token_count": 2060 }
856
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; /// This is the model that contains the customization options for the clock. /// /// It is a [ChangeNotifier], so use [ChangeNotifier.addListener] to listen to /// changes to the model. Be sure to call [ChangeNotifier.removeListener] in /// your `dispose` method. /// /// Contestants: Do not edit this. class ClockModel extends ChangeNotifier { get is24HourFormat => _is24HourFormat; bool _is24HourFormat = true; set is24HourFormat(bool is24HourFormat) { if (_is24HourFormat != is24HourFormat) { _is24HourFormat = is24HourFormat; notifyListeners(); } } /// Current location String, for example 'Mountain View, CA'. get location => _location; String _location = 'Mountain View, CA'; set location(String location) { if (location != _location) { _location = location; notifyListeners(); } } /// Current temperature string, for example '22°C'. get temperature => _convertFromCelsius(_temperature); // Stored in degrees celsius, and converted based on the current unit setting num _temperature = 22.0; set temperature(num temperature) { temperature = _convertToCelsius(temperature); if (temperature != _temperature) { _temperature = temperature; _low = _temperature - 3.0; _high = _temperature + 4.0; notifyListeners(); } } /// Daily high temperature, for example '26'. get high => _convertFromCelsius(_high); // Stored in degrees celsius, and converted based on the current unit setting num _high = 26.0; set high(num high) { high = _convertToCelsius(high); if (high != _high) { _high = high; notifyListeners(); } } /// Daily low temperature, for example '19'. get low => _convertFromCelsius(_low); num _low = 19.0; set low(num low) { low = _convertToCelsius(low); if (low != _low) { _low = low; notifyListeners(); } } /// Weather condition text for the current weather, for example 'cloudy'. WeatherCondition get weatherCondition => _weatherCondition; WeatherCondition _weatherCondition = WeatherCondition.sunny; set weatherCondition(WeatherCondition weatherCondition) { if (weatherCondition != _weatherCondition) { _weatherCondition = weatherCondition; notifyListeners(); } } /// [WeatherCondition] value without the enum type. String get weatherString => enumToString(weatherCondition); /// Temperature unit, for example 'celsius'. TemperatureUnit get unit => _unit; TemperatureUnit _unit = TemperatureUnit.celsius; set unit(TemperatureUnit unit) { if (unit != _unit) { _unit = unit; notifyListeners(); } } /// Temperature with unit of measurement. String get temperatureString { return '${temperature.toStringAsFixed(1)}$unitString'; } /// Temperature high with unit of measurement. String get highString { return '${high.toStringAsFixed(1)}$unitString'; } /// Temperature low with unit of measurement. String get lowString { return '${low.toStringAsFixed(1)}$unitString'; } /// Temperature unit of measurement with degrees. String get unitString { switch (unit) { case TemperatureUnit.fahrenheit: return '°F'; case TemperatureUnit.celsius: default: return '°C'; } } num _convertFromCelsius(num degreesCelsius) { switch (unit) { case TemperatureUnit.fahrenheit: return 32.0 + degreesCelsius * 9.0 / 5.0; case TemperatureUnit.celsius: default: return degreesCelsius; break; } } num _convertToCelsius(num degrees) { switch (unit) { case TemperatureUnit.fahrenheit: return (degrees - 32.0) * 5.0 / 9.0; case TemperatureUnit.celsius: default: return degrees; break; } } } /// Weather condition in English. enum WeatherCondition { cloudy, foggy, rainy, snowy, sunny, thunderstorm, windy, } /// Temperature unit of measurement. enum TemperatureUnit { celsius, fahrenheit, } /// Removes the enum type and returns the value as a String. String enumToString(Object e) => e.toString().split('.').last;
flutter_clock/flutter_clock_helper/lib/model.dart/0
{ "file_path": "flutter_clock/flutter_clock_helper/lib/model.dart", "repo_id": "flutter_clock", "token_count": 1493 }
857
// 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/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/gallery_localizations.dart'; // BEGIN cupertinoNavigationBarDemo class CupertinoNavigationBarDemo extends StatelessWidget { const CupertinoNavigationBarDemo({super.key}); static const String homeRoute = '/home'; static const String secondPageRoute = '/home/item'; @override Widget build(BuildContext context) { return Navigator( restorationScopeId: 'navigator', initialRoute: CupertinoNavigationBarDemo.homeRoute, onGenerateRoute: (settings) { switch (settings.name) { case CupertinoNavigationBarDemo.homeRoute: return _NoAnimationCupertinoPageRoute<void>( title: GalleryLocalizations.of(context)! .demoCupertinoNavigationBarTitle, settings: settings, builder: (context) => _FirstPage(), ); case CupertinoNavigationBarDemo.secondPageRoute: final arguments = settings.arguments as Map<dynamic, dynamic>; final title = arguments['pageTitle'] as String?; return CupertinoPageRoute<void>( title: title, settings: settings, builder: (context) => _SecondPage(), ); } return null; }, ); } } class _FirstPage extends StatelessWidget { @override Widget build(BuildContext context) { return CupertinoPageScaffold( child: CustomScrollView( slivers: [ const CupertinoSliverNavigationBar( automaticallyImplyLeading: false, ), SliverPadding( padding: MediaQuery.of(context).removePadding(removeTop: true).padding, sliver: SliverList( delegate: SliverChildBuilderDelegate( (context, index) { final title = GalleryLocalizations.of(context)! .starterAppDrawerItem(index + 1); return ListTile( onTap: () { Navigator.of(context).restorablePushNamed<void>( CupertinoNavigationBarDemo.secondPageRoute, arguments: {'pageTitle': title}, ); }, title: Text(title), ); }, childCount: 20, ), ), ), ], ), ); } } class _SecondPage extends StatelessWidget { @override Widget build(BuildContext context) { return CupertinoPageScaffold( navigationBar: const CupertinoNavigationBar(), child: Container(), ); } } /// A CupertinoPageRoute without any transition animations. class _NoAnimationCupertinoPageRoute<T> extends CupertinoPageRoute<T> { _NoAnimationCupertinoPageRoute({ required super.builder, super.settings, super.title, }); @override Widget buildTransitions( BuildContext context, Animation<double> animation, Animation<double> secondaryAnimation, Widget child, ) { return child; } } // END
gallery/lib/demos/cupertino/cupertino_navigation_bar_demo.dart/0
{ "file_path": "gallery/lib/demos/cupertino/cupertino_navigation_bar_demo.dart", "repo_id": "gallery", "token_count": 1488 }
858
// 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'; const String _kGalleryAssetsPackage = 'flutter_gallery_assets'; // BEGIN cardsDemo enum CardType { standard, tappable, selectable, } class TravelDestination { const TravelDestination({ required this.assetName, required this.assetPackage, required this.title, required this.description, required this.city, required this.location, this.cardType = CardType.standard, }); final String assetName; final String assetPackage; final String title; final String description; final String city; final String location; final CardType cardType; } List<TravelDestination> destinations(BuildContext context) { final localizations = GalleryLocalizations.of(context)!; return [ TravelDestination( assetName: 'places/india_thanjavur_market.png', assetPackage: _kGalleryAssetsPackage, title: localizations.cardsDemoTravelDestinationTitle1, description: localizations.cardsDemoTravelDestinationDescription1, city: localizations.cardsDemoTravelDestinationCity1, location: localizations.cardsDemoTravelDestinationLocation1, ), TravelDestination( assetName: 'places/india_chettinad_silk_maker.png', assetPackage: _kGalleryAssetsPackage, title: localizations.cardsDemoTravelDestinationTitle2, description: localizations.cardsDemoTravelDestinationDescription2, city: localizations.cardsDemoTravelDestinationCity2, location: localizations.cardsDemoTravelDestinationLocation2, cardType: CardType.tappable, ), TravelDestination( assetName: 'places/india_tanjore_thanjavur_temple.png', assetPackage: _kGalleryAssetsPackage, title: localizations.cardsDemoTravelDestinationTitle3, description: localizations.cardsDemoTravelDestinationDescription3, city: localizations.cardsDemoTravelDestinationCity1, location: localizations.cardsDemoTravelDestinationLocation1, cardType: CardType.selectable, ), ]; } class TravelDestinationItem extends StatelessWidget { const TravelDestinationItem( {super.key, required this.destination, this.shape}); // This height will allow for all the Card's content to fit comfortably within the card. static const height = 360.0; final TravelDestination destination; final ShapeBorder? shape; @override Widget build(BuildContext context) { return SafeArea( top: false, bottom: false, child: Padding( padding: const EdgeInsets.all(8), child: Column( children: [ SectionTitle( title: GalleryLocalizations.of(context)! .settingsTextScalingNormal), SizedBox( height: height, child: Card( // This ensures that the Card's children are clipped correctly. clipBehavior: Clip.antiAlias, shape: shape, child: Semantics( label: destination.title, child: TravelDestinationContent(destination: destination), ), ), ), ], ), ), ); } } class TappableTravelDestinationItem extends StatelessWidget { const TappableTravelDestinationItem({ super.key, required this.destination, this.shape, }); // This height will allow for all the Card's content to fit comfortably within the card. static const height = 298.0; final TravelDestination destination; final ShapeBorder? shape; @override Widget build(BuildContext context) { return SafeArea( top: false, bottom: false, child: Padding( padding: const EdgeInsets.all(8), child: Column( children: [ SectionTitle( title: GalleryLocalizations.of(context)!.cardsDemoTappable), SizedBox( height: height, child: Card( // This ensures that the Card's children (including the ink splash) are clipped correctly. clipBehavior: Clip.antiAlias, shape: shape, child: InkWell( onTap: () {}, // Generally, material cards use onSurface with 12% opacity for the pressed state. splashColor: Theme.of(context).colorScheme.onSurface.withOpacity(0.12), // Generally, material cards do not have a highlight overlay. highlightColor: Colors.transparent, child: Semantics( label: destination.title, child: TravelDestinationContent(destination: destination), ), ), ), ), ], ), ), ); } } class SelectableTravelDestinationItem extends StatelessWidget { const SelectableTravelDestinationItem({ super.key, required this.destination, required this.isSelected, required this.onSelected, this.shape, }); final TravelDestination destination; final ShapeBorder? shape; final bool isSelected; final VoidCallback onSelected; // This height will allow for all the Card's content to fit comfortably within the card. static const height = 298.0; @override Widget build(BuildContext context) { final colorScheme = Theme.of(context).colorScheme; final String selectedStatus = isSelected ? GalleryLocalizations.of(context)!.selected : GalleryLocalizations.of(context)!.notSelected; return SafeArea( top: false, bottom: false, child: Padding( padding: const EdgeInsets.all(8), child: Column( children: [ SectionTitle(title: GalleryLocalizations.of(context)!.selectable), SizedBox( height: height, child: Card( // This ensures that the Card's children (including the ink splash) are clipped correctly. clipBehavior: Clip.antiAlias, shape: shape, child: InkWell( onLongPress: () { onSelected(); }, // Generally, material cards use onSurface with 12% opacity for the pressed state. splashColor: colorScheme.onSurface.withOpacity(0.12), // Generally, material cards do not have a highlight overlay. highlightColor: Colors.transparent, child: Stack( children: [ Container( color: isSelected // Generally, material cards use primary with 8% opacity for the selected state. // See: https://material.io/design/interaction/states.html#anatomy ? colorScheme.primary.withOpacity(0.08) : Colors.transparent, ), Semantics( label: '${destination.title}, $selectedStatus', onLongPressHint: isSelected ? GalleryLocalizations.of(context)!.deselect : GalleryLocalizations.of(context)!.select, child: TravelDestinationContent(destination: destination), ), Align( alignment: Alignment.topRight, child: Padding( padding: const EdgeInsets.all(8), child: Icon( Icons.check_circle, color: isSelected ? colorScheme.primary : Colors.transparent, ), ), ), ], ), //), ), ), ), ], ), ), ); } } class SectionTitle extends StatelessWidget { const SectionTitle({ super.key, required this.title, }); final String title; @override Widget build(BuildContext context) { return Padding( padding: const EdgeInsets.fromLTRB(4, 4, 4, 12), child: Align( alignment: Alignment.centerLeft, child: Text(title, style: Theme.of(context).textTheme.titleMedium), ), ); } } class TravelDestinationContent extends StatelessWidget { const TravelDestinationContent({super.key, required this.destination}); final TravelDestination destination; @override Widget build(BuildContext context) { final theme = Theme.of(context); final titleStyle = theme.textTheme.headlineSmall!.copyWith( color: Colors.white, ); final descriptionStyle = theme.textTheme.titleMedium!; final localizations = GalleryLocalizations.of(context)!; return Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ SizedBox( height: 184, child: Stack( children: [ Positioned.fill( // In order to have the ink splash appear above the image, you // must use Ink.image. This allows the image to be painted as // part of the Material and display ink effects above it. Using // a standard Image will obscure the ink splash. child: Ink.image( image: AssetImage( destination.assetName, package: destination.assetPackage, ), fit: BoxFit.cover, child: Container(), ), ), Positioned( bottom: 16, left: 16, right: 16, child: FittedBox( fit: BoxFit.scaleDown, alignment: Alignment.centerLeft, child: Semantics( container: true, header: true, child: Text( destination.title, style: titleStyle, ), ), ), ), ], ), ), // Description and share/explore buttons. Semantics( container: true, child: Padding( padding: const EdgeInsets.fromLTRB(16, 16, 16, 0), child: DefaultTextStyle( softWrap: false, overflow: TextOverflow.ellipsis, style: descriptionStyle, child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ // This array contains the three line description on each card // demo. Padding( padding: const EdgeInsets.only(bottom: 8), child: Text( destination.description, style: descriptionStyle.copyWith(color: Colors.black54), ), ), Text(destination.city), Text(destination.location), ], ), ), ), ), if (destination.cardType == CardType.standard) // share, explore buttons Padding( padding: const EdgeInsets.all(8), child: OverflowBar( alignment: MainAxisAlignment.start, spacing: 8, children: [ TextButton( onPressed: () {}, child: Text(localizations.demoMenuShare, semanticsLabel: localizations .cardsDemoShareSemantics(destination.title)), ), TextButton( onPressed: () {}, child: Text(localizations.cardsDemoExplore, semanticsLabel: localizations .cardsDemoExploreSemantics(destination.title)), ), ], ), ), ], ); } } class CardsDemo extends StatefulWidget { const CardsDemo({super.key}); @override State<CardsDemo> createState() => _CardsDemoState(); } class _CardsDemoState extends State<CardsDemo> with RestorationMixin { final RestorableBool _isSelected = RestorableBool(false); @override String get restorationId => 'cards_demo'; @override void restoreState(RestorationBucket? oldBucket, bool initialRestore) { registerForRestoration(_isSelected, 'is_selected'); } @override void dispose() { _isSelected.dispose(); super.dispose(); } @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( automaticallyImplyLeading: false, title: Text(GalleryLocalizations.of(context)!.demoCardTitle), ), body: Scrollbar( child: ListView( restorationId: 'cards_demo_list_view', padding: const EdgeInsets.only(top: 8, left: 8, right: 8), children: [ for (final destination in destinations(context)) Container( margin: const EdgeInsets.only(bottom: 8), child: (destination.cardType == CardType.standard) ? TravelDestinationItem(destination: destination) : destination.cardType == CardType.tappable ? TappableTravelDestinationItem( destination: destination) : SelectableTravelDestinationItem( destination: destination, isSelected: _isSelected.value, onSelected: () { setState(() { _isSelected.value = !_isSelected.value; }); }, ), ), ], ), ), ); } } // END
gallery/lib/demos/material/cards_demo.dart/0
{ "file_path": "gallery/lib/demos/material/cards_demo.dart", "repo_id": "gallery", "token_count": 6981 }
859
// 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 snackbarsDemo class SnackbarsDemo extends StatelessWidget { const SnackbarsDemo({super.key}); @override Widget build(BuildContext context) { final localizations = GalleryLocalizations.of(context)!; return Scaffold( appBar: AppBar( automaticallyImplyLeading: false, title: Text(localizations.demoSnackbarsTitle), ), body: Center( child: ElevatedButton( onPressed: () { ScaffoldMessenger.of(context).hideCurrentSnackBar(); ScaffoldMessenger.of(context).showSnackBar(SnackBar( content: Text(localizations.demoSnackbarsText), action: SnackBarAction( label: localizations.demoSnackbarsActionButtonLabel, onPressed: () { ScaffoldMessenger.of(context).hideCurrentSnackBar(); ScaffoldMessenger.of(context).showSnackBar(SnackBar( content: Text( localizations.demoSnackbarsAction, ))); }, ), )); }, child: Text(localizations.demoSnackbarsButtonLabel), ), ), ); } } // END
gallery/lib/demos/material/snackbar_demo.dart/0
{ "file_path": "gallery/lib/demos/material/snackbar_demo.dart", "repo_id": "gallery", "token_count": 671 }
860
// 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 typographyDemo class _TextStyleItem extends StatelessWidget { const _TextStyleItem({ required this.name, required this.style, required this.text, }); final String name; final TextStyle style; final String text; @override Widget build(BuildContext context) { return Padding( padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 16), child: Row( crossAxisAlignment: CrossAxisAlignment.center, children: [ SizedBox( width: 72, child: Text(name, style: Theme.of(context).textTheme.bodySmall), ), Expanded( child: Text(text, style: style), ), ], ), ); } } class TypographyDemo extends StatelessWidget { const TypographyDemo({super.key}); @override Widget build(BuildContext context) { final textTheme = Theme.of(context).textTheme; final styleItems = [ _TextStyleItem( name: 'Headline 1', style: textTheme.displayLarge!, text: 'Light 96sp', ), _TextStyleItem( name: 'Headline 2', style: textTheme.displayMedium!, text: 'Light 60sp', ), _TextStyleItem( name: 'Headline 3', style: textTheme.displaySmall!, text: 'Regular 48sp', ), _TextStyleItem( name: 'Headline 4', style: textTheme.headlineMedium!, text: 'Regular 34sp', ), _TextStyleItem( name: 'Headline 5', style: textTheme.headlineSmall!, text: 'Regular 24sp', ), _TextStyleItem( name: 'Headline 6', style: textTheme.titleLarge!, text: 'Medium 20sp', ), _TextStyleItem( name: 'Subtitle 1', style: textTheme.titleMedium!, text: 'Regular 16sp', ), _TextStyleItem( name: 'Subtitle 2', style: textTheme.titleSmall!, text: 'Medium 14sp', ), _TextStyleItem( name: 'Body Text 1', style: textTheme.bodyLarge!, text: 'Regular 16sp', ), _TextStyleItem( name: 'Body Text 2', style: textTheme.bodyMedium!, text: 'Regular 14sp', ), _TextStyleItem( name: 'Button', style: textTheme.labelLarge!, text: 'MEDIUM (ALL CAPS) 14sp', ), _TextStyleItem( name: 'Caption', style: textTheme.bodySmall!, text: 'Regular 12sp', ), _TextStyleItem( name: 'Overline', style: textTheme.labelSmall!, text: 'REGULAR (ALL CAPS) 10sp', ), ]; return Scaffold( appBar: AppBar( automaticallyImplyLeading: false, title: Text(GalleryLocalizations.of(context)!.demoTypographyTitle), ), body: Scrollbar(child: ListView(children: styleItems)), ); } } // END
gallery/lib/demos/reference/typography_demo.dart/0
{ "file_path": "gallery/lib/demos/reference/typography_demo.dart", "repo_id": "gallery", "token_count": 1415 }
861
{ "loading": "লোড হচ্ছে", "deselect": "টিক চিহ্ন সরিয়ে দিন", "select": "বেছে নিন", "selectable": "বেছে নিতে পারেন (বেশিক্ষণ প্রেস করুন)", "selected": "বেছে নেওয়া আইটেম", "demo": "ডেমো", "bottomAppBar": "স্ক্রিনের নিচের দিকে থাকা অ্যাপ বার", "notSelected": "বেছে নেওয়া হয়নি", "demoCupertinoSearchTextFieldTitle": "সার্চ টেক্সট ফিল্ড", "demoCupertinoPicker": "বাছাইকারী", "demoCupertinoSearchTextFieldSubtitle": "iOS-স্টাইল সার্চ টেক্সট ফিল্ড", "demoCupertinoSearchTextFieldDescription": "সার্চ টেক্সট ফিল্ড ব্যবহারকারীকে টেক্সট লিখে সার্চ করতে দেয় এবং এটি বিভিন্ন সাজেশন অফার ও ফিল্টার করতে পারে।", "demoCupertinoSearchTextFieldPlaceholder": "কিছু টেক্সট লিখুন", "demoCupertinoScrollbarTitle": "স্ক্রলবার", "demoCupertinoScrollbarSubtitle": "iOS-স্টাইল স্ক্রলবার", "demoCupertinoScrollbarDescription": "স্ক্রলবার তার সামনে থাকা চাইল্ড এলিমেন্টকে র‌্যাপ করে দেয়", "demoTwoPaneItem": "আইটেম {value}", "demoTwoPaneList": "তালিকা", "demoTwoPaneFoldableLabel": "ফোল্ড করা যায়", "demoTwoPaneSmallScreenLabel": "ছোট স্ক্রিন", "demoTwoPaneSmallScreenDescription": "ছোট স্ক্রিনের ডিভাইসে TwoPane এইভাবে পারফর্ম করে।", "demoTwoPaneTabletLabel": "ট্যাবলেট / ডেস্কটপ", "demoTwoPaneTabletDescription": "ট্যাবলেট বা ডেস্কটপের মতো বড় স্ক্রিনের ডিভাইসে TwoPane এইভাবে পারফর্ম করে।", "demoTwoPaneTitle": "TwoPane", "demoTwoPaneSubtitle": "ফোল্ড করা যায় এমন ডিভাইস, বড় এবং ছোট স্ক্রিনের জন্য রেসপন্সিভ লেআউট", "splashSelectDemo": "ডেমো", "demoTwoPaneFoldableDescription": "ফোল্ড করা যায় এমন ডিভাইসে TwoPane এইভাবে পারফর্ম করে।", "demoTwoPaneDetails": "বিবরণ", "demoTwoPaneSelectItem": "একটি আইটেম বেছে নিন", "demoTwoPaneItemDetails": "আইটেমের {value} বিবরণ", "demoCupertinoContextMenuActionText": "কনটেক্সট মেনু দেখতে 'ফ্লাটার' লোগোতে ট্যাপ করে ধরে থাকুন।", "demoCupertinoContextMenuDescription": "কোনও এলিমেন্টের উপর অনেকক্ষণ প্রেস করে ধরে থাকলে, iOS-স্টাইলের ফুল-স্ক্রিন কনটেক্সট মেনু দেখানো হয়।", "demoAppBarTitle": "অ্যাপ বার", "demoAppBarDescription": "অ্যাপ বারে বর্তমান স্ক্রিন সম্পর্কিত কন্টেন্ট ও অ্যাকশন দেখায়। এটি ব্র্যান্ডিং, স্ক্রিন টাইটেল, নেভিগেশন ও অ্যাকশনের জন্য ব্যবহৃত হয়", "demoDividerTitle": "ডিভাইডার", "demoDividerSubtitle": "ডিভাইডার একটি সরু লাইন যেটি বিভিন্ন তালিকা ও লে-আউটে কন্টেন্ট আলাদা আলাদাভাবে দেখায়।", "demoDividerDescription": "ডিভাইডার তালিকা, ড্রয়ার ও অন্যান্য জায়গায় কন্টেন্টকে আলাদা আলাদাভাবে দেখানোর জন্য ব্যবহার করা হয়।", "demoVerticalDividerTitle": "ভার্টিকাল ডিভাইডার", "demoCupertinoContextMenuTitle": "কনটেক্সট মেনু", "demoCupertinoContextMenuSubtitle": "iOS-স্টাইলের কনটেক্সট মেনু", "demoAppBarSubtitle": "বর্তমান স্ক্রিন সম্পর্কিত তথ্য ও অ্যাকশন ডিসপ্লে করে", "demoCupertinoContextMenuActionOne": "প্রথম অ্যাকশন", "demoCupertinoContextMenuActionTwo": "দ্বিতীয় অ্যাকশন", "demoDateRangePickerDescription": "মেটেরিয়াল ডিজাইনের ডেট রেঞ্জ চয়নকারী রয়েছে এমন ডায়ালগ দেখায়।", "demoDateRangePickerTitle": "ডেট রেঞ্জ চয়নকারী", "demoNavigationDrawerUserName": "ব্যবহারকারী নাম", "demoNavigationDrawerUserEmail": "[email protected]", "demoNavigationDrawerText": "ড্রয়ার দেখতে স্ক্রিনের বর্ডার থেকে সোয়াইপ করুন অথবা উপরের বাঁদিকের আইকনে ট্যাপ করুন", "demoNavigationRailTitle": "নেভিগেশন রেল", "demoNavigationRailSubtitle": "অ্যাপের মধ্যে নেভিগেশন রেল দেখানো হচ্ছে", "demoNavigationRailDescription": "একটি মেটিরিয়াল উইজেট যা সাধারণত অ্যাপের বাঁ অথবা ডানদিকে সাধারণত তিন থেকে পাঁচটি ভিউর মধ্যে নেভিগেট করার জন্য দেখানো হয়।", "demoNavigationRailFirst": "প্রথম", "demoNavigationDrawerTitle": "নেভিগেশান ড্রয়ার", "demoNavigationRailThird": "তৃতীয়", "replyStarredLabel": "তারা চিহ্নিত", "demoTextButtonDescription": "টেক্সট বোতাম প্রেস করলে কালি ছড়িয়ে পড়ে কিন্তু লিফ্ট করে না। প্যাডিং সহ টেক্সট বোতাম টুলবারে, ডায়ালগে এবং ইনলাইনে ব্যবহার করুন", "demoElevatedButtonTitle": "উন্নত বোতাম", "demoElevatedButtonDescription": "উন্নত বোতাম প্রায়ই ফ্ল্যাট লেআউটে আকার দিতে সাহায্য করে। ব্যস্ত বা চওড়া জায়গাতে তারা আরও গুরুত্ব দেয়।", "demoOutlinedButtonTitle": "আউটলাইন করা বোতাম", "demoOutlinedButtonDescription": "আউটলাইন করা বোতাম প্রেস করলে অস্বচ্ছ হয়ে বড় হয়ে যায়। সেটি প্রায়ই একটি বিকল্প সেকেন্ডারি অ্যাকশন নির্দেশ করতে বড় হওয়া বোতামের সাথে ব্যবহার হয়।", "demoContainerTransformDemoInstructions": "কার্ড, তালিকা ও এফএবি", "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": "২৬৮টি অ্যালবাম", "demoSharedYAxisTitle": "শেয়ার করা y-অ্যাক্সিস", "demoSharedXAxisCreateAccountButtonText": "অ্যাকাউন্ট তৈরি করুন", "demoFadeScaleAlertDialogDiscardButton": "বাতিল করুন", "demoSharedXAxisSignInTextFieldLabel": "ইমেল বা ফোন নম্বর", "demoSharedXAxisSignInSubtitleText": "আপনার অ্যাকাউন্টে সাইন-ইন করুন", "demoSharedXAxisSignInWelcomeText": "হাই অভিজিত ভঞ্জ", "demoSharedXAxisIndividualCourseSubtitle": "আলাদা করে দেখানো", "demoSharedXAxisBundledCourseSubtitle": "বান্ডেল করা হয়েছে", "demoFadeThroughAlbumsDestination": "অ্যালবাম", "demoSharedXAxisDesignCourseTitle": "ডিজাইন", "demoSharedXAxisIllustrationCourseTitle": "ছবি", "demoSharedXAxisBusinessCourseTitle": "ব্যবসা", "demoSharedXAxisArtsAndCraftsCourseTitle": "আর্ট অ্যান্ড ক্র্যাফট", "demoMotionPlaceholderSubtitle": "সেকেন্ডারি টেক্সট", "demoFadeScaleAlertDialogCancelButton": "বাতিল করুন", "demoFadeScaleAlertDialogHeader": "সতর্কতা ডায়ালগ", "demoFadeScaleHideFabButton": "ফ্যাব লুকান", "demoFadeScaleShowFabButton": "ফ্যাব দেখুন", "demoFadeScaleShowAlertDialogButton": "মোডাল দেখুন", "demoFadeScaleDescription": "UI এলিমেন্টের জন্য 'বরাবর অস্পষ্ট' প্যাটার্ন ব্যবহার করা হয় সেটি স্ক্রিনের ডিসপ্লের মধ্যে প্রবেশ করে অথবা বেরিয়ে যায়, যেমন একটি ডায়লগ যেটি স্ক্রিনের মাঝখানে অস্পষ্ট হয়ে যায়।", "demoFadeScaleTitle": "অস্পষ্ট", "demoFadeThroughTextPlaceholder": "১২৩টি ফটো", "demoFadeThroughSearchDestination": "Search", "demoFadeThroughPhotosDestination": "ফটো", "demoSharedXAxisCoursePageSubtitle": "আপনার ফিডে বান্ডেল করা বিভাগগুলি গ্রুপ হিসেবে দেখা যাবে। আপনি পরে যেকোনও সময় এটিকে পরিবর্তন করতে পারবেন।", "demoFadeThroughDescription": "UI এলিমেন্টের মধ্যে ট্রানজিশন করতে 'বরাবর অস্পষ্ট' প্যাটার্ন ব্যবহার করা হয়, যেখানে প্রত্যেকটি এলিমেন্টের মধ্যে শক্তিশালি সম্পর্ক থাকে না।", "demoFadeThroughTitle": "বরাবর অস্পষ্ট", "demoSharedZAxisHelpSettingLabel": "সহায়তা", "demoMotionSubtitle": "পূর্বনির্ধারিত সব ট্রানজিশনের প্যাটার্ন", "demoSharedZAxisNotificationSettingLabel": "বিজ্ঞপ্তি", "demoSharedZAxisProfileSettingLabel": "প্রোফাইল", "demoSharedZAxisSavedRecipesListTitle": "সেভ করা রেসিপি", "demoSharedZAxisBeefSandwichRecipeDescription": "বিফ স্যান্ডউইচের রেসিপি", "demoSharedZAxisCrabPlateRecipeDescription": "কাঁকড়ার ডিশ বানানোর রেসিপি", "demoSharedXAxisCoursePageTitle": "আপনার কোর্স স্ট্রিমলাইন করুন", "demoSharedZAxisCrabPlateRecipeTitle": "কাঁকড়া", "demoSharedZAxisShrimpPlateRecipeDescription": "চিংড়ি মাছের ডিশ বানানোর রেসিপি", "demoSharedZAxisShrimpPlateRecipeTitle": "চিংড়ি মাছ", "demoContainerTransformTypeFadeThrough": "বরাবর অস্পষ্ট", "demoSharedZAxisDessertRecipeTitle": "ডেজার্ট", "demoSharedZAxisSandwichRecipeDescription": "স্যান্ডউইচের রেসিপি", "demoSharedZAxisSandwichRecipeTitle": "স্যান্ডউইচ", "demoSharedZAxisBurgerRecipeDescription": "বার্গারের রেসিপি", "demoSharedZAxisBurgerRecipeTitle": "বার্গার", "demoSharedZAxisSettingsPageTitle": "সেটিংস", "demoSharedZAxisTitle": "শেয়ার করা z-অ্যাক্সিস", "demoSharedZAxisPrivacySettingLabel": "গোপনীয়তা", "demoMotionTitle": "মোশন", "demoContainerTransformTitle": "কন্টেনার পরিবর্তন করা", "demoContainerTransformDescription": "কন্টেনার যুক্ত আছে এমন UI এলিমেন্টের মধ্যে ট্রানজিশন করতে কন্টেনার পরিবর্তন করার প্যাটার্ন ডিজাইন করা হয়েছে। এই প্যাটার্ন দুটি UI এলিমেন্টের মধ্যে এমন কানেকশন তৈরি করে যা দেখা যায়", "demoContainerTransformModalBottomSheetTitle": "অস্পষ্ট মোড", "demoContainerTransformTypeFade": "অস্পষ্ট", "demoSharedYAxisAlbumTileDurationUnit": "মিনিট", "demoMotionPlaceholderTitle": "নাম", "demoSharedXAxisForgotEmailButtonText": "ইমেল আইডি ভুলে গেছেন?", "demoMotionSmallPlaceholderSubtitle": "সেকেন্ডারি", "demoMotionDetailsPageTitle": "বিবরণের পৃষ্ঠা", "demoMotionListTileTitle": "তালিকার আইটেম", "demoSharedAxisDescription": "UI এলিমেন্টের মধ্যে ট্রানজিশন করতে শেয়ার করা অ্যাক্সিস প্যাটার্ন ব্যবহার করা হয় যেটিতে স্থানীয় অথবা নেভিগেট করার সুবিধা রয়েছে। এই প্যাটার্নটি এলিমেন্টের মধ্যে সম্পর্ক শক্তিশালী করতে x, y বা z অ্যাক্সিসের উপর শেয়ার করা পরিবর্তন ব্যবহার করে।", "demoSharedXAxisTitle": "শেয়ার করা x-অ্যাক্সিস", "demoSharedXAxisBackButtonText": "ফিরে যান", "demoSharedXAxisNextButtonText": "পরবর্তী", "demoSharedXAxisCulinaryCourseTitle": "রন্ধন সম্পর্কিত", "githubRepo": "{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": "Donut", "dataTableRowHoneycomb": "Honeycomb", "dataTableRowLollipop": "Lollipop", "dataTableRowJellyBean": "4.3 Jelly Bean", "dataTableRowGingerbread": "Gingerbread", "dataTableRowCupcake": "Cupcake", "dataTableRowEclair": "Eclair", "dataTableRowIceCreamSandwich": "Ice Cream Sandwich", "dataTableRowFrozenYogurt": "জমাট ইয়োগার্ট", "dataTableColumnIron": "আয়রন (%)", "dataTableColumnCalcium": "ক্যালসিয়াম (%)", "dataTableColumnSodium": "সোডিয়াম (mg)", "demoTimePickerTitle": "সময় চয়নকারী", "demo2dTransformationsResetTooltip": "ট্রান্সফর্মেশনের বিকল্পটি আবার সেট করুন", "dataTableColumnFat": "ফ্যাট (g)", "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": "2D ট্রান্সফর্মেশন", "demoCupertinoTextFieldPIN": "পিন", "demoCupertinoTextFieldDescription": "টেক্সট লেখার জায়গাতে ব্যবহারকারী হার্ডওয়্যার কীবোর্ড অথবা অনস্ক্রিন কীবোর্ড ব্যবহার করে টেক্সট লিখতে পারেন।", "demoCupertinoTextFieldSubtitle": "iOS-স্টাইলে টেক্সট লেখার জায়গা", "demoCupertinoTextFieldTitle": "টেক্সট ফিল্ড", "demoDatePickerDescription": "মেটেরিয়াল ডিজাইনের তারিখ চয়নকারী রয়েছে এমন ডায়ালগ দেখায়।", "demoCupertinoPickerTime": "সময়", "demoCupertinoPickerDate": "তারিখ", "demoCupertinoPickerTimer": "টাইমার", "demoCupertinoPickerDescription": "iOS-স্টাইল বাছাইকারী উইজেট, স্ট্রিং, তারিখ, সময় বা তারিখ ও সময় দু'টিই বেছে নিতে ব্যবহার করা যেতে পারে।", "demoCupertinoPickerSubtitle": "iOS-স্টাইল বাছাইকারী", "demoCupertinoPickerTitle": "চয়নকারী", "dataTableRowWithHoney": "মধু সহ {value}", "cardsDemoTravelDestinationCity2": "চেট্টিনাড", "bannerDemoResetText": "ব্যানার রিসেট করুন", "bannerDemoMultipleText": "বহুমুখী অ্যাকশন", "bannerDemoLeadingText": "লিডিং আইকন", "dismiss": "খারিজ করুন", "cardsDemoTappable": "ট্যাপ করতে পারেন", "cardsDemoSelectable": "বেছে নিতে পারেন (বেশিক্ষণ প্রেস করুন)", "cardsDemoExplore": "কী কী আছে দেখুন", "cardsDemoExploreSemantics": "দেখুন {destinationName}", "cardsDemoShareSemantics": "শেয়ার করুন {destinationName}", "cardsDemoTravelDestinationTitle1": "তামিলনাড়ুতে যে ১০টি শহরে অবশ্যই ভ্রমণ করতে হবে", "cardsDemoTravelDestinationDescription1": "১০ নম্বর", "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": "Chat", "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": "Search", "demoTabsDescription": "বিভিন্ন স্ক্রিনে, ডেটা সেটে ও অন্যান্য ইন্টার‌্যাকশনে ট্যাবগুলি কন্টেন্ট সাজায়।", "demoTabsSubtitle": "আলাদাভাবে স্ক্রল করা যায় এমন ভিউ সহ ট্যাব", "demoTabsTitle": "ট্যাব", "rallyBudgetAmount": "{budgetName} বাজেটের {amountTotal}-এর মধ্যে {amountUsed} খরচ হয়েছে, {amountLeft} বাকি আছে", "shrineTooltipRemoveItem": "আইটেম সরান", "rallyAccountAmount": "{accountName} অ্যাকাউন্ট {accountNumber}-এ {amount}।", "rallySeeAllBudgets": "সব বাজেট দেখুন", "rallySeeAllBills": "সব বিল দেখুন", "craneFormDate": "তারিখ বেছে নিন", "craneFormOrigin": "উৎপত্তি স্থল বেছে নিন", "craneFly2": "কুম্ভ উপত্যকা, নেপাল", "craneFly3": "মাচু পিচ্চু, পেরু", "craneFly4": "মালে, মালদ্বীপ", "craneFly5": "ভিতজানাউ, সুইজারল্যান্ড", "craneFly6": "মেক্সিকো সিটি, মেক্সিকো", "craneFly7": "মাউন্ট রুসমোর, মার্কিন যুক্তরাষ্ট্র", "settingsTextDirectionLocaleBased": "লোকেলের উপর ভিত্তি করে", "craneFly9": "হাভানা, কিউবা", "craneFly10": "কায়েরো, মিশর", "craneFly11": "লিসবন, পর্তুগাল", "craneFly12": "নাপা, মার্কিন যুক্তরাষ্ট্র", "craneFly13": "বালি, ইন্দোনেশিয়া", "craneSleep0": "মালে, মালদ্বীপ", "craneSleep1": "অ্যাসপেন, মার্কিন যুক্তরাষ্ট্র", "craneSleep2": "মাচু পিচ্চু, পেরু", "demoCupertinoSegmentedControlTitle": "বিভাগীয় নিয়ন্ত্রণ", "craneSleep4": "ভিতজানাউ, সুইজারল্যান্ড", "craneSleep5": "বিগ সার, মার্কিন যুক্তরাষ্ট্র", "craneSleep6": "নাপা, মার্কিন যুক্তরাষ্ট্র", "craneSleep7": "পোর্টো, পর্তুগাল", "craneSleep8": "তুলুম, মেক্সিকো", "craneEat5": "সিওল, দক্ষিণ কোরিয়া", "demoChipTitle": "চিপস", "demoChipSubtitle": "সারিবদ্ধ এলিমেন্ট যা ইনপুট, অ্যাট্রিবিউট বা অ্যাকশনকে তুলে ধরে", "demoActionChipTitle": "অ্যাকশন চিপ", "demoActionChipDescription": "অ্যাকশন চিপ হল বিকল্পগুলির একটি সেট যা প্রাথমিক কন্টেন্ট সম্পর্কিত অ্যাকশন ট্রিগার করে। অ্যাকশন চিপ নিয়ম করে কতটা প্রাসঙ্গিক সেই হিসেবে UI-তে দেখা যায়।", "demoChoiceChipTitle": "পছন্দের চিপ", "demoChoiceChipDescription": "পছন্দের চিপ সেটের থেকে একটি পছন্দকে তুলে ধরে। পছন্দের চিপে প্রাসঙ্গিক বর্ণনামূলক টেক্সট বা বিভাগ থাকে।", "demoFilterChipTitle": "ফিল্টার চিপ", "demoFilterChipDescription": "কন্টেন্ট ফিল্টার করার একটি পদ্ধতি হিসেবে ফিল্টার চিপ ট্যাগ বা বর্ণনামূলক শব্দ ব্যবহার করে।", "demoInputChipTitle": "ইনপুট চিপ", "demoInputChipDescription": "ইনপুট চিপে কোনও একটি এন্টিটি (ব্যক্তি, জায়গা অথবা বস্তু) বা কথোপকথন সংক্রান্ত টেক্সট সারিবদ্ধভাবে থাকে যেখানে জটিল তথ্য দেওয়া থাকে।", "craneSleep9": "লিসবন, পর্তুগাল", "craneEat10": "লিসবন, পর্তুগাল", "demoCupertinoSegmentedControlDescription": "একটি ব্যবহার করলে অন্যটি ফ্রিজ হয়ে যাবে এমন কিছু বিকল্পের মধ্যে থেকে বেছে নেওয়ার জন্য ব্যবহার করা হয়। বিভাগীয় নিয়ন্ত্রনে একটি বিকল্প বেছে নিলে, অন্য বিকল্পগুলি আর বেছে নেওয়া যাবে না।", "chipTurnOnLights": "লাইট চালু করুন", "chipSmall": "ছোট", "chipMedium": "মাজারি", "chipLarge": "বড়", "chipElevator": "লিফ্ট", "chipWasher": "ওয়াশিং মেশিন", "chipFireplace": "ফায়ারপ্লেস", "chipBiking": "সাইকেল চালানো", "craneFormDiners": "ডাইনার্স", "rallyAlertsMessageUnassignedTransactions": "{count,plural,=1{আপনার ট্যাক্সের সম্ভাব্য ছাড় বাড়ান! ১টি অ্যাসাইন না করা ট্রানজ্যাকশনে বিভাগ অ্যাসাইন করুন।}other{আপনার ট্যাক্সের সম্ভাব্য ছাড় বাড়ান! {count}টি অ্যাসাইন না করা ট্রানজ্যাকশনে বিভাগ অ্যাসাইন করুন।}}", "craneFormTime": "সময় বেছে নিন", "craneFormLocation": "লোকেশন বেছে নিন", "craneFormTravelers": "ভ্রমণকারী", "craneEat8": "আটলান্টা, মার্কিন যুক্তরাষ্ট্র", "craneFormDestination": "গন্তব্য বেছে নিন", "craneFormDates": "তারিখ বেছে নিন", "craneFly": "উড়া", "craneSleep": "ঘুম", "craneEat": "খাদ্য", "craneFlySubhead": "গন্তব্যের হিসেবে ফ্লাইট খুঁজুন", "craneSleepSubhead": "গন্তব্যের হিসেবে প্রপার্টি দেখুন", "craneEatSubhead": "গন্তব্যের হিসেবে রেস্তোরাঁ দেখুন", "craneFlyStops": "{numberOfStops,plural,=0{ননস্টপ}=1{১টি স্টপ}other{{numberOfStops}টি স্টপ}}", "craneSleepProperties": "{totalProperties,plural,=0{কোনও প্রপার্টি ভাড়া পাওয়া যাবে না}=1{১টি প্রপার্টি ভাড়া পাওয়া যাবে}other{{totalProperties}টি প্রপার্টি ভাড়া পাওয়া যাবে}}", "craneEatRestaurants": "{totalRestaurants,plural,=0{রেস্তোরাঁ নেই}=1{১টি রেস্তোঁরা}other{{totalRestaurants}টি রেস্তোঁরা}}", "craneFly0": "অ্যাসপেন, মার্কিন যুক্তরাষ্ট্র", "demoCupertinoSegmentedControlSubtitle": "iOS-স্টাইলে বিভাগীয় নিয়ন্ত্রন", "craneSleep10": "কায়েরো, মিশর", "craneEat9": "মাদ্রিদ, স্পেন", "craneFly1": "বিগ সার, মার্কিন যুক্তরাষ্ট্র", "craneEat7": "ন্যাসভেলি, মার্কিন যুক্তরাষ্ট্র", "craneEat6": "সিয়াটেল, মার্কিন যুক্তরাষ্ট্র", "craneFly8": "সিঙ্গাপুর", "craneEat4": "প্যারিস, ফ্রান্স", "craneEat3": "পোর্টল্যান্ড, মার্কিন যুক্তরাষ্ট্র", "craneEat2": "কর্ডোবা, আর্জেন্টিনা", "craneEat1": "ডালাস, মার্কিন যুক্তরাষ্ট্র", "craneEat0": "ন্যাপলি, ইতালি", "craneSleep11": "তাইপেই, তাইওয়ান", "craneSleep3": "হাভানা, কিউবা", "shrineLogoutButtonCaption": "লগ-আউট", "rallyTitleBills": "বিল", "rallyTitleAccounts": "অ্যাকাউন্ট", "shrineProductVagabondSack": "ভ্যাগাবন্ড স্যাক", "rallyAccountDetailDataInterestYtd": "সুদ YTD", "shrineProductWhitneyBelt": "হুইটনি বেল্ট", "shrineProductGardenStrand": "গার্ডেন স্ট্র্যান্ড", "shrineProductStrutEarrings": "স্ট্রাট ইয়াররিং", "shrineProductVarsitySocks": "ভারসিটি সক্‌স", "shrineProductWeaveKeyring": "উইভ কীরিং", "shrineProductGatsbyHat": "গ্যাস্টবি হ্যাট", "shrineProductShrugBag": "শ্রাগ ব্যাগ", "shrineProductGiltDeskTrio": "গিল্ট ডেস্ক ট্রাও", "shrineProductCopperWireRack": "কপার ওয়্যার তাক", "shrineProductSootheCeramicSet": "মসৃণ সেরামিক সেট", "shrineProductHurrahsTeaSet": "হারাহ্‌য়ের টি সেট", "shrineProductBlueStoneMug": "নীল রঙের পাথরের মগ", "shrineProductRainwaterTray": "বৃষ্টির জল পাস করানোর ট্রে", "shrineProductChambrayNapkins": "শ্যামব্র্যয় ন্যাপকিন", "shrineProductSucculentPlanters": "সাকলেন্ট প্ল্যান্টার্স", "shrineProductQuartetTable": "চৌকো টেবিল", "shrineProductKitchenQuattro": "কিচেন কোয়াট্রো", "shrineProductClaySweater": "ক্লে সোয়েটার", "shrineProductSeaTunic": "সি টিউনিক", "shrineProductPlasterTunic": "প্লাস্টার টিউনিক", "rallyBudgetCategoryRestaurants": "রেস্তোরাঁ", "shrineProductChambrayShirt": "শ্যামব্র্যয় শার্ট", "shrineProductSeabreezeSweater": "সিব্রিজ সোয়েটার", "shrineProductGentryJacket": "জেন্ট্রি জ্যাকেট", "shrineProductNavyTrousers": "নীল পায়জামা", "shrineProductWalterHenleyWhite": "ওয়াল্টার হেনলি (সাদা)", "shrineProductSurfAndPerfShirt": "সার্ফ এবং পার্ফ শার্ট", "shrineProductGingerScarf": "জিনজার স্কার্ফ", "shrineProductRamonaCrossover": "রামোনা ক্রসওভার", "shrineProductClassicWhiteCollar": "ক্লাসিক হোয়াইট কলার", "shrineProductSunshirtDress": "সানশার্ট ড্রেস", "rallyAccountDetailDataInterestRate": "সুদের হার", "rallyAccountDetailDataAnnualPercentageYield": "বার্ষিক লাভের শতাংশ", "rallyAccountDataVacation": "ছুটি", "shrineProductFineLinesTee": "ফাইন লাইন টি", "rallyAccountDataHomeSavings": "হোম সেভিংস", "rallyAccountDataChecking": "চেক করা হচ্ছে", "rallyAccountDetailDataInterestPaidLastYear": "গত বছরে পে করা সুদ", "rallyAccountDetailDataNextStatement": "পরবর্তী স্টেটমেন্ট", "rallyAccountDetailDataAccountOwner": "অ্যাকাউন্টের মালিক", "rallyBudgetCategoryCoffeeShops": "কফি শপ", "rallyBudgetCategoryGroceries": "মুদিখানা", "shrineProductCeriseScallopTee": "সেরাইজ স্ক্যালোপ টি", "rallyBudgetCategoryClothing": "জামাকাপড়", "rallySettingsManageAccounts": "অ্যাকাউন্ট ম্যানেজ করুন", "rallyAccountDataCarSavings": "গাড়ির জন্য সেভিং", "rallySettingsTaxDocuments": "ট্যাক্স ডকুমেন্ট", "rallySettingsPasscodeAndTouchId": "পাসকোড এবং টাচ আইডি", "rallySettingsNotifications": "বিজ্ঞপ্তি", "rallySettingsPersonalInformation": "ব্যক্তিগত তথ্য", "rallySettingsPaperlessSettings": "বিনা পেপারের সেটিংস", "rallySettingsFindAtms": "এটিএম খুঁজুন", "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{১টি আইটেম}other{{quantity}টি আইটেম}}", "shrineCartClearButtonCaption": "কার্ট মুছে দিন", "shrineCartTotalCaption": "মোট", "shrineCartSubtotalCaption": "সাবটোটাল:", "shrineCartShippingCaption": "শিপিং:", "shrineProductGreySlouchTank": "গ্রে স্লচ ট্যাঙ্ক", "shrineProductStellaSunglasses": "স্টেলা সানগ্লাস", "shrineProductWhitePinstripeShirt": "সাদা পিনস্ট্রাইপ শার্ট", "demoTextFieldWhereCanWeReachYou": "আমরা আপনার সাথে কীভাবে যোগাযোগ করব?", "settingsTextDirectionLTR": "LTR", "settingsTextScalingLarge": "বড়", "demoBottomSheetHeader": "হেডার", "demoBottomSheetItem": "আইটেম {value}", "demoBottomTextFieldsTitle": "টেক্সট ফিল্ড", "demoTextFieldTitle": "টেক্সট ফিল্ড", "demoTextFieldSubtitle": "এডিট করা যাবে এমন টেক্সট ও নম্বরের সিঙ্গল লাইন", "demoTextFieldDescription": "টেক্সট ফিল্ড ব্যবহারকারীকে UI-এ টেক্সট লেখার অনুমতি দেয়। সেগুলি সাধারণত ফর্ম ও ডায়ালগ হিসেবে দেখা যায়।", "demoTextFieldShowPasswordLabel": "পাসওয়ার্ড দেখুন", "demoTextFieldHidePasswordLabel": "পাসওয়ার্ড লুকান", "demoTextFieldFormErrors": "জমা দেওয়ার আগে লাল রঙের ভুলগুলি সংশোধন করুন।", "demoTextFieldNameRequired": "নাম লিখতে হবে।", "demoTextFieldOnlyAlphabeticalChars": "কেবল বর্ণানুক্রমিক অক্ষর লিখুন।", "demoTextFieldEnterUSPhoneNumber": "(###) ###-#### - একটি মার্কিন যুক্তরাষ্ট্রের ফোন নম্বর লিখুন।", "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": "ফুল-স্ক্রিন ডায়ালগ প্রপার্টি নির্দিষ্ট করে পরের পৃষ্ঠাটি একটি ফুল-স্ক্রিন মোডাল ডায়ালগ হবে কিনা", "demoFlatButtonDescription": "ফ্ল্যাট বোতাম প্রেস করলে কালি ছড়িয়ে পড়ে কিন্তু লিফ্ট করে না। প্যাডিং সহ ফ্ল্যাট বোতাম টুলবার, ডায়ালগ এবং ইনলাইনে ব্যবহার করুন", "demoBottomNavigationDescription": "নিচের নেভিগেশন বার কোনও স্ক্রিনের নীচের দিকে তিন থেকে পাঁচটি গন্তব্য দেখায়। প্রতিটি গন্তব্য একটি আইকন এবং একটি এচ্ছিক টেক্সট লেবেল দিয়ে দেখানো হয়। নিচের নেভিগেশন আইকন ট্যাপ করা হলে, ব্যবহারকারীকে সেই আইকনের সাথে জড়িত একেবারে উপরের নেভিগেশন গন্তব্যে নিয়ে যাওয়া হয়।", "demoBottomNavigationSelectedLabel": "বেছে নেওয়া লেবেল", "demoBottomNavigationPersistentLabels": "সব সময় দেখা যাবে এমন লেবেল", "starterAppDrawerItem": "আইটেম {value}", "demoTextFieldRequiredField": "* প্রয়োজনীয় ফিল্ড নির্দেশ করে", "demoBottomNavigationTitle": "নিচের দিকে নেভিগেশন", "settingsLightTheme": "আলো", "settingsTheme": "থিম", "settingsPlatformIOS": "iOS", "settingsPlatformAndroid": "Android", "settingsTextDirectionRTL": "RTL", "settingsTextScalingHuge": "সবচেয়ে বড়", "cupertinoButton": "বোতাম", "settingsTextScalingNormal": "সাধারণ", "settingsTextScalingSmall": "ছোট", "settingsSystemDefault": "সিস্টেম", "settingsTitle": "সেটিংস", "rallyDescription": "ব্যক্তিগত ফাইনান্স অ্যাপ", "aboutDialogDescription": "এই অ্যাপের সোর্স কোড দেখতে {repoLink}-এ দেখুন।", "bottomNavigationCommentsTab": "মন্তব্য", "starterAppGenericBody": "মুখ্য অংশ", "starterAppGenericHeadline": "শিরোনাম", "starterAppGenericSubtitle": "সাবটাইটেল", "starterAppGenericTitle": "শীর্ষক", "starterAppTooltipSearch": "Search", "starterAppTooltipShare": "শেয়ার করুন", "starterAppTooltipFavorite": "পছন্দ", "starterAppTooltipAdd": "যোগ করুন", "bottomNavigationCalendarTab": "Calendar", "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": "এপিআই ডকুমেন্টেশান", "demoFullscreenTooltip": "ফুল-স্ক্রিন", "settingsTextScaling": "টেক্সট স্কেলিং", "settingsTextDirection": "টেক্সটের মাধ্যমে দিকনির্দেশ", "settingsLocale": "লোকেল", "settingsPlatformMechanics": "প্ল্যাটফর্ম মেকানিক্স", "settingsDarkTheme": "গাঢ়", "settingsSlowMotion": "স্লো মোশন", "settingsAbout": "ফ্লাটার গ্যালারি সম্পর্কে", "settingsFeedback": "মতামত জানান", "settingsAttribution": "লন্ডনে TOASTER দ্বারা ডিজাইন করা হয়েছে", "demoButtonTitle": "বোতাম", "demoButtonSubtitle": "টেক্সট, উন্নত, আউটলাইনের সুবিধা এবং আরও অনেক কিছু", "demoFlatButtonTitle": "ফ্ল্যাট বোতাম", "demoRaisedButtonDescription": "বড় হওয়া বোতাম প্রায়ই ফ্ল্যাট লে-আউটকে আকার দিতে সাহায্য করে। ব্যস্ত বা চওড়া জায়গাতে তারা আরও গুরুত্ব দেয়।", "demoRaisedButtonTitle": "ক্রমশ উপরের দিকে যাওয়া বোতাম", "demoOutlineButtonTitle": "আউটলাইন বোতাম", "demoOutlineButtonDescription": "আউটলাইন বোতাম প্রেস করলে অস্বচ্ছ হয়ে বড় হয়ে যায়। সেটি প্রায়ই একটি বিকল্প সেকেন্ডারি অ্যাকশন নির্দেশ করতে বড় হওয়া বোতামের সাথে ব্যবহার হয়।", "demoToggleButtonTitle": "টগল বোতাম", "colorsTeal": "সবজে নীল", "demoFloatingButtonTitle": "ভাসমান অ্যাকশন বোতাম", "demoFloatingButtonDescription": "ফ্লোটিং অ্যাকশন বোতাম হল একটি সার্কুলার আইকন বোতাম যা কন্টেন্টের উপরে থাকে, অ্যাপ্লিকেশনের প্রাথমিক অ্যাকশন দেখানোর জন্য।", "demoDialogTitle": "ডায়ালগ", "demoDialogSubtitle": "সাধারণ, সতর্কতা, ফুল-স্ক্রিন", "demoAlertDialogTitle": "সতর্কতা", "demoAlertDialogDescription": "সতর্কতা সংক্রান্ত ডায়ালগ পরিস্থিতি সম্পর্কে ব্যবহারকারীকে জানায়, যা খেয়াল রাখতে হয়। সতর্কতা সংক্রান্ত ডায়ালগে ঐচ্ছিক শীর্ষক এবং ঐচ্ছিক অ্যাকশনের তালিকা দেওয়া থাকে।", "demoAlertTitleDialogTitle": "সতর্ক বার্তার শীর্ষক", "demoSimpleDialogTitle": "সাধারণ", "demoSimpleDialogDescription": "একটি সাধারণ ডায়ালগ ব্যবহারকারীদের কাছে একাধিক বিকল্পের মধ্যে একটি বেছে নেওয়ার সুযোগ করে দেয়। একটি সাধারণ ডায়ালগে একটি ঐচ্ছিক শীর্ষক থাকলে, তা বেছে নেওয়ার বিকল্পগুলি উপরে উল্লেখ করা আছে।", "demoFullscreenDialogTitle": "ফুল-স্ক্রিন", "demoCupertinoButtonsTitle": "বোতাম", "demoCupertinoButtonsSubtitle": "iOS-স্টাইল বোতাম", "demoCupertinoButtonsDescription": "একটি iOS-স্টাইল বোতাম। এটির সাহায্যে আপনি টেক্সট এবং/বা কোনও একটি আইকন যা টাচ করলে ফেড-আউট বা ফেড-ইন হয়। বিকল্প হিসেবে একটি ব্যাকগ্রাউন্ড থাকতে পারে।", "demoCupertinoAlertsTitle": "সতর্কতা", "demoCupertinoAlertsSubtitle": "iOS-স্টাইলে সতর্কতা ডায়ালগ", "demoCupertinoAlertTitle": "সতর্কতা", "demoCupertinoAlertDescription": "সতর্কতা সংক্রান্ত ডায়ালগ পরিস্থিতি সম্পর্কে ব্যবহারকারীকে জানায়, যা খেয়াল রাখতে হয়। সতর্কতা সংক্রান্ত ডায়ালগে ঐচ্ছিক শীর্ষক, ঐচ্ছিক কন্টেন্ট এবং ঐচ্ছিক অ্যাকশনের তালিকা দেওয়া থাকে। শীর্ষক কন্টেন্টের উপরে দেওয়া থাকে এবং অ্যাকশন কন্টেন্টের নিচে উল্লেখ করা থাকে।", "demoCupertinoAlertWithTitleTitle": "শীর্ষক সহ সতর্কতা", "demoCupertinoAlertButtonsTitle": "সতর্কতা সংক্রান্ত বোতাম", "demoCupertinoAlertButtonsOnlyTitle": "শুধুমাত্র সতর্কতা বিষয়ক বোতাম", "demoCupertinoActionSheetTitle": "অ্যাকশন শিট", "demoCupertinoActionSheetDescription": "একটি অ্যাকশন শিট হল নির্দিষ্ট ধরনের অ্যালার্ট যা ব্যবহারকারীদের কাছে বর্তমান প্রসঙ্গ সম্পর্কিত দুটি বা তারও বেশি সেট তুলে ধরে. অ্যাকশন শিটে শীর্ষক, অতিরিক্ত মেসেজ এবং অ্যাকশনের তালিকা থাকতে পারে।", "demoColorsTitle": "রঙ", "demoColorsSubtitle": "আগে থেকে যেসব দেখানো রঙ", "demoColorsDescription": "রঙ এবং গ্রেডিয়েন্টের জন্য ধ্রুবক যা মেটেরিয়াল ডিজাইনের রঙের প্যালেট তুলে ধরে।", "buttonTextEnabled": "ENABLED", "buttonTextDisabled": "DISABLED", "buttonTextCreate": "তৈরি করুন", "dialogSelectedOption": "আপনি বেছে নিয়েছেন: \"{value}\"", "dialogDiscardTitle": "ড্রাফ্ট বাতিল করতে চান?", "dialogLocationTitle": "Google-এর লোকেশন সংক্রান্ত পরিষেবা ব্যবহার করতে চান?", "dialogLocationDescription": "অ্যাপ যাতে লোকেশন বেছে নিতে পারে তার জন্য Google-কে সাহায্য করুন। এর মানে হল, যখন কোন অ্যাপ চালা থাকে না, তখনও Google-এ যে কোনও লোকেশনের তথ্য পাঠানো হবে।", "dialogCancel": "বাতিল করুন", "dialogDiscard": "বাতিল করুন", "dialogDisagree": "অসম্মত", "dialogAgree": "সম্মত", "dialogSetBackup": "ব্যাক-আপ অ্যাকাউন্ট সেট করুন", "colorsBlueGrey": "নীলচে ধূসর", "dialogShow": "ডায়ালগ দেখান", "dialogFullscreenTitle": "ফুল-স্ক্রিন ডায়ালগ", "dialogFullscreenSave": "সেভ করুন", "dialogFullscreenDescription": "ফুল-স্ক্রিন ডায়ালগ ডেমো", "cupertinoButtonEnabled": "Enabled", "cupertinoButtonDisabled": "Disabled", "cupertinoButtonWithBackground": "ব্যাকগ্রাউন্ড সহ", "cupertinoAlertCancel": "বাতিল করুন", "cupertinoAlertDiscard": "বাতিল করুন", "cupertinoAlertLocationTitle": "অ্যাপ ব্যবহার করার সময়ে \"Maps\"-কে আপনার লোকেশন অ্যাক্সেস করার অনুমতি দিতে চান?", "cupertinoAlertLocationDescription": "আপনার বর্তমান লোকেশন ম্যাপে দেখানো হবে এবং সেই সাথে দিকনির্দেশের ও আশেপাশের সার্চের ফলাফলের জন্য ব্যবহার হবে এবং যাত্রাপথের আনুমানিক সময় জানতে ব্যবহার হবে।", "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_bn.arb/0
{ "file_path": "gallery/lib/l10n/intl_bn.arb", "repo_id": "gallery", "token_count": 55668 }
862
{ "loading": "ಲೋಡ್ ಆಗುತ್ತಿದೆ", "deselect": "ಆಯ್ಕೆ ರದ್ದುಮಾಡಿ", "select": "ಆಯ್ಕೆಮಾಡಿ", "selectable": "ಆಯ್ಕೆ ಮಾಡಬಹುದಾದ (ದೀರ್ಘಕಾಲ ಒತ್ತಿಹಿಡಿಯುವುದು)", "selected": "ಆಯ್ಕೆಮಾಡಲಾಗಿದೆ", "demo": "ಡೆಮೋ", "bottomAppBar": "ಬಾಟಮ್ ಆ್ಯಪ್ ಬಾರ್", "notSelected": "ಆಯ್ಕೆ ಮಾಡಿಲ್ಲ", "demoCupertinoSearchTextFieldTitle": "ಪಠ್ಯ ಹುಡುಕಾಟದ ಫೀಲ್ಡ್", "demoCupertinoPicker": "ಪಿಕರ್", "demoCupertinoSearchTextFieldSubtitle": "iOS-ಶೈಲಿಯ ಹುಡುಕಾಟ ಪಠ್ಯ ಕ್ಷೇತ್ರ", "demoCupertinoSearchTextFieldDescription": "ಬಳಕೆದಾರರು ಹುಡುಕಲು ಪಠ್ಯವನ್ನು ನಮೂದಿಸಬಹುದಾದ ಹುಡುಕಾಟ ಪಠ್ಯ ಕ್ಷೇತ್ರ. ನೀವು ಸಲಹೆಗಳನ್ನು ಸಹ ಸೂಚಿಸಬಹುದು ಮತ್ತು ಫಿಲ್ಟರ್ ಮಾಡಬಹುದು.", "demoCupertinoSearchTextFieldPlaceholder": "ಕೆಲವು ಪಠ್ಯವನ್ನು ನಮೂದಿಸಿ", "demoCupertinoScrollbarTitle": "ಸ್ಕ್ರಾಲ್‌ಬಾರ್", "demoCupertinoScrollbarSubtitle": "iOS-ಶೈಲಿಯ ಸ್ಕ್ರಾಲ್‌ಬಾರ್", "demoCupertinoScrollbarDescription": "ಸೂಚಿಸಿರುವ ಮಗುವನ್ನು ಸುತ್ತುವರಿದ ಸ್ಕ್ರಾಲ್‌ಬಾರ್", "demoTwoPaneItem": "ಐಟಂ {value}", "demoTwoPaneList": "ಪಟ್ಟಿ", "demoTwoPaneFoldableLabel": "ಫೋಲ್ಡ್ ಮಾಡಬಹುದಾದುದು", "demoTwoPaneSmallScreenLabel": "ಚಿಕ್ಕ ಸ್ಕ್ರೀನ್", "demoTwoPaneSmallScreenDescription": "ಚಿಕ್ಕ ಸ್ಕ್ರೀನ್ ಸಾಧನದಲ್ಲಿ TwoPane ಈ ರೀತಿಯಾಗಿ ವರ್ತಿಸುತ್ತದೆ ಎಂಬುದಾಗಿದೆ.", "demoTwoPaneTabletLabel": "ಟ್ಯಾಬ್ಲೆಟ್‌‌ / ಡೆಸ್ಕ್‌ಟಾಪ್", "demoTwoPaneTabletDescription": "ದೊಡ್ಡ ಸ್ಕ್ರೀನ್‌ನಂತಹ ಟ್ಯಾಬ್ಲೆಟ್ ಅಥವಾ ಡೆಸ್ಕ್‌ಟಾಪ್ ಸಾಧನದಲ್ಲಿ TwoPane ಈ ರೀತಿಯಾಗಿ ವರ್ತಿಸುತ್ತದೆ ಎಂಬುದಾಗಿದೆ.", "demoTwoPaneTitle": "TwoPane", "demoTwoPaneSubtitle": "ಫೋಲ್ಡ್ ಮಾಡಬಹುದಾದ, ದೊಡ್ಡ ಮತ್ತು ಚಿಕ್ಕ ಸ್ಕ್ರೀನ್ ಮೇಲೆ ಚೆನ್ನಾಗಿ ಪ್ರತಿಕ್ರಿಯಿಸುವ ಲೇಔಟ್‌ಗಳು", "splashSelectDemo": "ಡೆಮೋ ಆಯ್ಕೆಮಾಡಿ", "demoTwoPaneFoldableDescription": "ಫೋಲ್ಡ್ ಮಾಡಬಹುದಾದುದು ಸಾಧನದಲ್ಲಿ TwoPane ಈ ರೀತಿಯಾಗಿ ವರ್ತಿಸುತ್ತದೆ ಎಂಬುದಾಗಿದೆ.", "demoTwoPaneDetails": "ವಿವರಗಳು", "demoTwoPaneSelectItem": "ಐಟಂ ಆಯ್ಕೆಮಾಡಿ", "demoTwoPaneItemDetails": "{value} ಐಟಂ ವಿವರಗಳು", "demoCupertinoContextMenuActionText": "ಸಂದರ್ಭ ಮೆನುವನ್ನು ನೋಡಲು ಫ್ಲಟರ್ ಲೋಗೋವನ್ನು ಒತ್ತಿಹಿಡಿದುಕೊಳ್ಳಿ.", "demoCupertinoContextMenuDescription": "ಒಂದು ಅಂಶವನ್ನು ದೀರ್ಘಕಾಲ ಒತ್ತಿದಾಗ ಕಾಣಿಸಿಕೊಳ್ಳುವ iOS- ಶೈಲಿಯ ಫುಲ್ ಸ್ಕ್ರೀನ್ ಸಂದರ್ಭದ ಮೆನು.", "demoAppBarTitle": "ಆ್ಯಪ್ ಬಾರ್", "demoAppBarDescription": "ಆ್ಯಪ್ ಬಾರ್ ಪ್ರಸ್ತುತ ಸ್ಕ್ರೀನ್‌ಗೆ ಸಂಬಂಧಿಸಿದ ವಿಷಯ ಮತ್ತು ಕ್ರಿಯೆಗಳನ್ನು ಒದಗಿಸುತ್ತದೆ. ಇದನ್ನು ಬ್ರ್ಯಾಂಡಿಂಗ್, ಸ್ಕ್ರೀನ್ ಶೀರ್ಷಿಕೆಗಳು, ನ್ಯಾವಿಗೇಷನ್ ಮತ್ತು ಕ್ರಿಯೆಗಳಿಗೆ ಬಳಸಲಾಗುತ್ತದೆ", "demoDividerTitle": "ವಿಭಾಜಕ", "demoDividerSubtitle": "ವಿಭಾಜಕವು ಒಂದು ತೆಳುವಾದ ರೇಖೆಯಾಗಿದ್ದು ಅದು ಪಟ್ಟಿಗಳು ಮತ್ತು ಲೇಔಟ್‌ಗಳಲ್ಲಿ ವಿಷಯವನ್ನು ಗುಂಪುಗಳಾಗಿ ವಿಭಜಿಸುತ್ತದೆ.", "demoDividerDescription": "ಪಟ್ಟಿಗಳು, ಡ್ರಾಯರ್‌ಗಳು ಮತ್ತು ಬೇರೆಡೆ ಇರುವ ವಿಷಯವನ್ನು ಪ್ರತ್ಯೇಕಿಸಲು ವಿಭಾಜಕಗಳನ್ನು ಬಳಸಬಹುದು.", "demoVerticalDividerTitle": "ಲಂಬವಾದ ವಿಭಾಜಕ", "demoCupertinoContextMenuTitle": "ಸಂದರ್ಭದ ಮೆನು", "demoCupertinoContextMenuSubtitle": "iOS-ಶೈಲಿಯ ಸಂದರ್ಭದ ಮೆನು", "demoAppBarSubtitle": "ಪ್ರಸ್ತುತ ಸ್ಕ್ರೀನ್‌ಗೆ ಸಂಬಂಧಿಸಿದ ಮಾಹಿತಿ ಮತ್ತು ಕ್ರಿಯೆಗಳನ್ನು ಪ್ರದರ್ಶಿಸುತ್ತದೆ", "demoCupertinoContextMenuActionOne": "ಕ್ರಿಯೆ ಒಂದು", "demoCupertinoContextMenuActionTwo": "ಕ್ರಿಯೆ ಎರಡು", "demoDateRangePickerDescription": "ವಸ್ತು ವಿನ್ಯಾಸವು, ದಿನಾಂಕ ವ್ಯಾಪ್ತಿ ಪಿಕರ್ ಹೊಂದಿರುವ ಡೈಲಾಗ್ ಅನ್ನು ತೋರಿಸುತ್ತದೆ.", "demoDateRangePickerTitle": "ದಿನಾಂಕ ವ್ಯಾಪ್ತಿಯ ಪಿಕರ್", "demoNavigationDrawerUserName": "ಬಳಕೆದಾರ ಹೆಸರು", "demoNavigationDrawerUserEmail": "[email protected]", "demoNavigationDrawerText": "ಡ್ರಾಯರ್ ಅನ್ನು ನೋಡಲು ತುದಿಯಿಂದ ಸ್ವೈಪ್ ಮಾಡಿ ಅಥವಾ ಮೇಲಿನ ಎಡಭಾಗದ ಐಕಾನ್ ಅನ್ನು ಟ್ಯಾಪ್ ಮಾಡಿ", "demoNavigationRailTitle": "ನ್ಯಾವಿಗೇಶನ್ ರೈಲ್", "demoNavigationRailSubtitle": "ಆ್ಯಪ್‌ನ ಒಳಗಡೆ ನ್ಯಾವಿಗೇಶನ್ ರೈಲ್ ಅನ್ನು ಡಿಸ್‌ಪ್ಲೇ ಮಾಡಲಾಗುತ್ತಿದೆ", "demoNavigationRailDescription": "ಇದೊಂದು ಭೌತಿಕ ವಿಜೆಟ್ ಆಗಿದ್ದು, ಸಣ್ಣ ಸಂಖ್ಯೆಯ ವೀಕ್ಷಣೆಗಳು, ಅಂದರೆ ವಿಶೇಷವಾಗಿ ಮೂರು ಮತ್ತು ಐದು ವೀಕ್ಷಣೆಗಳ ನಡುವೆ ನ್ಯಾವಿಗೇಟ್ ಮಾಡಲು, ಆ್ಯಪ್‌ನ ಎಡ ಅಥವಾ ಬಲಭಾಗದಲ್ಲಿ ಡಿಸ್‌ಪ್ಲೇ ಮಾಡಲಿಕ್ಕಾಗಿ ಇದೆ.", "demoNavigationRailFirst": "ಮೊದಲನೆಯದು", "demoNavigationDrawerTitle": "ನ್ಯಾವಿಗೇಶನ್ ಡ್ರಾಯರ್", "demoNavigationRailThird": "ಮೂರನೇ", "replyStarredLabel": "ನಕ್ಷತ್ರ ಹಾಕಲಾಗಿದೆ", "demoTextButtonDescription": "ಪಠ್ಯ ಬಟನ್ ಒತ್ತಿದಾಗ ಇಂಕ್ ಸ್ಪ್ಲಾಷ್ ಅನ್ನು ಡಿಸ್‌ಪ್ಲೇ ಮಾಡುತ್ತದೆ ಆದರೆ ಲಿಫ್ಟ್ ಮಾಡುವುದಿಲ್ಲ. ಪರಿಕರ ಪಟ್ಟಿಗಳಲ್ಲಿ, ಡೈಲಾಗ್‌ಗಳಲ್ಲಿ ಮತ್ತು ಪ್ಯಾಡಿಂಗ್‌ ಇನ್‌ಲೈನ್‌ನಲ್ಲಿ ಪಠ್ಯ ಬಟನ್‌ಗಳನ್ನು ಬಳಸಿ", "demoElevatedButtonTitle": "ಎತ್ತರಿಸಿದ ಬಟನ್", "demoElevatedButtonDescription": "ಎತ್ತರಿಸಿದ ಬಟನ್‌ಗಳು ಸಾಮಾನ್ಯವಾಗಿ ಫ್ಲಾಟ್ ವಿನ್ಯಾಸಗಳಿಗೆ ಆಯಾಮವನ್ನು ಸೇರಿಸುತ್ತವೆ. ಅವರು ಬ್ಯುಸಿ ಅಥವಾ ವಿಶಾಲ ಸ್ಥಳಗಳಲ್ಲಿ ಫಂಕ್ಷನ್‌ಗಳಿಗೆ ಪ್ರಾಮುಖ್ಯತೆ ನೀಡುತ್ತಾರೆ.", "demoOutlinedButtonTitle": "ವಿವರಿಸಿದ ಬಟನ್", "demoOutlinedButtonDescription": "ಔಟ್‌ಲೈನ್ ಮಾಡಲಾದ ಬಟನ್‌ಗಳು ಅಪಾರದರ್ಶಕವಾಗಿರುತ್ತವೆ ಮತ್ತು ಒತ್ತಿದಾಗ ಏರಿಕೆಯಾಗುತ್ತವೆ. ಪರ್ಯಾಯ ಮತ್ತು ದ್ವಿತೀಯ ಕಾರ್ಯವನ್ನು ಸೂಚಿಸಲು ಅವುಗಳನ್ನು ಹೆಚ್ಚಾಗಿ ಉಬ್ಬುವ ಬಟನ್‌ಗಳ ಜೊತೆಗೆ ಜೋಡಿಸಲಾಗುತ್ತದೆ.", "demoContainerTransformDemoInstructions": "ಕಾರ್ಡ್‌ಗಳು, ಪಟ್ಟಿಗಳು & FAB", "demoNavigationDrawerSubtitle": "appbar ನ ಒಳಗಡೆ ಡ್ರಾಯರ್ ಅನ್ನು ಡಿಸ್‌ಪ್ಲೇ ಮಾಡಲಾಗುತ್ತಿದೆ", "replyDescription": "ಸಮರ್ಥ, ಫೋಕಸ್ ಆಗಿರುವ ಇಮೇಲ್ ಅಪ್ಲಿಕೇಶನ್", "demoNavigationDrawerDescription": "ಅಪ್ಲಿಕೇಶನ್‌ನಲ್ಲಿ ನ್ಯಾವಿಗೇಶನ್ ಲಿಂಕ್‌ಗಳನ್ನು ತೋರಿಸಲು, ಒಂದು ವಸ್ತು ವಿನ್ಯಾಸದ ಫಲಕವು ಸ್ಕ್ರೀನ್‌ನ ತುದಿಯಿಂದ ಅಡ್ಡಲಾಗಿ ಸ್ಲೈಡ್ ಆಗುತ್ತದೆ.", "replyDraftsLabel": "ಡ್ರಾಫ್ಟ್‌‌ಗಳು", "demoNavigationDrawerToPageOne": "ಮೊದಲನೇ ಐಟಂ", "replyInboxLabel": "Inbox", "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": "Photos", "demoSharedXAxisCoursePageSubtitle": "ಬಂಡಲ್ ಮಾಡಲಾದ ವಿಭಾಗಗಳು ನಿಮ್ಮ ಫೀಡ್‌ನಲ್ಲಿ ಗುಂಪುಗಳಾಗಿ ಗೋಚರಿಸುತ್ತವೆ. ನೀವು ಇದನ್ನು ಯಾವಾಗಲಾದರೂ ಬದಲಾಯಿಸಬಹುದು.", "demoFadeThroughDescription": "ಪರಸ್ಪರ ಬಲವಾದ ಸಂಬಂಧವನ್ನು ಹೊಂದಿರದ UI ಅಂಶಗಳ ನಡುವಿನ ಪರಿವರ್ತನೆಗಾಗಿ ಫೇಡ್ ಥ್ರೂ ಪ್ಯಾಟರ್ನ್ ಅನ್ನು ಬಳಸಲಾಗುತ್ತದೆ.", "demoFadeThroughTitle": "ಫೇಡ್ ಥ್ರೂ", "demoSharedZAxisHelpSettingLabel": "ಸಹಾಯ", "demoMotionSubtitle": "ಎಲ್ಲಾ ಪೂರ್ವನಿರ್ಧರಿತ ಪರಿವರ್ತನೆಯ ಪ್ಯಾಟರ್ನ್‌ಗಳು", "demoSharedZAxisNotificationSettingLabel": "ಅಧಿಸೂಚನೆಗಳು", "demoSharedZAxisProfileSettingLabel": "ಪ್ರೊಫೈಲ್", "demoSharedZAxisSavedRecipesListTitle": "ಉಳಿಸಲಾದ ರೆಸಿಪಿಗಳು", "demoSharedZAxisBeefSandwichRecipeDescription": "ಬೀಫ್ ಸ್ಯಾಂಡ್‌ವಿಚ್ ರೆಸಿಪಿ", "demoSharedZAxisCrabPlateRecipeDescription": "ಏಡಿ ಪ್ಲೇಟ್ ರೆಸಿಪಿ", "demoSharedXAxisCoursePageTitle": "ನಿಮ್ಮ ಕೋರ್ಸ್‌ಗಳನ್ನು ಸುಗಮಗೊಳಿಸಿ", "demoSharedZAxisCrabPlateRecipeTitle": "ಏಡಿ", "demoSharedZAxisShrimpPlateRecipeDescription": "ಸೀಗಡಿ ಪ್ಲೇಟ್ ರೆಸಿಪಿ", "demoSharedZAxisShrimpPlateRecipeTitle": "ಸೀಗಡಿ", "demoContainerTransformTypeFadeThrough": "ಫೇಡ್ ಥ್ರೂ", "demoSharedZAxisDessertRecipeTitle": "ಡೆಸರ್ಟ್", "demoSharedZAxisSandwichRecipeDescription": "ಸ್ಯಾಂಡ್‌ವಿಚ್ ರೆಸಿಪಿ", "demoSharedZAxisSandwichRecipeTitle": "ಸ್ಯಾಂಡ್‌ವಿಚ್", "demoSharedZAxisBurgerRecipeDescription": "ಬರ್ಗರ್ ರೆಸಿಪಿ", "demoSharedZAxisBurgerRecipeTitle": "ಬರ್ಗರ್", "demoSharedZAxisSettingsPageTitle": "ಸೆಟ್ಟಿಂಗ್‌ಗಳು", "demoSharedZAxisTitle": "ಹಂಚಿದ z-ಅಕ್ಷ", "demoSharedZAxisPrivacySettingLabel": "ಗೌಪ್ಯತೆ", "demoMotionTitle": "ಮೋಷನ್", "demoContainerTransformTitle": "ಕಂಟೈನರ್ ಪರಿವರ್ತನೆ", "demoContainerTransformDescription": "ಕಂಟೈನರ್ ಪರಿವರ್ತನೆಯ ಪ್ಯಾಟರ್ನ್ ಅನ್ನು ಕಂಟೈನರ್ ಅನ್ನು ಒಳಗೊಂಡಿರುವ UI ಅಂಶಗಳ ನಡುವಿನ ಪರಿವರ್ತನೆಗಾಗಿ ವಿನ್ಯಾಸಗೊಳಿಸಲಾಗಿದೆ. ಇದು ಎರಡು UI ಅಂಶಗಳ ನಡುವೆ ಗೋಚರಿಸುವ ಸಂಪರ್ಕವನ್ನು ರಚಿಸುತ್ತದೆ", "demoContainerTransformModalBottomSheetTitle": "ಫೇಡ್ ಮೋಡ್", "demoContainerTransformTypeFade": "ಫೇಡ್", "demoSharedYAxisAlbumTileDurationUnit": "ನಿಮಿ", "demoMotionPlaceholderTitle": "ಶೀರ್ಷಿಕೆ", "demoSharedXAxisForgotEmailButtonText": "ಇಮೇಲ್ ಮರೆತಿರುವಿರಾ?", "demoMotionSmallPlaceholderSubtitle": "ದ್ವಿತೀಯ", "demoMotionDetailsPageTitle": "ವಿವರಗಳ ಪುಟ", "demoMotionListTileTitle": "ಪಟ್ಟಿ ಐಟಂ", "demoSharedAxisDescription": "ಪ್ರಾದೇಶಿಕ ಅಥವಾ ನ್ಯಾವಿಗೇಶನಲ್ ಸಂಬಂಧ ಹೊಂದಿರುವ UI ಅಂಶಗಳ ನಡುವಿನ ಪರಿವರ್ತನೆಗಳಿಗಾಗಿ ಹಂಚಿದ ಅಕ್ಷದ ಪ್ಯಾಟರ್ನ್ ಅನ್ನು ಬಳಸಲಾಗುತ್ತದೆ. ಈ ಪ್ಯಾಟರ್ನ್ ಅಂಶಗಳ ನಡುವಿನ ಸಂಬಂಧವನ್ನು ಬಲಪಡಿಸಲು x, y, ಅಥವಾ z ಅಕ್ಷಗಳ ಮೇಲೆ ಹಂಚಿದ ಪರಿವರ್ತನೆಯನ್ನು ಬಳಸುತ್ತದೆ.", "demoSharedXAxisTitle": "ಹಂಚಿದ x-ಅಕ್ಷ", "demoSharedXAxisBackButtonText": "ಹಿಂದೆ", "demoSharedXAxisNextButtonText": "ಮುಂದೆ", "demoSharedXAxisCulinaryCourseTitle": "ಪಾಕಶಾಲೆ", "githubRepo": "{repoName} GitHub ಸಂಗ್ರಹಣೆ", "fortnightlyMenuUS": "ಯುಎಸ್", "fortnightlyMenuBusiness": "ವ್ಯಾಪಾರ", "fortnightlyMenuScience": "ವಿಜ್ಞಾನ", "fortnightlyMenuSports": "ಕ್ರೀಡೆ", "fortnightlyMenuTravel": "ಪ್ರಯಾಣ", "fortnightlyMenuCulture": "ಸಂಸ್ಕೃತಿ", "fortnightlyTrendingTechDesign": "TechDesign", "rallyBudgetDetailAmountLeft": "ಉಳಿದ ಮೊತ್ತ", "fortnightlyHeadlineArmy": "ಹಸಿರು ಸೈನ್ಯದ ಆಂತರಿಕ ಸುಧಾರಣೆ", "fortnightlyDescription": "ವಿಷಯ ಕೇಂದ್ರಿತ ಸುದ್ದಿ ಆ್ಯಪ್", "rallyBillDetailAmountDue": "ಬಾಕಿ ಮೊತ್ತ", "rallyBudgetDetailTotalCap": "ಒಟ್ಟು ಮಿತಿ", "rallyBudgetDetailAmountUsed": "ಬಳಸಿದ ಮೊತ್ತ", "fortnightlyTrendingHealthcareRevolution": "HealthcareRevolution", "fortnightlyMenuFrontPage": "ಮುಂದಿನ ಪುಟ", "fortnightlyMenuWorld": "ಜಗತ್ತು", "rallyBillDetailAmountPaid": "ಪಾವತಿಸಲಾದ ಮೊತ್ತ", "fortnightlyMenuPolitics": "ರಾಜಕೀಯ", "fortnightlyHeadlineBees": "ಜೇನುಕೃಷಿಗೆ ಜೇನುನೊಣಗಳ ಕೊರತೆ", "fortnightlyHeadlineGasoline": "ಗ್ಯಾಸೋಲಿನ್‌ನ ಭವಿಷ್ಯ", "fortnightlyTrendingGreenArmy": "GreenArmy", "fortnightlyHeadlineFeminists": "ಪೂರ್ವಾಗ್ರಹವನ್ನು ವಿರೋಧಿಸುವ ಗಂಭೀರ ಸ್ತ್ರೀವಾದಿಗಳು", "fortnightlyHeadlineFabrics": "ಫ್ಯೂಚರಿಸ್ಟಿಕ್ ಬಟ್ಟೆ ರಚನೆಗೆ ತಂತ್ರಜ್ಞಾನ ಬಳಸುವ ಸ್ಟೈಲಿಸ್ಟ್‌ಗಳು", "fortnightlyHeadlineStocks": "ಷೇರುಗಳು ಬೆಲೆ ಕುಸಿತ, ಕರೆನ್ಸಿಗಳತ್ತ ಮುಖ ಮಾಡಿದ ಜನಸಾಮಾನ್ಯ", "fortnightlyTrendingReform": "Reform", "fortnightlyMenuTech": "ಟೆಕ್", "fortnightlyHeadlineWar": "ಯುದ್ಧದ ಸಮಯದಲ್ಲಿ ಅಮೆರಿಕಾದ ಜೀವನ ಛಿದ್ರ", "fortnightlyHeadlineHealthcare": "ಶಾಂತಿಯುತ ಮತ್ತು ಶಕ್ತಿಯುತ ಆರೋಗ್ಯ ಕ್ರಾಂತಿ", "fortnightlyLatestUpdates": "ಇತ್ತೀಚಿನ ಅಪ್‌ಡೇಟ್‌ಗಳು", "fortnightlyTrendingStocks": "ಸ್ಟಾಕ್‌ಗಳು", "rallyBillDetailTotalAmount": "ಒಟ್ಟು ಮೊತ್ತ", "demoCupertinoPickerDateTime": "ದಿನಾಂಕ ಮತ್ತು ಸಮಯ", "signIn": "ಸೈನ್ ಇನ್", "dataTableRowWithSugar": "{value} ಸಕ್ಕರೆ ಹೊಂದಿದೆ", "dataTableRowApplePie": "ಆಪಲ್ ಪೈ", "dataTableRowDonut": "ಡೋನಟ್", "dataTableRowHoneycomb": "ಜೇನುಗೂಡು", "dataTableRowLollipop": "ಲಾಲಿಪಾಪ್", "dataTableRowJellyBean": "ಜೆಲ್ಲಿ ಬೀನ್", "dataTableRowGingerbread": "ಜಿಂಜರ್‌ಬ್ರೆಡ್", "dataTableRowCupcake": "ಕಪ್‌ಕೇಕ್", "dataTableRowEclair": "ಎಕ್ಲೇರ್", "dataTableRowIceCreamSandwich": "ಐಸ್ ಕ್ರೀಂ ಸ್ಯಾಂಡ್‌ವಿಚ್", "dataTableRowFrozenYogurt": "ಫ್ರೋಜನ್ ಯೋಗರ್ಟ್", "dataTableColumnIron": "ಐರನ್ (%)", "dataTableColumnCalcium": "ಕ್ಯಾಲ್ಸಿಯಂ (%)", "dataTableColumnSodium": "ಸೋಡಿಯಂ (ಮಿಗ್ರಾಂ)", "demoTimePickerTitle": "ಸಮಯ ಪಿಕರ್‌", "demo2dTransformationsResetTooltip": "ಪರಿವರ್ತನೆಗಳನ್ನು ಮರುಹೊಂದಿಸಿ", "dataTableColumnFat": "ಕೊಬ್ಬು (ಗ್ರಾಂ)", "dataTableColumnCalories": "ಕ್ಯಾಲೊರಿಗಳು", "dataTableColumnDessert": "ಡೆಸರ್ಟ್(1 ಸರ್ವಿಂಗ್)", "cardsDemoTravelDestinationLocation1": "ತಂಜಾವೂರು, ತಮಿಳುನಾಡು", "demoTimePickerDescription": "ವಸ್ತು ವಿನ್ಯಾಸ ಸಮಯ ಪಿಕರ್ ಹೊಂದಿರುವ ಡೈಲಾಗ್ ಅನ್ನು ತೋರಿಸುತ್ತದೆ.", "demoPickersShowPicker": "ಪಿಕರ್‌ ತೋರಿಸಿ", "demoTabsScrollingTitle": "ಸ್ಕ್ರಾಲ್ ಮಾಡುವಿಕೆ", "demoTabsNonScrollingTitle": "ಸ್ಕ್ರೋಲಿಂಗ್ ಆಗದ", "craneHours": "{hours,plural,=1{1ಗಂ}other{{hours}ಗಂ}}", "craneMinutes": "{minutes,plural,=1{1ನಿ}other{{minutes}ನಿ}}", "craneFlightDuration": "{hoursShortForm} {minutesShortForm}", "dataTableHeader": "ಪೌಷ್ಟಿಕತೆ", "demoDatePickerTitle": "ದಿನಾಂಕ ಪಿಕರ್", "demoPickersSubtitle": "ದಿನಾಂಕ ಮತ್ತು ಸಮಯದ ಅಯ್ಕೆ", "demoPickersTitle": "ಪಿಕರ್‌ಗಳು", "demo2dTransformationsEditTooltip": "ಟೈಲಕ್ ಅನ್ನು ಎಡಿಟ್ ಮಾಡಿ", "demoDataTableDescription": "ಡೇಟಾ ಟೇಬಲ್‌ಗಳು, ಸಾಲುಗಳು ಮತ್ತು ಕಾಲಮ್‌ಗಳ ಗ್ರಿಡ್-ರೀತಿಯ ಫಾರ್ಮ್ಯಾಟ್‌ನಲ್ಲಿ ಡೇಟಾವನ್ನು ತೋರಿಸುತ್ತವೆ. ಅವರು ಮಾಹಿತಿಯನ್ನು ಸ್ಕ್ಯಾನ್ ಮಾಡಲು ಸುಲಭವಾದ ರೀತಿಯಲ್ಲಿ ಆಯೋಜಿಸುತ್ತಾರೆ, ಇದರಿಂದ ಬಳಕೆದಾರರು ಪ್ಯಾಟರ್ನ್‌ಗಳು ಮತ್ತು ಒಳನೋಟಗಳನ್ನು ನೋಡಬಹುದು.", "demo2dTransformationsDescription": "ಟೈಲ್‌ಗಳನ್ನು ಎಡಿಟ್ ಮಾಡಲು ಟ್ಯಾಪ್ ಮಾಡಿ ಮತ್ತು Tದೃಶ್ಯದ ಸುತ್ತಲೂ ಚಲಿಸಲು ಸ್ಪರ್ಶ ಗೆಸ್ಚರ್‌ಗಳನ್ನು ಬಳಸಿ. ವಸ್ತುವನ್ನು ಪ್ಯಾನ್ ಮಾಡಲು ಎಳೆಯಿರಿ, ಝೂಮ್ ಮಾಡಲು ಪಿಂಚ್ ಮಾಡಿ ಮತ್ತು ತಿರುಗಿಸಲು ಎರಡು ಬೆರಳುಗಳಿಂದ ಸರಿಸಿ. ಆರಂಭಿಕ ಓರಿಯಂಟೇಶನ್‌ಗೆ ಹಿಂತಿರುಗಲು ಮರುಹೊಂದಿಸಿ ಬಟನ್ ಅನ್ನು ಒತ್ತಿರಿ.", "demo2dTransformationsSubtitle": "ಪ್ಯಾನ್‌, ಝೂಮ್, ತಿರುಗಿಸಿ", "demo2dTransformationsTitle": "2D ಪರಿವರ್ತನೆಗಳು", "demoCupertinoTextFieldPIN": "ಪಿನ್", "demoCupertinoTextFieldDescription": "ಪಠ್ಯದ ಸ್ಥಳದಲ್ಲಿ, ಬಳಕೆದಾರರು ಹಾರ್ಡ್‌ವೇರ್ ಕೀಬೋರ್ಡ್ ಅಥವಾ ಆನ್‌ಸ್ಕ್ರೀನ್ ಕೀಬೋರ್ಡ್ ಬಳಸಿ ಪಠ್ಯವನ್ನು ನಮೂದಿಸಬಹುದು.", "demoCupertinoTextFieldSubtitle": "iOS-ಶೈಲಿ ಪಠ್ಯ ಫೀಲ್ಡ್‌ಗಳು", "demoCupertinoTextFieldTitle": "ಪಠ್ಯ ಫೀಲ್ಡ್‌ಗಳು", "demoDatePickerDescription": "ವಸ್ತು ವಿನ್ಯಾಸ ದಿನಾಂಕ ಪಿಕರ್ ಹೊಂದಿರುವ ಡೈಲಾಗ್ ಅನ್ನು ತೋರಿಸುತ್ತದೆ.", "demoCupertinoPickerTime": "ಸಮಯ", "demoCupertinoPickerDate": "ದಿನಾಂಕ", "demoCupertinoPickerTimer": "ಟೈಮರ್", "demoCupertinoPickerDescription": "ಸ್ಟ್ರಿಂಗ್‌ಗಳು, ದಿನಾಂಕಗಳು, ಸಮಯ ಅಥವಾ ದಿನಾಂಕ ಮತ್ತು ಸಮಯ ಎರಡನ್ನೂ ಆಯ್ಕೆಮಾಡಲು iOS ಶೈಲಿಯ ಪಿಕರ್‌ ವಿಜೆಟ್‌ಗಳನ್ನು ಬಳಸಬಹುದು.", "demoCupertinoPickerSubtitle": "iOS-ಶೈಲಿಯ ಪಿಕರ್‌ಗಳು", "demoCupertinoPickerTitle": "ಪಿಕರ್‌ಗಳು", "dataTableRowWithHoney": "{value} ಜೇನುತುಪ್ಪ ಹೊಂದಿದೆ", "cardsDemoTravelDestinationCity2": "ಚೆಟ್ಟಿನಾಡ್", "bannerDemoResetText": "ಬ್ಯಾನರ್ ಮರುಹೊಂದಿಸಿ", "bannerDemoMultipleText": "ಬಹು ಕ್ರಿಯೆಗಳು", "bannerDemoLeadingText": "ಲೀಡಿಂಗ್ ಐಕಾನ್", "dismiss": "ವಜಾಗೊಳಿಸಿ", "cardsDemoTappable": "ಟ್ಯಾಪ್ ಮಾಡಬಹುದಾದ", "cardsDemoSelectable": "ಆಯ್ಕೆ ಮಾಡಬಹುದಾದ (ದೀರ್ಘಕಾಲ ಒತ್ತಿಹಿಡಿಯಿರಿ)", "cardsDemoExplore": "ಎಕ್ಸ್‌ಪ್ಲೋರ್‌‌", "cardsDemoExploreSemantics": "ಎಕ್ಸ್‌ಪ್ಲೋರ್‌‌ {destinationName}", "cardsDemoShareSemantics": "ಹಂಚಿಕೊಳ್ಳಿ {destinationName}", "cardsDemoTravelDestinationTitle1": "ತಮಿಳುನಾಡಿನಲ್ಲಿ ಭೇಟಿ ನೀಡಬೇಕಾದ ಪ್ರಮುಖ 10 ನಗರಗಳು", "cardsDemoTravelDestinationDescription1": "ಸಂಖ್ಯೆ 10", "cardsDemoTravelDestinationCity1": "ತಂಜಾವೂರು", "dataTableColumnProtein": "ಪ್ರೋಟೀನ್ (ಗ್ರಾಂ)", "cardsDemoTravelDestinationTitle2": "ದಕ್ಷಿಣ ಭಾರತದ ಕುಶಲಕರ್ಮಿಗಳು", "cardsDemoTravelDestinationDescription2": "ಸಿಲ್ಕ್ ಸ್ಪಿನ್ನರ್ಸ್", "bannerDemoText": "ನಿಮ್ಮ ಇತರ ಸಾಧನದಲ್ಲಿ ನಿಮ್ಮ ಪಾಸ್‌ವರ್ಡ್ ಅನ್ನು ಅಪ್‌ಡೇಟ್‌ ಮಾಡಲಾಗಿದೆ. ಪುನಃ ಸೈನ್ ಇನ್ ಮಾಡಿ.", "cardsDemoTravelDestinationLocation2": "ಶಿವಗಂಗ, ತಮಿಳುನಾಡು", "cardsDemoTravelDestinationTitle3": "ಬೃಹದೀಶ್ವರ ದೇವಸ್ಥಾನ", "cardsDemoTravelDestinationDescription3": "ದೇವಾಲಯಗಳು", "demoBannerTitle": "ಬ್ಯಾನರ್", "demoBannerSubtitle": "ಪಟ್ಟಿಯಲ್ಲಿ ಬ್ಯಾನರ್‌ಗಳನ್ನು ತೋರಿಸಲಾಗುತ್ತಿದೆ", "demoBannerDescription": "ಬ್ಯಾನರ್‌ಗಳು ಪ್ರಮುಖ, ಸಂಕ್ಷಿಪ್ತ ಸಂದೇಶಗಳನ್ನು ತೋರಿಸುತ್ತವೆ ಮತ್ತು ಬಳಕೆದಾರರಿಗೆ ನಿರ್ವಹಿಸಲು ಕ್ರಿಯೆಗಳನ್ನು ಒದಗಿಸುತ್ತವೆ (ಅಥವಾ ಬ್ಯಾನರ್ ಅನ್ನು ವಜಾಗೊಳಿಸಿ). ಅದನ್ನು ವಜಾಗೊಳಿಸಲು ಬಳಕೆದಾರರ ಕ್ರಿಯೆಯ ಅಗತ್ಯವಿದೆ.", "demoCardTitle": "ಕಾರ್ಡ್‌ಗಳು", "demoCardSubtitle": "ದುಂಡಾದ ಅಂಚುಗಳಿರುವ ಬೇಸ್‌ಲೈನ್ ಕಾರ್ಡ್‌ಗಳು", "demoCardDescription": "ಆಲ್ಬಮ್‌ಗಳು, ಭೌಗೋಳಿಕ ಸ್ಥಳ, ಆಹಾರ, ಸಂಪರ್ಕ ವಿವರಗಳು ಮುಂತಾದ ಕೆಲವು ಮಾಹಿತಿಯನ್ನು ಒಳಗೊಂಡಿರುವ ವಿಷಯಗಳನ್ನು ಪ್ರತಿನಿಧಿಸುವ ಮಟೇರಿಯಲ್‌ ಶೀಟ್‌ನಿಂದ ಮಾಡಿದ ಕಾರ್ಡ್ ಇದಾಗಿದೆ.", "demoDataTableTitle": "ಡೇಟಾ ಟೇಬಲ್‌ಗಳು", "demoDataTableSubtitle": "ಮಾಹಿತಿಯ ಸಾಲುಗಳು ಮತ್ತು ಕಾಲಮ್‌ಗಳು", "dataTableColumnCarbs": "ಕಾರ್ಬೊಹೈಡ್ರೇಟ್‌ಗಳು (ಗ್ರಾಂ)", "placeTanjore": "ತಂಜಾವೂರು", "demoGridListsTitle": "ಗ್ರಿಡ್ ಪಟ್ಟಿಗಳು", "placeFlowerMarket": "ಹೂವಿನ ಮಾರುಕಟ್ಟೆ", "placeBronzeWorks": "ಕಂಚಿನ ವಸ್ತು ತಯಾರಿಕೆ ಕಾರ್ಖಾನೆ", "placeMarket": "ಮಾರುಕಟ್ಟೆ", "placeThanjavurTemple": "ತಂಜಾವೂರು ದೇವಾಲಯ", "placeSaltFarm": "ಉಪ್ಪಿನ ಕೃಷಿ", "placeScooters": "ಸ್ಕೂಟರ್‌ಗಳು", "placeSilkMaker": "ರೇಷ್ಮೆ ವಸ್ತ್ರದ ತಯಾರಕ", "placeLunchPrep": "ಊಟದ ತಯಾರಕ", "placeBeach": "ಸಮುದ್ರತೀರ (ಬೀಚ್)", "placeFisherman": "ಮೀನುಗಾರ", "demoMenuSelected": "ಆಯ್ಕೆಮಾಡಿರುವುದು: {value}", "demoMenuRemove": "ತೆಗೆದುಹಾಕಿ", "demoMenuGetLink": "ಲಿಂಕ್ ಪಡೆದುಕೊಳ್ಳಿ", "demoMenuShare": "ಹಂಚಿಕೊಳ್ಳಿ", "demoBottomAppBarSubtitle": "ಕೆಳಗೆ ನ್ಯಾವಿಗೇಶನ್ ಮತ್ತು ಕ್ರಿಯೆಗಳನ್ನು ಡಿಸ್‌ಪ್ಲೇ ಮಾಡುತ್ತದೆ", "demoMenuAnItemWithASectionedMenu": "ವಿಭಾಗದ ಮೆನು ಹೊಂದಿರುವ ಐಟಂ", "demoMenuADisabledMenuItem": "ನಿಷ್ಕ್ರಿಯ ಮೆನು ಐಟಂ", "demoLinearProgressIndicatorTitle": "ಲೀನಿಯರ್ ಪ್ರಗತಿ ಸೂಚಕ", "demoMenuContextMenuItemOne": "ಸಂದರ್ಭ ಮೆನುವಿನ ಮೊದಲನೇ ಐಟಂ", "demoMenuAnItemWithASimpleMenu": "ಸರಳ ಮೆನು ಹೊಂದಿರುವ ಐಟಂ", "demoCustomSlidersTitle": "ಕಸ್ಟಮ್ ಸ್ಲೈಡರ್‌ಗಳು", "demoMenuAnItemWithAChecklistMenu": "ಪರಿಶೀಲನಾಪಟ್ಟಿ ಮೆನು ಹೊಂದಿರುವ ಐಟಂ", "demoCupertinoActivityIndicatorTitle": "ಚಟುವಟಿಕೆ ಸೂಚಕ", "demoCupertinoActivityIndicatorSubtitle": "iOS-ಸ್ಟೈಲ್ ಚಟುವಟಿಕೆ ಸೂಚಕಗಳು", "demoCupertinoActivityIndicatorDescription": "ಪ್ರದಕ್ಷಿಣಾಕಾರವಾಗಿ ಸ್ಪಿನ್ ಆಗುವ iOS-ಸ್ಟೈಲ್ ಚಟುವಟಿಕೆ ಸೂಚಕ.", "demoCupertinoNavigationBarTitle": "ನ್ಯಾವಿಗೇಷನ್ ಬಾರ್", "demoCupertinoNavigationBarSubtitle": "iOS-ಶೈಲಿ ನ್ಯಾವಿಗೇಶನ್‌ ಬಾರ್‌", "demoCupertinoNavigationBarDescription": "iOS-ಶೈಲಿಯ ನ್ಯಾವಿಗೇಶನ್‌ ಬಾರ್‌. ನ್ಯಾವಿಗೇಷನ್ ಬಾರ್ ಪರಿಕರಪಟ್ಟಿಯಾಗಿದ್ದು, ಕನಿಷ್ಠವಾಗಿ ಪುಟ ಶೀರ್ಷಿಕೆಯು ಪರಿಕರಪಟ್ಟಿಯ ಮಧ್ಯದಲ್ಲಿರುತ್ತದೆ.", "demoCupertinoPullToRefreshTitle": "ರಿಫ್ರೆಶ್ ಮಾಡಲು ಎಳೆಯಿರಿ", "demoCupertinoPullToRefreshSubtitle": "ನಿಯಂತ್ರಣವನ್ನು ರಿಫ್ರೆಶ್ ಮಾಡಲು, iOS-ಶೈಲಿ ಎಳೆಯಿರಿ", "demoCupertinoPullToRefreshDescription": "ವಿಷಯದ ನಿಯಂತ್ರಣವನ್ನು ರಿಫ್ರೆಶ್ ಮಾಡಲು, iOS-ಶೈಲಿ ಎಳೆಯಿರಿ ಅನ್ನು ವಿಜೆಟ್ ಕಾರ್ಯಗತಗೊಳಿಸುತ್ತಿದೆ.", "demoProgressIndicatorTitle": "ಪ್ರಗತಿ ಸೂಚಕಗಳು", "demoProgressIndicatorSubtitle": "ಲೀನಿಯರ್, ವೃತ್ತಾಕಾರ, ಅನಿರ್ದಿಷ್ಟ", "demoCircularProgressIndicatorTitle": "ವೃತ್ತಾಕಾರದ ಪ್ರಗತಿ ಸೂಚಕ", "demoCircularProgressIndicatorDescription": "ವಸ್ತು ವಿನ್ಯಾಸದಲ್ಲಿನ ವೃತ್ತಾಕಾರದ ಪ್ರಗತಿ ಸೂಚಕವು ಅಪ್ಲಿಕೇಶನ್ ಕಾರ್ಯನಿರತವಾಗಿದೆ ಎಂದು ಸೂಚಿಸಲು ಸ್ಪಿನ್ ಆಗುತ್ತದೆ.", "demoMenuFour": "ನಾಲ್ಕು", "demoLinearProgressIndicatorDescription": "ಪ್ರಗತಿ ಬಾರ್ ಎಂದೂ ಸಹ ಕರೆಯಲಾಗುವ, ವಸ್ತು ವಿನ್ಯಾಸ ಲೀನಿಯರ್ ಪ್ರಗತಿ ಸೂಚಕ.", "demoTooltipTitle": "ಟೂಲ್‌ಟಿಪ್‌ಗಳು", "demoTooltipSubtitle": "ನೀವು ಕರ್ಸರ್ ಅನ್ನು ಒತ್ತಿಹಿಡಿದಾಗ ಅಥವಾ ಹೋವರ್ ಮಾಡಿದಾಗ ಸಂದೇಶ ಡಿಸ್‌ಪ್ಲೇ ಆಗುತ್ತದೆ", "demoTooltipDescription": "ಟೂಲ್‌ಟಿಪ್‌ಗಳು ಪಠ್ಯ ಲೇಬಲ್‌ಗಳನ್ನು ಒದಗಿಸುತ್ತವೆ ಹಾಗೂ ಇವು ಬಟನ್‌ಗಳ ಫಂಕ್ಷನ್ ಮತ್ತು ಇತರ ಬಳಕೆದಾರ ಇಂಟರ್‌ಫೇಸ್ ಕ್ರಿಯೆಗಳನ್ನು ವಿವರಿಸುತ್ತವೆ. ಬಳಕೆದಾರರು ಒಂದು ಅಂಶದ ಮೇಲೆ ಹೋವರ್ ಮಾಡಿದಾಗ, ಫೋಕಸ್ ಮಾಡಿದಾಗ, ಅಥವಾ ದೀರ್ಘಕಾಲ ಒತ್ತಿಹಿಡಿದಾಗ ಮಾಹಿತಿ ಪಠ್ಯಗಳನ್ನು ಟೂಲ್‌ಟಿಪ್‌ಗಳಲ್ಲಿ ಡಿಸ್‌ಪ್ಲೇ ಆಗುತ್ತವೆ.", "demoTooltipInstructions": "ಟೂಲ್‌ಟಿಪ್ ಅನ್ನು ಡಿಸ್‌ಪ್ಲೇ ಮಾಡಲು ದೀರ್ಘಕಾಲ ಒತ್ತಿಹಿಡಿಯಿರಿ ಅಥವಾ ಹೋವರ್ ಮಾಡಿ.", "placeChennai": "ಚೆನ್ನೈ", "demoMenuChecked": "ಪರಿಶೀಲಿಸಿರುವುದು: {value}", "placeChettinad": "ಚೆಟ್ಟಿನಾಡ್", "demoMenuPreview": "ಪೂರ್ವವೀಕ್ಷಣೆ", "demoBottomAppBarTitle": "ಬಾಟಮ್ ಆ್ಯಪ್ ಬಾರ್", "demoBottomAppBarDescription": "ಫ್ಲೋಟಿಂಗ್ ಕ್ರಿಯಾ ಬಟನ್ ಸೇರಿದಂತೆ, ಕೆಳಗಿನ ನ್ಯಾವಿಗೇಶನ್ ಬಾರ್ ಮತ್ತು ನಾಲ್ಕು ಕ್ರಿಯೆಗಳವರೆಗೆ ಬಾಟಮ್ ಆ್ಯಪ್ ಬಾರ್‌ಗಳು ಪ್ರವೇಶವನ್ನು ಒದಗಿಸುತ್ತದೆ.", "bottomAppBarNotch": "ನಾಚ್", "bottomAppBarPosition": "ಫ್ಲೋಟಿಂಗ್ ಕ್ರಿಯಾ ಬಟನ್‌ ಸ್ಥಾನ", "bottomAppBarPositionDockedEnd": "ಡಾಕ್ ಮಾಡಿರುವುದು - ತುದಿಯಲ್ಲಿ", "bottomAppBarPositionDockedCenter": "ಡಾಕ್ ಮಾಡಿರುವುದು - ಮಧ್ಯದಲ್ಲಿ", "bottomAppBarPositionFloatingEnd": "ಫ್ಲೋಟಿಂಗ್ - ತುದಿಯಲ್ಲಿ", "bottomAppBarPositionFloatingCenter": "ಫ್ಲೋಟಿಂಗ್ - ಮಧ್ಯದಲ್ಲಿ", "demoSlidersEditableNumericalValue": "ಎಡಿಟ್ ಮಾಡಬಹುದಾದ ಸಂಖ್ಯಾತ್ಮಕ ಮೌಲ್ಯ", "demoGridListsSubtitle": "ಸಾಲು ಮತ್ತು ಕಾಲಮ್ ಲೇಔಟ್", "demoGridListsDescription": "ಏಕರೂಪದ ಡೇಟಾವನ್ನು ಪ್ರಸ್ತುತಪಡಿಸಲು, ಸಾಮಾನ್ಯವಾಗಿ ಚಿತ್ರಗಳನ್ನು ಗ್ರಿಡ್ ಪಟ್ಟಿಗಳು ಹೆಚ್ಚು ಸೂಕ್ತವಾಗಿರುತ್ತವೆ. ಗ್ರಿಡ್ ಪಟ್ಟಿಯಲ್ಲಿರುವ ಪ್ರತಿಯೊಂದು ಐಟಂ ಅನ್ನು ಟೈಲ್ ಎಂದು ಕರೆಯಲಾಗುತ್ತದೆ.", "demoGridListsImageOnlyTitle": "ಚಿತ್ರ ಮಾತ್ರ", "demoGridListsHeaderTitle": "ಶಿರೋಲೇಖದೊಂದಿಗೆ", "demoGridListsFooterTitle": "ಅಡಿಟಿಪ್ಪಣಿಯೊಂದಿಗೆ", "demoSlidersTitle": "ಸ್ಲೈಡರ್‌ಗಳು", "demoSlidersSubtitle": "ಸ್ವೈಪ್ ಮಾಡುವ ಮೂಲಕ ಮೌಲ್ಯವನ್ನು ಆಯ್ಕೆಮಾಡುವುದಕ್ಕಾಗಿ ವಿಜೆಟ್‌ಗಳು", "demoSlidersDescription": "ಸ್ಲೈಡರ್‌ಗಳು ಒಂದು ನಿರ್ದಿಷ್ಟ ಶ್ರೇಣಿಯನ್ನು ಪ್ರತಿಬಿಂಬಿಸುವ ಬಾರ್ ಆಗಿದೆ. ಇದರಿಂದ ಬಳಕೆದಾರರು ಒಂದು ಮೌಲ್ಯವನ್ನು ಆಯ್ಕೆಮಾಡಬಹುದು. ವಾಲ್ಯೂಮ್, ಪ್ರಖರತೆ ಅಥವಾ ಚಿತ್ರದ ಫಿಲ್ಟರ್‌ಗಳನ್ನು ಅನ್ವಯಿಸುವಂತಹ ಸೆಟ್ಟಿಂಗ್‌ಗಳನ್ನು ಸರಿಹೊಂದಿಸುವುದಕ್ಕೆ ಅವುಗಳು ಸೂಕ್ತವಾಗಿದೆ.", "demoRangeSlidersTitle": "ಶ್ರೇಣಿ ಸ್ಲೈಡರ್‌ಗಳು", "demoRangeSlidersDescription": "ಸ್ಲೈಡರ್, ಬಾರ್‌ನಾದ್ಯಂತ ಮೌಲ್ಯಗಳ ಶ್ರೇಣಿಯನ್ನು ಪ್ರತಿಬಿಂಬಿಸುತ್ತದೆ. ಇವುಗಳು ಬಾರ್‌ನ ಎರಡೂ ತುದಿಗಳಲ್ಲಿ ಐಕಾನ್‌ಗಳನ್ನು ಹೊಂದಿರಬಹುದು, ಇವು ಮೌಲ್ಯಗಳ ಶ್ರೇಣಿಯನ್ನು ಪ್ರತಿಬಿಂಬಿಸುತ್ತವೆ. ವಾಲ್ಯೂಮ್, ಪ್ರಖರತೆ ಅಥವಾ ಚಿತ್ರದ ಫಿಲ್ಟರ್‌ಗಳನ್ನು ಅನ್ವಯಿಸುವಂತಹ ಸೆಟ್ಟಿಂಗ್‌ಗಳನ್ನು ಸರಿಹೊಂದಿಸುವುದಕ್ಕೆ ಅವುಗಳು ಸೂಕ್ತವಾಗಿದೆ.", "demoMenuAnItemWithAContextMenuButton": "ಸಂದರ್ಭದ ಮೆನು ಹೊಂದಿರುವ ಐಟಂ", "demoCustomSlidersDescription": "ಸ್ಲೈಡರ್‌ಗಳು ಒಂದು ನಿರ್ದಿಷ್ಟ ಶ್ರೇಣಿಯನ್ನು ಪ್ರತಿಬಿಂಬಿಸುವ ಬಾರ್ ಆಗಿದೆ. ಇದರಿಂದ ಬಳಕೆದಾರರು ಒಂದು ಮೌಲ್ಯವನ್ನು ಅಥವಾ ಮೌಲ್ಯಗಳ ಶ್ರೇಣಿಯನ್ನು ಆಯ್ಕೆಮಾಡಬಹುದು. ಸ್ಲೈಡರ್‌ಗಳನ್ನು ಥೀಮ್ ಮಾಡಬಹುದು ಮತ್ತು ಕಸ್ಟಮೈಸ್ ಮಾಡಬಹುದು.", "demoSlidersContinuousWithEditableNumericalValue": "ಎಡಿಟ್ ಮಾಡಬಹುದಾದ ನಿರಂತರ ಸಂಖ್ಯಾತ್ಮಕ ಮೌಲ್ಯ", "demoSlidersDiscrete": "ಪ್ರತ್ಯೇಕ", "demoSlidersDiscreteSliderWithCustomTheme": "ಕಸ್ಟಮ್ ಥೀಮ್ ಜೊತೆಗೆ ಪ್ರತ್ಯೇಕ ಸ್ಲೈಡರ್", "demoSlidersContinuousRangeSliderWithCustomTheme": "ಕಸ್ಟಮ್ ಥೀಮ್ ಜೊತೆಗೆ ನಿರಂತರ ಶ್ರೇಣಿಯ ಸ್ಲೈಡರ್", "demoSlidersContinuous": "ನಿರಂತರ", "placePondicherry": "ಪಾಂಡಿಚೇರಿ", "demoMenuTitle": "ಮೆನು", "demoContextMenuTitle": "ಸಂದರ್ಭದ ಮೆನು", "demoSectionedMenuTitle": "ವಿಭಾಗದ ಮೆನು", "demoSimpleMenuTitle": "ಸರಳ ಮೆನು", "demoChecklistMenuTitle": "ಪರಿಶೀಲನೆ ಪಟ್ಟಿಯ ಮೆನು", "demoMenuSubtitle": "ಮೆನು ಬಟನ್‌ಗಳು ಮತ್ತು ಸರಳ ಮೆನುಗಳು", "demoMenuDescription": "ಮೆನು ತಾತ್ಕಾಲಿಕ ಮೇಲ್ಮೈಯಲ್ಲಿ ಆಯ್ಕೆಗಳ ಪಟ್ಟಿಯನ್ನು ಡಿಸ್‌ಪ್ಲೇ ಮಾಡುತ್ತದೆ. ಬಳಕೆದಾರರು ಬಟನ್‌ಗಳು, ಕ್ರಿಯೆಗಳು ಮತ್ತು ಇತರ ನಿಯಂತ್ರಣಗಳನ್ನು ಬಳಸಿಕೊಂಡು ಸಂವಹನ ನಡೆಸಿದಾಗ ಅವುಗಳು ಗೋಚರಿಸುತ್ತವೆ.", "demoMenuItemValueOne": "ಮೆನುವಿನ ಮೊದಲನೇ ಐಟಂ", "demoMenuItemValueTwo": "ಮೆನುವಿನ ಎರಡನೇ ಐಟಂ", "demoMenuItemValueThree": "ಮೆನುವಿನ ಮೂರನೇ ಐಟಂ", "demoMenuOne": "ಒಂದು", "demoMenuTwo": "ಎರಡು", "demoMenuThree": "ಮೂರು", "demoMenuContextMenuItemThree": "ಸಂದರ್ಭ ಮೆನುವಿನ ಮೂರನೇ ಐಟಂ", "demoCupertinoSwitchSubtitle": "iOS-ಸ್ಟೈಲ್ ಸ್ವಿಚ್", "demoSnackbarsText": "ಇದು ಸ್ನ್ಯಾಕ್‌ಬಾರ್ ಆಗಿದೆ.", "demoCupertinoSliderSubtitle": "iOS-ಸ್ಟೈಲ್ ಸ್ಲೈಡರ್", "demoCupertinoSliderDescription": "ನಿರಂತರ ಅಥವಾ ಪ್ರತ್ಯೇಕ ಮೌಲ್ಯಗಳ ಗುಂಪಿನಿಂದ ಆಯ್ಕೆಮಾಡಲು ಸ್ಲೈಡರ್ ಅನ್ನು ಬಳಸಬಹುದು.", "demoCupertinoSliderContinuous": "ನಿರಂತರ: {value}", "demoCupertinoSliderDiscrete": "ಪ್ರತ್ಯೇಕ: {value}", "demoSnackbarsAction": "ನೀವು ಸ್ನ್ಯಾಕ್‌ಬಾರ್ ಆ್ಯಕ್ಷನ್ ಅನ್ನು ಒತ್ತಿರುವಿರಿ.", "backToGallery": "ಗ್ಯಾಲರಿಗೆ ಹಿಂದಿರುಗಿ", "demoCupertinoTabBarTitle": "ಟ್ಯಾಬ್ ಪಟ್ಟಿ", "demoCupertinoSwitchDescription": "ಸೆಟ್ಟಿಂಗ್ ಒಂದರ ಸ್ಥಿತಿಯನ್ನು ಟಾಗಲ್ ಆನ್/ಆಫ್ ಮಾಡಲು ಸ್ವಿಚ್ ಅನ್ನು ಬಳಸಲಾಗುತ್ತದೆ.", "demoSnackbarsActionButtonLabel": "ಆ್ಯಕ್ಷನ್", "cupertinoTabBarProfileTab": "ಪ್ರೊಫೈಲ್", "demoSnackbarsButtonLabel": "ಸ್ನ್ಯಾಕ್‌ಬಾರ್ ಅನ್ನು ತೋರಿಸಿ", "demoSnackbarsDescription": "ಆ್ಯಪ್ ನಿರ್ವಹಿಸಿದ ಅಥವಾ ನಿರ್ವಹಿಸುವ ಪ್ರಕ್ರಿಯೆಯ ಬಗ್ಗೆ ಸ್ನ್ಯಾಕ್‌ಬಾರ್‌ಗಳು ಬಳಕೆದಾರರಿಗೆ ತಿಳಿಸುತ್ತವೆ. ಅವುಗಳು ತಾತ್ಕಾಲಿಕವಾಗಿ, ಸ್ಕ್ರೀನ್‌‍ನ ಕೆಳಭಾಗದಲ್ಲಿ ಕಾಣಿಸಿಕೊಳ್ಳುತ್ತವೆ. ಅವರು ಬಳಕೆದಾರರ ಅನುಭವವನ್ನು ಅಡ್ಡಿಪಡಿಸಬಾರದು ಮತ್ತು ಕಾಣೆಯಾಗಲು ಅವರಿಗೆ ಬಳಕೆದಾರರ ಇನ್‌ಪುಟ್‌ನ ಅಗತ್ಯವಿಲ್ಲ.", "demoSnackbarsSubtitle": "ಸ್ನ್ಯಾಕ್‌ಬಾರ್‌ಗಳು ಸ್ಕ್ರೀನ್‌ನ ಕೆಳಭಾಗದಲ್ಲಿ ಸಂದೇಶಗಳನ್ನು ತೋರಿಸುತ್ತದೆ", "demoSnackbarsTitle": "ಸ್ನ್ಯಾಕ್‌ಬಾರ್‌ಗಳು", "demoCupertinoSliderTitle": "ಸ್ಲೈಡರ್", "cupertinoTabBarChatTab": "Chat", "cupertinoTabBarHomeTab": "ಹೋಮ್", "demoCupertinoTabBarDescription": "iOS-ಸ್ಟೈಲ್ ಬಾಟಮ್ ನ್ಯಾವಿಗೇಶನ್ ಟ್ಯಾಬ್ ಬಾರ್. ಒಂದು ಟ್ಯಾಬ್ ಸಕ್ರಿಯವಾಗಿರುವುದರ ಜೊತೆಗೆ ಬಹು ಟ್ಯಾಬ್‌ಗಳನ್ನು ಡಿಸ್‌ಪ್ಲೇ ಮಾಡುತ್ತದೆ, ಮೊದಲ ಟ್ಯಾಬ್ ಡೀಫಾಲ್ಟ್ ಆಗಿದೆ.", "demoCupertinoTabBarSubtitle": "iOS-ಸ್ಟೈಲ್ ಬಾಟಮ್ ಟ್ಯಾಬ್ ಬಾರ್", "demoOptionsFeatureTitle": "ಆಯ್ಕೆಗಳನ್ನು ವೀಕ್ಷಿಸಿ", "demoOptionsFeatureDescription": "ಈ ಡೆಮೋಗಾಗಿ ಲಭ್ಯವಿರುವ ಆಯ್ಕೆಗಳನ್ನು ವೀಕ್ಷಿಸಲು, ಇಲ್ಲಿ ಟ್ಯಾಪ್ ಮಾಡಿ.", "demoCodeViewerCopyAll": "ಎಲ್ಲವನ್ನೂ ನಕಲಿಸಿ", "shrineScreenReaderRemoveProductButton": "{product} ತೆಗೆದುಹಾಕಿ", "shrineScreenReaderProductAddToCart": "ಕಾರ್ಟ್‌ಗೆ ಸೇರಿಸಿ", "shrineScreenReaderCart": "{quantity,plural,=0{ಶಾಪಿಂಗ್ ಕಾರ್ಟ್, ಯಾವುದೇ ಐಟಂಗಳಿಲ್ಲ}=1{ಶಾಪಿಂಗ್ ಕಾರ್ಟ್, 1 ಐಟಂ}other{ಶಾಪಿಂಗ್ ಕಾರ್ಟ್, {quantity} ಐಟಂಗಳು}}", "demoCodeViewerFailedToCopyToClipboardMessage": "ಫ್ಲಿಪ್‌ಬೋರ್ಡ್‌ಗೆ ನಕಲಿಸಲು ವಿಫಲವಾಗಿದೆ: {error}", "demoCodeViewerCopiedToClipboardMessage": "ಕ್ಲಿಪ್‌ಬೋರ್ಡ್‌ಗೆ ನಕಲಿಸಲಾಗಿದೆ.", "craneSleep8SemanticLabel": "ಸಮುದ್ರತೀರದ ಮೇಲಿರುವ ಬಂಡೆಯ ಮೇಲೆ ಮಾಯನ್ ಅವಶೇಷಗಳು", "craneSleep4SemanticLabel": "ಪರ್ವತಗಳ ಮುಂದೆ ನದಿ ತೀರದಲ್ಲಿನ ಹೋಟೆಲ್", "craneSleep2SemanticLabel": "ಮಾಚು ಪಿಚು ಸಿಟಾಡೆಲ್", "craneSleep1SemanticLabel": "ನಿತ್ಯಹರಿದ್ವರ್ಣ ಮರಗಳು ಮತ್ತು ಹಿಮದ ಮೇಲ್ಮೈ ಅಲ್ಲಿರುವ ಚಾಲೆಟ್", "craneSleep0SemanticLabel": "ನೀರಿನಿಂದ ಸುತ್ತುವರಿದ ಬಂಗಲೆಗಳು", "craneFly13SemanticLabel": "ತಾಳೆ ಮರಗಳನ್ನು ಹೊಂದಿರುವ ಸಮುದ್ರದ ಪಕ್ಕದ ಈಜುಕೊಳ", "craneFly12SemanticLabel": "ತಾಳೆ ಮರಗಳ ಜೊತೆಗೆ ಈಜುಕೊಳ", "craneFly11SemanticLabel": "ಸಮುದ್ರದಲ್ಲಿರುವ ಇಟ್ಟಿಗೆಯ ಲೈಟ್‌ ಹೌಸ್‌", "craneFly10SemanticLabel": "ಸೂರ್ಯಾಸ್ತದ ಸಮಯದಲ್ಲಿ ಅಲ್-ಅಜರ್ ಮಸೀದಿ ಗೋಪುರಗಳು", "craneFly9SemanticLabel": "ಹಳೆಯ ನೀಲಿ ಕಾರಿಗೆ ವಾಲಿ ನಿಂತಿರುವ ಮನುಷ್ಯ", "craneFly8SemanticLabel": "ಸೂಪರ್‌ಟ್ರೀ ಗ್ರೋವ್", "craneEat9SemanticLabel": "ಪೇಸ್ಟ್ರಿಗಳನ್ನು ಹೊಂದಿರುವ ಕೆಫೆ ಕೌಂಟರ್", "craneEat2SemanticLabel": "ಬರ್ಗರ್", "craneFly5SemanticLabel": "ಪರ್ವತಗಳ ಮುಂದೆ ನದಿ ತೀರದಲ್ಲಿನ ಹೋಟೆಲ್", "demoSelectionControlsSubtitle": "ಚೆಕ್‌ಬಾಕ್ಸ್‌ಗಳು, ರೇಡಿಯೋ ಬಟನ್‌ಗಳು ಮತ್ತು ಸ್ವಿಚ್‌ಗಳು", "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": "Palacio de Bellas Artes ನ ವೈಮಾನಿಕ ನೋಟ", "rallySeeAllAccounts": "ಎಲ್ಲಾ ಖಾತೆಗಳನ್ನು ನೋಡಿ", "rallyBillAmount": "{amount} ಗಾಗಿ {date} ರಂದು {billName} ಬಿಲ್ ಪಾವತಿ ಬಾಕಿಯಿದೆ.", "shrineTooltipCloseCart": "ಕಾರ್ಟ್ ಮುಚ್ಚಿರಿ", "shrineTooltipCloseMenu": "ಮೆನು ಮುಚ್ಚಿರಿ", "shrineTooltipOpenMenu": "ಮೆನು ತೆರೆಯಿರಿ", "shrineTooltipSettings": "ಸೆಟ್ಟಿಂಗ್‌ಗಳು", "shrineTooltipSearch": "Search", "demoTabsDescription": "ಬೇರೆ ಸ್ಕ್ರೀನ್‌ಗಳು, ಡೇಟಾ ಸೆಟ್‌ಗಳು ಮತ್ತು ಇತರ ಸಂವಹನಗಳಾದ್ಯಂತ ವಿಷಯವನ್ನು ಟ್ಯಾಬ್‌ಗಳು ಆಯೋಜಿಸುತ್ತವೆ.", "demoTabsSubtitle": "ಪ್ರತ್ಯೇಕವಾಗಿ ಸ್ಕ್ರಾಲ್ ಮಾಡಬಹುದಾದ ವೀಕ್ಷಣೆಗಳ ಜೊತೆಗಿನ ಟ್ಯಾಪ್‌ಗಳು", "demoTabsTitle": "ಟ್ಯಾಬ್‌ಗಳು", "rallyBudgetAmount": "{amountTotal} ರಲ್ಲಿನ {budgetName} ಬಜೆಟ್‌ನ {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": "EAT", "craneFlySubhead": "ತಲುಪಬೇಕಾದ ಸ್ಥಳಕ್ಕೆ ಹೋಗುವ ಫ್ಲೈಟ್‌ಗಳನ್ನು ಎಕ್ಸ್‌ಪ್ಲೋರ್ ಮಾಡಿ", "craneSleepSubhead": "ತಲುಪಬೇಕಾದ ಸ್ಥಳದಲ್ಲಿನ ಸ್ವತ್ತುಗಳನ್ನು ಎಕ್ಸ್‌ಪ್ಲೋರ್ ಮಾಡಿ", "craneEatSubhead": "ತಲುಪಬೇಕಾದ ಸ್ಥಳದಲ್ಲಿರುವ ರೆಸ್ಟೋರೆಂಟ್‌ಗಳನ್ನು ಎಕ್ಸ್‌ಪ್ಲೋರ್ ಮಾಡಿ", "craneFlyStops": "{numberOfStops,plural,=0{ತಡೆರಹಿತ}=1{1 ನಿಲುಗಡೆ}other{{numberOfStops} ನಿಲುಗಡೆಗಳು}}", "craneSleepProperties": "{totalProperties,plural,=0{ಲಭ್ಯವಿರುವ ಸ್ವತ್ತುಗಳಿಲ್ಲ}=1{1 ಲಭ್ಯವಿರುವ ಸ್ವತ್ತುಗಳಿದೆ}other{{totalProperties} ಲಭ್ಯವಿರುವ ಸ್ವತ್ತುಗಳಿವೆ}}", "craneEatRestaurants": "{totalRestaurants,plural,=0{ರೆಸ್ಟೋರೆಂಟ್‌ಗಳಿಲ್ಲ}=1{1 ರೆಸ್ಟೋರೆಂಟ್}other{{totalRestaurants} ರೆಸ್ಟೋರೆಂಟ್‌ಗಳು}}", "craneFly0": "ಆಸ್ಪೆನ್, ಯುನೈಟೆಡ್ ಸ್ಟೇಟ್ಸ್", "demoCupertinoSegmentedControlSubtitle": "iOS-ಶೈಲಿಯ ವಿಭಾಗೀಕರಣದ ನಿಯಂತ್ರಣ", "craneSleep10": "ಕೈರೊ, ಈಜಿಪ್ಟ್", "craneEat9": "ಮ್ಯಾಡ್ರಿಡ್, ಸ್ಪೇನ್", "craneFly1": "ಬಿಗ್ ಸುರ್, ಯುನೈಟೆಡ್ ಸ್ಟೇಟ್ಸ್", "craneEat7": "ನ್ಯಾಶ್ವಿಲ್ಲೆ, ಯುನೈಟೆಡ್ ಸ್ಟೇಟ್ಸ್", "craneEat6": "ಸಿಯಾಟಲ್, ಯುನೈಟೆಡ್ ಸ್ಟೇಟ್ಸ್", "craneFly8": "ಸಿಂಗಾಪುರ್", "craneEat4": "ಪ್ಯಾರಿಸ್‌, ಫ್ರಾನ್ಸ್‌‌", "craneEat3": "ಪೋರ್ಟ್‌ಲ್ಯಾಂಡ್, ಯುನೈಟೆಡ್ ಸ್ಟೇಟ್ಸ್", "craneEat2": "ಕಾರ್ಡೋಬಾ, ಅರ್ಜೆಂಟೀನಾ", "craneEat1": "ಡಲ್ಲಾಸ್, ಯುನೈಟೆಡ್ ಸ್ಟೇಟ್ಸ್", "craneEat0": "ನಪ್ಲೆಸ್, ಇಟಲಿ", "craneSleep11": "ತೈಪೆ, ತೈವಾನ್", "craneSleep3": "ಹವಾನಾ, ಕ್ಯೂಬಾ", "shrineLogoutButtonCaption": "ಲಾಗ್ ಔಟ್ ಮಾಡಿ", "rallyTitleBills": "ಬಿಲ್‌ಗಳು", "rallyTitleAccounts": "ಖಾತೆಗಳು", "shrineProductVagabondSack": "ವ್ಯಾಗಬಾಂಡ್ ಸ್ಯಾಕ್", "rallyAccountDetailDataInterestYtd": "ಬಡ್ಡಿ YTD", "shrineProductWhitneyBelt": "ವಿಟ್ನೀ ಬೆಲ್ಟ್", "shrineProductGardenStrand": "ಗಾರ್ಡನ್ ಸ್ಟ್ರ್ಯಾಂಡ್", "shrineProductStrutEarrings": "ಸ್ಟ್ರಟ್ ಈಯರ್‌ರಿಂಗ್ಸ್", "shrineProductVarsitySocks": "ವಾರ್ಸಿಟಿ ಸಾಕ್ಸ್", "shrineProductWeaveKeyring": "ವೀವ್ ಕೀರಿಂಗ್", "shrineProductGatsbyHat": "ಗ್ಯಾಟ್ಸ್‌ಬೀ ಹ್ಯಾಟ್", "shrineProductShrugBag": "ಶ್ರಗ್ ಬ್ಯಾಗ್", "shrineProductGiltDeskTrio": "ಗಿಲ್ಟ್ ಡೆಸ್ಕ್ ಟ್ರಿಯೋ", "shrineProductCopperWireRack": "ಕಾಪರ್ ವೈರ್ ರ್‍ಯಾಕ್", "shrineProductSootheCeramicSet": "ಸೂತ್ ಸೆರಾಮಿಕ್ ಸೆಟ್", "shrineProductHurrahsTeaSet": "ಹುರ್ರಾಸ್ ಟೀ ಸೆಟ್", "shrineProductBlueStoneMug": "ಬ್ಲೂ ಸ್ಟೋನ್ ಮಗ್", "shrineProductRainwaterTray": "ರೇನ್‌ವಾಟರ್ ಟ್ರೇ", "shrineProductChambrayNapkins": "ಶ್ಯಾಂಬ್ರೇ ನ್ಯಾಪ್ಕಿನ್ಸ್", "shrineProductSucculentPlanters": "ಸಕ್ಯುಲೆಂಟ್ ಪ್ಲಾಂಟರ್ಸ್", "shrineProductQuartetTable": "ಕ್ವಾರ್ಟೆಟ್ ಟೇಬಲ್", "shrineProductKitchenQuattro": "ಕಿಚನ್ ಕ್ವಾಟ್ರೋ", "shrineProductClaySweater": "ಕ್ಲೇ ಸ್ವೆಟರ್", "shrineProductSeaTunic": "ಸೀ ಟ್ಯೂನಿಕ್", "shrineProductPlasterTunic": "ಪ್ಲಾಸ್ಟರ್ ಟ್ಯೂನಿಕ್", "rallyBudgetCategoryRestaurants": "ರೆಸ್ಟೋರೆಂಟ್‌ಗಳು", "shrineProductChambrayShirt": "ಶ್ಯಾಂಬ್ರೇ ಶರ್ಟ್", "shrineProductSeabreezeSweater": "ಸೀಬ್ರೀಜ್ ಸ್ವೆಟರ್", "shrineProductGentryJacket": "ಜೆಂಟ್ರಿ ಜಾಕೆಟ್", "shrineProductNavyTrousers": "ನೇವಿ ಟ್ರೌಸರ್ಸ್", "shrineProductWalterHenleyWhite": "ವಾಲ್ಟರ್ ಹೆನ್ಲೇ (ಬಿಳಿ)", "shrineProductSurfAndPerfShirt": "ಸರ್ಫ್ ಮತ್ತು ಪರ್ಫ್ ಶರ್ಟ್", "shrineProductGingerScarf": "ಜಿಂಜರ್ ಸ್ಕಾರ್ಫ್", "shrineProductRamonaCrossover": "ರಮೋನಾ ಕ್ರಾಸ್ಓವರ್", "shrineProductClassicWhiteCollar": "ಕ್ಲಾಸಿಕ್ ವೈಟ್ ಕಾಲರ್", "shrineProductSunshirtDress": "ಸನ್‌ಶರ್ಟ್ ಡ್ರೆಸ್", "rallyAccountDetailDataInterestRate": "ಬಡ್ಡಿದರ", "rallyAccountDetailDataAnnualPercentageYield": "ವಾರ್ಷಿಕ ಶೇಕಡಾವಾರು ಲಾಭ", "rallyAccountDataVacation": "ರಜಾಕಾಲ", "shrineProductFineLinesTee": "ಫೈನ್ ಲೈನ್ಸ್ ಟೀ", "rallyAccountDataHomeSavings": "ಮನೆ ಉಳಿತಾಯ", "rallyAccountDataChecking": "ಪರಿಶೀಲಿಸಲಾಗುತ್ತಿದೆ", "rallyAccountDetailDataInterestPaidLastYear": "ಹಿಂದಿನ ವರ್ಷ ಪಾವತಿಸಿದ ಬಡ್ಡಿ", "rallyAccountDetailDataNextStatement": "ಮುಂದಿನ ಸ್ಟೇಟ್‌ಮೆಂಟ್", "rallyAccountDetailDataAccountOwner": "ಖಾತೆಯ ಮಾಲೀಕರು", "rallyBudgetCategoryCoffeeShops": "ಕಾಫಿ ಶಾಪ್‌ಗಳು", "rallyBudgetCategoryGroceries": "ದಿನಸಿ", "shrineProductCeriseScallopTee": "ಸಿರೀಸ್ ಸ್ಕಾಲಪ್ ಟೀ", "rallyBudgetCategoryClothing": "ಉಡುಗೆ", "rallySettingsManageAccounts": "ಖಾತೆಗಳನ್ನು ನಿರ್ವಹಿಸಿ", "rallyAccountDataCarSavings": "ಕಾರ್ ಉಳಿತಾಯ", "rallySettingsTaxDocuments": "ತೆರಿಗೆ ಡಾಕ್ಯುಮೆಂಟ್‌ಗಳು", "rallySettingsPasscodeAndTouchId": "ಪಾಸ್‌ಕೋಡ್ ಮತ್ತು ಟಚ್ ಐಡಿ", "rallySettingsNotifications": "ಅಧಿಸೂಚನೆಗಳು", "rallySettingsPersonalInformation": "ವೈಯಕ್ತಿಕ ಮಾಹಿತಿ", "rallySettingsPaperlessSettings": "ಕಾಗದರಹಿತ ಸೆಟ್ಟಿಂಗ್‌ಗಳು", "rallySettingsFindAtms": "ATM ಗಳನ್ನು ಹುಡುಕಿ", "rallySettingsHelp": "ಸಹಾಯ", "rallySettingsSignOut": "ಸೈನ್ ಔಟ್ ಮಾಡಿ", "rallyAccountTotal": "ಒಟ್ಟು", "rallyBillsDue": "ಅಂತಿಮ ದಿನಾಂಕ", "rallyBudgetLeft": "ಉಳಿದಿದೆ", "rallyAccounts": "ಖಾತೆಗಳು", "rallyBills": "ಬಿಲ್‌ಗಳು", "rallyBudgets": "ಬಜೆಟ್‌ಗಳು", "rallyAlerts": "ಅಲರ್ಟ್‌ಗಳು", "rallySeeAll": "ಎಲ್ಲವನ್ನು ವೀಕ್ಷಿಸಿ", "rallyFinanceLeft": "ಉಳಿದಿದೆ", "rallyTitleOverview": "ಸಮಗ್ರ ನೋಟ", "shrineProductShoulderRollsTee": "ಶೋಲ್ಡರ್ ರೋಲ್ಸ್ ಟೀ", "shrineNextButtonCaption": "ಮುಂದಿನದು", "rallyTitleBudgets": "ಬಜೆಟ್‌ಗಳು", "rallyTitleSettings": "ಸೆಟ್ಟಿಂಗ್‌ಗಳು", "rallyLoginLoginToRally": "ರ್‍ಯಾಲಿಗೆ ಲಾಗಿನ್ ಮಾಡಿ", "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{1 ಐಟಂ}other{{quantity} ಐಟಂಗಳು}}", "shrineCartClearButtonCaption": "ಕಾರ್ಟ್ ತೆರವುಗೊಳಿಸಿ", "shrineCartTotalCaption": "ಒಟ್ಟು", "shrineCartSubtotalCaption": "ಉಪಮೊತ್ತ:", "shrineCartShippingCaption": "ಶಿಪ್ಪಿಂಗ್:", "shrineProductGreySlouchTank": "ಗ್ರೇ ಸ್ಲೌಚ್ ಟ್ಯಾಂಕ್", "shrineProductStellaSunglasses": "ಸ್ಟೆಲ್ಲಾ ಸನ್‌ಗ್ಲಾಸ್‌ಗಳು", "shrineProductWhitePinstripeShirt": "ವೈಟ್ ಪಿನ್‌ಸ್ಟ್ರೈಪ್ ಶರ್ಟ್", "demoTextFieldWhereCanWeReachYou": "ನಾವು ನಿಮ್ಮನ್ನು ಹೇಗೆ ಸಂಪರ್ಕಿಸಬಹುದು?", "settingsTextDirectionLTR": "ಎಡದಿಂದ ಬಲಕ್ಕೆ", "settingsTextScalingLarge": "ದೊಡ್ಡದು", "demoBottomSheetHeader": "ಶಿರೋಲೇಖ", "demoBottomSheetItem": "ಐಟಂ {value}", "demoBottomTextFieldsTitle": "ಪಠ್ಯ ಫೀಲ್ಡ್‌ಗಳು", "demoTextFieldTitle": "ಪಠ್ಯ ಫೀಲ್ಡ್‌ಗಳು", "demoTextFieldSubtitle": "ಎಡಿಟ್ ಮಾಡಬಹುದಾದ ಪಠ್ಯ ಮತ್ತು ಸಂಖ್ಯೆಗಳ ಏಕ ಸಾಲು", "demoTextFieldDescription": "ಪಠ್ಯ ಫೀಲ್ಡ್‌ಗಳು, ಬಳಕೆದಾರರಿಗೆ UI ನಲ್ಲಿ ಪಠ್ಯವನ್ನು ನಮೂದಿಸಲು ಅನುಮತಿಸುತ್ತದೆ. ಅವುಗಳು ಸಾಮಾನ್ಯವಾಗಿ ಫಾರ್ಮ್‌ಗಳು ಮತ್ತು ಡೈಲಾಗ್‌ಗಳಲ್ಲಿ ಕಾಣಿಸಿಕೊಳ್ಳುತ್ತವೆ.", "demoTextFieldShowPasswordLabel": "ಪಾಸ್‌ವರ್ಡ್ ತೋರಿಸಿ", "demoTextFieldHidePasswordLabel": "ಪಾಸ್‌ವರ್ಡ್ ಮರೆ ಮಾಡಿ", "demoTextFieldFormErrors": "ಸಲ್ಲಿಸುವ ಮೊದಲು ಕೆಂಪು ಬಣ್ಣದಲ್ಲಿರುವ ದೋಷಗಳನ್ನು ಸರಿಪಡಿಸಿ.", "demoTextFieldNameRequired": "ಹೆಸರು ಅಗತ್ಯವಿದೆ.", "demoTextFieldOnlyAlphabeticalChars": "ವರ್ಣಮಾಲೆಯ ಅಕ್ಷರಗಳನ್ನು ಮಾತ್ರ ನಮೂದಿಸಿ.", "demoTextFieldEnterUSPhoneNumber": "(###) ###-#### - US ಫೋನ್ ಸಂಖ್ಯೆಯನ್ನು ನಮೂದಿಸಿ.", "demoTextFieldEnterPassword": "ಪಾಸ್‌ವರ್ಡ್ ಅನ್ನು ನಮೂದಿಸಿ.", "demoTextFieldPasswordsDoNotMatch": "ಪಾಸ್‌ವರ್ಡ್‌ಗಳು ಹೊಂದಾಣಿಕೆಯಾಗುತ್ತಿಲ್ಲ", "demoTextFieldWhatDoPeopleCallYou": "ಜನರು ನಿಮ್ಮನ್ನು ಏನೆಂದು ಕರೆಯುತ್ತಾರೆ?", "demoTextFieldNameField": "ಹೆಸರು*", "demoBottomSheetButtonText": "ಕೆಳಭಾಗದ ಶೀಟ್ ಅನ್ನು ತೋರಿಸಿ", "demoTextFieldPhoneNumber": "ಫೋನ್ ಸಂಖ್ಯೆ*", "demoBottomSheetTitle": "ಕೆಳಭಾಗದ ಶೀಟ್", "demoTextFieldEmail": "ಇಮೇಲ್", "demoTextFieldTellUsAboutYourself": "ನಿಮ್ಮ ಬಗ್ಗೆ ನಮಗೆ ತಿಳಿಸಿ (ಉದಾ. ನೀವು ಏನು ಕೆಲಸವನ್ನು ಮಾಡುತ್ತಿದ್ದೀರಿ ಅಥವಾ ಯಾವ ಹವ್ಯಾಸಗಳನ್ನು ಹೊಂದಿದ್ದೀರಿ ಎಂಬುದನ್ನು ಬರೆಯಿರಿ)", "demoTextFieldKeepItShort": "ಅದನ್ನು ಚಿಕ್ಕದಾಗಿರಿಸಿ, ಇದು ಕೇವಲ ಡೆಮೊ ಆಗಿದೆ.", "starterAppGenericButton": "ಬಟನ್", "demoTextFieldLifeStory": "ಆತ್ಮಕಥೆ", "demoTextFieldSalary": "ಸಂಬಳ", "demoTextFieldUSD": "USD", "demoTextFieldNoMoreThan": "8 ಕ್ಕಿಂತ ಹೆಚ್ಚು ಅಕ್ಷರಗಳಿಲ್ಲ.", "demoTextFieldPassword": "ಪಾಸ್‌ವರ್ಡ್*", "demoTextFieldRetypePassword": "ಪಾಸ್‌ವರ್ಡ್ ಅನ್ನು ಮರು ಟೈಪ್ ಮಾಡಿ*", "demoTextFieldSubmit": "ಸಲ್ಲಿಸಿ", "demoBottomNavigationSubtitle": "ಕ್ರಾಸ್-ಫೇಡಿಂಗ್ ವೀಕ್ಷಣೆಗಳನ್ನು ಹೊಂದಿರುವ ಬಾಟಮ್ ನ್ಯಾವಿಗೇಶನ್", "demoBottomSheetAddLabel": "ಸೇರಿಸಿ", "demoBottomSheetModalDescription": "ಮೋಡಲ್ ಬಾಟಮ್ ಶೀಟ್ ಎನ್ನುವುದು ಮೆನು ಅಥವಾ ಡೈಲಾಗ್‌ಗೆ ಬದಲಿಯಾಗಿದೆ ಮತ್ತು ಬಳಕೆದಾರರು ಉಳಿದ ಆ್ಯಪ್ ಜೊತೆಗೆ ಸಂವಹನ ಮಾಡುವುದನ್ನು ತಡೆಯುತ್ತದೆ.", "demoBottomSheetModalTitle": "ಮೋಡಲ್ ಬಾಟಮ್ ಶೀಟ್", "demoBottomSheetPersistentDescription": "ಪರ್ಸಿಸ್ಟಂಟ್ ಬಾಟಮ್ ಶೀಟ್, ಆ್ಯಪ್‌ನ ಪ್ರಾಥಮಿಕ ವಿಷಯವನ್ನು ಪೂರೈಸುವ ಮಾಹಿತಿಯನ್ನು ತೋರಿಸುತ್ತದೆ. ಬಳಕೆದಾರರು ಆ್ಯಪ್‌ನ ಇತರ ಭಾಗಗಳೊಂದಿಗೆ ಸಂವಹನ ಮಾಡಿದಾಗಲೂ ಪರ್ಸಿಸ್ಟಂಟ್ ಬಾಟಮ್ ಶೀಟ್ ಗೋಚರಿಸುತ್ತದೆ.", "demoBottomSheetPersistentTitle": "ಪರ್ಸಿಸ್ಟಂಟ್ ಬಾಟಮ್ ಶೀಟ್", "demoBottomSheetSubtitle": "ಪರ್ಸಿಸ್ಟಂಟ್ ಮತ್ತು ಮೋಡಲ್ ಬಾಟಮ್ ಶೀಟ್‌ಗಳು", "demoTextFieldNameHasPhoneNumber": "{name} ಅವರ ಫೋನ್ ಸಂಖ್ಯೆ {phoneNumber} ಆಗಿದೆ", "buttonText": "ಬಟನ್", "demoTypographyDescription": "ವಸ್ತು ವಿನ್ಯಾಸದಲ್ಲಿ ಕಂಡುಬರುವ ವಿವಿಧ ಟಾಪೋಗ್ರಾಫಿಕಲ್ ಶೈಲಿಗಳ ವ್ಯಾಖ್ಯಾನಗಳು.", "demoTypographySubtitle": "ಎಲ್ಲಾ ಪೂರ್ವನಿರ್ಧರಿತ ಪಠ್ಯ ಶೈಲಿಗಳು", "demoTypographyTitle": "ಟೈಪೋಗ್ರಾಫಿ", "demoFullscreenDialogDescription": "ಒಳಬರುವ ಪುಟವು, ಫುಲ್‌ಸ್ಕ್ರೀನ್‌ಡೈಲಾಗ್ ಮೋಡಲ್ ಆಗಿದೆಯೇ ಎಂಬುದನ್ನು ಫುಲ್‌ಸ್ಕ್ರೀನ್ ಡೈಲಾಗ್ ಗುಣಲಕ್ಷಣ ಸೂಚಿಸುತ್ತದೆ", "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": "Search", "starterAppTooltipShare": "ಹಂಚಿಕೊಳ್ಳಿ", "starterAppTooltipFavorite": "ಮೆಚ್ಚಿನದು", "starterAppTooltipAdd": "ಸೇರಿಸಿ", "bottomNavigationCalendarTab": "Calendar", "starterAppDescription": "ಸ್ಪಂದನಾಶೀಲ ಸ್ಟಾರ್ಟರ್ ಲೇಔಟ್", "starterAppTitle": "ಸ್ಟಾರ್ಟರ್ ಆ್ಯಪ್", "aboutFlutterSamplesRepo": "ಫ್ಲಟರ್ ಸ್ಯಾಂಪಲ್ಸ್ ಗಿಥಬ್ ರೆಪೊ", "bottomNavigationContentPlaceholder": "{title} ಟ್ಯಾಬ್‌ಗಾಗಿ ಪ್ಲೇಸ್‌ಹೋಲ್ಡರ್‌", "bottomNavigationCameraTab": "ಕ್ಯಾಮರಾ", "bottomNavigationAlarmTab": "ಅಲಾರಾಂ", "bottomNavigationAccountTab": "ಖಾತೆ", "demoTextFieldYourEmailAddress": "ನಿಮ್ಮ ಇಮೇಲ್ ವಿಳಾಸ", "demoToggleButtonDescription": "ಗುಂಪು ಸಂಬಂಧಿತ ಆಯ್ಕೆಗಳಿಗೆ ಟಾಗಲ್ ಬಟನ್‌ಗಳನ್ನು ಬಳಸಬಹುದು. ಸಂಬಂಧಿತ ಟಾಗಲ್ ಬಟನ್‌ಗಳ ಗುಂಪುಗಳಿಗೆ ಪ್ರಾಮುಖ್ಯತೆ ನೀಡಲು, ಒಂದು ಗುಂಪು ಸಾಮಾನ್ಯ ಕಂಟೈನರ್ ಅನ್ನು ಹಂಚಿಕೊಳ್ಳಬೇಕು", "colorsGrey": "ಬೂದು ಬಣ್ಣ", "colorsBrown": "ಕಂದು ಬಣ್ಣ", "colorsDeepOrange": "ಕಡು ಕಿತ್ತಳೆ ಬಣ್ಣ", "colorsOrange": "ಕಿತ್ತಳೆ ಬಣ್ಣ", "colorsAmber": "ಆಂಬರ್", "colorsYellow": "ಹಳದಿ ಬಣ್ಣ", "colorsLime": "ನಿಂಬೆ ಬಣ್ಣ", "colorsLightGreen": "ತಿಳಿ ಹಸಿರು ಬಣ್ಣ", "colorsGreen": "ಹಸಿರು ಬಣ್ಣ", "homeHeaderGallery": "ಗ್ಯಾಲರಿ", "homeHeaderCategories": "ವರ್ಗಗಳು", "shrineDescription": "ಫ್ಯಾಷನ್‌ಗೆ ಸಂಬಂಧಿಸಿದ ರಿಟೇಲ್ ಆ್ಯಪ್", "craneDescription": "ವೈಯಕ್ತೀಕರಿಸಿರುವ ಪ್ರಯಾಣದ ಆ್ಯಪ್", "homeCategoryReference": "ಶೈಲಿಗಳು ಮತ್ತು ಇತರೆ", "demoInvalidURL": "URL ಅನ್ನು ಡಿಸ್‌ಪ್ಲೇ ಮಾಡಲು ಸಾಧ್ಯವಾಗಲಿಲ್ಲ:", "demoOptionsTooltip": "ಆಯ್ಕೆಗಳು", "demoInfoTooltip": "ಮಾಹಿತಿ", "demoCodeTooltip": "ಡೆಮೋ ಕೋಡ್", "demoDocumentationTooltip": "API ಡಾಕ್ಯುಮೆಂಟೇಶನ್", "demoFullscreenTooltip": "ಪೂರ್ಣ ಪರದೆ", "settingsTextScaling": "ಪಠ್ಯ ಸ್ಕೇಲಿಂಗ್", "settingsTextDirection": "ಪಠ್ಯದ ನಿರ್ದೇಶನ", "settingsLocale": "ಸ್ಥಳೀಯ", "settingsPlatformMechanics": "ಪ್ಲ್ಯಾಟ್‌ಫಾರ್ಮ್ ಮೆಕ್ಯಾನಿಕ್ಸ್", "settingsDarkTheme": "ಡಾರ್ಕ್", "settingsSlowMotion": "ಸ್ಲೋ ಮೋಷನ್", "settingsAbout": "ಫ್ಲಟರ್ ಗ್ಯಾಲರಿ ಕುರಿತು", "settingsFeedback": "ಪ್ರತಿಕ್ರಿಯೆ ಕಳುಹಿಸಿ", "settingsAttribution": "ಲಂಡನ್‌ನಲ್ಲಿರುವ TOASTER ವಿನ್ಯಾಸಗೊಳಿಸಿದೆ", "demoButtonTitle": "ಬಟನ್‌ಗಳು", "demoButtonSubtitle": "ಪಠ್ಯ, ಎತ್ತರಿಸಿದ, ವಿವರಿಸಿರುವ, ಮತ್ತು ಇನ್ನಷ್ಟು", "demoFlatButtonTitle": "ಫ್ಲಾಟ್ ಬಟನ್", "demoRaisedButtonDescription": "ಉಬ್ಬುವ ಬಟನ್‌ಗಳು ಸಾಮಾನ್ಯವಾಗಿ ಫ್ಲಾಟ್ ವಿನ್ಯಾಸಗಳಿಗೆ ಆಯಾಮವನ್ನು ಸೇರಿಸುತ್ತವೆ. ಅವರು ಬ್ಯುಸಿ ಅಥವಾ ವಿಶಾಲ ಸ್ಥಳಗಳಲ್ಲಿ ಕಾರ್ಯಗಳಿಗೆ ಪ್ರಾಮುಖ್ಯತೆ ನೀಡುತ್ತಾರೆ.", "demoRaisedButtonTitle": "ಉಬ್ಬುವ ಬಟನ್", "demoOutlineButtonTitle": "ಔಟ್‌ಲೈನ್ ಬಟನ್", "demoOutlineButtonDescription": "ಔಟ್‌ಲೈನ್ ಬಟನ್‌ಗಳು ಅಪಾರದರ್ಶಕವಾಗಿರುತ್ತವೆ ಮತ್ತು ಒತ್ತಿದಾಗ ಏರಿಕೆಯಾಗುತ್ತವೆ. ಪರ್ಯಾಯ ಮತ್ತು ದ್ವಿತೀಯ ಕಾರ್ಯವನ್ನು ಸೂಚಿಸಲು ಅವುಗಳನ್ನು ಹೆಚ್ಚಾಗಿ ಉಬ್ಬುವ ಬಟನ್‌ಗಳ ಜೊತೆಗೆ ಜೋಡಿಸಲಾಗುತ್ತದೆ.", "demoToggleButtonTitle": "ಟಾಗಲ್ ಬಟನ್‌ಗಳು", "colorsTeal": "ಟೀಲ್ ಬಣ್ಣ", "demoFloatingButtonTitle": "ಫ್ಲೋಟಿಂಗ್ ಆ್ಯಕ್ಷನ್ ಬಟನ್", "demoFloatingButtonDescription": "ಫ್ಲೋಟಿಂಗ್ ಆ್ಯಕ್ಷನ್ ಬಟನ್ ಎನ್ನುವುದು ವೃತ್ತಾಕಾರದ ಐಕಾನ್ ಬಟನ್ ಆಗಿದ್ದು ಅದು ಆ್ಯಪ್ನಲ್ಲಿ ಮುಖ್ಯ ಕ್ರಿಯೆಯನ್ನು ಉತ್ತೇಜಿಸಲು ವಿಷಯದ ಮೇಲೆ ಸುಳಿದಾಡುತ್ತದೆ.", "demoDialogTitle": "ಡೈಲಾಗ್‌ಗಳು", "demoDialogSubtitle": "ಸರಳ, ಅಲರ್ಟ್ ಮತ್ತು ಫುಲ್‌ಸ್ಕ್ರೀನ್", "demoAlertDialogTitle": "ಅಲರ್ಟ್", "demoAlertDialogDescription": "ಅಲರ್ಟ್ ಡೈಲಾಗ್ ಸ್ವೀಕೃತಿ ಅಗತ್ಯವಿರುವ ಸಂದರ್ಭಗಳ ಬಗ್ಗೆ ಬಳಕೆದಾರರಿಗೆ ತಿಳಿಸುತ್ತದೆ. ಅಲರ್ಟ್ ಡೈಲಾಗ್ ಐಚ್ಛಿಕ ಶೀರ್ಷಿಕೆ ಮತ್ತು ಐಚ್ಛಿಕ ಆ್ಯಕ್ಷನ್‌ಗಳ ಪಟ್ಟಿಯನ್ನು ಹೊಂದಿದೆ.", "demoAlertTitleDialogTitle": "ಶೀರ್ಷಿಕೆ ಜೊತೆಗೆ ಅಲರ್ಟ್ ಮಾಡಿ", "demoSimpleDialogTitle": "ಸರಳ", "demoSimpleDialogDescription": "ಸರಳ ಡೈಲಾಗ್ ಬಳಕೆದಾರರಿಗೆ ಹಲವಾರು ಆಯ್ಕೆಗಳ ನಡುವೆ ಒಂದು ಆಯ್ಕೆಯನ್ನು ನೀಡುತ್ತದೆ. ಸರಳ ಡೈಲಾಗ್ ಐಚ್ಛಿಕ ಶೀರ್ಷಿಕೆಯನ್ನು ಹೊಂದಿದೆ, ಅದನ್ನು ಆಯ್ಕೆಗಳ ಮೇಲೆ ಡಿಸ್‌ಪ್ಲೇ ಮಾಡಲಾಗುತ್ತದೆ.", "demoFullscreenDialogTitle": "ಫುಲ್‌ಸ್ಕ್ರೀನ್", "demoCupertinoButtonsTitle": "ಬಟನ್‌ಗಳು", "demoCupertinoButtonsSubtitle": "iOS-ಶೈಲಿ ಬಟನ್‌ಗಳು", "demoCupertinoButtonsDescription": "iOS-ಶೈಲಿ ಬಟನ್. ಸ್ಪರ್ಶಿಸಿದಾಗ ಪಠ್ಯದಲ್ಲಿರುವ ಮತ್ತು/ಅಥವಾ ಐಕಾನ್‌ಗಳನ್ನು ಹೊಂದಿದ್ದು, ಅದು ಕ್ರಮೇಣ ಗೋಚರಿಸುತ್ತದೆ ಅಥವಾ ಮಸುಕಾಗುತ್ತದೆ. ಐಚ್ಛಿಕವಾಗಿ ಹಿನ್ನೆಲೆಯನ್ನು ಹೊಂದಿರಬಹುದು.", "demoCupertinoAlertsTitle": "ಅಲರ್ಟ್‌ಗಳು", "demoCupertinoAlertsSubtitle": "iOS-ಶೈಲಿ ಅಲರ್ಟ್ ಡೈಲಾಗ್‌ಗಳು", "demoCupertinoAlertTitle": "ಎಚ್ಚರಿಕೆ", "demoCupertinoAlertDescription": "ಅಲರ್ಟ್ ಡೈಲಾಗ್ ಸ್ವೀಕೃತಿ ಅಗತ್ಯವಿರುವ ಸಂದರ್ಭಗಳ ಬಗ್ಗೆ ಬಳಕೆದಾರರಿಗೆ ತಿಳಿಸುತ್ತದೆ. ಐಚ್ಛಿಕ ಶೀರ್ಷಿಕೆ, ಐಚ್ಛಿಕ ವಿಷಯ ಮತ್ತು ಐಚ್ಛಿಕ ಆ್ಯಕ್ಷನ್‌ಗಳ ಪಟ್ಟಿಯನ್ನು ಅಲರ್ಟ್‌ಗಳ ಡೈಲಾಗ್ ಹೊಂದಿದೆ. ಶೀರ್ಷಿಕೆಯನ್ನು ವಿಷಯದ ಮೇಲೆ ಮತ್ತು ಆ್ಯಕ್ಷನ್‌ಗಳನ್ನು ವಿಷಯದ ಕೆಳಗೆ ಡಿಸ್‌ಪ್ಲೇ ಮಾಡಲಾಗಿದೆ.", "demoCupertinoAlertWithTitleTitle": "ಶೀರ್ಷಿಕೆ ಜೊತೆಗೆ ಅಲರ್ಟ್ ಮಾಡಿ", "demoCupertinoAlertButtonsTitle": "ಬಟನ್‌ಗಳ ಜೊತೆಗೆ ಅಲರ್ಟ್", "demoCupertinoAlertButtonsOnlyTitle": "ಅಲರ್ಟ್ ಬಟನ್‌ಗಳು ಮಾತ್ರ", "demoCupertinoActionSheetTitle": "ಆ್ಯಕ್ಷನ್ ಶೀಟ್", "demoCupertinoActionSheetDescription": "ಆ್ಯಕ್ಷನ್ ಶೀಟ್ ಒಂದು ನಿರ್ದಿಷ್ಟ ಶೈಲಿಯ ಅಲರ್ಟ್ ಆಗಿದ್ದು, ಅದು ಪ್ರಸ್ತುತ ಸಂದರ್ಭಕ್ಕೆ ಸಂಬಂಧಿಸಿದ ಎರಡು ಅಥವಾ ಹೆಚ್ಚಿನ ಆಯ್ಕೆಗಳ ಗುಂಪನ್ನು ಬಳಕೆದಾರರಿಗೆ ಒದಗಿಸುತ್ತದೆ. ಆ್ಯಕ್ಷನ್ ಶೀಟ್‌ನಲ್ಲಿ ಶೀರ್ಷಿಕೆ, ಹೆಚ್ಚುವರಿ ಸಂದೇಶ ಮತ್ತು ಆ್ಯಕ್ಷನ್‌ಗಳ ಪಟ್ಟಿಯನ್ನು ಹೊಂದಿರಬಹುದು.", "demoColorsTitle": "ಬಣ್ಣಗಳು", "demoColorsSubtitle": "ಎಲ್ಲಾ ಪೂರ್ವನಿರ್ಧರಿತ ಬಣ್ಣಗಳು", "demoColorsDescription": "ವಸ್ತು ವಿನ್ಯಾಸದ ಬಣ್ಣ ಫಲಕವನ್ನು ಪ್ರತಿನಿಧಿಸುವ ಬಣ್ಣ ಮತ್ತು ಬಣ್ಣದ ಸ್ಥಿರಾಂಕಗಳು.", "buttonTextEnabled": "ENABLED", "buttonTextDisabled": "DISABLED", "buttonTextCreate": "ರಚಿಸಿ", "dialogSelectedOption": "ನೀವು ಆಯ್ಕೆಮಾಡಿದ್ದೀರಿ: \"{value}\"", "dialogDiscardTitle": "ಡ್ರಾಫ್ಟ್ ತ್ಯಜಿಸುವುದೇ?", "dialogLocationTitle": "Google ನ ಸ್ಥಳ ಸೇವೆಯನ್ನು ಬಳಸುವುದೇ?", "dialogLocationDescription": "ಸ್ಥಳವನ್ನು ಪತ್ತೆಹಚ್ಚುವುದಕ್ಕೆ ಆ್ಯಪ್‌ಗಳಿಗೆ ಸಹಾಯ ಮಾಡಲು Google ಗೆ ಅವಕಾಶ ನೀಡಿ. ಅಂದರೆ, ಯಾವುದೇ ಆ್ಯಪ್‌ಗಳು ರನ್ ಆಗದೇ ಇರುವಾಗಲೂ, Google ಗೆ ಅನಾಮಧೇಯ ಸ್ಥಳದ ಡೇಟಾವನ್ನು ಕಳುಹಿಸುವುದು ಎಂದರ್ಥ.", "dialogCancel": "ರದ್ದುಗೊಳಿಸಿ", "dialogDiscard": "ತ್ಯಜಿಸಿ", "dialogDisagree": "ನಿರಾಕರಿಸಿ", "dialogAgree": "ಸಮ್ಮತಿಸಿ", "dialogSetBackup": "ಬ್ಯಾಕಪ್ ಖಾತೆಯನ್ನು ಹೊಂದಿಸಿ", "colorsBlueGrey": "ನೀಲಿ ಬೂದು ಬಣ್ಣ", "dialogShow": "ಡೈಲಾಗ್ ತೋರಿಸಿ", "dialogFullscreenTitle": "ಫುಲ್‌ಸ್ಕ್ರೀನ್ ಡೈಲಾಗ್", "dialogFullscreenSave": "ಉಳಿಸಿ", "dialogFullscreenDescription": "ಫುಲ್‌ಸ್ಕ್ರೀನ್ ಡೈಲಾಗ್ ಡೆಮೋ", "cupertinoButtonEnabled": "Enabled", "cupertinoButtonDisabled": "Disabled", "cupertinoButtonWithBackground": "ಹಿನ್ನೆಲೆ ಒಳಗೊಂಡಂತೆ", "cupertinoAlertCancel": "ರದ್ದುಗೊಳಿಸಿ", "cupertinoAlertDiscard": "ತ್ಯಜಿಸಿ", "cupertinoAlertLocationTitle": "ನೀವು ಆ್ಯಪ್ ಬಳಸುತ್ತಿರುವಾಗ ನಿಮ್ಮ ಸ್ಥಳವನ್ನು ಪ್ರವೇಶಿಸಲು \"Maps\" ಗೆ ಅನುಮತಿಸುವುದೇ?", "cupertinoAlertLocationDescription": "ನಿಮ್ಮ ಪ್ರಸ್ತುತ ಸ್ಥಳವನ್ನು Map ನಲ್ಲಿ ಡಿಸ್‌ಪ್ಲೇ ಮಾಡಲಾಗುತ್ತದೆ ಮತ್ತು ನಿರ್ದೇಶನಗಳು, ಹತ್ತಿರದ ಹುಡುಕಾಟ ಫಲಿತಾಂಶಗಳು ಮತ್ತು ಅಂದಾಜಿಸಿದ ಪ್ರಯಾಣದ ಸಮಯಗಳಿಗಾಗಿ ಬಳಸಲಾಗುತ್ತದೆ.", "cupertinoAlertAllow": "ಅನುಮತಿಸಿ", "cupertinoAlertDontAllow": "ಅನುಮತಿಸಬೇಡಿ", "cupertinoAlertFavoriteDessert": "ನೆಚ್ಚಿನ ಡೆಸರ್ಟ್ ಆಯ್ಕೆಮಾಡಿ", "cupertinoAlertDessertDescription": "ಕೆಳಗಿನ ಪಟ್ಟಿಯಿಂದ ನಿಮ್ಮ ನೆಚ್ಚಿನ ಪ್ರಕಾರದ ಡೆಸರ್ಟ್ ಅನ್ನು ಆಯ್ಕೆಮಾಡಿ. ನಿಮ್ಮ ಪ್ರದೇಶದಲ್ಲಿನ ಸೂಚಿಸಲಾದ ಆಹಾರ ಮಳಿಗೆಗಳ ಪಟ್ಟಿಯನ್ನು ಕಸ್ಟಮೈಸ್ ಮಾಡಲು ನಿಮ್ಮ ಆಯ್ಕೆಯನ್ನು ಬಳಸಲಾಗುತ್ತದೆ.", "cupertinoAlertCheesecake": "ಚೀಸ್‌ಕೇಕ್", "cupertinoAlertTiramisu": "ತಿರಾಮಿಸು", "cupertinoAlertApplePie": "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_kn.arb/0
{ "file_path": "gallery/lib/l10n/intl_kn.arb", "repo_id": "gallery", "token_count": 75598 }
863
{ "loading": "ਲੋਡ ਕੀਤਾ ਜਾ ਰਿਹਾ ਹੈ", "deselect": "ਅਣ-ਚੁਣਿਆ ਕਰੋ", "select": "ਚੁਣੋ", "selectable": "ਚੁਣਨਯੋਗ (ਦਬਾਈ ਰੱਖਣਾ)", "selected": "ਚੁਣੀ ਗਈ", "demo": "ਡੈਮੋ", "bottomAppBar": "ਹੇਠਲੀ ਐਪ ਬਾਰ", "notSelected": "ਚੁਣੀ ਨਹੀਂ ਗਈ", "demoCupertinoSearchTextFieldTitle": "ਖੋਜ ਲਿਖਤ ਖੇਤਰ", "demoCupertinoPicker": "ਚੋਣਕਾਰ", "demoCupertinoSearchTextFieldSubtitle": "iOS-ਸਟਾਈਲ ਖੋਜ ਲਿਖਤ ਖੇਤਰ", "demoCupertinoSearchTextFieldDescription": "ਖੋਜ ਲਿਖਤ ਖੇਤਰ ਜੋ ਵਰਤੋਂਕਾਰ ਦੀ ਲਿਖਤ ਦਾਖਲ ਕਰ ਕੇ ਖੋਜ ਕਰਨ ਵਿੱਚ ਮਦਦ ਕਰਦਾ ਹੈ, ਅਤੇ ਜੋ ਫਿਲਟਰ ਅਤੇ ਸੁਝਾਅ ਪੇਸ਼ ਕਰ ਸਕਦਾ ਹੈ।", "demoCupertinoSearchTextFieldPlaceholder": "ਲਿਖਤ ਦਾਖਲ ਕਰੋ", "demoCupertinoScrollbarTitle": "ਸਕ੍ਰੋਲ ਬਾਰ", "demoCupertinoScrollbarSubtitle": "iOS-ਸਟਾਈਲ ਸਕ੍ਰੋਲ ਬਾਰ", "demoCupertinoScrollbarDescription": "ਦਿੱਤੇ ਗਏ ਚਾਈਲਡ ਨੂੰ ਸਮੇਟਣ ਵਾਲਾ ਸਕ੍ਰੋਲ ਬਾਰ", "demoTwoPaneItem": "ਆਈਟਮ {value}", "demoTwoPaneList": "ਸੂਚੀ", "demoTwoPaneFoldableLabel": "ਮੋੜਨਯੋਗ", "demoTwoPaneSmallScreenLabel": "ਛੋਟੀ ਸਕ੍ਰੀਨ", "demoTwoPaneSmallScreenDescription": "ਛੋਟੀ ਸਕ੍ਰੀਨ ਵਾਲੇ ਡੀਵਾਈਸ 'ਤੇ TwoPane ਇਸ ਤਰ੍ਹਾਂ ਕੰਮ ਕਰਦਾ ਹੈ।", "demoTwoPaneTabletLabel": "ਟੈਬਲੈੱਟ / ਡੈਸਕਟਾਪ", "demoTwoPaneTabletDescription": "ਵੱਡੀ ਸਕ੍ਰੀਨ ਵਾਲੇ ਡੀਵਾਈਸ, ਜਿਵੇਂ ਕਿ ਟੈਬਲੈੱਟ ਜਾਂ ਡੈਸਕਟਾਪ 'ਤੇ TwoPane ਇਸ ਤਰ੍ਹਾਂ ਕੰਮ ਕਰਦਾ ਹੈ।", "demoTwoPaneTitle": "TwoPane", "demoTwoPaneSubtitle": "ਮੋੜਨਯੋਗ, ਵੱਡੀਆਂ ਅਤੇ ਛੋਟੀਆਂ ਸਕ੍ਰੀਨਾਂ 'ਤੇ ਪ੍ਰਤਿਕਿਰਿਆਤਮਕ ਖਾਕੇ", "splashSelectDemo": "ਕੋਈ ਡੈਮੋ ਚੁਣੋ", "demoTwoPaneFoldableDescription": "ਮੋੜਨਯੋਗ ਡੀਵਾਈਸ 'ਤੇ TwoPane ਇਸ ਤਰ੍ਹਾਂ ਕੰਮ ਕਰਦਾ ਹੈ।", "demoTwoPaneDetails": "ਵੇਰਵੇ", "demoTwoPaneSelectItem": "ਕੋਈ ਆਈਟਮ ਚੁਣੋ", "demoTwoPaneItemDetails": "ਆਈਟਮ {value} ਸੰਬੰਧੀ ਵੇਰਵੇ", "demoCupertinoContextMenuActionText": "ਸੰਦਰਭੀ ਮੀਨੂ ਦੇਖਣ ਲਈ Flutter ਲੋਗੋ 'ਤੇ ਟੈਪ ਕਰੋ ਅਤੇ ਦਬਾਈ ਰੱਖੋ।", "demoCupertinoContextMenuDescription": "iOS-ਸਟਾਈਲ ਵਾਲਾ ਪੂਰੀ ਸਕ੍ਰੀਨ ਦਾ ਸੰਦਰਭੀ ਮੀਨੂ ਜੋ ਉਦੋਂ ਦਿਸਦਾ ਹੈ ਜਦੋਂ ਕਿਸੇ ਤੱਤ ਨੂੰ ਦਬਾਈ ਰੱਖਿਆ ਜਾਂਦਾ ਹੈ।", "demoAppBarTitle": "ਐਪ ਪੱਟੀ", "demoAppBarDescription": "ਐਪ ਪੱਟੀ ਮੌਜੂਦਾ ਸਕ੍ਰੀਨ ਨਾਲ ਸੰਬੰਧਿਤ ਸਮੱਗਰੀ ਅਤੇ ਕਾਰਵਾਈਆਂ ਮੁਹੱਈਆ ਕਰਵਾਉਂਦੀ ਹੈ। ਇਸਦੀ ਵਰਤੋਂ ਬ੍ਰਾਂਡਿੰਗ, ਸਕ੍ਰੀਨ ਸਿਰਲੇਖਾਂ, ਨੈਵੀਗੇਸ਼ਨ ਅਤੇ ਕਾਰਵਾਈਆਂ ਲਈ ਕੀਤੀ ਜਾਂਦੀ ਹੈ", "demoDividerTitle": "ਵਿਭਾਜਕ", "demoDividerSubtitle": "ਵਿਭਾਜਕ ਇੱਕ ਪਤਲੀ ਲਾਈਨ ਹੈ ਜੋ ਸੂਚੀਆਂ ਅਤੇ ਖਾਕਿਆਂ ਵਿੱਚ ਸਮੱਗਰੀ ਨੂੰ ਗਰੁੱਪਬੱਧ ਕਰਦੀ ਹੈ।", "demoDividerDescription": "ਵਿਭਾਜਕਾਂ ਦੀ ਵਰਤੋਂ ਸਮੱਗਰੀ ਨੂੰ ਵੱਖ ਕਰਨ ਲਈ ਸੂਚੀਆਂ, ਦਰਾਜ਼ਾਂ ਅਤੇ ਹੋਰ ਥਾਵਾਂ ਵਿੱਚ ਕੀਤੀ ਜਾ ਸਕਦੀ ਹੈ।", "demoVerticalDividerTitle": "ਖੜ੍ਹਵਾਂ ਵਿਭਾਜਕ", "demoCupertinoContextMenuTitle": "ਸੰਦਰਭੀ ਮੀਨੂ", "demoCupertinoContextMenuSubtitle": "iOS-ਸਟਾਈਲ ਵਾਲਾ ਸੰਦਰਭੀ ਮੀਨੂ", "demoAppBarSubtitle": "ਮੌਜੂਦਾ ਸਕ੍ਰੀਨ ਨਾਲ ਸੰਬੰਧਿਤ ਜਾਣਕਾਰੀ ਅਤੇ ਕਾਰਵਾਈਆਂ ਨੂੰ ਦਿਖਾਉਂਦੀ ਹੈ", "demoCupertinoContextMenuActionOne": "ਪਹਿਲੀ ਕਾਰਵਾਈ", "demoCupertinoContextMenuActionTwo": "ਦੂਜੀ ਕਾਰਵਾਈ", "demoDateRangePickerDescription": "ਮੈਟੀਰੀਅਲ ਡਿਜ਼ਾਈਨ ਦੇ ਤਾਰੀਖ ਦੀ ਰੇਂਜ ਸੰਬੰਧੀ ਚੋਣਕਾਰ ਵਾਲੀ ਵਿੰਡੋ ਦਿਖਾਉਂਦਾ ਹੈ।", "demoDateRangePickerTitle": "ਤਾਰੀਖ ਦੀ ਰੇਂਜ ਸੰਬੰਧੀ ਚੋਣਕਾਰ", "demoNavigationDrawerUserName": "ਵਰਤੋਂਕਾਰ ਨਾਮ", "demoNavigationDrawerUserEmail": "[email protected]", "demoNavigationDrawerText": "ਦਰਾਜ਼ ਦੇਖਣ ਲਈ ਕਿਨਾਰੇ ਤੋਂ ਸਵਾਈਪ ਕਰੋ ਜਾਂ ਸਿਖਰਲੇ ਖੱਬੇ ਪ੍ਰਤੀਕ 'ਤੇ ਟੈਪ ਕਰੋ", "demoNavigationRailTitle": "ਨੈਵੀਗੇਸ਼ਨ ਰੇਲ", "demoNavigationRailSubtitle": "ਐਪ ਵਿੱਚ ਨੈਵੀਗੇਸ਼ਨ ਰੇਲ ਦਿਖਾਈ ਜਾ ਰਹੀ ਹੈ", "demoNavigationRailDescription": "ਤਿੰਨ ਅਤੇ ਪੰਜ ਵਰਗੇ ਛੋਟੇ ਦ੍ਰਿਸ਼ਾਂ ਵਿਚਾਲੇ ਨੈਵੀਗੇਟ ਕਰਨ ਲਈ ਮੈਟੀਰੀਅਲ ਵਿਜੇਟ ਨੂੰ ਐਪ ਦੇ ਖੱਬੇ ਜਾਂ ਸੱਜੇ ਪਾਸੇ ਦਿਖਾਇਆ ਜਾਂਦਾ ਹੈ।", "demoNavigationRailFirst": "ਪਹਿਲਾ", "demoNavigationDrawerTitle": "ਨੈਵੀਗੇਸ਼ਨ ਡ੍ਰਾਅਰ", "demoNavigationRailThird": "ਤੀਜਾ", "replyStarredLabel": "ਤਾਰਾਬੱਧ", "demoTextButtonDescription": "ਲਿਖਤ ਵਾਲਾ ਬਟਨ ਦਬਾਏ ਜਾਣ 'ਤੇ ਸਿਆਹੀ ਦੇ ਛਿੱਟੇ ਦਿਖਾਉਂਦਾ ਹੈ ਪਰ ਉੱਪਰ ਨਹੀਂ ਉੱਠਦਾ ਹੈ। ਟੂਲਬਾਰਾਂ ਉੱਤੇ, ਵਿੰਡੋਆਂ ਵਿੱਚ ਅਤੇ ਪੈਡਿੰਗ ਦੇ ਨਾਲ ਇਨਲਾਈਨ ਲਿਖਤ ਵਾਲੇ ਬਟਨਾਂ ਦੀ ਵਰਤੋਂ ਕਰੋ", "demoElevatedButtonTitle": "ਉੱਭਰਿਆ ਹੋਇਆ ਬਟਨ", "demoElevatedButtonDescription": "ਉੱਭਰੇ ਹੋਏ ਬਟਨ ਜ਼ਿਆਦਾਤਰ ਸਮਤਲ ਖਾਕਿਆਂ 'ਤੇ ਆਯਾਮ ਸ਼ਾਮਲ ਕਰਦੇ ਹਨ। ਉਹ ਰੁੱਝੀਆਂ ਜਾਂ ਚੌੜੀਆਂ ਸਪੇਸਾਂ 'ਤੇ ਫੰਕਸ਼ਨਾਂ 'ਤੇ ਜ਼ੋਰ ਦਿੰਦੇ ਹਨ।", "demoOutlinedButtonTitle": "ਖਾਕਾਬੱਧ ਬਟਨ", "demoOutlinedButtonDescription": "ਖਾਕਾਬੱਧ ਬਟਨ ਦਬਾਏ ਜਾਣ 'ਤੇ ਧੁੰਦਲੇ ਹੋ ਜਾਂਦੇ ਹਨ ਅਤੇ ਉੱਪਰ ਉੱਠਦੇ ਹਨ। ਵਿਕਲਪਿਕ, ਸੈਕੰਡਰੀ ਕਾਰਵਾਈ ਦਰਸਾਉਣ ਲਈ ਉਹਨਾਂ ਨੂੰ ਅਕਸਰ ਉੱਭਰੇ ਹੋਏ ਬਟਨਾਂ ਨਾਲ ਜੋੜਾਬੱਧ ਕੀਤਾ ਜਾਂਦਾ ਹੈ।", "demoContainerTransformDemoInstructions": "ਕਾਰਡ, ਸੂਚੀਆਂ ਅਤੇ FAB", "demoNavigationDrawerSubtitle": "ਦਰਾਜ਼ ਨੂੰ ਐਪ ਪੱਟੀ 'ਤੇ ਦਿਖਾਇਆ ਜਾ ਰਿਹਾ ਹੈ", "replyDescription": "ਨਿਪੁੰਨ, ਫੋਕਸ ਕੀਤੀ ਈਮੇਲ ਐਪ", "demoNavigationDrawerDescription": "ਅਜਿਹਾ ਮੈਟੀਰੀਅਲ ਡਿਜ਼ਾਈਨ ਪੈਨਲ ਜੋ ਐਪਲੀਕੇਸ਼ਨ ਵਿੱਚ ਨੈਵੀਗੇਸ਼ਨ ਲਿੰਕ ਦਿਖਾਉਣ ਲਈ ਸਕ੍ਰੀਨ ਦੇ ਕਿਨਾਰੇ ਤੋਂ ਲੇਟਵੇਂ ਰੂਪ ਵਿੱਚ ਸਲਾਈਡ ਕਰਦਾ ਹੈ।", "replyDraftsLabel": "ਡਰਾਫਟ", "demoNavigationDrawerToPageOne": "ਆਈਟਮ ਇੱਕ", "replyInboxLabel": "ਇਨਬਾਕਸ", "demoSharedXAxisDemoInstructions": "'ਅੱਗੇ' ਅਤੇ 'ਪਿੱਛੇ' ਬਟਨ", "replySpamLabel": "ਸਪੈਮ", "replyTrashLabel": "ਰੱਦੀ", "replySentLabel": "ਭੇਜਿਆ ਗਿਆ", "demoNavigationRailSecond": "ਦੂਜਾ", "demoNavigationDrawerToPageTwo": "ਆਈਟਮ ਦੋ", "demoFadeScaleDemoInstructions": "ਮਾਡਲ ਅਤੇ FAB", "demoFadeThroughDemoInstructions": "ਹੇਠਾਂ ਵੱਲ ਨੈਵੀਗੇਸ਼ਨ", "demoSharedZAxisDemoInstructions": "ਸੈਟਿੰਗਾਂ ਪ੍ਰਤੀਕ ਬਟਨ", "demoSharedYAxisDemoInstructions": "\"ਹਾਲ ਹੀ ਵਿੱਚ ਚਲਾਏ ਗਏ\" ਮੁਤਾਬਕ ਕ੍ਰਮ-ਬੱਧ ਕਰੋ", "demoTextButtonTitle": "ਲਿਖਤ ਵਾਲਾ ਬਟਨ", "demoSharedZAxisBeefSandwichRecipeTitle": "ਬੀਫ਼ ਸੈਂਡਵਿਚ", "demoSharedZAxisDessertRecipeDescription": "ਮਿਠਿਆਈ ਦੀ ਪਕਵਾਨ-ਵਿਧੀ", "demoSharedYAxisAlbumTileSubtitle": "ਕਲਾਕਾਰ", "demoSharedYAxisAlbumTileTitle": "ਐਲਬਮ", "demoSharedYAxisRecentSortTitle": "ਹਾਲ ਹੀ ਵਿੱਚ ਚਲਾਏ ਗਏ", "demoSharedYAxisAlphabeticalSortTitle": "A-Z", "demoSharedYAxisAlbumCount": "268 ਐਲਬਮਾਂ", "demoSharedYAxisTitle": "ਸਾਂਝਾ ਕੀਤਾ y-ਧੁਰਾ", "demoSharedXAxisCreateAccountButtonText": "ਖਾਤਾ ਬਣਾਓ", "demoFadeScaleAlertDialogDiscardButton": "ਖਾਰਜ ਕਰੋ", "demoSharedXAxisSignInTextFieldLabel": "ਈਮੇਲ ਜਾਂ ਫ਼ੋਨ ਨੰਬਰ", "demoSharedXAxisSignInSubtitleText": "ਆਪਣੇ ਖਾਤੇ ਨਾਲ ਸਾਈਨ-ਇਨ ਕਰੋ", "demoSharedXAxisSignInWelcomeText": "ਸਤਿ ਸ੍ਰੀ ਅਕਾਲ David Park", "demoSharedXAxisIndividualCourseSubtitle": "ਵਿਅਕਤੀਗਤ ਤੌਰ 'ਤੇ ਦਿਖਾਇਆ ਗਿਆ", "demoSharedXAxisBundledCourseSubtitle": "ਬੰਡਲਬੱਧ", "demoFadeThroughAlbumsDestination": "ਐਲਬਮਾਂ", "demoSharedXAxisDesignCourseTitle": "ਡਿਜ਼ਾਈਨ", "demoSharedXAxisIllustrationCourseTitle": "ਉਦਾਹਰਨ", "demoSharedXAxisBusinessCourseTitle": "ਕਾਰੋਬਾਰ", "demoSharedXAxisArtsAndCraftsCourseTitle": "ਕਲਾ ਅਤੇ ਸ਼ਿਲਪਕਾਰੀ", "demoMotionPlaceholderSubtitle": "ਸੈਕੰਡਰੀ ਲਿਖਤ", "demoFadeScaleAlertDialogCancelButton": "ਰੱਦ ਕਰੋ", "demoFadeScaleAlertDialogHeader": "ਸੁਚੇਤਨਾ ਵਿੰਡੋ", "demoFadeScaleHideFabButton": "FAB ਲੁਕਾਓ", "demoFadeScaleShowFabButton": "FAB ਦਿਖਾਓ", "demoFadeScaleShowAlertDialogButton": "ਮਾਡਲ ਦਿਖਾਓ", "demoFadeScaleDescription": "ਫੇਡ ਪੈਟਰਨ ਨੂੰ ਅਜਿਹੇ UI ਤੱਤਾਂ ਲਈ ਵਰਤਿਆ ਜਾਂਦਾ ਹੈ ਜੋ ਸਕ੍ਰੀਨ ਦੀਆਂ ਸੀਮਾਵਾਂ ਵਿੱਚ ਦਾਖਲ ਜਾਂ ਬਾਹਰ ਨਿਕਲਦੇ ਹਨ, ਜਿਵੇਂ ਕਿ ਅਜਿਹੀ ਵਿੰਡੋ ਜੋ ਸਕ੍ਰੀਨ ਦੇ ਵਿਚਕਾਰ ਫੇਡ ਹੁੰਦੀ ਹੈ।", "demoFadeScaleTitle": "ਫੇਡ", "demoFadeThroughTextPlaceholder": "123 ਫ਼ੋਟੋਆਂ", "demoFadeThroughSearchDestination": "ਖੋਜੋ", "demoFadeThroughPhotosDestination": "ਫ਼ੋਟੋਆਂ", "demoSharedXAxisCoursePageSubtitle": "ਬੰਡਲਬੱਧ ਸ਼੍ਰੇਣੀਆਂ ਤੁਹਾਡੀ ਫ਼ੀਡ ਵਿੱਚ ਸਮੂਹਾਂ ਵਜੋਂ ਦਿਸਦੀਆਂ ਹਨ। ਤੁਸੀਂ ਇਸਨੂੰ ਬਾਅਦ ਵਿੱਚ ਕਦੇ ਵੀ ਬਦਲ ਸਕਦੇ ਹੋ।", "demoFadeThroughDescription": "ਫੇਡ ਥਰੂ ਪੈਟਰਨ ਅਜਿਹੇ UI ਤੱਤਾਂ ਵਿਚਾਲੇ ਪਰਿਵਰਤਨਾਂ ਲਈ ਵਰਤਿਆ ਜਾਂਦਾ ਹੈ ਜਿਨ੍ਹਾਂ ਵਿਚਾਲੇ ਮਜ਼ਬੂਤ ਸੰਬੰਧ ਨਹੀਂ ਹੁੰਦਾ।", "demoFadeThroughTitle": "ਫੇਡ ਥਰੂ", "demoSharedZAxisHelpSettingLabel": "ਮਦਦ", "demoMotionSubtitle": "ਪਹਿਲਾਂ ਤੋਂ ਪਰਿਭਾਸ਼ਿਤ ਪਰਿਵਰਤਨ ਪੈਟਰਨ", "demoSharedZAxisNotificationSettingLabel": "ਸੂਚਨਾਵਾਂ", "demoSharedZAxisProfileSettingLabel": "ਪ੍ਰੋਫਾਈਲ", "demoSharedZAxisSavedRecipesListTitle": "ਰੱਖਿਅਤ ਕੀਤੀਆਂ ਪਕਵਾਨ-ਵਿਧੀਆਂ", "demoSharedZAxisBeefSandwichRecipeDescription": "ਬੀਫ਼ ਸੈਂਡਵਿਚ ਦੀ ਪਕਵਾਨ-ਵਿਧੀ", "demoSharedZAxisCrabPlateRecipeDescription": "ਕੇਕੜੇ ਦੀ ਪਕਵਾਨ-ਵਿਧੀ", "demoSharedXAxisCoursePageTitle": "ਆਪਣੇ ਕੋਰਸਾਂ ਨੂੰ ਆਸਾਨ ਬਣਾਓ", "demoSharedZAxisCrabPlateRecipeTitle": "ਕੇਕੜਾ", "demoSharedZAxisShrimpPlateRecipeDescription": "ਝੀਂਗਾ ਮੱਛੀ ਦੀ ਪਕਵਾਨ-ਵਿਧੀ", "demoSharedZAxisShrimpPlateRecipeTitle": "ਝੀਂਗਾ ਮੱਛੀ", "demoContainerTransformTypeFadeThrough": "ਫੇਡ ਥਰੂ", "demoSharedZAxisDessertRecipeTitle": "ਮਿਠਿਆਈ", "demoSharedZAxisSandwichRecipeDescription": "ਸੈਂਡਵਿਚ ਦੀ ਪਕਵਾਨ-ਵਿਧੀ", "demoSharedZAxisSandwichRecipeTitle": "ਸੈਂਡਵਿਚ", "demoSharedZAxisBurgerRecipeDescription": "ਬਰਗਰ ਦੀ ਪਕਵਾਨ-ਵਿਧੀ", "demoSharedZAxisBurgerRecipeTitle": "ਬਰਗਰ", "demoSharedZAxisSettingsPageTitle": "ਸੈਟਿੰਗਾਂ", "demoSharedZAxisTitle": "ਸਾਂਝਾ ਕੀਤਾ z-ਧੁਰਾ", "demoSharedZAxisPrivacySettingLabel": "ਪਰਦੇਦਾਰੀ", "demoMotionTitle": "ਗਤੀਸ਼ੀਲਤਾ", "demoContainerTransformTitle": "ਕੰਟੇਨਰ ਰੁਪਾਂਤਰਣ", "demoContainerTransformDescription": "ਕੰਟੇਨਰ ਰੁਪਾਂਤਰਣ ਪੈਟਰਨ UI ਤੱਤਾਂ ਦੇ ਵਿਚਾਲੇ ਅਜਿਹੇ ਪਰਿਵਰਤਨਾਂ ਲਈ ਡਿਜ਼ਾਈਨ ਕੀਤਾ ਗਿਆ ਹੈ ਜਿਸ ਵਿੱਚ ਕੰਟੇਨਰ ਸ਼ਾਮਲ ਹੈ। ਇਹ ਪੈਟਰਨ ਦੋ UI ਤੱਤਾਂ ਵਿਚਾਲੇ ਦਿਖਣਯੋਗ ਕਨੈਕਸ਼ਨ ਬਣਾਉਂਦਾ ਹੈ", "demoContainerTransformModalBottomSheetTitle": "ਫੇਡ ਮੋਡ", "demoContainerTransformTypeFade": "ਫੇਡ", "demoSharedYAxisAlbumTileDurationUnit": "ਮਿੰਟ", "demoMotionPlaceholderTitle": "ਸਿਰਲੇਖ", "demoSharedXAxisForgotEmailButtonText": "ਕੀ ਈਮੇਲ ਭੁੱਲ ਗਏ ਹੋ?", "demoMotionSmallPlaceholderSubtitle": "ਸੈਕੰਡਰੀ", "demoMotionDetailsPageTitle": "ਵੇਰਵੇ ਦਾ ਪੰਨਾ", "demoMotionListTileTitle": "ਸੂਚੀ ਆਈਟਮ", "demoSharedAxisDescription": "ਸਾਂਝਾ ਕੀਤਾ ਧੁਰਾ ਪੈਟਰਨ ਅਜਿਹੇ UI ਤੱਤਾਂ ਵਿਚਾਲੇ ਪਰਿਵਰਤਨਾਂ ਲਈ ਵਰਤਿਆ ਜਾਂਦਾ ਹੈ ਜਿਨ੍ਹਾਂ ਵਿੱਚ ਸਥਾਨਕ ਜਾਂ ਨੈਵੀਗੇਸ਼ਨਲ ਸੰਬੰਧ ਹੈ। ਇਹ ਪੈਟਰਨ ਤੱਤਾਂ ਵਿਚਾਲੇ ਸੰਬੰਧਾਂ ਦੀ ਪੁਸ਼ਟੀ ਕਰਨ ਲਈ x, y, ਜਾਂ z ਧੁਰੇ 'ਤੇ ਸਾਂਝੇ ਕੀਤੇ ਰੁਪਾਂਤਰਣ ਨੂੰ ਵਰਤਦਾ ਹੈ।", "demoSharedXAxisTitle": "ਸਾਂਝਾ ਕੀਤਾ x-ਧੁਰਾ", "demoSharedXAxisBackButtonText": "ਪਿੱਛੇ", "demoSharedXAxisNextButtonText": "ਅੱਗੇ", "demoSharedXAxisCulinaryCourseTitle": "ਰਸੋਈ ਸੰਬੰਧੀ", "githubRepo": "{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": "ਸੋਡੀਅਮ (ਮਿ.ਗ੍ਰਾ.)", "demoTimePickerTitle": "ਸਮਾਂ ਚੋਣਕਾਰ", "demo2dTransformationsResetTooltip": "ਰੁਪਾਂਤਰਨ ਨੂੰ ਰੀਸੈੱਟ ਕਰੋ", "dataTableColumnFat": "ਚਰਬੀ (ਗ੍ਰਾ.)", "dataTableColumnCalories": "ਕੈਲੋਰੀਆਂ", "dataTableColumnDessert": "ਮਿਠਿਆਈ (1 ਵਿਅਕਤੀ ਲਈ)", "cardsDemoTravelDestinationLocation1": "ਤੰਜਾਵਰ, ਤਮਿਲ ਨਾਡੂ", "demoTimePickerDescription": "ਮੈਟੀਰੀਅਲ ਡਿਜ਼ਾਈਨ ਦੇ ਸਮਾਂ ਚੋਣਕਾਰ ਵਾਲੀ ਵਿੰਡੋ ਦਿਖਾਉਂਦਾ ਹੈ।", "demoPickersShowPicker": "ਚੋਣਕਾਰ ਦਿਖਾਓ", "demoTabsScrollingTitle": "ਸਕ੍ਰੋਲਿੰਗ", "demoTabsNonScrollingTitle": "ਸਕ੍ਰੋਲਿੰਗ ਰਹਿਤ", "craneHours": "{hours,plural,=1{1 ਘੰ.}other{{hours} ਘੰ.}}", "craneMinutes": "{minutes,plural,=1{1 ਮਿੰ.}other{{minutes} ਮਿੰ.}}", "craneFlightDuration": "{hoursShortForm} {minutesShortForm}", "dataTableHeader": "ਪੋਸ਼ਣ", "demoDatePickerTitle": "ਤਾਰੀਖ ਚੋਣਕਾਰ", "demoPickersSubtitle": "ਤਾਰੀਖ ਅਤੇ ਸਮੇਂ ਦੀ ਚੋਣ", "demoPickersTitle": "ਚੋਣਕਾਰ", "demo2dTransformationsEditTooltip": "ਟਾਇਲ ਦਾ ਸੰਪਾਦਨ ਕਰੋ", "demoDataTableDescription": "ਡਾਟਾ ਸਾਰਨੀਆਂ ਕਤਾਰਾਂ ਅਤੇ ਕਾਲਮਾਂ ਦੇ ਗ੍ਰਿਡ-ਵਰਗੇ ਫਾਰਮੈਟ ਵਿੱਚ ਜਾਣਕਾਰੀ ਦਿਖਾਉਂਦੀਆਂ ਹਨ। ਇਹ, ਜਾਣਕਾਰੀ ਨੂੰ ਇਸ ਤਰੀਕੇ ਨਾਲ ਵਿਵਸਥਿਤ ਕਰਦੀਆਂ ਹਨ ਤਾਂ ਜੋ ਇਸਨੂੰ ਆਸਾਨੀ ਨਾਲ ਸਕੈਨ ਕੀਤਾ ਜਾ ਸਕੇ, ਜਿਸ ਨਾਲ ਵਰਤੋਂਕਾਰ ਪੈਟਰਨ ਲੱਭ ਸਕਣ ਅਤੇ ਅੰਦਰੂਨੀ-ਝਾਤਾਂ ਲੈ ਸਕਣ।", "demo2dTransformationsDescription": "ਟਾਇਲਾਂ ਦਾ ਸੰਪਾਦਨ ਕਰਨ ਲਈ ਟੈਪ ਕਰੋ ਅਤੇ ਦ੍ਰਿਸ਼ ਨੂੰ ਇੱਧਰ-ਉੱਧਰ ਘੁਮਾਉਣ ਲਈ ਇਸ਼ਾਰਿਆਂ ਦੀ ਵਰਤੋਂ ਕਰੋ। ਪੈਨ ਕਰਨ ਲਈ ਘਸੀਟੋ, ਜ਼ੂਮ ਕਰਨ ਲਈ ਚੂੰਢੀ ਭਰੋ, ਦੋ ਉਂਗਲਾਂ ਨਾਲ ਘੁਮਾਓ। ਸ਼ੁਰੂਆਤੀ ਦਿਸ਼ਾਮਾਨ 'ਤੇ ਵਾਪਸ ਜਾਣ ਲਈ 'ਰੀਸੈੱਟ ਕਰੋ' ਬਟਨ ਨੂੰ ਦਬਾਓ।", "demo2dTransformationsSubtitle": "ਪੈਨ ਕਰਨਾ, ਜ਼ੂਮ ਕਰਨਾ, ਘੁਮਾਉਣਾ", "demo2dTransformationsTitle": "2D ਰੂਪਾਂਤਰਨ", "demoCupertinoTextFieldPIN": "ਪਿੰਨ", "demoCupertinoTextFieldDescription": "ਕੋਈ ਲਿਖਤ ਖੇਤਰ ਵਰਤੋਂਕਾਰ ਨੂੰ ਲਿਖਤ ਦਾਖਲ ਕਰਨ ਦਿੰਦਾ ਹੈ, ਭਾਵੇਂ ਹਾਰਡਵੇਅਰ ਕੀਬੋਰਡ ਨਾਲ ਜਾਂ ਕਿਸੇ ਸਕ੍ਰੀਨ ਉਤਲੇ ਕੀਬੋਰਡ ਨਾਲ।", "demoCupertinoTextFieldSubtitle": "iOS-ਸਟਾਈਲ ਲਿਖਤ ਖੇਤਰ", "demoCupertinoTextFieldTitle": "ਲਿਖਤ ਖੇਤਰ", "demoDatePickerDescription": "ਮੈਟੀਰੀਅਲ ਡਿਜ਼ਾਈਨ ਦੇ ਤਾਰੀਖ ਚੋਣਕਾਰ ਵਾਲੀ ਵਿੰਡੋ ਦਿਖਾਉਂਦਾ ਹੈ।", "demoCupertinoPickerTime": "ਸਮਾਂ", "demoCupertinoPickerDate": "ਤਾਰੀਖ", "demoCupertinoPickerTimer": "ਟਾਈਮਰ", "demoCupertinoPickerDescription": "ਉਹ iOS-ਸਟਾਈਲ ਚੋਣਕਾਰ ਵਿਜੇਟ ਜਿਸਨੂੰ ਸਤਰ, ਤਾਰੀਖ, ਸਮਾਂ ਜਾਂ ਤਾਰੀਖ ਅਤੇ ਸਮਾਂ ਦੋਵਾਂ ਨੂੰ ਚੁਣਨ ਲਈ ਵਰਤਿਆ ਜਾ ਸਕਦਾ ਹੈ।", "demoCupertinoPickerSubtitle": "iOS-ਸਟਾਈਲ ਚੋਣਕਾਰ", "demoCupertinoPickerTitle": "ਚੋਣਕਾਰ", "dataTableRowWithHoney": "ਸ਼ਹਿਦ ਨਾਲ {value}", "cardsDemoTravelDestinationCity2": "ਚੇਟੀਨਾਡ", "bannerDemoResetText": "ਬੈਨਰ ਰੀਸੈੱਟ ਕਰੋ", "bannerDemoMultipleText": "ਇੱਕ ਤੋਂ ਵੱਧ ਕਾਰਵਾਈਆਂ", "bannerDemoLeadingText": "ਪ੍ਰਮੁੱਖ ਪ੍ਰਤੀਕ", "dismiss": "ਖਾਰਜ ਕਰੋ", "cardsDemoTappable": "ਟੈਪ ਕਰਨਯੋਗ", "cardsDemoSelectable": "ਚੁਣਨਯੋਗ (ਦਬਾਈ ਰੱਖਣਾ)", "cardsDemoExplore": "ਪੜਚੋਲ ਕਰੋ", "cardsDemoExploreSemantics": "{destinationName} ਦੀ ਪੜਚੋਲ ਕਰੋ", "cardsDemoShareSemantics": "{destinationName} ਨੂੰ ਸਾਂਝਾ ਕਰੋ", "cardsDemoTravelDestinationTitle1": "ਤਮਿਲ ਨਾਡੂ ਵਿੱਚ ਜਾਣ ਲਈ 10 ਪ੍ਰਮੁੱਖ ਸ਼ਹਿਰ", "cardsDemoTravelDestinationDescription1": "ਨੰਬਰ 10", "cardsDemoTravelDestinationCity1": "ਤੰਜਾਵਰ", "dataTableColumnProtein": "ਪ੍ਰੋਟੀਨ (ਗ੍ਰਾ.)", "cardsDemoTravelDestinationTitle2": "ਦੱਖਣੀ ਭਾਰਤ ਦੇ ਸ਼ਿਲਪਕਾਰ", "cardsDemoTravelDestinationDescription2": "ਰੇਸ਼ਮ ਦੇ ਕਾਰੀਗਰ", "bannerDemoText": "ਤੁਹਾਡਾ ਪਾਸਵਰਡ ਤੁਹਾਡੇ ਦੂਜੇ ਡੀਵਾਈਸ 'ਤੇ ਅੱਪਡੇਟ ਕੀਤਾ ਗਿਆ ਸੀ। ਕਿਰਪਾ ਕਰਕੇ ਦੁਬਾਰਾ ਸਾਈਨ-ਇਨ ਕਰੋ।", "cardsDemoTravelDestinationLocation2": "ਸ਼ਿਵ ਗੰਗਾ, ਤਮਿਲ ਨਾਡੂ", "cardsDemoTravelDestinationTitle3": "ਬ੍ਰਹਿਦੀਸ਼ਵਰ ਮੰਦਰ", "cardsDemoTravelDestinationDescription3": "ਮੰਦਰ", "demoBannerTitle": "ਬੈਨਰ", "demoBannerSubtitle": "ਸੂਚੀ ਵਿੱਚ ਬੈਨਰ ਦਿਖਾਉਣਾ", "demoBannerDescription": "ਬੈਨਰ ਮਹੱਤਵਪੂਰਨ, ਸੰਖੇਪ ਸੁਨੇਹਾ ਦਿਖਾਉਂਦਾ ਹੈ, ਅਤੇ ਕੁਝ ਕਰਨ (ਜਾਂ ਬੈਨਰ ਖਾਰਜ ਕਰਨ) ਲਈ ਵਰਤੋਂਕਾਰਾਂ ਨੂੰ ਕਾਰਵਾਈਆਂ ਮੁਹੱਈਆ ਕਰਵਾਉਂਦਾ ਹੈ। ਇਸ ਨੂੰ ਖਾਰਜ ਕਰਨ ਲਈ ਵਰਤੋਂਕਾਰ ਕਾਰਵਾਈ ਦੀ ਲੋੜ ਹੈ।", "demoCardTitle": "ਕਾਰਡ", "demoCardSubtitle": "ਗੋਲ ਕੋਨਿਆਂ ਵਾਲੇ ਆਧਾਰ-ਰੇਖਾ ਕਾਰਡ", "demoCardDescription": "ਕਾਰਡ, ਸਮੱਗਰੀ ਦੀ ਇੱਕ ਅਜਿਹੀ ਸ਼ੀਟ ਹੈ ਜੋ ਕੁਝ ਸੰਬੰਧਿਤ ਜਾਣਕਾਰੀ ਨੂੰ ਦਰਸਾਉਣ ਲਈ ਵਰਤੀ ਜਾਂਦੀ ਹੈ, ਉਦਾਹਰਨ ਵਜੋਂ ਕੋਈ ਐਲਬਮ, ਭੂਗੋਲਿਕ ਟਿਕਾਣਾ, ਭੋਜਨ, ਸੰਪਰਕ ਵੇਰਵੇ, ਆਦਿ।", "demoDataTableTitle": "ਡਾਟਾ ਸਾਰਨੀਆਂ", "demoDataTableSubtitle": "ਜਾਣਕਾਰੀ ਦੀਆਂ ਕਤਾਰਾਂ ਅਤੇ ਕਾਲਮ", "dataTableColumnCarbs": "ਕਾਰਬੋਹਾਈਡਰੇਟ (ਗ੍ਰਾ.)", "placeTanjore": "ਤੰਜੋਰ", "demoGridListsTitle": "ਗ੍ਰਿਡ ਸੂਚੀਆਂ", "placeFlowerMarket": "ਫੁੱਲਾਂ ਦਾ ਬਾਜ਼ਾਰ", "placeBronzeWorks": "ਕਾਂਸੇ ਦਾ ਕੰਮ", "placeMarket": "ਬਾਜ਼ਾਰ", "placeThanjavurTemple": "ਤੰਜਾਵਰ ਮੰਦਰ", "placeSaltFarm": "ਨਮਕ ਦੇ ਖੇਤ", "placeScooters": "ਸਕੂਟਰ", "placeSilkMaker": "ਰੇਸ਼ਮ ਨਿਰਮਾਤਾ", "placeLunchPrep": "ਦੁਪਹਿਰ ਦੇ ਭੋਜਨ ਦੀ ਤਿਆਰੀ", "placeBeach": "ਬੀਚ", "placeFisherman": "ਮਛਿਆਰਾ", "demoMenuSelected": "ਚੁਣਿਆ ਗਿਆ: {value}", "demoMenuRemove": "ਹਟਾਓ", "demoMenuGetLink": "ਲਿੰਕ ਪ੍ਰਾਪਤ ਕਰੋ", "demoMenuShare": "ਸਾਂਝਾ ਕਰੋ", "demoBottomAppBarSubtitle": "ਹੇਠਾਂ ਨੈਵੀਗੇਸ਼ਨ ਅਤੇ ਕਾਰਵਾਈਆਂ ਦਿਖਾਉਂਦਾ ਹੈ", "demoMenuAnItemWithASectionedMenu": "ਸੈਕਸ਼ਨਬੱਧ ਮੀਨੂ ਨਾਲ ਇੱਕ ਆਈਟਮ", "demoMenuADisabledMenuItem": "ਬੰਦ ਕੀਤੀ ਮੀਨੂ ਆਈਟਮ", "demoLinearProgressIndicatorTitle": "ਲੀਨੀਅਰ ਪ੍ਰਗਤੀ ਸੂਚਕ", "demoMenuContextMenuItemOne": "ਸੰਦਰਭੀ ਮੀਨੂ ਵਿਚਲੀ ਪਹਿਲੀ ਆਈਟਮ", "demoMenuAnItemWithASimpleMenu": "ਸਧਾਰਨ ਮੀਨੂ ਨਾਲ ਇੱਕ ਆਈਟਮ", "demoCustomSlidersTitle": "ਵਿਉਂਤਬੱਧ ਸਲਾਈਡਰ", "demoMenuAnItemWithAChecklistMenu": "ਕਾਰਜ-ਸੂਚੀ ਮੀਨੂ ਨਾਲ ਇੱਕ ਆਈਟਮ", "demoCupertinoActivityIndicatorTitle": "ਸਰਗਰਮੀ ਸੂਚਕ", "demoCupertinoActivityIndicatorSubtitle": "iOS-ਸਟਾਈਲ ਸਰਗਰਮੀ ਸੂਚਕ", "demoCupertinoActivityIndicatorDescription": "iOS-ਸਟਾਈਲ ਦੀ ਸਰਗਰਮੀ ਸੂਚਕ ਜੋ ਘੜੀ ਦੇ ਦਿਸ਼ਾ ਵਿੱਚ ਘੁੰਮਦਾ ਹੈ।", "demoCupertinoNavigationBarTitle": "ਦਿਸ਼ਾ-ਨਿਰਦੇਸ਼ ਪੱਟੀ", "demoCupertinoNavigationBarSubtitle": "iOS-ਸਟਾਈਲ ਦਿਸ਼ਾ-ਨਿਰਦੇਸ਼ ਪੱਟੀ", "demoCupertinoNavigationBarDescription": "iOS-ਸਟਾਈਲ ਵਾਲੀ ਦਿਸ਼ਾ-ਨਿਰਦੇਸ਼ ਪੱਟੀ। ਦਿਸ਼ਾ-ਨਿਰਦੇਸ਼ ਪੱਟੀ ਇੱਕ ਟੂਲਬਾਰ ਹੈ ਜਿਸ ਦੇ ਮੱਧ ਵਿੱਚ ਘੱਟ ਤੋਂ ਘੱਟ ਪੰਨਾ ਸਿਰਲੇਖ ਹੁੰਦਾ ਹੈ।", "demoCupertinoPullToRefreshTitle": "ਰਿਫ੍ਰੈਸ਼ ਕਰਨ ਲਈ ਖਿੱਚੋ", "demoCupertinoPullToRefreshSubtitle": "iOS-ਸਟਾਈਲ ਵਰਗਾ ਰਿਫ੍ਰੈਸ਼ ਕਰਨ ਲਈ ਖਿੱਚੋ ਕੰਟਰੋਲ", "demoCupertinoPullToRefreshDescription": "'iOS-ਸਟਾਈਲ ਵਰਗਾ ਸਮੱਗਰੀ ਕੰਟਰੋਲ ਨੂੰ ਰਿਫ੍ਰੈਸ਼ ਕਰਨ ਲਈ ਖਿੱਚੋ' ਨੂੰ ਲਾਗੂ ਕਰਨ ਵਾਲਾ ਵਿਜੇਟ।", "demoProgressIndicatorTitle": "ਪ੍ਰਗਤੀ ਸੂਚਕ", "demoProgressIndicatorSubtitle": "ਲੀਨੀਅਰ, ਸਰਕੁਲਰ, ਅਨਿਰਧਾਰਤ", "demoCircularProgressIndicatorTitle": "ਸਰਕੁਲਰ ਪ੍ਰਗਤੀ ਸੂਚਕ", "demoCircularProgressIndicatorDescription": "ਮੈਟੀਰੀਅਲ ਡਿਜ਼ਾਈਨ ਦਾ ਸਰਕੁਲਰ ਪ੍ਰਗਤੀ ਸੂਚਕ, ਜਿਹੜਾ ਇਹ ਦਰਸਾਉਂਦਾ ਹੈ ਕਿ ਐਪਲੀਕੇਸ਼ਨ ਵਿਅਸਤ ਹੈ।", "demoMenuFour": "ਚਾਰ", "demoLinearProgressIndicatorDescription": "ਮੈਟੀਰੀਅਲ ਡਿਜ਼ਾਈਨ ਲੀਨੀਅਰ ਪ੍ਰਗਤੀ ਸੂਚਕ, ਪ੍ਰਗਤੀ ਬਾਰ ਵਜੋਂ ਵੀ ਜਾਣਿਆ ਜਾਂਦਾ ਹੈ।", "demoTooltipTitle": "ਟੂਲ-ਟਿੱਪ", "demoTooltipSubtitle": "ਦਬਾਈ ਰੱਖਣ ਜਾਂ ਉੱਤੇ ਘੁੰਮਾਉਣ ਨਾਲ ਛੋਟਾ ਸੁਨੇਹਾ ਦਿਖਾਇਆ ਜਾਂਦਾ ਹੈ", "demoTooltipDescription": "ਟੂਲ-ਟਿੱਪ ਲਿਖਤ ਲੇਬਲ ਮੁਹੱਈਆ ਕਰਵਾਉਂਦੇ ਹਨ ਜੋ ਬਟਨਾਂ ਦੇ ਫੰਕਸ਼ਨ ਜਾਂ ਹੋਰ ਵਰਤੋਂਕਾਰ ਇੰਟਰਫੇਸ ਕਾਰਵਾਈਆਂ ਦੀ ਵਿਆਖਿਆ ਕਰਨ ਵਿੱਚ ਮਦਦ ਕਰਦੇ ਹਨ। ਟੂਲ-ਟਿੱਪ ਉਦੋਂ ਜਾਣਕਾਰੀ ਭਰਪੂਰ ਲਿਖਤ ਦਿਖਾਉਂਦਾ ਹੈ ਜਦੋਂ ਵਰਤੋਂਕਾਰ ਕਰਸਰ ਘੁੰਮਾਉਦਾ ਹੈ, ਫੋਕਸ ਕਰਦਾ ਹੈ ਜਾਂ ਕਿਸੇ ਤੱਤ ਨੂੰ ਦਬਾਈ ਰੱਖਦਾ ਹੈ।", "demoTooltipInstructions": "ਟੂਲ-ਟਿੱਪ ਨੂੰ ਦੇਖਣ ਲਈ ਦਬਾਈ ਰੱਖੋ ਜਾਂ ਸਕ੍ਰੀਨ ਉੱਤੇ ਕਰਸਰ ਘੁੰਮਾਓ।", "placeChennai": "ਚੇਨਈ", "demoMenuChecked": "ਨਿਸ਼ਾਨ ਲਗਾਇਆ: {value}", "placeChettinad": "ਚੇਟੀਨਾਡ", "demoMenuPreview": "ਪੂਰਵ-ਝਲਕ", "demoBottomAppBarTitle": "ਹੇਠਲੀ ਐਪ ਬਾਰ", "demoBottomAppBarDescription": "ਹੇਠਲੀਆਂ ਐਪ ਬਾਰਾਂ ਫਲੋਟਿੰਗ ਕਾਰਵਾਈ ਬਟਨ ਸਮੇਤ, ਹੇਠਲੇ ਨੈਵੀਗੇਸ਼ਨ ਡ੍ਰਾਅਰ ਅਤੇ ਵੱਧ ਤੋਂ ਵੱਧ ਚਾਰ ਕਾਰਵਾਈਆਂ ਕਰਨ ਦੀ ਪਹੁੰਚ ਮੁਹੱਈਆ ਕਰਵਾਉਂਦੀਆਂ ਹਨ।", "bottomAppBarNotch": "ਨੌਚ", "bottomAppBarPosition": "ਫਲੋਟਿੰਗ ਕਾਰਵਾਈ ਬਟਨ ਦੀ ਸਥਿਤੀ", "bottomAppBarPositionDockedEnd": "ਡੌਕ ਕੀਤਾ - ਸਮਾਪਤ", "bottomAppBarPositionDockedCenter": "ਡੌਕ ਕੀਤਾ - ਕੇਂਦਰ", "bottomAppBarPositionFloatingEnd": "ਫਲੋਟਿੰਗ - ਸਮਾਪਤ", "bottomAppBarPositionFloatingCenter": "ਫਲੋਟਿੰਗ - ਕੇਂਦਰ", "demoSlidersEditableNumericalValue": "ਸੰਪਾਦਨਯੋਗ ਸੰਖਿਆਵਾਚੀ ਮੁੱਲ", "demoGridListsSubtitle": "ਕਤਾਰ ਅਤੇ ਕਾਲਮ ਖਾਕਾ", "demoGridListsDescription": "ਗ੍ਰਿਡ ਸੂਚੀਆਂ ਸਮਰੂਪੀ ਡਾਟੇ ਨੂੰ ਪੇਸ਼ ਕਰਨ ਲਈ ਸਭ ਤੋਂ ਅਨੁਕੂਲ ਹਨ, ਖਾਸ ਕਰਕੇ ਚਿੱਤਰ। ਗ੍ਰਿਡ ਸੂਚੀ ਵਿੱਚ ਹਰ ਆਈਟਮ ਨੂੰ ਟਾਇਲ ਕਿਹਾ ਜਾਂਦਾ ਹੈ।", "demoGridListsImageOnlyTitle": "ਸਿਰਫ਼ ਚਿੱਤਰ", "demoGridListsHeaderTitle": "ਸਿਰਲੇਖ ਨਾਲ", "demoGridListsFooterTitle": "ਪਦਲੇਖ ਨਾਲ", "demoSlidersTitle": "ਸਲਾਈਡਰ", "demoSlidersSubtitle": "ਸਵਾਈਪ ਕਰਕੇ ਮੁੱਲ ਦੀ ਚੋਣ ਕਰਨ ਲਈ ਵਿਜੇਟ", "demoSlidersDescription": "ਸਲਾਈਡਰ ਬਾਰ ਦੇ ਨਾਲ-ਨਾਲ ਮੁੱਲ ਦੀ ਰੇਂਜ ਨੂੰ ਦਰਸਾਉਂਦੀ ਹੈ, ਜਿਸ ਤੋਂ ਵਰਤੋਂਕਾਰ ਇਕੱਲੇ ਮੁੱਲ ਦੀ ਚੋਣ ਕਰ ਸਕਦੇ ਹਨ। ਉਹ ਸੈਟਿੰਗਾਂ ਵਿਵਸਥਿਤ ਕਰਨ ਲਈ ਆਦਰਸ਼ ਹਨ ਜਿਵੇਂ ਕਿ ਅਵਾਜ਼, ਚਮਕ ਜਾਂ ਚਿੱਤਰ ਫਿਲਟਰ ਲਾਗੂ ਕਰਨ ਲਈ।", "demoRangeSlidersTitle": "ਰੇਂਜ ਸਲਾਈਡਰ", "demoRangeSlidersDescription": "ਸਲਾਇਡਰ ਬਾਰ ਦੇ ਨਾਲ-ਨਾਲ ਮੁੱਲ ਰੇਂਜ ਨੂੰ ਵੀ ਦਰਸਾਉਂਦੇ ਹਨ। ਉਹਨਾਂ ਦੇ ਬਾਰ ਦੇ ਦੋਵਾਂ ਸਿਰਿਆਂ 'ਤੇ ਪ੍ਰਤੀਕ ਹੋ ਸਕਦੇ ਹਨ ਜੋ ਮੁੱਲ ਦੀ ਤੀਬਰਤਾ ਦਰਸਾਉਂਦੇ ਹਨ। ਉਹ ਸੈਟਿੰਗਾਂ ਵਿਵਸਥਿਤ ਕਰਨ ਲਈ ਆਦਰਸ਼ ਹਨ ਜਿਵੇਂ ਕਿ ਅਵਾਜ਼, ਚਮਕ ਜਾਂ ਚਿੱਤਰ ਫਿਲਟਰ ਲਾਗੂ ਕਰਨ ਲਈ।", "demoMenuAnItemWithAContextMenuButton": "ਸੰਦਰਭੀ ਮੀਨੂ ਨਾਲ ਇੱਕ ਆਈਟਮ", "demoCustomSlidersDescription": "ਸਲਾਈਡਰ ਬਾਰ ਦੇ ਨਾਲ-ਨਾਲ ਮੁੱਲ ਦੀ ਰੇਂਜ ਨੂੰ ਦਰਸਾਉਂਦੀ ਹੈ, ਜਿਸ ਤੋਂ ਵਰਤੋਂਕਾਰ ਇਕੱਲੇ ਮੁੱਲ ਜਾਂ ਮੁੱਲ ਰੇਂਜ ਦੀ ਚੋਣ ਕਰ ਸਕਦੇ ਹਨ। ਸਲਾਈਡਰਾਂ ਨੂੰ ਥੀਮਕਿਰਤ ਅਤੇ ਵਿਉਂਤਬੱਧ ਕੀਤਾ ਜਾ ਸਕਦਾ ਹੈ।", "demoSlidersContinuousWithEditableNumericalValue": "ਲਗਾਤਾਰ ਸੰਪਾਦਨਯੋਗ ਸੰਖਿਆਵਾਚੀ ਮੁੱਲ ਨਾਲ", "demoSlidersDiscrete": "ਵੱਖਰੀ", "demoSlidersDiscreteSliderWithCustomTheme": "ਵਿਉਂਂਤੀ ਥੀਮ ਨਾਲ ਵੱਖਰਾ ਸਲਾਈਡਰ", "demoSlidersContinuousRangeSliderWithCustomTheme": "ਵਿਉਂਂਤੀ ਥੀਮ ਨਾਲ ਲਗਾਤਾਰ ਰੇਂਜ ਸਲਾਈਡਰ", "demoSlidersContinuous": "ਲਗਾਤਾਰ", "placePondicherry": "ਪੁਡੂਚੇਰੀ", "demoMenuTitle": "ਮੀਨੂ", "demoContextMenuTitle": "ਸੰਦਰਭੀ ਮੀਨੂ", "demoSectionedMenuTitle": "ਸੈਕਸ਼ਨਬੱਧ ਮੀਨੂ", "demoSimpleMenuTitle": "ਸਧਾਰਨ ਮੀਨੂ", "demoChecklistMenuTitle": "ਕਾਰਜ-ਸੂਚੀ ਮੀਨੂ", "demoMenuSubtitle": "ਮੀਨੂ ਬਟਨ ਅਤੇ ਸਧਾਰਨ ਮੀਨੂ", "demoMenuDescription": "ਮੀਨੂ ਅਸਥਾਈ ਸਤ੍ਹਾ 'ਤੇ ਵਿਕਲਪਾਂ ਦੀ ਸੂਚੀ ਦਿਖਾਉਂਦਾ ਹੈ। ਇਹ ਉਦੋਂ ਦਿਸਦੇ ਹਨ ਜਦੋਂ ਵਰਤੋਂਕਾਰ ਕਿਸੇ ਬਟਨ, ਕਾਰਵਾਈ ਜਾਂ ਹੋਰ ਕੰਟਰੋਲਾਂ ਨਾਲ ਅੰਤਰਕਿਰਿਆ ਕਰਦੇ ਹਨ।", "demoMenuItemValueOne": "ਮੀਨੂ ਵਿਚਲੀ ਪਹਿਲੀ ਆਈਟਮ", "demoMenuItemValueTwo": "ਮੀਨੂ ਵਿਚਲੀ ਦੂਜੀ ਆਈਟਮ", "demoMenuItemValueThree": "ਮੀਨੂ ਵਿਚਲੀ ਤੀਜੀ ਆਈਟਮ", "demoMenuOne": "ਇੱਕ", "demoMenuTwo": "ਦੋ", "demoMenuThree": "ਤਿੰਨ", "demoMenuContextMenuItemThree": "ਸੰਦਰਭੀ ਮੀਨੂ ਵਿਚਲੀ ਤੀਜੀ ਆਈਟਮ", "demoCupertinoSwitchSubtitle": "iOS-ਸਟਾਈਲ ਸਵਿੱਚ", "demoSnackbarsText": "ਇਹ ਸਨੈਕਬਾਰ ਹੈ", "demoCupertinoSliderSubtitle": "iOS-ਸਟਾਈਲ ਸਲਾਈਡਰ", "demoCupertinoSliderDescription": "ਸਲਾਈਡਰ ਦੀ ਵਰਤੋਂ ਜਾਂ ਤਾਂ ਮੁੱਲਾਂ ਦੇ ਨਿਰੰਤਰ ਜਾਂ ਵੱਖਰੇ ਸੈੱਟ ਵਿੱਚੋਂ ਚੋਣ ਕਰਨ ਲਈ ਕੀਤੀ ਜਾ ਸਕਦੀ ਹੈ।", "demoCupertinoSliderContinuous": "ਲਗਾਤਾਰ: {value}", "demoCupertinoSliderDiscrete": "ਵੱਖਰੀ: {value}", "demoSnackbarsAction": "ਤੁਸੀਂ ਸਨੈਕਬਾਰ ਕਾਰਵਾਈ ਨੂੰ ਦਬਾਇਆ ਹੈ।", "backToGallery": "Gallery ਵਿੱਚ ਵਾਪਸ ਜਾਓ", "demoCupertinoTabBarTitle": "ਟੈਬ ਪੱਟੀ", "demoCupertinoSwitchDescription": "ਸਵਿੱਚ ਦੀ ਵਰਤੋਂ ਇਕਹਿਰੀ ਸੈਟਿੰਗ ਦੀ ਚਾਲੂ/ਬੰਦ ਸਥਿਤੀ ਵਿਚਾਲੇ ਟੌਗਲ ਕਰਨ ਲਈ ਕੀਤੀ ਜਾਂਦੀ ਹੈ।", "demoSnackbarsActionButtonLabel": "ਕਾਰਵਾਈ", "cupertinoTabBarProfileTab": "ਪ੍ਰੋਫਾਈਲ", "demoSnackbarsButtonLabel": "ਸਨੈਕਬਾਰ ਦਿਖਾਓ", "demoSnackbarsDescription": "ਸਨੈਕਬਾਰਾਂ ਵਰਤੋਂਕਾਰਾਂ ਨੂੰ ਉਸ ਪ੍ਰਕਿਰਿਆ ਬਾਰੇ ਸੂਚਿਤ ਕਰਦੀਆਂ ਹਨ ਜੋ ਐਪ ਵੱਲੋਂ ਕੀਤੀ ਗਈ ਹੈ ਜਾਂ ਕੀਤੀ ਜਾਵੇਗੀ। ਉਹ ਸਕ੍ਰੀਨ ਦੇ ਹੇਠਾਂ ਵੱਲ ਅਸਥਾਈ ਤੌਰ 'ਤੇ ਦਿਸਦੀਆਂ ਹਨ। ਉਨ੍ਹਾਂ ਨੂੰ ਵਰਤੋਂਕਾਰ ਅਨੁਭਵ ਵਿੱਚ ਰੁਕਾਵਟ ਨਹੀਂ ਪਾਉਣੀ ਚਾਹੀਦੀ ਅਤੇ ਉਨ੍ਹਾਂ ਨੂੰ ਗਾਇਬ ਹੋਣ ਲਈ ਵਰਤੋਂਕਾਰ ਇਨਪੁੱਟ ਦੀ ਲੋੜ ਨਹੀਂ ਹੁੰਦੀ।", "demoSnackbarsSubtitle": "ਸਨੈਕਬਾਰਾਂ ਸਕ੍ਰੀਨ ਦੇ ਹੇਠਾਂ ਸੁਨੇਹੇ ਦਿਖਾਉਂਦੀਆਂ ਹਨ", "demoSnackbarsTitle": "ਸਨੈਕਬਾਰ", "demoCupertinoSliderTitle": "ਸਲਾਈਡਰ", "cupertinoTabBarChatTab": "Chat", "cupertinoTabBarHomeTab": "ਹੋਮ", "demoCupertinoTabBarDescription": "iOS-style ਹੇਠਲੀ ਨੈਵੀਗੇਸ਼ਨ ਟੈਬ ਪੱਟੀ ਇੱਕ ਤੋਂ ਵੱਧ ਟੈਬਾਂ ਦਿਖਾਉਂਦੀ ਹੈ, ਜਿਨ੍ਹਾਂ ਵਿੱਚੋਂ ਪੂਰਵ-ਨਿਰਧਾਰਤ ਤੌਰ 'ਤੇ ਪਹਿਲੀ ਟੈਬ ਕਿਰਿਆਸ਼ੀਲ ਹੁੰਦੀ ਹੈ।", "demoCupertinoTabBarSubtitle": "iOS-style ਹੇਠਲੀ ਟੈਬ ਪੱਟੀ", "demoOptionsFeatureTitle": "ਵਿਕਲਪ ਦੇਖੋ", "demoOptionsFeatureDescription": "ਇਸ ਡੈਮੋ ਲਈ ਉਪਲਬਧ ਵਿਕਲਪ ਦੇਖਣ ਲਈ ਇੱਥੇ ਟੈਪ ਕਰੋ।", "demoCodeViewerCopyAll": "ਸਭ ਕਾਪੀ ਕਰੋ", "shrineScreenReaderRemoveProductButton": "ਹਟਾਓ {product}", "shrineScreenReaderProductAddToCart": "ਕਾਰਟ ਵਿੱਚ ਸ਼ਾਮਲ ਕਰੋ", "shrineScreenReaderCart": "{quantity,plural,=0{ਖਰੀਦਦਾਰੀ ਕਾਰਟ, ਕੋਈ ਆਈਟਮ ਨਹੀਂ}=1{ਖਰੀਦਦਾਰੀ ਕਾਰਟ, 1 ਆਈਟਮ}other{ਖਰੀਦਦਾਰੀ ਕਾਰਟ, {quantity} ਆਈਟਮਾਂ}}", "demoCodeViewerFailedToCopyToClipboardMessage": "ਕਲਿੱਪਬੋਰਡ 'ਤੇ ਕਾਪੀ ਕਰਨਾ ਅਸਫਲ ਰਿਹਾ: {error}", "demoCodeViewerCopiedToClipboardMessage": "ਕਲਿੱਪਬੋਰਡ 'ਤੇ ਕਾਪੀ ਕੀਤਾ ਗਿਆ।", "craneSleep8SemanticLabel": "ਬੀਚ 'ਤੇ ਚਟਾਨ ਉੱਪਰ ਮਾਇਆ ਸੱਭਿਅਤਾ ਦੇ ਖੰਡਰ", "craneSleep4SemanticLabel": "ਪਹਾੜਾਂ ਸਾਹਮਣੇ ਝੀਲ ਦੇ ਕਿਨਾਰੇ ਹੋਟਲ", "craneSleep2SemanticLabel": "ਮਾਚੂ ਪਿਕਚੂ ਕਿਲ੍ਹਾ", "craneSleep1SemanticLabel": "ਸਦਾਬਹਾਰ ਦਰੱਖਤਾਂ ਨਾਲ ਬਰਫ਼ੀਲੇ ਲੈਂਡਸਕੇਪ ਵਿੱਚ ਲੱਕੜ ਦਾ ਘਰ", "craneSleep0SemanticLabel": "ਪਾਣੀ 'ਤੇ ਬਣੇ ਬੰਗਲੇ", "craneFly13SemanticLabel": "ਖਜੂਰ ਦੇ ਦਰੱਖਤਾਂ ਵਾਲਾ ਸਮੁੰਦਰ ਦੇ ਨੇੜੇ ਪੂਲ", "craneFly12SemanticLabel": "ਖਜੂਰ ਦੇ ਦਰੱਖਤਾਂ ਵਾਲਾ ਪੂਲ", "craneFly11SemanticLabel": "ਸਮੁੰਦਰ ਵਿੱਚ ਇੱਟਾਂ ਦਾ ਬਣਿਆ ਚਾਨਣ ਮੁਨਾਰਾ", "craneFly10SemanticLabel": "ਸੂਰਜ ਡੁੱਬਣ ਦੌਰਾਨ ਅਲ-ਅਜ਼ਹਰ ਮਸੀਤ ਦੀਆਂ ਮੀਨਾਰਾਂ", "craneFly9SemanticLabel": "ਪੁਰਾਣੀ ਨੀਲੀ ਕਾਰ 'ਤੇ ਢੋਅ ਲਗਾ ਕੇ ਖੜ੍ਹਾ ਆਦਮੀ", "craneFly8SemanticLabel": "ਸੁਪਰਟ੍ਰੀ ਗਰੋਵ", "craneEat9SemanticLabel": "ਪੇਸਟਰੀਆਂ ਵਾਲਾ ਕੈਫ਼ੇ ਕਾਊਂਟਰ", "craneEat2SemanticLabel": "ਬਰਗਰ", "craneFly5SemanticLabel": "ਪਹਾੜਾਂ ਸਾਹਮਣੇ ਝੀਲ ਦੇ ਕਿਨਾਰੇ ਹੋਟਲ", "demoSelectionControlsSubtitle": "ਚੈੱਕ-ਬਾਕਸ, ਰੇਡੀਓ ਬਟਨ ਅਤੇ ਸਵਿੱਚ", "craneEat10SemanticLabel": "ਵੱਡੇ ਪਾਸਟ੍ਰਾਮੀ ਸੈਂਡਵਿਚ ਨੂੰ ਫੜ੍ਹ ਕੇ ਖੜ੍ਹੀ ਔਰਤ", "craneFly4SemanticLabel": "ਪਾਣੀ 'ਤੇ ਬਣੇ ਬੰਗਲੇ", "craneEat7SemanticLabel": "ਬੇਕਰੀ ਵਿੱਚ ਦਾਖਲ ਹੋਣ ਦਾ ਰਸਤਾ", "craneEat6SemanticLabel": "ਝੀਂਗਾ ਮੱਛੀ ਪਕਵਾਨ", "craneEat5SemanticLabel": "ਕਲਾਕਾਰੀ ਰੈਸਟੋਰੈਂਟ ਵਿਚਲਾ ਬੈਠਣ ਵਾਲਾ ਖੇਤਰ", "craneEat4SemanticLabel": "ਚਾਕਲੇਟ ਸਮਾਪਨ ਪਕਵਾਨ", "craneEat3SemanticLabel": "ਕੋਰੀਆਈ ਟੈਕੋ", "craneFly3SemanticLabel": "ਮਾਚੂ ਪਿਕਚੂ ਕਿਲ੍ਹਾ", "craneEat1SemanticLabel": "ਰਾਤ ਦੇ ਖਾਣੇ ਵਾਲੇ ਸਟੂਲਾਂ ਦੇ ਨਾਲ ਖਾਲੀ ਬਾਰ", "craneEat0SemanticLabel": "ਤੰਦੂਰ ਵਿੱਚ ਲੱਕੜ ਦੀ ਅੱਗ ਨਾਲ ਬਣਿਆ ਪੀਜ਼ਾ", "craneSleep11SemanticLabel": "ਤਾਈਪੇ 101 ਉੱਚੀ ਇਮਾਰਤ", "craneSleep10SemanticLabel": "ਸੂਰਜ ਡੁੱਬਣ ਦੌਰਾਨ ਅਲ-ਅਜ਼ਹਰ ਮਸੀਤ ਦੀਆਂ ਮੀਨਾਰਾਂ", "craneSleep9SemanticLabel": "ਸਮੁੰਦਰ ਵਿੱਚ ਇੱਟਾਂ ਦਾ ਬਣਿਆ ਚਾਨਣ ਮੁਨਾਰਾ", "craneEat8SemanticLabel": "ਕ੍ਰਾਫਿਸ਼ ਨਾਲ ਭਰੀ ਪਲੇਟ", "craneSleep7SemanticLabel": "ਰਾਈਬੇਰੀਆ ਸਕਵੇਅਰ 'ਤੇ ਰੰਗ-ਬਿਰੰਗੇ ਅਪਾਰਟਮੈਂਟ", "craneSleep6SemanticLabel": "ਖਜੂਰ ਦੇ ਦਰੱਖਤਾਂ ਵਾਲਾ ਪੂਲ", "craneSleep5SemanticLabel": "ਕਿਸੇ ਮੈਦਾਨ ਵਿੱਚ ਟੈਂਟ", "settingsButtonCloseLabel": "ਸੈਟਿੰਗਾਂ ਬੰਦ ਕਰੋ", "demoSelectionControlsCheckboxDescription": "ਚੈੱਕ-ਬਾਕਸ ਵਰਤੋਂਕਾਰ ਨੂੰ ਕਿਸੇ ਸੈੱਟ ਵਿੱਚੋਂ ਕਈ ਵਿਕਲਪਾਂ ਨੂੰ ਚੁਣਨ ਦਿੰਦਾ ਹੈ। ਕਿਸੇ ਸਧਾਰਨ ਚੈੱਕ-ਬਾਕਸ ਦਾ ਮੁੱਲ ਸਹੀ ਜਾਂ ਗਲਤ ਹੁੰਦਾ ਹੈ ਅਤੇ ਕਿਸੇ ਤੀਹਰੇ ਚੈੱਕ-ਬਾਕਸ ਦਾ ਮੁੱਲ ਖਾਲੀ ਵੀ ਹੋ ਸਕਦਾ ਹੈ।", "settingsButtonLabel": "ਸੈਟਿੰਗਾਂ", "demoListsTitle": "ਸੂਚੀਆਂ", "demoListsSubtitle": "ਸਕ੍ਰੋਲਿੰਗ ਸੂਚੀ ਖਾਕੇ", "demoListsDescription": "ਸਥਿਰ-ਉਚਾਈ ਵਾਲੀ ਇਕਹਿਰੀ ਕਤਾਰ ਜਿਸ ਵਿੱਚ ਆਮ ਤੌਰ 'ਤੇ ਸ਼ੁਰੂਆਤ ਜਾਂ ਪਿਛੋਕੜ ਵਾਲੇ ਪ੍ਰਤੀਕ ਦੇ ਨਾਲ ਕੁਝ ਲਿਖਤ ਵੀ ਸ਼ਾਮਲ ਹੁੰਦੀ ਹੈ।", "demoOneLineListsTitle": "ਇੱਕ ਲਾਈਨ", "demoTwoLineListsTitle": "ਦੋ ਲਾਈਨਾਂ", "demoListsSecondary": "ਸੈਕੰਡਰੀ ਲਿਖਤ", "demoSelectionControlsTitle": "ਚੋਣ ਸੰਬੰਧੀ ਕੰਟਰੋਲ", "craneFly7SemanticLabel": "ਮਾਊਂਟ ਰਸ਼ਮੋਰ", "demoSelectionControlsCheckboxTitle": "ਚੈੱਕ-ਬਾਕਸ", "craneSleep3SemanticLabel": "ਪੁਰਾਣੀ ਨੀਲੀ ਕਾਰ 'ਤੇ ਢੋਅ ਲਗਾ ਕੇ ਖੜ੍ਹਾ ਆਦਮੀ", "demoSelectionControlsRadioTitle": "ਰੇਡੀਓ", "demoSelectionControlsRadioDescription": "ਰੇਡੀਓ ਬਟਨ ਕਿਸੇ ਸੈੱਟ ਵਿੱਚੋਂ ਵਰਤੋਂਕਾਰ ਨੂੰ ਇੱਕ ਵਿਕਲਪ ਚੁਣਨ ਦਿੰਦੇ ਹਨ। ਜੇ ਤੁਹਾਨੂੰ ਲੱਗਦਾ ਹੈ ਕਿ ਵਰਤੋਂਕਾਰ ਨੂੰ ਉਪਲਬਧ ਵਿਕਲਪਾਂ ਨੂੰ ਇੱਕ-ਇੱਕ ਕਰਕੇ ਦੇਖਣ ਦੀ ਲੋੜ ਹੈ ਤਾਂ ਖਾਸ ਚੋਣ ਲਈ ਰੇਡੀਓ ਬਟਨ ਵਰਤੋ।", "demoSelectionControlsSwitchTitle": "ਸਵਿੱਚ", "demoSelectionControlsSwitchDescription": "ਸਵਿੱਚਾਂ ਨੂੰ ਚਾਲੂ/ਬੰਦ ਕਰਨ 'ਤੇ ਇਹ ਇਕਹਿਰੀ ਸੈਟਿੰਗਾਂ ਵਿਕਲਪ ਦੀ ਸਥਿਤੀ ਵਿਚਾਲੇ ਟੌਗਲ ਕਰਦੇ ਹਨ। ਉਹ ਵਿਕਲਪ ਜਿਸਨੂੰ ਸਵਿੱਚ ਕੰਟਰੋਲ ਕਰਦਾ ਹੈ, ਅਤੇ ਨਾਲ ਉਹ ਸਥਿਤੀ ਜਿਸ ਵਿੱਚ ਇਹ ਹੈ, ਉਸਨੂੰ ਸੰਬੰਧਿਤ ਇਨਲਾਈਨ ਲੇਬਲ ਨਾਲ ਕਲੀਅਰ ਕੀਤਾ ਜਾਣਾ ਚਾਹੀਦਾ ਹੈ।", "craneFly0SemanticLabel": "ਸਦਾਬਹਾਰ ਦਰੱਖਤਾਂ ਨਾਲ ਬਰਫ਼ੀਲੇ ਲੈਂਡਸਕੇਪ ਵਿੱਚ ਲੱਕੜ ਦਾ ਘਰ", "craneFly1SemanticLabel": "ਕਿਸੇ ਮੈਦਾਨ ਵਿੱਚ ਟੈਂਟ", "craneFly2SemanticLabel": "ਬਰਫ਼ੀਲੇ ਪਹਾੜਾਂ ਅੱਗੇ ਪ੍ਰਾਰਥਨਾ ਦੇ ਝੰਡੇ", "craneFly6SemanticLabel": "ਪਲੈਸੀਓ ਦੇ ਬੇਲਾਸ ਆਰਤੇਸ ਦਾ ਹਵਾਈ ਦ੍ਰਿਸ਼", "rallySeeAllAccounts": "ਸਾਰੇ ਖਾਤੇ ਦੇਖੋ", "rallyBillAmount": "{billName} ਲਈ {amount} ਦਾ ਬਿੱਲ ਭਰਨ ਦੀ ਨਿਯਤ ਤਾਰੀਖ {date} ਹੈ।", "shrineTooltipCloseCart": "ਕਾਰਟ ਬੰਦ ਕਰੋ", "shrineTooltipCloseMenu": "ਮੀਨੂ ਬੰਦ ਕਰੋ", "shrineTooltipOpenMenu": "ਮੀਨੂ ਖੋਲ੍ਹੋ", "shrineTooltipSettings": "ਸੈਟਿੰਗਾਂ", "shrineTooltipSearch": "Search", "demoTabsDescription": "ਟੈਬਾਂ ਸਮੱਗਰੀ ਨੂੰ ਸਾਰੀਆਂ ਵੱਖਰੀਆਂ ਸਕ੍ਰੀਨਾਂ, ਡਾਟਾ ਸੈੱਟਾਂ ਅਤੇ ਹੋਰ ਅੰਤਰਕਿਰਿਆਵਾਂ ਵਿੱਚ ਵਿਵਸਥਿਤ ਕਰਦੀਆਂ ਹਨ।", "demoTabsSubtitle": "ਸੁਤੰਤਰ ਤੌਰ 'ਤੇ ਸਕ੍ਰੋਲ ਕਰਨਯੋਗ ਦ੍ਰਿਸ਼ਾਂ ਵਾਲੀ ਟੈਬ", "demoTabsTitle": "ਟੈਬਾਂ", "rallyBudgetAmount": "{budgetName} ਦੇ ਬਜਟ {amountTotal} ਵਿੱਚੋਂ {amountUsed} ਵਰਤੇ ਗਏ ਹਨ, {amountLeft} ਬਾਕੀ", "shrineTooltipRemoveItem": "ਆਈਟਮ ਹਟਾਓ", "rallyAccountAmount": "{amount} ਦੀ ਰਕਮ {accountName} ਦੇ ਖਾਤਾ ਨੰਬਰ {accountNumber} ਵਿੱਚ ਜਮ੍ਹਾ ਕਰਵਾਈ ਗਈ।", "rallySeeAllBudgets": "ਸਾਰੇ ਬਜਟ ਦੇਖੋ", "rallySeeAllBills": "ਸਾਰੇ ਬਿੱਲ ਦੇਖੋ", "craneFormDate": "ਤਾਰੀਖ ਚੁਣੋ", "craneFormOrigin": "ਮੂਲ ਥਾਂ ਚੁਣੋ", "craneFly2": "ਖੁੰਬੂ ਘਾਟੀ, ਨੇਪਾਲ", "craneFly3": "ਮਾਚੂ ਪਿਕਚੂ, ਪੇਰੂ", "craneFly4": "ਮਾਲੇ, ਮਾਲਦੀਵ", "craneFly5": "ਵਿਟਸਨਾਊ, ਸਵਿਟਜ਼ਰਲੈਂਡ", "craneFly6": "ਮੈਕਸੀਕੋ ਸ਼ਹਿਰ, ਮੈਕਸੀਕੋ", "craneFly7": "ਮਾਊਂਟ ਰਸ਼ਮੋਰ, ਸੰਯੁਕਤ ਰਾਜ", "settingsTextDirectionLocaleBased": "ਲੋਕੇਲ ਦੇ ਆਧਾਰ 'ਤੇ", "craneFly9": "ਹਵਾਨਾ, ਕਿਊਬਾ", "craneFly10": "ਕਾਹਿਰਾ, ਮਿਸਰ", "craneFly11": "ਲਿਸਬਨ, ਪੁਰਤਗਾਲ", "craneFly12": "ਨੈਪਾ, ਸੰਯੁਕਤ ਰਾਜ", "craneFly13": "ਬਾਲੀ, ਇੰਡੋਨੇਸ਼ੀਆ", "craneSleep0": "ਮਾਲੇ, ਮਾਲਦੀਵ", "craneSleep1": "ਐਸਪਨ, ਸੰਯੁਕਤ ਰਾਜ", "craneSleep2": "ਮਾਚੂ ਪਿਕਚੂ, ਪੇਰੂ", "demoCupertinoSegmentedControlTitle": "ਉਪ-ਸਮੂਹ ਕੰਟਰੋਲ", "craneSleep4": "ਵਿਟਸਨਾਊ, ਸਵਿਟਜ਼ਰਲੈਂਡ", "craneSleep5": "ਬਿੱਗ ਸਰ, ਸੰਯੁਕਤ ਰਾਜ", "craneSleep6": "ਨੈਪਾ, ਸੰਯੁਕਤ ਰਾਜ", "craneSleep7": "ਪੋਰਟੋ, ਪੁਰਤਗਾਲ", "craneSleep8": "ਟੁਲੁਮ, ਮੈਕਸੀਕੋ", "craneEat5": "ਸਿਓਲ, ਦੱਖਣੀ ਕੋਰੀਆ", "demoChipTitle": "ਚਿੱਪਾਂ", "demoChipSubtitle": "ਸੰਖਿਪਤ ਤੱਤ ਜੋ ਇਨਪੁੱਟ, ਵਿਸ਼ੇਸ਼ਤਾ ਜਾਂ ਕਰਵਾਈ ਨੂੰ ਦਰਸਾਉਂਦੇ ਹਨ", "demoActionChipTitle": "ਐਕਸ਼ਨ ਚਿੱਪ", "demoActionChipDescription": "ਐਕਸ਼ਨ ਚਿੱਪਾਂ ਅਜਿਹੇ ਵਿਕਲਪਾਂ ਦਾ ਸੈੱਟ ਹੁੰਦੀਆਂ ਹਨ ਜੋ ਪ੍ਰਮੁੱਖ ਸਮੱਗਰੀ ਨਾਲ ਸੰਬੰਧਿਤ ਕਾਰਵਾਈ ਨੂੰ ਚਾਲੂ ਕਰਦੀਆਂ ਹਨ। ਐਕਸ਼ਨ ਚਿੱਪਾਂ ਗਤੀਸ਼ੀਲ ਢੰਗ ਨਾਲ ਅਤੇ ਸੰਦਰਭੀ ਤੌਰ 'ਤੇ ਕਿਸੇ UI ਵਿੱਚ ਦਿਸਣੀਆਂ ਚਾਹੀਦੀਆਂ ਹਨ।", "demoChoiceChipTitle": "ਚੋਇਸ ਚਿੱਪ", "demoChoiceChipDescription": "ਚੋਇਸ ਚਿੱਪਾਂ ਕਿਸੇ ਸੈੱਟ ਵਿੱਚ ਇਕਹਿਰੀ ਚੋਣ ਨੂੰ ਦਰਸਾਉਂਦੀਆਂ ਹਨ। ਚੋਇਸ ਚਿੱਪਾਂ ਵਿੱਚ ਸੰਬੰਧਿਤ ਵਰਣਨਾਤਮਿਕ ਲਿਖਤ ਜਾਂ ਸ਼੍ਰੇਣੀਆਂ ਸ਼ਾਮਲ ਹੁੰਦੀਆਂ ਹਨ।", "demoFilterChipTitle": "ਫਿਲਟਰ ਚਿੱਪ", "demoFilterChipDescription": "ਫਿਲਟਰ ਚਿੱਪਾਂ ਸਮੱਗਰੀ ਨੂੰ ਫਿਲਟਰ ਕਰਨ ਲਈ ਟੈਗਾਂ ਜਾਂ ਵਰਣਨਾਤਮਿਕ ਸ਼ਬਦਾਂ ਦੀ ਵਰਤੋਂ ਕਰਦੀਆਂ ਹਨ।", "demoInputChipTitle": "ਇਨਪੁੱਟ ਚਿੱਪ", "demoInputChipDescription": "ਇਨਪੁੱਟ ਚਿੱਪਾਂ ਸੰਖਿਪਤ ਰੂਪ ਵਿੱਚ ਗੁੰਝਲਦਾਰ ਜਾਣਕਾਰੀ ਨੂੰ ਦਰਸਾਉਂਦੀਆਂ ਹਨ, ਜਿਵੇਂ ਕਿ ਕੋਈ ਇਕਾਈ (ਵਿਅਕਤੀ, ਥਾਂ ਜਾਂ ਚੀਜ਼) ਜਾਂ ਗੱਲਬਾਤ ਵਾਲੀ ਲਿਖਤ।", "craneSleep9": "ਲਿਸਬਨ, ਪੁਰਤਗਾਲ", "craneEat10": "ਲਿਸਬਨ, ਪੁਰਤਗਾਲ", "demoCupertinoSegmentedControlDescription": "ਇਸ ਦੀ ਵਰਤੋਂ ਕਿਸੇ ਪਰਸਪਰ ਖਾਸ ਵਿਕਲਪਾਂ ਵਿੱਚੋਂ ਚੁਣਨ ਲਈ ਕੀਤੀ ਗਈ। ਜਦੋਂ ਉਪ-ਸਮੂਹ ਕੰਟਰੋਲ ਵਿੱਚੋਂ ਇੱਕ ਵਿਕਲਪ ਚੁਣਿਆ ਜਾਂਦਾ ਹੈ, ਤਾਂ ਉਪ-ਸਮੂਹ ਕੰਟਰੋਲ ਵਿੱਚ ਹੋਰ ਵਿਕਲਪ ਨਹੀਂ ਚੁਣੇ ਜਾ ਸਕਦੇ।", "chipTurnOnLights": "ਲਾਈਟਾਂ ਚਾਲੂ ਕਰੋ", "chipSmall": "ਛੋਟਾ", "chipMedium": "ਦਰਮਿਆਨਾ", "chipLarge": "ਵੱਡਾ", "chipElevator": "ਲਿਫ਼ਟ", "chipWasher": "ਕੱਪੜੇ ਧੋਣ ਵਾਲੀ ਮਸ਼ੀਨ", "chipFireplace": "ਚੁੱਲ੍ਹਾ", "chipBiking": "ਬਾਈਕਿੰਗ", "craneFormDiners": "ਖਾਣ-ਪੀਣ", "rallyAlertsMessageUnassignedTransactions": "{count,plural,=1{ਆਪਣੀ ਸੰਭਾਵੀ ਟੈਕਸ ਕਟੌਤੀ ਵਿੱਚ ਵਾਧਾ ਕਰੋ! 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-style ਉਪ-ਸਮੂਹ ਕੰਟਰੋਲ", "craneSleep10": "ਕਾਹਿਰਾ, ਮਿਸਰ", "craneEat9": "ਮਾਦਰੀਦ, ਸਪੇਨ", "craneFly1": "ਬਿੱਗ ਸਰ, ਸੰਯੁਕਤ ਰਾਜ", "craneEat7": "ਨੈਸ਼ਵਿਲ, ਸੰਯੁਕਤ ਰਾਜ", "craneEat6": "ਸੀਐਟਲ, ਸੰਯੁਕਤ ਰਾਜ", "craneFly8": "ਸਿੰਗਾਪੁਰ", "craneEat4": "ਪੈਰਿਸ, ਫਰਾਂਸ", "craneEat3": "ਪੋਰਟਲੈਂਡ, ਸੰਯੁਕਤ ਰਾਜ", "craneEat2": "ਕੋਰਡੋਬਾ, ਅਰਜਨਟੀਨਾ", "craneEat1": "ਡਾਲਸ, ਸੰਯੁਕਤ ਰਾਜ", "craneEat0": "ਨੇਪਲਜ਼, ਇਟਲੀ", "craneSleep11": "ਤਾਈਪੇ, ਤਾਈਵਾਨ", "craneSleep3": "ਹਵਾਨਾ, ਕਿਊਬਾ", "shrineLogoutButtonCaption": "ਲੌਗ ਆਊਟ ਕਰੋ", "rallyTitleBills": "ਬਿੱਲ", "rallyTitleAccounts": "ਖਾਤੇ", "shrineProductVagabondSack": "Vagabond ਥੈਲਾ", "rallyAccountDetailDataInterestYtd": "ਵਿਆਜ YTD", "shrineProductWhitneyBelt": "ਵਾਇਟਨੀ ਬੈਲਟ", "shrineProductGardenStrand": "ਗਾਰਡਨ ਸਟਰੈਂਡ", "shrineProductStrutEarrings": "ਸਟਰਟ ਵਾਲੀਆਂ", "shrineProductVarsitySocks": "Varsity ਜੁਰਾਬਾਂ", "shrineProductWeaveKeyring": "ਧਾਗੇਦਾਰ ਕੁੰਜੀ-ਛੱਲਾ", "shrineProductGatsbyHat": "ਗੈੱਟਸਬਾਏ ਟੋਪੀ", "shrineProductShrugBag": "ਸ਼ਰੱਗ ਬੈਗ", "shrineProductGiltDeskTrio": "Gilt ਦਾ ਤਿੰਨ ਡੈੱਸਕਾਂ ਦਾ ਸੈੱਟ", "shrineProductCopperWireRack": "ਤਾਂਬੇ ਦੀ ਤਾਰ ਦਾ ਰੈਕ", "shrineProductSootheCeramicSet": "ਵਧੀਆ ਚੀਨੀ ਮਿੱਟੀ ਦਾ ਸੈੱਟ", "shrineProductHurrahsTeaSet": "Hurrahs ਚਾਹਦਾਨੀ ਸੈੱਟ", "shrineProductBlueStoneMug": "ਬਲੂ ਸਟੋਨ ਮੱਗ", "shrineProductRainwaterTray": "ਰੇਨ ਵਾਟਰ ਟ੍ਰੇ", "shrineProductChambrayNapkins": "ਸ਼ੈਂਬਰੇ ਨੈਪਕਿਨ", "shrineProductSucculentPlanters": "ਸਕਿਊਲੇਂਟ ਪਲਾਂਟਰ", "shrineProductQuartetTable": "ਕਵਾਰਟੈੱਟ ਮੇਜ਼", "shrineProductKitchenQuattro": "ਕਿਚਨ ਕਵਾਤਰੋ", "shrineProductClaySweater": "ਪੂਰੀ ਬਾਹਾਂ ਵਾਲਾ ਸਵੈਟਰ", "shrineProductSeaTunic": "ਸੀ ਟਿਊਨਿਕ", "shrineProductPlasterTunic": "ਪਲਾਸਟਰ ਟਿਊਨਿਕ", "rallyBudgetCategoryRestaurants": "ਰੈਸਟੋਰੈਂਟ", "shrineProductChambrayShirt": "ਸ਼ੈਂਬਰੇ ਕਮੀਜ਼", "shrineProductSeabreezeSweater": "ਸੀਬ੍ਰੀਜ਼ ਸਵੈਟਰ", "shrineProductGentryJacket": "ਜੈਨਟਰੀ ਜੈਕਟ", "shrineProductNavyTrousers": "ਗੂੜ੍ਹੀਆਂ ਨੀਲੀਆਂ ਪੈਂਟਾਂ", "shrineProductWalterHenleyWhite": "ਵਾਲਟਰ ਹੈਨਲੀ (ਚਿੱਟਾ)", "shrineProductSurfAndPerfShirt": "ਸਰਫ ਅਤੇ ਪਰਫ ਕਮੀਜ਼", "shrineProductGingerScarf": "Ginger ਸਕਾਰਫ਼", "shrineProductRamonaCrossover": "ਰਮੋਨਾ ਕ੍ਰਾਸਓਵਰ", "shrineProductClassicWhiteCollar": "ਕਲਾਸਿਕ ਵਾਇਟ ਕਾਲਰ", "shrineProductSunshirtDress": "ਸਨਸ਼ਰਟ ਡ੍ਰੈੱਸ", "rallyAccountDetailDataInterestRate": "ਵਿਆਜ ਦੀ ਦਰ", "rallyAccountDetailDataAnnualPercentageYield": "ਸਲਾਨਾ ਫ਼ੀਸਦ ਮੁਨਾਫਾ", "rallyAccountDataVacation": "ਛੁੱਟੀਆਂ", "shrineProductFineLinesTee": "ਬਰੀਕ ਲਾਈਨਾਂ ਵਾਲੀ ਟੀ-ਸ਼ਰਟ", "rallyAccountDataHomeSavings": "ਘਰੇਲੂ ਬੱਚਤਾਂ", "rallyAccountDataChecking": "ਜਾਂਚ ਕੀਤੀ ਜਾ ਰਹੀ ਹੈ", "rallyAccountDetailDataInterestPaidLastYear": "ਪਿਛਲੇ ਸਾਲ ਦਿੱਤਾ ਗਿਆ ਵਿਆਜ", "rallyAccountDetailDataNextStatement": "ਅਗਲੀ ਸਟੇਟਮੈਂਟ", "rallyAccountDetailDataAccountOwner": "ਖਾਤੇ ਦਾ ਮਾਲਕ", "rallyBudgetCategoryCoffeeShops": "ਕੌਫ਼ੀ ਦੀਆਂ ਦੁਕਾਨਾਂ", "rallyBudgetCategoryGroceries": "ਕਰਿਆਨੇ ਦਾ ਸਮਾਨ", "shrineProductCeriseScallopTee": "ਗੁਲਾਬੀ ਸਿੱਪੀਦਾਰ ਟੀ-ਸ਼ਰਟ", "rallyBudgetCategoryClothing": "ਕੱਪੜੇ", "rallySettingsManageAccounts": "ਖਾਤੇ ਪ੍ਰਬੰਧਿਤ ਕਰੋ", "rallyAccountDataCarSavings": "ਕਾਰ ਲਈ ਬੱਚਤਾਂ", "rallySettingsTaxDocuments": "ਟੈਕਸ ਦਸਤਾਵੇਜ਼", "rallySettingsPasscodeAndTouchId": "ਪਾਸਕੋਡ ਅਤੇ ਸਪਰਸ਼ ਆਈਡੀ", "rallySettingsNotifications": "ਸੂਚਨਾਵਾਂ", "rallySettingsPersonalInformation": "ਨਿੱਜੀ ਜਾਣਕਾਰੀ", "rallySettingsPaperlessSettings": "ਪੰਨਾ ਰਹਿਤ ਸੈਟਿੰਗਾਂ", "rallySettingsFindAtms": "ATM ਲੱਭੋ", "rallySettingsHelp": "ਮਦਦ", "rallySettingsSignOut": "ਸਾਈਨ-ਆਊਟ ਕਰੋ", "rallyAccountTotal": "ਕੁੱਲ", "rallyBillsDue": "ਦੇਣਯੋਗ", "rallyBudgetLeft": "ਬਾਕੀ", "rallyAccounts": "ਖਾਤੇ", "rallyBills": "ਬਿੱਲ", "rallyBudgets": "ਬਜਟ", "rallyAlerts": "ਸੁਚੇਤਨਾਵਾਂ", "rallySeeAll": "ਸਭ ਦੇਖੋ", "rallyFinanceLeft": "ਬਾਕੀ", "rallyTitleOverview": "ਰੂਪ-ਰੇਖਾ", "shrineProductShoulderRollsTee": "ਸ਼ੋਲਡਰ ਰੋਲਸ ਟੀ-ਸ਼ਰਟ", "shrineNextButtonCaption": "ਅੱਗੇ", "rallyTitleBudgets": "ਬਜਟ", "rallyTitleSettings": "ਸੈਟਿੰਗਾਂ", "rallyLoginLoginToRally": "Rally ਵਿੱਚ ਲੌਗ-ਇਨ ਕਰੋ", "rallyLoginNoAccount": "ਕੀ ਤੁਹਾਡੇ ਕੋਲ ਖਾਤਾ ਨਹੀਂ ਹੈ?", "rallyLoginSignUp": "ਸਾਈਨ-ਅੱਪ ਕਰੋ", "rallyLoginUsername": "ਵਰਤੋਂਕਾਰ ਨਾਮ", "rallyLoginPassword": "ਪਾਸਵਰਡ", "rallyLoginLabelLogin": "ਲੌਗ-ਇਨ ਕਰੋ", "rallyLoginRememberMe": "ਮੈਨੂੰ ਯਾਦ ਰੱਖੋ", "rallyLoginButtonLogin": "ਲੌਗ-ਇਨ ਕਰੋ", "rallyAlertsMessageHeadsUpShopping": "ਧਿਆਨ ਦਿਓ, ਤੁਸੀਂ ਇਸ ਮਹੀਨੇ ਦੇ ਆਪਣੇ ਖਰੀਦਦਾਰੀ ਬਜਟ ਦਾ {percent} ਵਰਤ ਚੁੱਕੇ ਹੋ।", "rallyAlertsMessageSpentOnRestaurants": "ਤੁਸੀਂ ਇਸ ਹਫ਼ਤੇ {amount} ਰੈਸਟੋਰੈਂਟਾਂ 'ਤੇ ਖਰਚ ਕੀਤੇ ਹਨ।", "rallyAlertsMessageATMFees": "ਤੁਸੀਂ ਇਸ ਮਹੀਨੇ {amount} ATM ਫ਼ੀਸ ਵਜੋਂ ਖਰਚ ਕੀਤੇ ਹਨ", "rallyAlertsMessageCheckingAccount": "ਵਧੀਆ ਕੰਮ! ਤੁਹਾਡੇ ਵੱਲੋਂ ਚੈੱਕਿੰਗ ਖਾਤੇ ਵਿੱਚ ਜਮਾਂ ਕੀਤੀ ਰਕਮ ਪਿਛਲੇ ਮਹੀਨੇ ਤੋਂ {percent} ਜ਼ਿਆਦਾ ਹੈ।", "shrineMenuCaption": "ਮੀਨੂ", "shrineCategoryNameAll": "ਸਭ", "shrineCategoryNameAccessories": "ਐਕਸੈਸਰੀ", "shrineCategoryNameClothing": "ਕੱਪੜੇ", "shrineCategoryNameHome": "ਘਰੇਲੂ", "shrineLoginUsernameLabel": "ਵਰਤੋਂਕਾਰ ਨਾਮ", "shrineLoginPasswordLabel": "ਪਾਸਵਰਡ", "shrineCancelButtonCaption": "ਰੱਦ ਕਰੋ", "shrineCartTaxCaption": "ਟੈਕਸ:", "shrineCartPageCaption": "ਕਾਰਟ", "shrineProductQuantity": "ਮਾਤਰਾ: {quantity}", "shrineProductPrice": "x {price}", "shrineCartItemCount": "{quantity,plural,=0{ਕੋਈ ਆਈਟਮ ਨਹੀਂ}=1{1 ਆਈਟਮ}other{{quantity} ਆਈਟਮਾਂ}}", "shrineCartClearButtonCaption": "ਕਾਰਟ ਕਲੀਅਰ ਕਰੋ", "shrineCartTotalCaption": "ਕੁੱਲ", "shrineCartSubtotalCaption": "ਉਪ-ਕੁੱਲ:", "shrineCartShippingCaption": "ਮਾਲ ਭੇਜਣ ਦੀ ਕੀਮਤ:", "shrineProductGreySlouchTank": "ਸਲੇਟੀ ਰੰਗ ਦਾ ਸਲਾਊਚ ਟੈਂਕ", "shrineProductStellaSunglasses": "ਸਟੈੱਲਾ ਐਨਕਾਂ", "shrineProductWhitePinstripeShirt": "ਚਿੱਟੀ ਪਿੰਨਸਟ੍ਰਾਈਪ ਕਮੀਜ਼", "demoTextFieldWhereCanWeReachYou": "ਅਸੀਂ ਤੁਹਾਨੂੰ ਕਿਵੇਂ ਸੰਪਰਕ ਕਰੀਏ?", "settingsTextDirectionLTR": "LTR", "settingsTextScalingLarge": "ਵੱਡਾ", "demoBottomSheetHeader": "ਸਿਰਲੇਖ", "demoBottomSheetItem": "ਆਈਟਮ {value}", "demoBottomTextFieldsTitle": "ਲਿਖਤ ਖੇਤਰ", "demoTextFieldTitle": "ਲਿਖਤ ਖੇਤਰ", "demoTextFieldSubtitle": "ਸੰਪਾਦਨਯੋਗ ਲਿਖਤ ਅਤੇ ਨੰਬਰਾਂ ਦੀ ਇਕਹਿਰੀ ਲਾਈਨ", "demoTextFieldDescription": "ਲਿਖਤ ਖੇਤਰ ਵਰਤੋਂਕਾਰਾਂ ਨੂੰ UI ਵਿੱਚ ਲਿਖਤ ਦਾਖਲ ਕਰਨ ਦਿੰਦੇ ਹਨ। ਉਹ ਆਮ ਕਰਕੇ ਵਿੰਡੋ ਅਤੇ ਫ਼ਾਰਮਾਂ ਵਿੱਚ ਦਿਸਦੇ ਹਨ।", "demoTextFieldShowPasswordLabel": "ਪਾਸਵਰਡ ਦਿਖਾਓ", "demoTextFieldHidePasswordLabel": "ਪਾਸਵਰਡ ਲੁਕਾਓ", "demoTextFieldFormErrors": "ਕਿਰਪਾ ਕਰਕੇ ਸਪੁਰਦ ਕਰਨ ਤੋਂ ਪਹਿਲਾਂ ਲਾਲ ਰੰਗ ਵਾਲੀਆਂ ਗੜਬੜਾਂ ਨੂੰ ਠੀਕ ਕਰੋ।", "demoTextFieldNameRequired": "ਨਾਮ ਲੋੜੀਂਦਾ ਹੈ।", "demoTextFieldOnlyAlphabeticalChars": "ਕਿਰਪਾ ਕਰਕੇ ਸਿਰਫ਼ ਵਰਨਮਾਲਾ ਵਾਲੇ ਅੱਖਰ-ਚਿੰਨ੍ਹ ਦਾਖਲ ਕਰੋ।", "demoTextFieldEnterUSPhoneNumber": "(###) ###-#### - ਕੋਈ ਅਮਰੀਕੀ ਫ਼ੋਨ ਨੰਬਰ ਦਾਖਲ ਕਰੋ।", "demoTextFieldEnterPassword": "ਕਿਰਪਾ ਕਰਕੇ ਕੋਈ ਪਾਸਵਰਡ ਦਾਖਲ ਕਰੋ।", "demoTextFieldPasswordsDoNotMatch": "ਪਾਸਵਰਡ ਮੇਲ ਨਹੀਂ ਖਾਂਦੇ", "demoTextFieldWhatDoPeopleCallYou": "ਲੋਕ ਤੁਹਾਨੂੰ ਕੀ ਕਹਿ ਕੇ ਬੁਲਾਉਂਦੇ ਹਨ?", "demoTextFieldNameField": "ਨਾਮ*", "demoBottomSheetButtonText": "ਹੇਠਲੀ ਸ਼ੀਟ ਦਿਖਾਓ", "demoTextFieldPhoneNumber": "ਫ਼ੋਨ ਨੰਬਰ*", "demoBottomSheetTitle": "ਹੇਠਲੀ ਸ਼ੀਟ", "demoTextFieldEmail": "ਈਮੇਲ", "demoTextFieldTellUsAboutYourself": "ਸਾਨੂੰ ਆਪਣੇ ਬਾਰੇ ਦੱਸੋ (ਜਿਵੇਂ ਤੁਸੀਂ ਕੀ ਕਰਦੇ ਹੋ ਜਾਂ ਆਪਣੀਆਂ ਆਦਤਾਂ ਬਾਰੇ ਲਿਖੋ)", "demoTextFieldKeepItShort": "ਇਸਨੂੰ ਛੋਟਾ ਰੱਖੋ, ਇਹ ਸਿਰਫ਼ ਡੈਮੋ ਹੈ।", "starterAppGenericButton": "ਬਟਨ", "demoTextFieldLifeStory": "ਜੀਵਨ ਕਹਾਣੀ", "demoTextFieldSalary": "ਤਨਖਾਹ", "demoTextFieldUSD": "USD", "demoTextFieldNoMoreThan": "8 ਅੱਖਰ-ਚਿੰਨ੍ਹਾਂ ਤੋਂ ਜ਼ਿਆਦਾ ਨਹੀਂ।", "demoTextFieldPassword": "ਪਾਸਵਰਡ*", "demoTextFieldRetypePassword": "ਪਾਸਵਰਡ ਮੁੜ-ਟਾਈਪ ਕਰੋ*", "demoTextFieldSubmit": "ਸਪੁਰਦ ਕਰੋ", "demoBottomNavigationSubtitle": "ਕ੍ਰਾਸ-ਫੇਡਿੰਗ ਦ੍ਰਿਸ਼ਾਂ ਨਾਲ ਹੇਠਲਾ ਨੈਵੀਗੇਸ਼ਨ", "demoBottomSheetAddLabel": "ਸ਼ਾਮਲ ਕਰੋ", "demoBottomSheetModalDescription": "ਮਾਡਲ ਹੇਠਲੀ ਸ਼ੀਟ ਕਿਸੇ ਮੀਨੂ ਜਾਂ ਵਿੰਡੋ ਦਾ ਬਦਲ ਹੈ ਅਤੇ ਇਹ ਵਰਤੋਂਕਾਰ ਨੂੰ ਬਾਕੀ ਦੀ ਐਪ ਨਾਲ ਅੰਤਰਕਿਰਿਆ ਕਰਨ ਤੋਂ ਰੋਕਦਾ ਹੈ।", "demoBottomSheetModalTitle": "ਮਾਡਲ ਹੇਠਲੀ ਸ਼ੀਟ", "demoBottomSheetPersistentDescription": "ਸਥਾਈ ਹੇਠਲੀ ਸ਼ੀਟ ਉਹ ਜਾਣਕਾਰੀ ਦਿਖਾਉਂਦੀ ਹੈ ਜੋ ਐਪ ਦੀ ਪ੍ਰਮੁੱਖ ਸਮੱਗਰੀ ਦੀ ਪੂਰਕ ਹੁੰਦੀ ਹੈ। ਇਹ ਸਥਾਈ ਹੇਠਲੀ ਸ਼ੀਟ ਉਦੋਂ ਤੱਕ ਦਿਖਣਯੋਗ ਰਹਿੰਦੀ ਹੈ ਜਦੋਂ ਵਰਤੋਂਕਾਰ ਐਪ ਦੇ ਹੋਰਨਾਂ ਹਿੱਸਿਆਂ ਨਾਲ ਅੰਤਰਕਿਰਿਆ ਕਰਦਾ ਹੈ।", "demoBottomSheetPersistentTitle": "ਸਥਾਈ ਹੇਠਲੀ ਸ਼ੀਟ", "demoBottomSheetSubtitle": "ਸਥਾਈ ਅਤੇ ਮਾਡਲ ਹੇਠਲੀ ਸ਼ੀਟ", "demoTextFieldNameHasPhoneNumber": "{name} ਦਾ ਫ਼ੋਨ ਨੰਬਰ {phoneNumber} ਹੈ", "buttonText": "ਬਟਨ", "demoTypographyDescription": "ਮੈਟੀਰੀਅਲ ਡਿਜ਼ਾਈਨ ਵਿੱਚ ਵੱਖ-ਵੱਖ ਛਪਾਈ ਵਾਲੇ ਸਟਾਈਲਾਂ ਲਈ ਪਰਿਭਾਸ਼ਾਵਾਂ।", "demoTypographySubtitle": "ਪਹਿਲਾਂ ਤੋਂ ਪਰਿਭਾਸ਼ਿਤ ਸਭ ਲਿਖਤ ਸਟਾਈਲ", "demoTypographyTitle": "ਛਪਾਈ", "demoFullscreenDialogDescription": "fullscreenDialog ਪ੍ਰਾਪਰਟੀ ਨਿਰਧਾਰਤ ਕਰਦੀ ਹੈ ਕਿ ਇਨਕਮਿੰਗ ਪੰਨਾ ਪੂਰੀ-ਸਕ੍ਰੀਨ ਮਾਡਲ ਵਿੰਡੋ ਹੈ ਜਾਂ ਨਹੀਂ", "demoFlatButtonDescription": "ਸਮਤਲ ਬਟਨ ਦਬਾਏ ਜਾਣ 'ਤੇ ਸਿਆਹੀ ਦੇ ਛਿੱਟੇ ਦਿਖਾਉਂਦਾ ਹੈ ਪਰ ਉੱਪਰ ਨਹੀਂ ਉੱਠਦਾ ਹੈ। ਟੂਲਬਾਰਾਂ ਉੱਤੇ, ਵਿੰਡੋਆਂ ਵਿੱਚ ਅਤੇ ਪੈਡਿੰਗ ਦੇ ਨਾਲ ਇਨਲਾਈਨ ਸਮਤਲ ਬਟਨਾਂ ਦੀ ਵਰਤੋਂ ਕਰੋ", "demoBottomNavigationDescription": "ਹੇਠਲੀਆਂ ਦਿਸ਼ਾ-ਨਿਰਦੇਸ਼ ਪੱਟੀਆਂ ਤਿੰਨ ਤੋਂ ਪੰਜ ਮੰਜ਼ਿਲਾਂ ਨੂੰ ਸਕ੍ਰੀਨ ਦੇ ਹੇਠਾਂ ਦਿਖਾਉਂਦੀਆਂ ਹਨ। ਹਰੇਕ ਮੰਜ਼ਿਲ ਕਿਸੇ ਪ੍ਰਤੀਕ ਅਤੇ ਵਿਕਲਪਿਕ ਲਿਖਤ ਲੇਬਲ ਦੁਆਰਾ ਦਰਸਾਈ ਜਾਂਦੀ ਹੈ। ਜਦੋਂ ਹੇਠਲੇ ਨੈਵੀਗੇਸ਼ਨ ਪ੍ਰਤੀਕ 'ਤੇ ਕਲਿੱਕ ਕੀਤਾ ਜਾਂਦਾ ਹੈ, ਤਾਂ ਵਰਤੋਂਕਾਰ ਨੂੰ ਉੱਚ-ਪੱਧਰ ਨੈਵੀਗੇਸ਼ਨ ਮੰਜ਼ਿਲ 'ਤੇ ਲਿਜਾਇਆ ਜਾਂਦਾ ਹੈ ਜੋ ਉਸ ਪ੍ਰਤੀਕ ਨਾਲ ਸੰਬੰਧਿਤ ਹੁੰਦਾ ਹੈ।", "demoBottomNavigationSelectedLabel": "ਚੁਣਿਆ ਗਿਆ ਲੇਬਲ", "demoBottomNavigationPersistentLabels": "ਸਥਾਈ ਲੇਬਲ", "starterAppDrawerItem": "ਆਈਟਮ {value}", "demoTextFieldRequiredField": "* ਲੋੜੀਂਦੇ ਖੇਤਰ ਦਾ ਸੂਚਕ ਹੈ", "demoBottomNavigationTitle": "ਹੇਠਾਂ ਵੱਲ ਨੈਵੀਗੇਸ਼ਨ", "settingsLightTheme": "ਹਲਕਾ", "settingsTheme": "ਥੀਮ", "settingsPlatformIOS": "iOS", "settingsPlatformAndroid": "Android", "settingsTextDirectionRTL": "RTL", "settingsTextScalingHuge": "ਵਿਸ਼ਾਲ", "cupertinoButton": "ਬਟਨ", "settingsTextScalingNormal": "ਸਧਾਰਨ", "settingsTextScalingSmall": "ਛੋਟਾ", "settingsSystemDefault": "ਸਿਸਟਮ", "settingsTitle": "ਸੈਟਿੰਗਾਂ", "rallyDescription": "ਨਿੱਜੀ ਵਿੱਤੀ ਐਪ", "aboutDialogDescription": "ਇਸ ਐਪ ਲਈ ਸਰੋਤ ਕੋਡ ਦੇਖਣ ਲਈ, ਕਿਰਪਾ ਕਰਕੇ {repoLink} 'ਤੇ ਜਾਓ।", "bottomNavigationCommentsTab": "ਟਿੱਪਣੀਆਂ", "starterAppGenericBody": "ਬਾਡੀ", "starterAppGenericHeadline": "ਸੁਰਖੀ", "starterAppGenericSubtitle": "ਉਪਸਿਰੇਲਖ", "starterAppGenericTitle": "ਸਿਰਲੇਖ", "starterAppTooltipSearch": "Search", "starterAppTooltipShare": "ਸਾਂਝਾ ਕਰੋ", "starterAppTooltipFavorite": "ਮਨਪਸੰਦ", "starterAppTooltipAdd": "ਸ਼ਾਮਲ ਕਰੋ", "bottomNavigationCalendarTab": "Calendar", "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": "ਲੰਡਨ ਵਿੱਚ TOASTER ਵੱਲੋਂ ਡਿਜ਼ਾਈਨ ਕੀਤਾ ਗਿਆ", "demoButtonTitle": "ਬਟਨ", "demoButtonSubtitle": "ਲਿਖਤ ਵਾਲੇ, ਉੱਭਰੇ ਹੋਏ, ਖਾਕਾਬੱਧ ਅਤੇ ਹੋਰ", "demoFlatButtonTitle": "ਸਮਤਲ ਬਟਨ", "demoRaisedButtonDescription": "ਉਭਰੇ ਹੋਏ ਬਟਨ ਜ਼ਿਆਦਾਤਰ ਸਮਤਲ ਖਾਕਿਆਂ 'ਤੇ ਆਯਾਮ ਸ਼ਾਮਲ ਕਰਦੇ ਹਨ। ਉਹ ਵਿਅਸਤ ਜਾਂ ਚੌੜੀਆਂ ਸਪੇਸਾਂ 'ਤੇ ਫੰਕਸ਼ਨਾਂ 'ਤੇ ਜ਼ੋਰ ਦਿੰਦੇ ਹਨ।", "demoRaisedButtonTitle": "ਉਭਰਿਆ ਹੋਇਆ ਬਟਨ", "demoOutlineButtonTitle": "ਰੂਪ-ਰੇਖਾ ਬਟਨ", "demoOutlineButtonDescription": "ਰੂਪ-ਰੇਖਾ ਬਟਨ ਦਬਾਏ ਜਾਣ 'ਤੇ ਧੁੰਦਲੇ ਹੋ ਜਾਂਦੇ ਹਨ ਅਤੇ ਉੱਪਰ ਉੱਠਦੇ ਹਨ। ਵਿਕਲਪਿਕ, ਸੈਕੰਡਰੀ ਕਾਰਵਾਈ ਦਰਸਾਉਣ ਲਈ ਉਹਨਾਂ ਨੂੰ ਅਕਸਰ ਉਭਰੇ ਹੋਏ ਬਟਨਾਂ ਨਾਲ ਜੋੜਾਬੱਧ ਕੀਤਾ ਜਾਂਦਾ ਹੈ।", "demoToggleButtonTitle": "ਟੌਗਲ ਬਟਨ", "colorsTeal": "ਟੀਲ", "demoFloatingButtonTitle": "ਫਲੋਟਿੰਗ ਕਾਰਵਾਈ ਬਟਨ", "demoFloatingButtonDescription": "ਫਲੋਟਿੰਗ ਕਾਰਵਾਈ ਬਟਨ ਗੋਲ ਪ੍ਰਤੀਕ ਬਟਨ ਹੁੰਦਾ ਹੈ ਜੋ ਐਪਲੀਕੇਸ਼ਨ ਵਿੱਚ ਮੁੱਖ ਕਾਰਵਾਈ ਨੂੰ ਉਤਸ਼ਾਹਿਤ ਕਰਨ ਲਈ ਸਮੱਗਰੀ ਉੱਤੇ ਘੁੰਮਦਾ ਹੈ।", "demoDialogTitle": "ਵਿੰਡੋਆਂ", "demoDialogSubtitle": "ਸਰਲ, ਸੁਚੇਤਨਾ ਅਤੇ ਪੂਰੀ-ਸਕ੍ਰੀਨ", "demoAlertDialogTitle": "ਸੁਚੇਤਨਾ", "demoAlertDialogDescription": "ਸੁਚੇਤਨਾ ਵਿੰਡੋ ਵਰਤੋਂਕਾਰ ਨੂੰ ਉਹਨਾਂ ਸਥਿਤੀਆਂ ਬਾਰੇ ਸੂਚਿਤ ਕਰਦੀ ਹੈ ਜਿਨ੍ਹਾਂ ਨੂੰ ਸਵੀਕ੍ਰਿਤੀ ਦੀ ਲੋੜ ਹੈ। ਸੁਚੇਤਨਾ ਵਿੰਡੋ ਵਿੱਚ ਵਿਕਲਪਿਕ ਸਿਰਲੇਖ ਅਤੇ ਕਾਰਵਾਈਆਂ ਦੀ ਵਿਕਲਪਿਕ ਸੂਚੀ ਸ਼ਾਮਲ ਹੁੰਦੀ ਹੈ।", "demoAlertTitleDialogTitle": "ਸਿਰਲੇਖ ਨਾਲ ਸੁਚੇਤਨਾ", "demoSimpleDialogTitle": "ਸਧਾਰਨ", "demoSimpleDialogDescription": "ਸਧਾਰਨ ਵਿੰਡੋ ਵਰਤੋਂਕਾਰ ਨੂੰ ਕਈ ਵਿਕਲਪਾਂ ਵਿਚਕਾਰ ਚੋਣ ਕਰਨ ਦੀ ਪੇਸ਼ਕਸ਼ ਕਰਦੀ ਹੈ। ਸਧਾਰਨ ਵਿੰਡੋ ਵਿੱਚ ਇੱਕ ਵਿਕਲਪਿਕ ਸਿਰਲੇਖ ਸ਼ਾਮਲ ਹੁੰਦਾ ਹੈ ਜੋ ਚੋਣਾਂ ਦੇ ਉੱਪਰ ਦਿਖਾਇਆ ਜਾਂਦਾ ਹੈ।", "demoFullscreenDialogTitle": "ਪੂਰੀ-ਸਕ੍ਰੀਨ", "demoCupertinoButtonsTitle": "ਬਟਨ", "demoCupertinoButtonsSubtitle": "iOS-ਸਟਾਈਲ ਬਟਨ", "demoCupertinoButtonsDescription": "iOS-ਸਟਾਈਲ ਬਟਨ। ਇਸ ਵਿੱਚ ਲਿਖਤ ਅਤੇ/ਜਾਂ ਪ੍ਰਤੀਕ ਸਵੀਕਾਰ ਕਰਦਾ ਹੈ ਜੋ ਸਪਰਸ਼ ਕਰਨ 'ਤੇ ਫਿੱਕਾ ਅਤੇ ਗੂੜ੍ਹਾ ਹੋ ਜਾਂਦਾ ਹੈ। ਵਿਕਲਪਿਕ ਰੂਪ ਵਿੱਚ ਇਸਦਾ ਬੈਕਗ੍ਰਾਊਂਡ ਹੋ ਸਕਦਾ ਹੈ।", "demoCupertinoAlertsTitle": "ਸੁਚੇਤਨਾਵਾਂ", "demoCupertinoAlertsSubtitle": "iOS-ਸਟਾਈਲ ਸੁਚੇਤਨਾ ਵਿੰਡੋ", "demoCupertinoAlertTitle": "ਸੁਚੇਤਨਾ", "demoCupertinoAlertDescription": "ਸੁਚੇਤਨਾ ਵਿੰਡੋ ਵਰਤੋਂਕਾਰ ਨੂੰ ਉਹਨਾਂ ਸਥਿਤੀਆਂ ਬਾਰੇ ਸੂਚਿਤ ਕਰਦੀ ਹੈ ਜਿਨ੍ਹਾਂ ਨੂੰ ਸਵੀਕ੍ਰਿਤੀ ਦੀ ਲੋੜ ਹੈ। ਸੁਚੇਤਨਾ ਵਿੰਡੋ ਵਿੱਚ ਵਿਕਲਪਿਕ ਸਿਰਲੇਖ, ਵਿਕਲਪਿਕ ਸਮੱਗਰੀ ਅਤੇ ਕਾਰਵਾਈਆਂ ਦੀ ਵਿਕਲਪਿਕ ਸੂਚੀ ਸ਼ਾਮਲ ਹੁੰਦੀ ਹੈ। ਸਿਰਲੇਖ ਸਮੱਗਰੀ ਦੇ ਉੱਪਰ ਦਿਸਦਾ ਹੈ ਅਤੇ ਕਾਰਵਾਈਆਂ ਸਮੱਗਰੀ ਦੇ ਹੇਠਾਂ ਦਿਸਦੀਆਂ ਹਨ।", "demoCupertinoAlertWithTitleTitle": "ਸਿਰਲੇਖ ਨਾਲ ਸੁਚੇਤਨਾ", "demoCupertinoAlertButtonsTitle": "ਬਟਨਾਂ ਨਾਲ ਸੁਚੇਤਨਾ", "demoCupertinoAlertButtonsOnlyTitle": "ਸਿਰਫ਼ ਸੁਚੇਤਨਾ ਬਟਨ", "demoCupertinoActionSheetTitle": "ਕਾਰਵਾਈ ਸ਼ੀਟ", "demoCupertinoActionSheetDescription": "ਕਾਰਵਾਈ ਸ਼ੀਟ ਸੁਚੇਤਨਾ ਦਾ ਇੱਕ ਖਾਸ ਸਟਾਈਲ ਹੈ ਜੋ ਵਰਤੋਂਕਾਰ ਨੂੰ ਵਰਤਮਾਨ ਸੰਦਰਭ ਨਾਲ ਸੰਬੰਧਿਤ ਦੋ ਜਾਂ ਵੱਧ ਚੋਣਾਂ ਦੇ ਸੈੱਟ ਪੇਸ਼ ਕਰਦੀ ਹੈ। ਕਾਰਵਾਈ ਸ਼ੀਟ ਵਿੱਚ ਸਿਰਲੇਖ, ਵਧੀਕ ਸੁਨੇਹਾ ਅਤੇ ਕਾਰਵਾਈਆਂ ਦੀ ਸੂਚੀ ਸ਼ਾਮਲ ਹੋ ਸਕਦੀ ਹੈ।", "demoColorsTitle": "ਰੰਗ", "demoColorsSubtitle": "ਸਾਰੇ ਪੂਰਵ ਨਿਰਧਾਰਤ ਰੰਗ", "demoColorsDescription": "ਰੰਗ ਅਤੇ ਰੰਗ ਨਮੂਨੇ ਦੇ ਸਥਾਈ ਮੁੱਲ ਜੋ ਮੈਟੀਰੀਅਲ ਡਿਜ਼ਾਈਨ ਦੇ ਰੰਗ ਪਟਲ ਨੂੰ ਪ੍ਰਦਰਸ਼ਿਤ ਕਰਦੇ ਹਨ।", "buttonTextEnabled": "ENABLED", "buttonTextDisabled": "DISABLED", "buttonTextCreate": "ਬਣਾਓ", "dialogSelectedOption": "ਤੁਸੀਂ ਚੁਣਿਆ: \"{value}\"", "dialogDiscardTitle": "ਕੀ ਡਰਾਫਟ ਰੱਦ ਕਰਨਾ ਹੈ?", "dialogLocationTitle": "ਕੀ Google ਦੀ ਟਿਕਾਣਾ ਸੇਵਾ ਨੂੰ ਵਰਤਣਾ ਹੈ?", "dialogLocationDescription": "Google ਨੂੰ ਟਿਕਾਣਾ ਨਿਰਧਾਰਿਤ ਕਰਨ ਵਿੱਚ ਐਪਾਂ ਦੀ ਮਦਦ ਕਰਨ ਦਿਓ। ਇਸਦਾ ਮਤਲਬ ਹੈ Google ਨੂੰ ਅਨਾਮ ਟਿਕਾਣਾ ਡਾਟਾ ਭੇਜਣਾ, ਭਾਵੇਂ ਕੋਈ ਵੀ ਐਪ ਨਾ ਚੱਲ ਰਹੀ ਹੋਵੇ।", "dialogCancel": "ਰੱਦ ਕਰੋ", "dialogDiscard": "ਰੱਦ ਕਰੋ", "dialogDisagree": "ਅਸਹਿਮਤ", "dialogAgree": "ਸਹਿਮਤ", "dialogSetBackup": "ਬੈਕਅੱਪ ਖਾਤਾ ਸੈੱਟ ਕਰੋ", "colorsBlueGrey": "ਨੀਲਾ ਸਲੇਟੀ", "dialogShow": "ਵਿੰਡੋ ਦਿਖਾਓ", "dialogFullscreenTitle": "ਪੂਰੀ-ਸਕ੍ਰੀਨ ਵਿੰਡੋ", "dialogFullscreenSave": "ਰੱਖਿਅਤ ਕਰੋ", "dialogFullscreenDescription": "ਪੂਰੀ-ਸਕ੍ਰੀਨ ਵਿੰਡੋ ਦਾ ਡੈਮੋ", "cupertinoButtonEnabled": "Enabled", "cupertinoButtonDisabled": "Disabled", "cupertinoButtonWithBackground": "ਬੈਕਗ੍ਰਾਊਂਡ ਨਾਲ", "cupertinoAlertCancel": "ਰੱਦ ਕਰੋ", "cupertinoAlertDiscard": "ਰੱਦ ਕਰੋ", "cupertinoAlertLocationTitle": "ਕੀ ਤੁਹਾਡੇ ਵੱਲੋਂ ਐਪ ਦੀ ਵਰਤੋਂ ਕਰਨ ਵੇਲੇ \"Maps\" ਨੂੰ ਤੁਹਾਡੇ ਟਿਕਾਣੇ ਤੱਕ ਪਹੁੰਚ ਦੇਣੀ ਹੈ?", "cupertinoAlertLocationDescription": "ਤੁਹਾਡਾ ਮੌਜੂਦਾ ਟਿਕਾਣਾ ਨਕਸ਼ੇ 'ਤੇ ਦਿਸੇਗਾ ਅਤੇ ਇਸਦੀ ਵਰਤੋਂ ਦਿਸ਼ਾਵਾਂ, ਨਜ਼ਦੀਕੀ ਖੋਜ ਨਤੀਜਿਆਂ ਅਤੇ ਯਾਤਰਾ ਦੇ ਅੰਦਾਜ਼ਨ ਸਮਿਆਂ ਲਈ ਕੀਤੀ ਜਾਵੇਗੀ।", "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_pa.arb/0
{ "file_path": "gallery/lib/l10n/intl_pa.arb", "repo_id": "gallery", "token_count": 45833 }
864
{ "loading": "లోడ్ అవుతోంది", "deselect": "ఎంపికను తొలగించండి", "select": "ఎంచుకోండి", "selectable": "ఎంచుకోగలిగేది (ఎక్కువసేపు నొక్కి, ఉంచాలి)", "selected": "ఎంచుకోబడింది", "demo": "డెమో", "bottomAppBar": "దిగువ యాప్ బార్", "notSelected": "ఎంచుకోబడలేదు", "demoCupertinoSearchTextFieldTitle": "సెర్చ్ టెక్స్ట్ ఫీల్డ్", "demoCupertinoPicker": "పిక్కర్", "demoCupertinoSearchTextFieldSubtitle": "iOS-స్టయిల్ సెర్చ్ టెక్స్ట్ ఫీల్డ్", "demoCupertinoSearchTextFieldDescription": "టెక్స్ట్‌ను ఎంటర్ చేయడం ద్వారా యూజర్‌ను సెర్చ్ చేయడానికి అనుమతించే సెర్చ్ టెక్స్ట్ ఫీల్డ్, అలాగే అది సూచనలను అందించగలదు ఇంకా ఫిల్టర్ చేయగలదు.", "demoCupertinoSearchTextFieldPlaceholder": "ఇదొక టెక్స్ట్‌ను ఎంటర్ చేయండి", "demoCupertinoScrollbarTitle": "స్క్రోల్ బార్", "demoCupertinoScrollbarSubtitle": "iOS-స్టయిల్ స్క్రోల్ బార్", "demoCupertinoScrollbarDescription": "అందించిన చైల్డ్ ర్యాప్ చేసిన స్క్రాల్ బార్", "demoTwoPaneItem": "ఐటెమ్ {value}", "demoTwoPaneList": "లిస్ట్", "demoTwoPaneFoldableLabel": "మడవగల", "demoTwoPaneSmallScreenLabel": "చిన్న స్క్రీన్", "demoTwoPaneSmallScreenDescription": "చిన్న స్క్రీన్ గల పరికరంలో TwoPane ఇలా ప్రవర్తిస్తుంది.", "demoTwoPaneTabletLabel": "టాబ్లెట్ / డెస్క్‌టాప్", "demoTwoPaneTabletDescription": "టాబ్లెట్ లేదా డెస్క్‌టాప్ వంటి చాలా పెద్ద స్క్రీన్‌లో TwoPane ఇలా ప్రవర్తిస్తుంది.", "demoTwoPaneTitle": "TwoPane", "demoTwoPaneSubtitle": "మడవగల, పెద్ద, చిన్న స్క్రీన్‌లలో ఫ్లెక్సిబుల్ లేఅవుట్‌లు", "splashSelectDemo": "డెమోను ఎంచుకోండి", "demoTwoPaneFoldableDescription": "మడవగల పరికరంలో TwoPane ఇలా ప్రవర్తిస్తుంది.", "demoTwoPaneDetails": "వివరాలు", "demoTwoPaneSelectItem": "ఒక ఐటెమ్‌ను ఎంచుకోండి", "demoTwoPaneItemDetails": "ఐటెమ్ {value} వివరాలు", "demoCupertinoContextMenuActionText": "సంబంధిత మెనూను చూడటానికి Flutter లోగోను ట్యాప్ చేసి ఉంచండి.", "demoCupertinoContextMenuDescription": "ఎలిమెంట్‌ను ఎక్కువ సేపు నొక్కి, ఉంచడం వలన iOS-స్టయిల్ ఫుల్ స్క్రీన్ సంబంధిత మెనూ కనిపిస్తుంది.", "demoAppBarTitle": "యాప్ బార్", "demoAppBarDescription": "యాప్ బార్, ప్రస్తుత స్క్రీన్‌కు సంబంధించిన కంటెంట్, చర్యలను అందిస్తుంది. ఇది బ్రాండింగ్, స్క్రీన్ టైటిల్స్, నావిగేషన్, చర్యల కోసం ఉపయోగించబడుతుంది", "demoDividerTitle": "డివైడర్", "demoDividerSubtitle": "డివైడర్ అనేది లిస్ట్‌లు, లేఅవుట్‌లలోని కంటెంట్‌ను సమూహపరిచే సన్నని గీత.", "demoDividerDescription": "కంటెంట్‌ను వేరు చేయడానికి లిస్ట్‌లు, డ్రాయర్‌లు, ఇతర చోట్ల డివైడర్‌లను ఉపయోగించవచ్చు.", "demoVerticalDividerTitle": "వర్టికల్ డివైడర్", "demoCupertinoContextMenuTitle": "సందర్భోచిత మెనూ", "demoCupertinoContextMenuSubtitle": "iOS-స్టయిల్ సంబంధిత మెనూ", "demoAppBarSubtitle": "ప్రస్తుత స్క్రీన్‌కు సంబంధించిన సమాచారం, చర్యలను ప్రదర్శిస్తుంది", "demoCupertinoContextMenuActionOne": "ఒకటవ చర్య", "demoCupertinoContextMenuActionTwo": "రెండవ చర్య", "demoDateRangePickerDescription": "మెటీరియల్ డిజైన్ తేదీ పరిధి పికర్‌ను కలిగి ఉండే డైలాగ్‌ను చూపుతుంది.", "demoDateRangePickerTitle": "తేదీల పరిధి పికర్", "demoNavigationDrawerUserName": "యూజర్ పేరు", "demoNavigationDrawerUserEmail": "[email protected]", "demoNavigationDrawerText": "డ్రాయర్‌ను చూడటానికి అంచు నుండి స్వైప్ చేయండి లేదా ఎగువన ఎడమవైపు ఉన్న చిహ్నాన్ని ట్యాప్ చేయండి", "demoNavigationRailTitle": "నావిగేషన్ రైలు", "demoNavigationRailSubtitle": "యాప్‌లో నావిగేషన్ రైలును ప్రదర్శిస్తోంది", "demoNavigationRailDescription": "తక్కువ సంఖ్యలో వీక్షణల మధ్య, సాధారణంగా మూడు, ఐదు వీక్షణల మధ్య నావిగేట్ చేయడానికి యాప్‌కు ఎడమ లేదా కుడి వైపున ప్రదర్శించబడే విశేష విడ్జెట్.", "demoNavigationRailFirst": "మొదటి", "demoNavigationDrawerTitle": "నావిగేషన్ డ్రాయర్", "demoNavigationRailThird": "మూడవ", "replyStarredLabel": "స్టార్ ఉన్నవి", "demoTextButtonDescription": "టెక్స్ట్ బటన్‌ను నొక్కితే, అది ఇంక్ చల్లినట్టుగా ప్రదర్శిస్తుంది, కానీ ఎత్తదు. టూల్‌బార్‌లలో, డైలాగ్‌లలో, 'ప్యాడింగ్‌తో ఇన్‌లైన్‌లో' టెక్స్ట్ బటన్‌లను ఉపయోగించండి", "demoElevatedButtonTitle": "ముందుకు ఉన్న బటన్", "demoElevatedButtonDescription": "ముందుకు ఉన్న బటన్‌లు ఎక్కువగా ఫ్లాట్ లేఅవుట్‌లకు భుజాన్ని జోడిస్తాయి. అవి బిజీగా లేదా విస్తృతంగా ఉన్న ప్రదేశాలలో విధులను నొక్కి చెబుతాయి.", "demoOutlinedButtonTitle": "రూపకల్పన ఉన్న బటన్", "demoOutlinedButtonDescription": "రూపకల్పన ఉన్న బటన్‌లు అపారదర్శకంగా మారతాయి, నొక్కినప్పుడు ప్రకాశవంతం అవుతాయి. ప్రత్యామ్నాయ, ద్వితీయ చర్యను సూచించడానికి అవి తరచుగా ముందుకు వచ్చిన బటన్‌లతో పెయిర్ చేయబడతాయి.", "demoContainerTransformDemoInstructions": "కార్డ్‌లు, లిస్ట్‌లు & FAB", "demoNavigationDrawerSubtitle": "యాప్‌బార్‌లో డ్రాయర్‌ను ప్రదర్శిస్తోంది", "replyDescription": "సమర్థత కలిగిన, ప్రత్యేకించిన ఈమెయిల్‌ యాప్", "demoNavigationDrawerDescription": "ఒక యాప్‌లో నావిగేషన్ లింక్‌లను చూపించడానికి స్క్రీన్ అంచు నుండి సమాంతరంగా స్లయిడ్‌ అయ్యే విశేష రూపకల్పన ప్యానెల్.", "replyDraftsLabel": "డ్రాఫ్ట్‌లు", "demoNavigationDrawerToPageOne": "ఒకటవ ఐటెమ్", "replyInboxLabel": "ఇన్‌బాక్స్", "demoSharedXAxisDemoInstructions": "తర్వాత, వెనుకకు బటన్‌లు", "replySpamLabel": "స్పామ్", "replyTrashLabel": "ట్రాష్", "replySentLabel": "పంపినవి", "demoNavigationRailSecond": "రెండవ", "demoNavigationDrawerToPageTwo": "రెండవ ఐటెమ్", "demoFadeScaleDemoInstructions": "మోడల్, FAB", "demoFadeThroughDemoInstructions": "దిగువ నావిగేషన్", "demoSharedZAxisDemoInstructions": "సెట్టింగ్‌ల చిహ్నం బటన్", "demoSharedYAxisDemoInstructions": "\"ఇటీవల ప్లే చేసినవి\" ఆధారంగా క్రమపద్ధతిలో అమర్చండి", "demoTextButtonTitle": "టెక్స్ట్ బటన్", "demoSharedZAxisBeefSandwichRecipeTitle": "బీఫ్ శాండ్విచ్", "demoSharedZAxisDessertRecipeDescription": "డెజర్ట్ తయారీ విధానం", "demoSharedYAxisAlbumTileSubtitle": "ఆర్టిస్ట్", "demoSharedYAxisAlbumTileTitle": "ఆల్బమ్", "demoSharedYAxisRecentSortTitle": "ఇటీవల ప్లే చేసినవి", "demoSharedYAxisAlphabeticalSortTitle": "A-Z", "demoSharedYAxisAlbumCount": "268 ఆల్బమ్‌లు", "demoSharedYAxisTitle": "షేర్‌డ్ y-ఆక్సిస్", "demoSharedXAxisCreateAccountButtonText": "ఖాతాను క్రియేట్ చేయండి", "demoFadeScaleAlertDialogDiscardButton": "విస్మరించు", "demoSharedXAxisSignInTextFieldLabel": "ఈమెయిల్‌ లేదా ఫోన్ నంబర్", "demoSharedXAxisSignInSubtitleText": "మీ ఖాతాతో సైన్ ఇన్ చేయండి", "demoSharedXAxisSignInWelcomeText": "హాయ్ David Park", "demoSharedXAxisIndividualCourseSubtitle": "విడివిడిగా చూపబడింది", "demoSharedXAxisBundledCourseSubtitle": "బండిల్ చేయబడిన", "demoFadeThroughAlbumsDestination": "ఆల్బమ్‌లు", "demoSharedXAxisDesignCourseTitle": "డిజైన్", "demoSharedXAxisIllustrationCourseTitle": "దృష్టాంత చిత్రం", "demoSharedXAxisBusinessCourseTitle": "బిజినెస్", "demoSharedXAxisArtsAndCraftsCourseTitle": "కళలు & నైపుణ్యాలు", "demoMotionPlaceholderSubtitle": "రెండవ టెక్స్ట్", "demoFadeScaleAlertDialogCancelButton": "రద్దు చేయండి", "demoFadeScaleAlertDialogHeader": "అలర్ట్ డైలాగ్", "demoFadeScaleHideFabButton": "FABని దాచు", "demoFadeScaleShowFabButton": "FABని చూపించు", "demoFadeScaleShowAlertDialogButton": "మోడల్‌ను చూపించు", "demoFadeScaleDescription": "స్క్రీన్ మధ్యలో మసకబారే డైలాగ్ వంటి, స్క్రీన్ యొక్క బౌండ్‌లలోకి ప్రవేశించే లేదా నిష్క్రమించే UI మూలకాల కోసం ఫేడ్ ఆకృతి ఉపయోగించబడుతుంది.", "demoFadeScaleTitle": "ఫేడ్", "demoFadeThroughTextPlaceholder": "123 ఫోటోలు", "demoFadeThroughSearchDestination": "వెతకండి", "demoFadeThroughPhotosDestination": "Photos", "demoSharedXAxisCoursePageSubtitle": "బండిల్ చేయబడిన కేటగిరీలు మీ ఫీడ్‌లో గ్రూప్‌లుగా కనిపిస్తాయి. మీరు దీన్ని తర్వాత ఎప్పుడైనా మార్చవచ్చు.", "demoFadeThroughDescription": "ఒకదానితో ఒకటి బలమైన సంబంధం లేని UI మూలకాల మధ్య పరివర్తనల కోసం ఫేడ్ త్రూ ఆకృతి ఉపయోగించబడుతుంది.", "demoFadeThroughTitle": "ఫేడ్ త్రూ", "demoSharedZAxisHelpSettingLabel": "సహాయం", "demoMotionSubtitle": "ముందే నిర్వచించిన పరివర్తన ఆకృతులు", "demoSharedZAxisNotificationSettingLabel": "నోటిఫికేషన్‌లు", "demoSharedZAxisProfileSettingLabel": "ప్రొఫైల్", "demoSharedZAxisSavedRecipesListTitle": "సేవ్ చేసిన వంటకాల తయారీ విధానాలు", "demoSharedZAxisBeefSandwichRecipeDescription": "బీఫ్ శాండ్విచ్ తయారీ విధానం", "demoSharedZAxisCrabPlateRecipeDescription": "పీత ప్లేట్ తయారీ విధానం", "demoSharedXAxisCoursePageTitle": "మీ కోర్సులను క్రమబద్ధీకరించండి", "demoSharedZAxisCrabPlateRecipeTitle": "పీత", "demoSharedZAxisShrimpPlateRecipeDescription": "ష్రింప్ ప్లేట్ తయారీ విధానం", "demoSharedZAxisShrimpPlateRecipeTitle": "ష్రింప్", "demoContainerTransformTypeFadeThrough": "ఫేడ్ త్రూ", "demoSharedZAxisDessertRecipeTitle": "డెజర్ట్", "demoSharedZAxisSandwichRecipeDescription": "శాండ్విచ్ తయారీ విధానం", "demoSharedZAxisSandwichRecipeTitle": "శాండ్విచ్", "demoSharedZAxisBurgerRecipeDescription": "బర్గర్ తయారీ విధానం", "demoSharedZAxisBurgerRecipeTitle": "బర్గర్", "demoSharedZAxisSettingsPageTitle": "సెట్టింగ్‌లు", "demoSharedZAxisTitle": "షేర్‌డ్ z-ఆక్సిస్", "demoSharedZAxisPrivacySettingLabel": "గోప్యత", "demoMotionTitle": "చలనం", "demoContainerTransformTitle": "కంటైనర్ పరివర్తన", "demoContainerTransformDescription": "కంటైనర్ కలిగి ఉన్న UI మూలకాల మధ్య పరివర్తనలు చేయడానికి కంటైనర్ పరివర్తన ఆకృతి రూపొందించబడింది. ఈ ఆకృతి రెండు UI మూలకాల మధ్య కనిపించే కనెక్షన్‌ను క్రియేట్ చేస్తుంది", "demoContainerTransformModalBottomSheetTitle": "ఫేడ్ మోడ్", "demoContainerTransformTypeFade": "ఫేడ్", "demoSharedYAxisAlbumTileDurationUnit": "నిమిషం", "demoMotionPlaceholderTitle": "శీర్షిక", "demoSharedXAxisForgotEmailButtonText": "ఈమెయిల్‌ను మర్చిపోయారా?", "demoMotionSmallPlaceholderSubtitle": "రెండవ", "demoMotionDetailsPageTitle": "వివరాల పేజీ", "demoMotionListTileTitle": "లిస్ట్ ఐటెమ్", "demoSharedAxisDescription": "ప్రాదేశిక లేదా నావిగేషనల్ సంబంధాలను కలిగిన UI మూలకాల మధ్య పరివర్తనల కోసం షేర్‌డ్ ఆక్సిస్ ఆకృతి ఉపయోగించబడుతుంది. ఈ ఆకృతి, మూలకాల మధ్య సంబంధాన్ని బలోపేతం చేయడానికి x, y, లేదా z ఆక్సిస్‌పై షేర్‌డ్ పరివర్తనను ఉపయోగిస్తుంది.", "demoSharedXAxisTitle": "షేర్‌డ్ x-ఆక్సిస్", "demoSharedXAxisBackButtonText": "వెనుకకు", "demoSharedXAxisNextButtonText": "తదుపరి", "demoSharedXAxisCulinaryCourseTitle": "వంట కోర్స్", "githubRepo": "{repoName} GitHub స్టోరేజ్‌ స్థానం", "fortnightlyMenuUS": "US", "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": "సోడియం (మి.గ్రా)", "demoTimePickerTitle": "సమయం పికర్", "demo2dTransformationsResetTooltip": "పరివర్తనాలను రీసెట్ చేయండి", "dataTableColumnFat": "ఫ్యాట్ (గ్రా)", "dataTableColumnCalories": "కేలరీలు", "dataTableColumnDessert": "డెజర్ట్ (1 సారి)", "cardsDemoTravelDestinationLocation1": "తంజావూర్, తమిళనాడు", "demoTimePickerDescription": "విశేష రూపకల్పన సమయం పికర్‌ను కలిగి ఉండే డైలాగ్‌ను చూపుతుంది.", "demoPickersShowPicker": "పికర్‌ను చూపించు", "demoTabsScrollingTitle": "స్క్రోల్ చేస్తోంది", "demoTabsNonScrollingTitle": "స్క్రోల్ చేయడం లేదు", "craneHours": "{hours,plural,=1{1గం}other{{hours}గం}}", "craneMinutes": "{minutes,plural,=1{1నిమి}other{{minutes}నిమి}}", "craneFlightDuration": "{hoursShortForm} {minutesShortForm}", "dataTableHeader": "పోషకాహారం", "demoDatePickerTitle": "తేదీ పికర్", "demoPickersSubtitle": "తేదీ, సమయం ఎంపిక", "demoPickersTitle": "పికర్‌లు", "demo2dTransformationsEditTooltip": "టైల్‌లను ఎడిట్ చేయండి", "demoDataTableDescription": "డేటా పట్టికలు సమాచారాన్ని అడ్డు వరుసలు మరియు నిలువు వరుసలు కలిగి ఉండే గ్రిడ్ లాంటి ఫార్మాట్‌లో ప్రదర్శిస్తాయి. ఇవి సమాచారాన్ని సులభంగా స్కాన్ చేయగలిగేలా నిర్వహిస్తాయి, కనుక యూజర్‌లు ఆకృతులు, గణాంకాలను చూడగలరు.", "demo2dTransformationsDescription": "టైల్‌లను ఎడిట్ చేయడానికి ట్యాప్ చేయండి, సీన్ చుట్టూ తిరగడానికి సంజ్ఞలను ఉపయోగించండి. ప్యాన్ చేయడానికి లాగి, జూమ్ చేయడానికి వేళ్లతో స్క్రీన్‌ను నియంత్రించి, రెండు వేళ్లతో తిప్పండి. ప్రారంభ ఓరియంటేషన్‌కు తిరిగివెళ్లడానికి రీసెట్ బటన్‌ను నొక్కండి.", "demo2dTransformationsSubtitle": "ప్యాన్ చేయండి, జూమ్ చేయండి, తిప్పండి", "demo2dTransformationsTitle": "2D పరివర్తనాలు", "demoCupertinoTextFieldPIN": "పిన్", "demoCupertinoTextFieldDescription": "యూజర్ హార్డ్‌వేర్ కీబోర్డ్‌తో లేదా ఆన్‌స్క్రీన్ కీబోర్డ్‌తో వచనాన్ని ఎంటర్ చేయగలిగే వచన ఫీల్డ్.", "demoCupertinoTextFieldSubtitle": "iOS-శైలి వచన ఫీల్డ్‌లు", "demoCupertinoTextFieldTitle": "వచన ఫీల్డ్‌లు", "demoDatePickerDescription": "విశేష రూపకల్పన తేదీ పికర్‌ను కలిగి ఉండే డైలాగ్‌ను చూపుతుంది.", "demoCupertinoPickerTime": "సమయం", "demoCupertinoPickerDate": "తేదీ", "demoCupertinoPickerTimer": "టైమర్", "demoCupertinoPickerDescription": "స్ట్రింగ్‌లు, తేదీలు, సమయాలు లేదా తేదీ అలాగే సమయం రెండింటినీ ఎంచుకోవడానికి ఉపయోగించబడే iOS-స్టయిల్ పికర్ విడ్జెట్.", "demoCupertinoPickerSubtitle": "iOS-స్టయిల్ పికర్‌లు", "demoCupertinoPickerTitle": "పికర్‌లు", "dataTableRowWithHoney": "తేనెతో {value}", "cardsDemoTravelDestinationCity2": "చెట్టినాడ్", "bannerDemoResetText": "బ్యానర్‌ను రీసెట్ చేయండి", "bannerDemoMultipleText": "అనేక చర్యలు", "bannerDemoLeadingText": "ఆధిక్యత చిహ్నం", "dismiss": "తీసివేయండి", "cardsDemoTappable": "నొక్కగలిగేది", "cardsDemoSelectable": "ఎంచుకోగలిగేది (ఎక్కువసేపు నొక్కి ఉంచాలి)", "cardsDemoExplore": "అన్వేషించు", "cardsDemoExploreSemantics": "'{destinationName}'ను అన్వేషించు", "cardsDemoShareSemantics": "'{destinationName}'ను షేర్ చేయి", "cardsDemoTravelDestinationTitle1": "తమిళనాడులో చూడదగిన 10 ప్రధాన నగరాలు", "cardsDemoTravelDestinationDescription1": "సంఖ్య 10", "cardsDemoTravelDestinationCity1": "తంజావూర్", "dataTableColumnProtein": "ప్రొటీన్ (గ్రా)", "cardsDemoTravelDestinationTitle2": "దక్షిణ భారత దేశంలోని శిల్ప కళాకారులు", "cardsDemoTravelDestinationDescription2": "సిల్క్ స్పిన్నర్‌లు", "bannerDemoText": "మీకు చెందిన మరొక పరికరంలో మీ పాస్‌వర్డ్ అప్‌డేట్ చేయబడింది. దయచేసి మళ్లీ సైన్ ఇన్ చేయండి.", "cardsDemoTravelDestinationLocation2": "శివగంగ, తమిళనాడు", "cardsDemoTravelDestinationTitle3": "బృహదీశ్వర ఆలయం", "cardsDemoTravelDestinationDescription3": "గుళ్లు", "demoBannerTitle": "బ్యానర్", "demoBannerSubtitle": "లిస్ట్‌లోని బ్యానర్‌ను ప్రదర్శిస్తోంది", "demoBannerDescription": "బ్యానర్‌లో ముఖ్యమైన, సంక్షిప్త మెసేజ్‌ ప్రదర్శితమవుతుంది, అలాగే యూజర్‌లు దృష్టి సారించగల చర్యలను అందిస్తుంది (లేదా బ్యానర్‌ను తీసివేస్తుంది). దీనిని తీసివేయాలంటే, యూజర్ చర్య అవసరం అవుతుంది.", "demoCardTitle": "కార్డ్‌లు", "demoCardSubtitle": "గుండ్రటి అంచులు గల బేస్‌లైన్ కార్డ్‌లు", "demoCardDescription": "కార్డ్ అనేది కొంత సంబంధిత సమాచారాన్ని సూచించడానికి ఉపయోగించే ఒక మెటీరియల్ షీట్, ఉదాహరణకు ఆల్బమ్, భౌగోళిక సంబంధిత లొకేషన్, భోజనం, కాంటాక్ట్ వివరాలు మొదలైనవి.", "demoDataTableTitle": "డేటా పట్టికలు", "demoDataTableSubtitle": "సమాచారం గల అడ్డు వరుసలు మరియు నిలువు వరుసలు", "dataTableColumnCarbs": "కార్బొ. (గ్రా)", "placeTanjore": "తంజావూర్", "demoGridListsTitle": "గ్రిడ్ లిస్ట్‌లు", "placeFlowerMarket": "పూల మార్కెట్", "placeBronzeWorks": "కాంస్య తయారీ ప్రదేశం", "placeMarket": "మార్కెట్", "placeThanjavurTemple": "తంజావూర్ గుడి", "placeSaltFarm": "సాల్ట్ ఫామ్", "placeScooters": "స్కూటర్‌లు", "placeSilkMaker": "సిల్క్ తయరీదారు", "placeLunchPrep": "భోజనం తయారీ", "placeBeach": "బీచ్", "placeFisherman": "మత్స్యకారుడు", "demoMenuSelected": "ఎంపిక చేసినది: {value}", "demoMenuRemove": "తీసివేయండి", "demoMenuGetLink": "లింక్‌ను పొందండి", "demoMenuShare": "షేర్ చేయి", "demoBottomAppBarSubtitle": "నావిగేషన్‌ను, చర్యలను దిగువున చూపిస్తుంది", "demoMenuAnItemWithASectionedMenu": "విభాగాల మెనూ కలిగి ఉన్న అంశం", "demoMenuADisabledMenuItem": "డిజేబుల్ చేసిన మెనూ అంశం", "demoLinearProgressIndicatorTitle": "లీనియర్ ప్రోగ్రెస్ సూచీ", "demoMenuContextMenuItemOne": "మొదటి సందర్భోచిత మెనూ అంశం", "demoMenuAnItemWithASimpleMenu": "సరళమైన మెనూ కలిగి ఉన్న అంశం", "demoCustomSlidersTitle": "అనుకూల స్లయిడర్‌లు", "demoMenuAnItemWithAChecklistMenu": "చెక్‌లిస్ట్‌ మెనూ కలిగి ఉన్న అంశం", "demoCupertinoActivityIndicatorTitle": "యాక్టివిటీ సూచీ", "demoCupertinoActivityIndicatorSubtitle": "iOS-శైలి యాక్టివిటీ సూచీలు", "demoCupertinoActivityIndicatorDescription": "సవ్యదిశలో తిరిగే ఒక iOS-శైలి యాక్టివిటీ సూచీ.", "demoCupertinoNavigationBarTitle": "నావిగేషన్ బార్‌", "demoCupertinoNavigationBarSubtitle": "iOS-శైలి నావిగేషన్ బార్", "demoCupertinoNavigationBarDescription": "iOS-శైలి నావిగేషన్ బార్. నావిగేషన్ బార్ అనేది ఒక సరళమైన టూల్‌బార్, ఇందులో ఒక పేజీ శీర్షిక మాత్రమే నడిమధ్యలో ఉంటుంది.", "demoCupertinoPullToRefreshTitle": "రిఫ్రెష్ చేయడానికి లాగండి", "demoCupertinoPullToRefreshSubtitle": "iOS-శైలిలో 'రిఫ్రెష్ చేయడానికి లాగే నియంత్రణ'", "demoCupertinoPullToRefreshDescription": "iOS-శైలిలో 'కంటెంట్ రిఫ్రెష్ చేయడానికి లాగే నియంత్రణ'.", "demoProgressIndicatorTitle": "ప్రోగ్రెస్ సూచీలు", "demoProgressIndicatorSubtitle": "లీనియర్, సర్క్యులర్, అనిర్దిష్టం", "demoCircularProgressIndicatorTitle": "సర్క్యులర్ ప్రోగ్రెస్ సూచీ", "demoCircularProgressIndicatorDescription": "మెటీరియల్ డిజైన్ సర్క్యులర్ ప్రోగ్రెస్ సూచీ అనేది యాప్ బిజీగా ఉందని సూచించడానికి తిరుగుతుంది.", "demoMenuFour": "నాలుగు", "demoLinearProgressIndicatorDescription": "మెటీరియల్ డిజైన్ లీనియర్ ప్రోగ్రెస్ సూచీని పురోగతి బార్ అని కూడా అంటారు.", "demoTooltipTitle": "ఉపకరణ చిట్కాలు", "demoTooltipSubtitle": "ఎక్కువసేపు నొక్కితే లేదా దాని మీద కర్సర్ ఉంచితే సంక్షిప్త మెసేజ్‌ ప్రదర్శించబడుతుంది", "demoTooltipDescription": "ఉపకరణ చిట్కాలు అనేవి ఒక బటన్ లేదా ఇతర యూజర్ ఇంటర్‌ఫేస్ చర్యకు సంబంధించిన ఫంక్షన్‌ను వివరించడంలో సహాయపడగలిగే వచన లేబుళ్లను అందిస్తాయి. ఉపకరణ చిట్కాలు అనేవి యూజర్‌లు ఒక అంశంపై కర్సర్ ఉంచినప్పుడు, దృష్టి కేంద్రీకరించినప్పుడు లేదా ఎక్కువసేపు నొక్కినప్పుడు సమాచార వచనాన్ని ప్రదర్శిస్తాయి.", "demoTooltipInstructions": "ఉపకరణ చిట్కాను ప్రదర్శించడానికి ఎక్కువసేపు నొక్కి ఉంచండి లేదా కర్సర్ ఉంచండి.", "placeChennai": "చెన్నై", "demoMenuChecked": "ఎంచుకున్నది: {value}", "placeChettinad": "చెట్టినాడ్", "demoMenuPreview": "ప్రివ్యూ", "demoBottomAppBarTitle": "దిగువ యాప్ బార్", "demoBottomAppBarDescription": "దిగువున ఉన్న నావిగేషన్ డ్రాయర్‌కు, అలాగే తేలియాడే యాక్షన్ బటన్‌తో కలిపి గరిష్ఠంగా నాలుగు చర్యలకు దిగువున ఉన్న యాప్ బార్‌లు యాక్సెస్‌ను ఇస్తాయి.", "bottomAppBarNotch": "నాచ్", "bottomAppBarPosition": "తేలియాడే యాక్షన్ బటన్ యొక్క స్థానం", "bottomAppBarPositionDockedEnd": "డాక్ చేయబడింది - చివర", "bottomAppBarPositionDockedCenter": "డాక్ చేయబడింది - మధ్యలో", "bottomAppBarPositionFloatingEnd": "తేలియాడుతోంది - చివర", "bottomAppBarPositionFloatingCenter": "తేలియాడుతోంది - మధ్యలో", "demoSlidersEditableNumericalValue": "ఎడిట్ చేయదగిన సంఖ్యాత్మక విలువ", "demoGridListsSubtitle": "అడ్డు వరుసలు మరియు నిలువు వరుసల లేఅవుట్", "demoGridListsDescription": "చిత్రాల లాగా, ఒకే రకంగా ఉండే డేటాను ప్రదర్శించడానికి గ్రిడ్ లిస్ట్‌లు అత్యుత్తమంగా సహాయపడతాయి. గ్రిడ్ లిస్ట్‌లోని ప్రతి అంశం ఒక టైల్‌గా పిలువబడుతుంది.", "demoGridListsImageOnlyTitle": "చిత్రం మాత్రమే", "demoGridListsHeaderTitle": "హెడర్‌తో", "demoGridListsFooterTitle": "ఫుటర్‌తో", "demoSlidersTitle": "స్లయిడర్‌లు", "demoSlidersSubtitle": "స్వైప్ చేయడం ద్వారా విలువను ఎంచుకోవడానికి విడ్జెట్‌లు", "demoSlidersDescription": "బార్ అంతటా విలువల శ్రేణిని స్లయిడర్‌లు సూచిస్తాయి. యూజర్‌లు వాటి నుండి ఒక విలువను మాత్రమే ఎంచుకోగలరు. వాల్యూమ్, కాంతి లేదా చిత్రానికి ఫిల్టర్‌లను వర్తింపజేయడం వంటి సెట్టింగ్‌లను సర్దుబాటు చేయడానికి అవి సరైన సూచికలు.", "demoRangeSlidersTitle": "శ్రేణి స్లయిడర్‌లు", "demoRangeSlidersDescription": "బార్ అంతటా విలువల శ్రేణిని స్లయిడర్‌లు సూచిస్తాయి. స్లయిడర్‌లు, విలువల శ్రేణిని సూచించే చిహ్నాలను బార్‌కు ఇరువైపులా కలిగి ఉంటాయి. వాల్యూమ్, కాంతి లేదా చిత్రానికి ఫిల్టర్‌లను వర్తింపజేయడం వంటి సెట్టింగ్‌లను సర్దుబాటు చేయడానికి అవి సరైన సూచికలు.", "demoMenuAnItemWithAContextMenuButton": "సందర్భోచిత మెనూ కలిగి ఉన్న అంశం", "demoCustomSlidersDescription": "బార్ అంతటా విలువల శ్రేణిని స్లయిడర్‌లు సూచిస్తాయి. యూజర్‌లు వాటి నుండి ఒక విలువను లేదా విలువల శ్రేణిని ఎంచుకోగలరు. స్లయిడర్‌ల థీమ్‌ను మార్చవచ్చు, అనుకూలంగా మార్చవచ్చు.", "demoSlidersContinuousWithEditableNumericalValue": "ఎడిట్ చేయదగిన స్థిరమైన సంఖ్యాత్మక విలువ", "demoSlidersDiscrete": "భిన్నమైన విలువలు", "demoSlidersDiscreteSliderWithCustomTheme": "అనుకూల థీమ్‌ను కలిగిన భిన్నమైన విలువల స్లయిడర్", "demoSlidersContinuousRangeSliderWithCustomTheme": "అనుకూల థీమ్‌ను కలిగిన స్థిరమైన శ్రేణి స్లయిడర్", "demoSlidersContinuous": "స్థిరమైన", "placePondicherry": "పుదుచ్చేరి", "demoMenuTitle": "మెనూ", "demoContextMenuTitle": "సందర్భోచిత మెనూ", "demoSectionedMenuTitle": "విభాగాల మెనూ", "demoSimpleMenuTitle": "సరళమైన మెనూ", "demoChecklistMenuTitle": "చెక్‌లిస్ట్‌ మెనూ", "demoMenuSubtitle": "మెనూ బటన్‌లు, సరళమైన మెనూలు", "demoMenuDescription": "మెనూ అనేది, ఒక తాత్కాలిక ఉపరితలంపై ఎంపికల లిస్ట్‌ను ప్రదర్శిస్తుంది. యూజర్‌లు ఒక బటన్, చర్య లేదా ఇతర నియంత్రణతో ఇంటరాక్ట్ అయినప్పుడు అవి కనిపిస్తాయి.", "demoMenuItemValueOne": "మొదటి మెనూ అంశం", "demoMenuItemValueTwo": "రెండవ మెనూ అంశం", "demoMenuItemValueThree": "మూడవ మెనూ అంశం", "demoMenuOne": "ఒకటి", "demoMenuTwo": "రెండు", "demoMenuThree": "మూడు", "demoMenuContextMenuItemThree": "మూడవ సందర్భోచిత మెనూ అంశం", "demoCupertinoSwitchSubtitle": "iOS-శైలి స్విచ్", "demoSnackbarsText": "ఇది ఒక స్నాక్‌బార్.", "demoCupertinoSliderSubtitle": "iOS-శైలి స్లయిడర్", "demoCupertinoSliderDescription": "స్లయిడర్‌ను విలువల అవిచ్ఛిన్న లేదా విలక్షణ సెట్ నుండి ఏదొక దానిని ఎంచుకోవడానికి ఉపయోగించవచ్చు.", "demoCupertinoSliderContinuous": "అవిచ్ఛిన్న: {value}", "demoCupertinoSliderDiscrete": "విలక్షణ: {value}", "demoSnackbarsAction": "మీరు స్నాక్‌బార్ చర్యను నొక్కారు.", "backToGallery": "గ్యాలరీకి తిరిగి వెళ్లు", "demoCupertinoTabBarTitle": "ట్యాబ్ బార్", "demoCupertinoSwitchDescription": "స్విచ్ ఒక సెట్టింగ్ యొక్క ఆన్/ఆఫ్ స్థితిని స్విచ్ చేయడానికి ఉపయోగించబడుతుంది.", "demoSnackbarsActionButtonLabel": "చర్య", "cupertinoTabBarProfileTab": "ప్రొఫైల్", "demoSnackbarsButtonLabel": "స్నాక్‌బార్‌ను చూపించు", "demoSnackbarsDescription": "యాప్ చేస్తున్న లేదా చేయబోయే ప్రాసెస్ గురించి స్నాక్‌బార్‌లు యూజర్‌కు తెలియచేస్తాయి. అవి తాత్కాలికంగా, స్క్రీన్ దిగువ వైపున కనిపిస్తాయి. అవి యూజర్ అనుభవానికి అంతరాయం కలిగించకూడదు, అవి విస్మరించబడటానికి యూజర్ ఇన్‌పుట్ అవసరం లేదు.", "demoSnackbarsSubtitle": "స్నాక్‌బార్‌లు స్క్రీన్ దిగువన మెసేజ్‌లను చూపిస్తాయి", "demoSnackbarsTitle": "స్నాక్‌బార్‌లు", "demoCupertinoSliderTitle": "స్లయిడర్", "cupertinoTabBarChatTab": "Chat", "cupertinoTabBarHomeTab": "హోమ్", "demoCupertinoTabBarDescription": "iOS-శైలి బటన్ నావిగేషన్ ట్యాబ్ బార్. ఒక ట్యాబ్‌ను, డిఫాల్ట్‌గా మొదటి ట్యాబ్‌ను యాక్టివ్‌గా ఉంచి, అనేక ట్యాబ్‌లను ప్రదర్శిస్తుంది.", "demoCupertinoTabBarSubtitle": "iOS-శైలి బటన్ ట్యాబ్ బార్", "demoOptionsFeatureTitle": "ఎంపికలను చూడండి", "demoOptionsFeatureDescription": "ఈ డెమో కోసం అందుబాటులో ఉన్న ఎంపికలను చూడటానికి ఇక్కడ నొక్కండి.", "demoCodeViewerCopyAll": "మొత్తం వచనాన్ని కాపీ చేయి", "shrineScreenReaderRemoveProductButton": "{product}ను తీసివేయండి", "shrineScreenReaderProductAddToCart": "కార్ట్‌కు జోడించండి", "shrineScreenReaderCart": "{quantity,plural,=0{షాపింగ్ కార్ట్, అంశాలు లేవు}=1{షాపింగ్ కార్ట్, 1 అంశం}other{షాపింగ్ కార్ట్, {quantity} అంశాలు}}", "demoCodeViewerFailedToCopyToClipboardMessage": "క్లిప్‌బోర్డ్‌కు కాపీ చేయడం విఫలమైంది: {error}", "demoCodeViewerCopiedToClipboardMessage": "క్లిప్‌బోర్డ్‌కు కాపీ అయింది.", "craneSleep8SemanticLabel": "బీచ్‌కి పైన కొండ శిఖరం మీద 'మాయన్' శిథిలాలు", "craneSleep4SemanticLabel": "పర్వతాల ముందు సరస్సు పక్కన ఉన్న హోటల్", "craneSleep2SemanticLabel": "మాచు పిచ్చు, సిటాడెల్", "craneSleep1SemanticLabel": "సతత హరిత వృక్షాలు, మంచుతో కూడిన ల్యాండ్‌స్కేప్‌లో చాలెట్", "craneSleep0SemanticLabel": "ఓవర్‌వాటర్ బంగ్లాలు", "craneFly13SemanticLabel": "తాటి చెట్లు, సముద్రం పక్కన ఈత కొలను", "craneFly12SemanticLabel": "తాటి చెట్ల పక్కన ఈత కొలను", "craneFly11SemanticLabel": "సముద్రం వద్ద ఇటుకలతో నిర్మించబడిన లైట్ హౌస్", "craneFly10SemanticLabel": "సూర్యాస్తమయం సమయంలో అల్-అజార్ మసీదు టవర్‌లు", "craneFly9SemanticLabel": "పురాతన నీలి రంగు కారుపై వాలి నిలుచున్న మనిషి", "craneFly8SemanticLabel": "సూపర్‌ట్రీ తోట", "craneEat9SemanticLabel": "పేస్ట్రీలతో కేఫ్ కౌంటర్", "craneEat2SemanticLabel": "బర్గర్", "craneFly5SemanticLabel": "పర్వతాల ముందు సరస్సు పక్కన ఉన్న హోటల్", "demoSelectionControlsSubtitle": "చెక్‌బాక్స్‌లు, రేడియో బటన్‌లు ఇంకా స్విచ్‌లు", "craneEat10SemanticLabel": "పెద్ద పాస్ట్రామి శాండ్‌విచ్‌ను పట్టుకున్న మహిళ", "craneFly4SemanticLabel": "ఓవర్‌వాటర్ బంగ్లాలు", "craneEat7SemanticLabel": "బేకరీ ప్రవేశ ద్వారం", "craneEat6SemanticLabel": "రొయ్యల వంటకం", "craneEat5SemanticLabel": "కళాత్మకంగా ఉన్న రెస్టారెంట్‌లో కూర్చునే ప్రదేశం", "craneEat4SemanticLabel": "చాక్లెట్ డెసర్ట్", "craneEat3SemanticLabel": "కొరియన్ టాకో", "craneFly3SemanticLabel": "మాచు పిచ్చు, సిటాడెల్", "craneEat1SemanticLabel": "డైనర్‌లో ఉండే లాటి స్టూల్‌లతో ఖాళీ బార్", "craneEat0SemanticLabel": "చెక్క పొయ్యిలో పిజ్జా", "craneSleep11SemanticLabel": "తైపీ 101 ఆకాశహర్మ్యం", "craneSleep10SemanticLabel": "సూర్యాస్తమయం సమయంలో అల్-అజార్ మసీదు టవర్‌లు", "craneSleep9SemanticLabel": "సముద్రం వద్ద ఇటుకలతో నిర్మించబడిన లైట్ హౌస్", "craneEat8SemanticLabel": "ప్లేట్‌లో క్రాఫిష్", "craneSleep7SemanticLabel": "రిబీరియా స్క్వేర్ వద్ద రంగురంగుల అపార్టుమెంట్‌లు", "craneSleep6SemanticLabel": "తాటి చెట్ల పక్కన ఈత కొలను", "craneSleep5SemanticLabel": "మైదానంలో గుడారం", "settingsButtonCloseLabel": "సెట్టింగ్‌లను మూసివేయి", "demoSelectionControlsCheckboxDescription": "చెక్‌బాక్స్‌లు అనేవి ఒక సెట్ నుండి బహుళ ఎంపికలను ఎంచుకోవడానికి యూజర్‌ను అనుమతిస్తాయి. ఒక సాధారణ చెక్‌బాక్స్ విలువ ఒప్పు లేదా తప్పు కావొచ్చు. మూడు స్థితుల చెక్‌బాక్స్‌లో ఒక విలువ 'శూన్యం' కూడా కావచ్చు.", "settingsButtonLabel": "సెట్టింగ్‌లు", "demoListsTitle": "లిస్ట్‌లు", "demoListsSubtitle": "స్క్రోల్ చేయదగిన లిస్ట్‌ లేఅవుట్‌లు", "demoListsDescription": "ఒక స్థిరమైన వరుస సాధారణంగా కొంత వచనంతో పాటు ప్రారంభంలో లేదా చివరిలో చిహ్నాన్ని కలిగి ఉంటుంది.", "demoOneLineListsTitle": "ఒక పంక్తి", "demoTwoLineListsTitle": "రెండు పంక్తులు", "demoListsSecondary": "ద్వితీయ వచనం", "demoSelectionControlsTitle": "ఎంపిక నియంత్రణలు", "craneFly7SemanticLabel": "మౌంట్ రష్‌మోర్", "demoSelectionControlsCheckboxTitle": "చెక్‌బాక్స్", "craneSleep3SemanticLabel": "పురాతన నీలి రంగు కారుపై వాలి నిలుచున్న మనిషి", "demoSelectionControlsRadioTitle": "రేడియో", "demoSelectionControlsRadioDescription": "రేడియో బటన్‌లు అనేవి ఒక సెట్ నుండి ఒక ఎంపికను ఎంచుకోవడానికి యూజర్‌ను అనుమతిస్తాయి. అందుబాటులో ఉన్న అన్ని ఎంపికలను, యూజర్, పక్కపక్కనే చూడాలని మీరు అనుకుంటే ప్రత్యేక ఎంపిక కోసం రేడియో బటన్‌లను ఉపయోగించండి.", "demoSelectionControlsSwitchTitle": "స్విచ్", "demoSelectionControlsSwitchDescription": "సెట్టింగ్‌లలో ఒకే ఆప్షన్ ఉండే స్థితిని ఆన్/ఆఫ్ స్విచ్‌లు అనేవి టోగుల్ చేసి ఉంచుతాయి. స్విచ్ నియంత్రించే ఎంపికనూ, అలాగే అది ఏ స్థితిలో ఉందనే అంశాన్ని, దానికి సంబంధించిన ఇన్‌లైన్ లేబుల్‌లో స్పష్టంగా చూపించాలి.", "craneFly0SemanticLabel": "సతత హరిత వృక్షాలు, మంచుతో కూడిన ల్యాండ్‌స్కేప్‌లో చాలెట్", "craneFly1SemanticLabel": "మైదానంలో గుడారం", "craneFly2SemanticLabel": "మంచు పర్వతం ముందు ప్రార్థనా పతాకాలు", "craneFly6SemanticLabel": "ఆకాశంలో నుంచి కనిపించే 'పలాసియో డి బెల్లాస్ ఆర్టెస్'", "rallySeeAllAccounts": "అన్ని ఖాతాలనూ చూడండి", "rallyBillAmount": "{billName} అనే బిల్లుకు గాను, {amount} పేమెంట్ చేయడానికి ఆఖరి తేదీ {date}.", "shrineTooltipCloseCart": "కార్ట్‌ను మూసివేయండి", "shrineTooltipCloseMenu": "మెనూని మూసివేయండి", "shrineTooltipOpenMenu": "మెనూని తెరవండి", "shrineTooltipSettings": "సెట్టింగ్‌లు", "shrineTooltipSearch": "Search", "demoTabsDescription": "విభిన్న స్క్రీన్‌లు, డేటా సెట్‌లు మరియు ఇతర పరస్పర చర్యలలో ట్యాబ్‌లు అనేవి కంటెంట్‌ను నిర్వహిస్తాయి.", "demoTabsSubtitle": "స్వతంత్రంగా స్క్రోల్ చేయదగిన వీక్షణలతో ట్యాబ్‌లు", "demoTabsTitle": "ట్యాబ్‌లు", "rallyBudgetAmount": "మొత్తంగా {amountTotal} కలిగిన {budgetName} బడ్జెట్‌లో {amountUsed} ఉపయోగించబడింది, అందు వల్ల {amountLeft} మిగిలి ఉంది", "shrineTooltipRemoveItem": "అంశాన్ని తీసివేయండి", "rallyAccountAmount": "{accountNumber} నంబర్ కలిగిన {accountName} అకౌంట్‌లో {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": "FLY", "craneSleep": "స్లీప్", "craneEat": "EAT", "craneFlySubhead": "గమ్యస్థానం ఆధారంగా విమానాలను అన్వేషించండి", "craneSleepSubhead": "గమ్యస్థానం ఆధారంగా ప్రాపర్టీలను అన్వేషించండి", "craneEatSubhead": "గమ్యస్థానం ఆధారంగా రెస్టారెంట్‌లను అన్వేషించండి", "craneFlyStops": "{numberOfStops,plural,=0{నాన్‌స్టాప్}=1{1 స్టాప్}other{{numberOfStops} స్టాప్‌లు}}", "craneSleepProperties": "{totalProperties,plural,=0{ప్రాపర్టీలు ఏవీ అందుబాటులో లేవు}=1{1 ప్రాపర్టీలు అందుబాటులో ఉన్నాయి}other{{totalProperties} ప్రాపర్టీలు అందుబాటులో ఉన్నాయి}}", "craneEatRestaurants": "{totalRestaurants,plural,=0{రెస్టారెంట్‌లు లేవు}=1{1 రెస్టారెంట్}other{{totalRestaurants} రెస్టారెంట్‌లు}}", "craneFly0": "ఆస్పెన్, యునైటెడ్ స్టేట్స్", "demoCupertinoSegmentedControlSubtitle": "iOS-శైలి 'విభజించబడిన నియంత్రణ'", "craneSleep10": "కైరో, ఈజిప్ట్", "craneEat9": "మాడ్రిడ్, స్పెయిన్", "craneFly1": "బిగ్ సర్, యునైటెడ్ స్టేట్స్", "craneEat7": "నాష్విల్లె, యునైటెడ్ స్టేట్స్", "craneEat6": "సీటెల్, యునైటెడ్ స్టేట్స్", "craneFly8": "సింగపూర్", "craneEat4": "పారిస్, ఫ్రాన్స్", "craneEat3": "పోర్ట్‌ల్యాండ్, యునైటెడ్ స్టేట్స్", "craneEat2": "కొర్డొబా, అర్జెంటీనా", "craneEat1": "డల్లాస్, యునైటెడ్ స్టేట్స్", "craneEat0": "నాపల్స్, ఇటలీ", "craneSleep11": "తైపీ, తైవాన్", "craneSleep3": "హవానా, క్యూబా", "shrineLogoutButtonCaption": "లాగ్ అవుట్ చేయి", "rallyTitleBills": "బిల్లులు", "rallyTitleAccounts": "ఖాతాలు", "shrineProductVagabondSack": "వెగాబాండ్ శాక్", "rallyAccountDetailDataInterestYtd": "వడ్డీ YTD", "shrineProductWhitneyBelt": "విట్నీ బెల్ట్", "shrineProductGardenStrand": "గార్డెన్ స్ట్రాండ్", "shrineProductStrutEarrings": "దారంతో వేలాడే చెవిపోగులు", "shrineProductVarsitySocks": "వార్సిటి సాక్స్‌లు", "shrineProductWeaveKeyring": "వీవ్ కీరింగ్", "shrineProductGatsbyHat": "గాట్స్‌బి టోపీ", "shrineProductShrugBag": "భుజాన వేసుకునే సంచి", "shrineProductGiltDeskTrio": "గిల్ట్ డెస్క్ ట్రయో", "shrineProductCopperWireRack": "కాపర్ వైర్ ర్యాక్", "shrineProductSootheCeramicSet": "సూత్ సెరామిక్ సెట్", "shrineProductHurrahsTeaSet": "హుర్రాస్ టీ సెట్", "shrineProductBlueStoneMug": "బ్లూ స్టోన్ మగ్", "shrineProductRainwaterTray": "రెయిన్ వాటర్ ట్రే", "shrineProductChambrayNapkins": "ఛాంబ్రే నాప్కిన్‌లు", "shrineProductSucculentPlanters": "ఊట మొక్కలు ఉంచే ప్లాంటర్‌లు", "shrineProductQuartetTable": "క్వార్టెట్ బల్ల", "shrineProductKitchenQuattro": "కిచెన్ క్వాట్రొ", "shrineProductClaySweater": "క్లే స్వెటర్", "shrineProductSeaTunic": "సీ ట్యూనిక్", "shrineProductPlasterTunic": "ప్లాస్టర్ ట్యూనిక్", "rallyBudgetCategoryRestaurants": "రెస్టారెంట్‌లు", "shrineProductChambrayShirt": "ఛాంబ్రే షర్ట్", "shrineProductSeabreezeSweater": "సీబ్రీజ్ స్వెటర్", "shrineProductGentryJacket": "మగాళ్లు ధరించే జాకట్", "shrineProductNavyTrousers": "నేవీ ట్రౌజర్లు", "shrineProductWalterHenleyWhite": "వాల్టర్ హెనెలి (వైట్)", "shrineProductSurfAndPerfShirt": "సర్ఫ్ అండ్ పర్ఫ్ షర్ట్", "shrineProductGingerScarf": "జింజర్ స్కార్ఫ్", "shrineProductRamonaCrossover": "రమోనా క్రాస్ఓవర్", "shrineProductClassicWhiteCollar": "క్లాసిక్ వైట్ కాలర్", "shrineProductSunshirtDress": "సన్‌షర్ట్ దుస్తులు", "rallyAccountDetailDataInterestRate": "వడ్డీ రేటు", "rallyAccountDetailDataAnnualPercentageYield": "వార్షిక రాబడి శాతం", "rallyAccountDataVacation": "విహారయాత్ర", "shrineProductFineLinesTee": "సన్నని గీతల టీషర్ట్", "rallyAccountDataHomeSavings": "ఇంటి పొదుపులు", "rallyAccountDataChecking": "చెక్ చేస్తోంది", "rallyAccountDetailDataInterestPaidLastYear": "గత సంవత్సరం చెల్లించిన వడ్డీ", "rallyAccountDetailDataNextStatement": "తర్వాతి స్టేట్‌మెంట్", "rallyAccountDetailDataAccountOwner": "ఖాతా యజమాని", "rallyBudgetCategoryCoffeeShops": "కాఫీ షాప్‌లు", "rallyBudgetCategoryGroceries": "కిరాణా సరుకులు", "shrineProductCeriseScallopTee": "సెరిస్ స్కాల్లొప్ టీషర్ట్", "rallyBudgetCategoryClothing": "దుస్తులు", "rallySettingsManageAccounts": "ఖాతాలను నిర్వహించండి", "rallyAccountDataCarSavings": "కారు సేవింగ్స్", "rallySettingsTaxDocuments": "పన్ను డాక్యుమెంట్లు", "rallySettingsPasscodeAndTouchId": "పాస్‌కోడ్, టచ్ ID", "rallySettingsNotifications": "నోటిఫికేషన్‌లు", "rallySettingsPersonalInformation": "వ్యక్తిగత సమాచారం", "rallySettingsPaperlessSettings": "కాగితం వినియోగం నివారణ సెట్టింగులు", "rallySettingsFindAtms": "ATMలను కనుగొనండి", "rallySettingsHelp": "సహాయం", "rallySettingsSignOut": "సైన్ అవుట్ చేయండి", "rallyAccountTotal": "మొత్తం", "rallyBillsDue": "బకాయి వున్న బిల్లు", "rallyBudgetLeft": "మిగిలిన మొత్తం", "rallyAccounts": "ఖాతాలు", "rallyBills": "బిల్లులు", "rallyBudgets": "బడ్జెట్‌లు", "rallyAlerts": "అలర్ట్‌లు", "rallySeeAll": "అన్నీ చూడండి", "rallyFinanceLeft": "మిగిలిన మొత్తం", "rallyTitleOverview": "ఓవర్‌వ్యూ", "shrineProductShoulderRollsTee": "షోల్డర్ రోల్స్ టీ", "shrineNextButtonCaption": "తర్వాత", "rallyTitleBudgets": "బడ్జెట్‌లు", "rallyTitleSettings": "సెట్టింగ్‌లు", "rallyLoginLoginToRally": "Rallyలో లాగిన్ చేయండి", "rallyLoginNoAccount": "ఖాతా లేదా?", "rallyLoginSignUp": "సైన్ అప్ చేయి", "rallyLoginUsername": "వినియోగదారు పేరు", "rallyLoginPassword": "పాస్‌వర్డ్", "rallyLoginLabelLogin": "లాగిన్ చేయి", "rallyLoginRememberMe": "నన్ను గుర్తుంచుకో", "rallyLoginButtonLogin": "లాగిన్ చేయి", "rallyAlertsMessageHeadsUpShopping": "జాగ్రత్త పడండి, ఈ నెల మీరు షాపింగ్ బడ్జెట్‌లో {percent} ఉపయోగించారు.", "rallyAlertsMessageSpentOnRestaurants": "మీరు ఈ వారం రెస్టారెంట్‌లలో {amount} ఖర్చు చేశారు.", "rallyAlertsMessageATMFees": "మీరు ఈ నెల ATM ఫీజుల రూపంలో {amount} ఖర్చు చేశారు", "rallyAlertsMessageCheckingAccount": "మంచి పని చేశారు! మీ చెకింగ్ ఖాతా గత నెల కంటే {percent} అధికంగా ఉంది.", "shrineMenuCaption": "మెనూ", "shrineCategoryNameAll": "అన్నీ", "shrineCategoryNameAccessories": "యాక్సెసరీలు", "shrineCategoryNameClothing": "దుస్తులు", "shrineCategoryNameHome": "ఇల్లు", "shrineLoginUsernameLabel": "వినియోగదారు పేరు", "shrineLoginPasswordLabel": "పాస్‌వర్డ్", "shrineCancelButtonCaption": "రద్దు చేయండి", "shrineCartTaxCaption": "పన్ను:", "shrineCartPageCaption": "కార్ట్", "shrineProductQuantity": "సంఖ్య: {quantity}", "shrineProductPrice": "x {price}", "shrineCartItemCount": "{quantity,plural,=0{అంశాలు లేవు}=1{1 అంశం}other{{quantity} అంశాలు}}", "shrineCartClearButtonCaption": "కార్ట్ అంతా క్లియర్ చేయండి", "shrineCartTotalCaption": "మొత్తం", "shrineCartSubtotalCaption": "ఉప మొత్తం:", "shrineCartShippingCaption": "రవాణా ఖర్చు:", "shrineProductGreySlouchTank": "గ్రే స్లాచ్ ట్యాంక్", "shrineProductStellaSunglasses": "స్టెల్లా సన్‌గ్లాసెస్", "shrineProductWhitePinstripeShirt": "తెల్లని పిన్‌స్ట్రైప్ చొక్కా", "demoTextFieldWhereCanWeReachYou": "మేము మిమ్మల్ని ఎక్కడ సంప్రదించవచ్చు?", "settingsTextDirectionLTR": "LTR", "settingsTextScalingLarge": "పెద్దవిగా", "demoBottomSheetHeader": "ముఖ్య శీర్షిక", "demoBottomSheetItem": "వస్తువు {value}", "demoBottomTextFieldsTitle": "వచన ఫీల్డ్‌లు", "demoTextFieldTitle": "వచన ఫీల్డ్‌లు", "demoTextFieldSubtitle": "సవరించదగిన వచనం, సంఖ్యలు కలిగి ఉన్న ఒకే పంక్తి", "demoTextFieldDescription": "వచన ఫీల్డ్‌లు అన్నవి వినియోగదారులు వచనాన్ని UIలో ఎంటర్ చేయడానికి వీలు కల్పిస్తాయి. అవి సాధారణంగా ఫారమ్‌లు, డైలాగ్‌లలో కనిపిస్తాయి.", "demoTextFieldShowPasswordLabel": "పాస్‌వర్డ్‌ను చూపుతుంది", "demoTextFieldHidePasswordLabel": "పాస్‌వర్డ్‌ను దాస్తుంది", "demoTextFieldFormErrors": "సమర్పించే ముందు దయచేసి ఎరుపు రంగులో సూచించిన ఎర్రర్‌లను పరిష్కరించండి.", "demoTextFieldNameRequired": "పేరు అవసరం.", "demoTextFieldOnlyAlphabeticalChars": "దయచేసి కేవలం ఆల్ఫాబెటికల్ అక్షరాలను మాత్రమే ఎంటర్ చేయండి.", "demoTextFieldEnterUSPhoneNumber": "(###) ###-#### - US ఫోన్ నంబర్‌ను ఎంటర్ చేయండి.", "demoTextFieldEnterPassword": "దయచేసి పాస్‌వర్డ్‌ను ఎంటర్ చేయండి.", "demoTextFieldPasswordsDoNotMatch": "పాస్‌వర్డ్‌లు సరిపోలలేదు", "demoTextFieldWhatDoPeopleCallYou": "అందరూ మిమ్మల్ని ఏమని పిలుస్తారు?", "demoTextFieldNameField": "పేరు*", "demoBottomSheetButtonText": "దిగువున షీట్‌ను చూపు", "demoTextFieldPhoneNumber": "ఫోన్ నంబర్*", "demoBottomSheetTitle": "దిగువున ఉన్న షీట్", "demoTextFieldEmail": "ఈమెయిల్‌", "demoTextFieldTellUsAboutYourself": "మీ గురించి మాకు చెప్పండి (ఉదా., మీరు ఏమి చేస్తుంటారు, మీ అభిరుచులు ఏమిటి)", "demoTextFieldKeepItShort": "చిన్నదిగా చేయండి, ఇది కేవలం డెమో మాత్రమే.", "starterAppGenericButton": "బటన్", "demoTextFieldLifeStory": "జీవిత కథ", "demoTextFieldSalary": "జీతం", "demoTextFieldUSD": "USD", "demoTextFieldNoMoreThan": "8 అక్షరాలు మించకూడదు.", "demoTextFieldPassword": "పాస్‌వర్డ్*", "demoTextFieldRetypePassword": "పాస్‌వర్డ్‌ను మళ్లీ టైప్ చేయండి*", "demoTextFieldSubmit": "సమర్పించు", "demoBottomNavigationSubtitle": "క్రాస్-ఫేడింగ్ వీక్షణలతో కిందివైపు నావిగేషన్", "demoBottomSheetAddLabel": "జోడిస్తుంది", "demoBottomSheetModalDescription": "నమూనా దిగువున ఉండే షీట్ అన్నది మెనూ లేదా డైలాగ్‌కు ప్రత్యామ్నాయం. ఇది యాప్‌లో మిగతా వాటితో ఇంటరాక్ట్ కాకుండా యూజర్‌ను నిరోధిస్తుంది.", "demoBottomSheetModalTitle": "నమూనా దిగువున ఉండే షీట్", "demoBottomSheetPersistentDescription": "దిగువున నిరంతరంగా ఉండే షీట్ అనేది యాప్‌లోని ప్రాధమిక కంటెంట్‌కు పూరకంగా ఉండే అనుబంధ సమాచారాన్ని చూపుతుంది. యాప్‌లోని ఇతర భాగాలతో యూజర్ ఇంటరాక్ట్ అయినప్పుడు కూడా దిగువున నిరంతర షీట్ కనపడుతుంది.", "demoBottomSheetPersistentTitle": "నిరంతరం దిగువున ఉండే షీట్", "demoBottomSheetSubtitle": "స్థిరమైన నమూనా దిగువున ఉండే షిట్‌లు", "demoTextFieldNameHasPhoneNumber": "{name} యొక్క ఫోన్ నంబర్ {phoneNumber}", "buttonText": "బటన్", "demoTypographyDescription": "విశేష రూపకల్పనలో కనుగొన్న వివిధ రకాల టైపోగ్రాఫికల్ శైలుల యొక్క నిర్వచనాలు.", "demoTypographySubtitle": "అన్ని పూర్వ నిర్వచిత వచన శైలులు", "demoTypographyTitle": "టైపోగ్రఫీ", "demoFullscreenDialogDescription": "ఇన్‌కమింగ్ పేజీ ఫుల్-స్క్రీన్‌ మోడల్ డైలాగ్ కాదా అని ఫుల్-స్క్రీన్‌ డైలాగ్ ఆస్తి నిర్దేశిస్తుంది", "demoFlatButtonDescription": "ఫ్లాట్ బటన్‌ని నొక్కితే, అది సిరా చల్లినట్టుగా కనబడుతుంది, కానీ ఎత్తదు. టూల్‌బార్‌లలో, డైలాగ్‌లలో మరియు పాడింగ్‌తో ఇన్‌లైన్‌లో ఫ్లాట్ బటన్‌లను ఉపయోగించండి", "demoBottomNavigationDescription": "కిందికి ఉండే నావిగేషన్ బార్‌లు స్క్రీన్ దిగువున మూడు నుండి ఐదు గమ్యస్థానాలను ప్రదర్శిస్తాయి. ప్రతి గమ్యస్థానం ఒక చిహ్నం, అలాగే ఐచ్ఛిక వచన లేబుల్ ఆధారంగా సూచించబడ్డాయి. కిందికి ఉండే నావిగేషన్ చిహ్నాన్ని నొక్కినప్పుడు, యూజర్ ఆ చిహ్నంతో అనుబంధితమైన అత్యంత ప్రధానమైన గమ్యస్థానం ఉన్న నావిగేషన్‌కు తీసుకెళ్లబడతారు.", "demoBottomNavigationSelectedLabel": "లేబుల్ ఎంచుకోబడింది", "demoBottomNavigationPersistentLabels": "స్థిరమైన లేబుళ్లు", "starterAppDrawerItem": "వస్తువు {value}", "demoTextFieldRequiredField": "* అవసరమైన ఫీల్డ్‌ను సూచిస్తుంది", "demoBottomNavigationTitle": "కిందికి నావిగేషన్", "settingsLightTheme": "కాంతివంతం", "settingsTheme": "థీమ్", "settingsPlatformIOS": "iOS", "settingsPlatformAndroid": "Android", "settingsTextDirectionRTL": "RTL", "settingsTextScalingHuge": "భారీగా", "cupertinoButton": "బటన్", "settingsTextScalingNormal": "సాధారణం", "settingsTextScalingSmall": "చిన్నవిగా", "settingsSystemDefault": "సిస్టమ్", "settingsTitle": "సెట్టింగ్‌లు", "rallyDescription": "పర్సనల్ ఫైనాన్స్ యాప్", "aboutDialogDescription": "ఈ యాప్ సోర్స్ కోడ్‌ను చూడటానికి, దయచేసి {repoLink}ను సందర్శించండి.", "bottomNavigationCommentsTab": "కామెంట్‌లు", "starterAppGenericBody": "ప్రధాన భాగం", "starterAppGenericHeadline": "ప్రధాన శీర్షిక", "starterAppGenericSubtitle": "ఉప శీర్షిక", "starterAppGenericTitle": "పేరు", "starterAppTooltipSearch": "Search", "starterAppTooltipShare": "షేర్ చేస్తుంది", "starterAppTooltipFavorite": "ఇష్టమైనది", "starterAppTooltipAdd": "జోడిస్తుంది", "bottomNavigationCalendarTab": "క్యాలెండర్", "starterAppDescription": "ప్రతిస్పందనాత్మక శైలిలోని స్టార్టర్ లేఅవుట్", "starterAppTitle": "స్టార్టర్ యాప్", "aboutFlutterSamplesRepo": "ఫ్లట్టర్ నమూనాలు జిట్‌హబ్ రెపొజిటరీ", "bottomNavigationContentPlaceholder": "{title} ట్యాబ్‌కు సంబంధించిన ప్లేస్‌హోల్డర్", "bottomNavigationCameraTab": "కెమెరా", "bottomNavigationAlarmTab": "అలారం", "bottomNavigationAccountTab": "ఖాతా", "demoTextFieldYourEmailAddress": "మీ ఈమెయిల్‌ అడ్రస్‌", "demoToggleButtonDescription": "సంబంధిత ఎంపికలను సమూహపరచడానికి టోగుల్ బటన్‌లను ఉపయోగించవచ్చు. సంబంధిత టోగుల్ బటన్‌ల గ్రూప్‌లను నొక్కడానికి, గ్రూప్‌ సాధారణ కంటైనర్‌ని షేర్ చేయాలి", "colorsGrey": "బూడిద రంగు", "colorsBrown": "గోధుమ రంగు", "colorsDeepOrange": "ముదురు నారింజ రంగు", "colorsOrange": "నారింజ", "colorsAmber": "కాషాయరంగు", "colorsYellow": "పసుపు", "colorsLime": "నిమ్మ రంగు", "colorsLightGreen": "లేత ఆకుపచ్చ రంగు", "colorsGreen": "ఆకుపచ్చ", "homeHeaderGallery": "గ్యాలరీ", "homeHeaderCategories": "కేటగిరీలు", "shrineDescription": "ఫ్యాషన్‌తో కూడిన రీటైల్ యాప్", "craneDescription": "వ్యక్తిగతీకరించిన ట్రావెల్ యాప్", "homeCategoryReference": "శైలులు, ఇతరవి", "demoInvalidURL": "URLని ప్రదర్శించడం సాధ్యపడలేదు:", "demoOptionsTooltip": "ఎంపికలు", "demoInfoTooltip": "సమాచారం", "demoCodeTooltip": "డెమో కోడ్", "demoDocumentationTooltip": "API డాక్యుమెంటేషన్", "demoFullscreenTooltip": "ఫుల్-స్క్రీన్‌", "settingsTextScaling": "వచన ప్రమాణం", "settingsTextDirection": "వచన దిశ", "settingsLocale": "లొకేల్", "settingsPlatformMechanics": "ప్లాట్‌ఫామ్ మెకానిక్స్", "settingsDarkTheme": "ముదురు రంగు", "settingsSlowMotion": "నెమ్మది చలనం", "settingsAbout": "'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": "యాప్‌ని ఉపయోగిస్తున్నప్పుడు మీ లొకేషన్‌ని యాక్సెస్ చేసేందుకు \"Maps\"ని అనుమతించాలా?", "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": "ర్యాలీ", "CRANE": "క్రేన్", "Travel app": "ట్రావెల్ యాప్", "MATERIAL": "మెటీరియల్", "CUPERTINO": "CUPERTINO", "REFERENCE STYLES & MEDIA": "రిఫరెన్స్ స్టైల్స్ & మీడియా" }
gallery/lib/l10n/intl_te.arb/0
{ "file_path": "gallery/lib/l10n/intl_te.arb", "repo_id": "gallery", "token_count": 75816 }
865
// 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'; abstract class BackLayerItem extends StatefulWidget { final int index; const BackLayerItem({super.key, required this.index}); } class BackLayer extends StatefulWidget { final List<BackLayerItem> backLayerItems; final TabController tabController; const BackLayer({ super.key, required this.backLayerItems, required this.tabController, }); @override State<BackLayer> createState() => _BackLayerState(); } class _BackLayerState extends State<BackLayer> { @override void initState() { super.initState(); widget.tabController.addListener(() => setState(() {})); } @override Widget build(BuildContext context) { final tabIndex = widget.tabController.index; return IndexedStack( index: tabIndex, children: [ for (BackLayerItem backLayerItem in widget.backLayerItems) ExcludeFocus( excluding: backLayerItem.index != tabIndex, child: backLayerItem, ) ], ); } }
gallery/lib/studies/crane/backlayer.dart/0
{ "file_path": "gallery/lib/studies/crane/backlayer.dart", "repo_id": "gallery", "token_count": 408 }
866
// 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:animations/animations.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_gen/gen_l10n/gallery_localizations.dart'; import 'package:gallery/data/gallery_options.dart'; import 'package:gallery/layout/letter_spacing.dart'; import 'package:gallery/studies/rally/colors.dart'; import 'package:gallery/studies/rally/home.dart'; import 'package:gallery/studies/rally/login.dart'; import 'package:gallery/studies/rally/routes.dart' as routes; import 'package:google_fonts/google_fonts.dart'; /// The RallyApp is a MaterialApp with a theme and 2 routes. /// /// The home route is the main page with tabs for sub pages. /// The login route is the initial route. class RallyApp extends StatelessWidget { const RallyApp({super.key}); static const String loginRoute = routes.loginRoute; static const String homeRoute = routes.homeRoute; final sharedZAxisTransitionBuilder = const SharedAxisPageTransitionsBuilder( fillColor: RallyColors.primaryBackground, transitionType: SharedAxisTransitionType.scaled, ); @override Widget build(BuildContext context) { return MaterialApp( restorationScopeId: 'rally_app', title: 'Rally', debugShowCheckedModeBanner: false, theme: _buildRallyTheme().copyWith( platform: GalleryOptions.of(context).platform, pageTransitionsTheme: PageTransitionsTheme( builders: { for (var type in TargetPlatform.values) type: sharedZAxisTransitionBuilder, }, ), ), localizationsDelegates: GalleryLocalizations.localizationsDelegates, supportedLocales: GalleryLocalizations.supportedLocales, locale: GalleryOptions.of(context).locale, initialRoute: loginRoute, routes: <String, WidgetBuilder>{ homeRoute: (context) => const HomePage(), loginRoute: (context) => const LoginPage(), }, ); } ThemeData _buildRallyTheme() { final base = ThemeData.dark(); return ThemeData( appBarTheme: const AppBarTheme( systemOverlayStyle: SystemUiOverlayStyle.light, backgroundColor: RallyColors.primaryBackground, elevation: 0, ), scaffoldBackgroundColor: RallyColors.primaryBackground, focusColor: RallyColors.focusColor, textTheme: _buildRallyTextTheme(base.textTheme), inputDecorationTheme: const InputDecorationTheme( labelStyle: TextStyle( color: RallyColors.gray, fontWeight: FontWeight.w500, ), filled: true, fillColor: RallyColors.inputBackground, focusedBorder: InputBorder.none, ), visualDensity: VisualDensity.standard, colorScheme: base.colorScheme.copyWith( primary: RallyColors.primaryBackground, ), ); } TextTheme _buildRallyTextTheme(TextTheme base) { return base .copyWith( bodyMedium: GoogleFonts.robotoCondensed( fontSize: 14, fontWeight: FontWeight.w400, letterSpacing: letterSpacingOrNone(0.5), ), bodyLarge: GoogleFonts.eczar( fontSize: 40, fontWeight: FontWeight.w400, letterSpacing: letterSpacingOrNone(1.4), ), labelLarge: GoogleFonts.robotoCondensed( fontWeight: FontWeight.w700, letterSpacing: letterSpacingOrNone(2.8), ), headlineSmall: GoogleFonts.eczar( fontSize: 40, fontWeight: FontWeight.w600, letterSpacing: letterSpacingOrNone(1.4), ), ) .apply( displayColor: Colors.white, bodyColor: Colors.white, ); } }
gallery/lib/studies/rally/app.dart/0
{ "file_path": "gallery/lib/studies/rally/app.dart", "repo_id": "gallery", "token_count": 1549 }
867
// 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. const String galleryBenchmarkPrefix = 'gallery_v2'; const String galleryStudiesPerf = '${galleryBenchmarkPrefix}_studies_perf'; const String galleryUnanimatedPerf = '${galleryBenchmarkPrefix}_unanimated_perf'; const String galleryAnimatedPerf = '${galleryBenchmarkPrefix}_animated_perf'; const String galleryScrollPerf = '${galleryBenchmarkPrefix}_scroll_perf'; const benchmarkList = <String>[ galleryStudiesPerf, galleryUnanimatedPerf, galleryAnimatedPerf, galleryScrollPerf, ];
gallery/test_benchmarks/benchmarks/common.dart/0
{ "file_path": "gallery/test_benchmarks/benchmarks/common.dart", "repo_id": "gallery", "token_count": 199 }
868
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Page Not Found</title> <style media="screen"> body { background: #ECEFF1; color: rgba(0,0,0,0.87); font-family: Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; } #message { background: white; max-width: 360px; margin: 100px auto 16px; padding: 32px 24px 16px; border-radius: 3px; } #message h3 { color: #888; font-weight: normal; font-size: 16px; margin: 16px 0 12px; } #message h2 { color: #ffa100; font-weight: bold; font-size: 16px; margin: 0 0 8px; } #message h1 { font-size: 22px; font-weight: 300; color: rgba(0,0,0,0.6); margin: 0 0 16px;} #message p { line-height: 140%; margin: 16px 0 24px; font-size: 14px; } #message a { display: block; text-align: center; background: #039be5; text-transform: uppercase; text-decoration: none; color: white; padding: 16px; border-radius: 4px; } #message, #message a { box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); } #load { color: rgba(0,0,0,0.4); text-align: center; font-size: 13px; } @media (max-width: 600px) { body, #message { margin-top: 0; background: white; box-shadow: none; } body { border-top: 16px solid #ffa100; } } </style> </head> <body> <div id="message"> <h2>404</h2> <h1>Page Not Found</h1> <p>The specified file was not found on this website. Please check the URL for mistakes and try again.</p> <h3>Why am I seeing this?</h3> <p>This page was generated by the Firebase Command-Line Interface. To modify it, edit the <code>404.html</code> file in your project's configured <code>public</code> directory.</p> </div> </body> </html>
gallery/web/404.html/0
{ "file_path": "gallery/web/404.html", "repo_id": "gallery", "token_count": 746 }
869
{ "projects": { "default": "top-dash-dev" }, "targets": { "top-dash-dev": { "hosting": { "app_dev": [ "a16e0900d-fe2c-3609-b43c-87093e447b78" ], "flop_dev": [ "flop-a16e0900d-fe2c-3609-b43c-87093e447b78" ], "app_staging": [ "a26e0900d-fe2c-3609-b43c-87093e447b78" ] } }, "io-flip": { "hosting": { "app_prod": [ "io-flip" ] } } }, "etags": {} }
io_flip/.firebaserc/0
{ "file_path": "io_flip/.firebaserc", "repo_id": "io_flip", "token_count": 336 }
870
include: package:very_good_analysis/analysis_options.4.0.0.yaml analyzer: exclude: - build/** - '**/*.g.dart' linter: rules: file_names: false
io_flip/api/analysis_options.yaml/0
{ "file_path": "io_flip/api/analysis_options.yaml", "repo_id": "io_flip", "token_count": 69 }
871
include: package:very_good_analysis/analysis_options.4.0.0.yaml
io_flip/api/packages/cards_repository/analysis_options.yaml/0
{ "file_path": "io_flip/api/packages/cards_repository/analysis_options.yaml", "repo_id": "io_flip", "token_count": 23 }
872
include: package:very_good_analysis/analysis_options.4.0.0.yaml
io_flip/api/packages/db_client/analysis_options.yaml/0
{ "file_path": "io_flip/api/packages/db_client/analysis_options.yaml", "repo_id": "io_flip", "token_count": 23 }
873
include: package:very_good_analysis/analysis_options.3.1.0.yaml
io_flip/api/packages/firebase_cloud_storage/analysis_options.yaml/0
{ "file_path": "io_flip/api/packages/firebase_cloud_storage/analysis_options.yaml", "repo_id": "io_flip", "token_count": 23 }
874
import 'package:equatable/equatable.dart'; import 'package:json_annotation/json_annotation.dart'; part 'leaderboard_player.g.dart'; /// {@template leaderboard_player} /// A model that represents a player in the leaderboard. /// {@endtemplate} @JsonSerializable(ignoreUnannotated: true) class LeaderboardPlayer extends Equatable { /// {@macro leaderboard_player} const LeaderboardPlayer({ required this.id, required this.longestStreak, required this.initials, }); /// {@macro leaderboard_player} factory LeaderboardPlayer.fromJson(Map<String, dynamic> json) => _$LeaderboardPlayerFromJson(json); /// Unique identifier of the leaderboard player object /// and session id for the player. @JsonKey() final String id; /// Longest streak of wins in the session. @JsonKey() final int longestStreak; /// Initials of the player. @JsonKey() final String initials; /// Returns a json representation from this instance. Map<String, dynamic> toJson() => _$LeaderboardPlayerToJson(this); @override List<Object?> get props => [id, longestStreak, initials]; }
io_flip/api/packages/game_domain/lib/src/models/leaderboard_player.dart/0
{ "file_path": "io_flip/api/packages/game_domain/lib/src/models/leaderboard_player.dart", "repo_id": "io_flip", "token_count": 346 }
875
export 'match_solver.dart';
io_flip/api/packages/game_domain/lib/src/solvers/solvers.dart/0
{ "file_path": "io_flip/api/packages/game_domain/lib/src/solvers/solvers.dart", "repo_id": "io_flip", "token_count": 11 }
876
include: package:very_good_analysis/analysis_options.4.0.0.yaml
io_flip/api/packages/jwt_middleware/analysis_options.yaml/0
{ "file_path": "io_flip/api/packages/jwt_middleware/analysis_options.yaml", "repo_id": "io_flip", "token_count": 23 }
877
name: language_model_repository description: Repository providing access language model services version: 0.1.0+1 publish_to: none environment: sdk: ">=3.0.0 <4.0.0" dependencies: db_client: path: ../db_client game_domain: path: ../game_domain prompt_repository: path: ../prompt_repository dev_dependencies: mocktail: ^0.3.0 test: ^1.24.2 very_good_analysis: ^4.0.0
io_flip/api/packages/language_model_repository/pubspec.yaml/0
{ "file_path": "io_flip/api/packages/language_model_repository/pubspec.yaml", "repo_id": "io_flip", "token_count": 164 }
878
// ignore_for_file: prefer_const_constructors import 'dart:math'; import 'package:cards_repository/cards_repository.dart'; import 'package:db_client/db_client.dart'; import 'package:game_domain/game_domain.dart'; import 'package:match_repository/match_repository.dart'; import 'package:mocktail/mocktail.dart'; import 'package:test/test.dart'; class _MockCardRepository extends Mock implements CardsRepository {} class _MockDbClient extends Mock implements DbClient {} class _MockMatchSolver extends Mock implements MatchSolver {} class _MockRandom extends Mock implements Random {} void main() { group('MatchRepository', () { setUpAll(() { registerFallbackValue(DbEntityRecord(id: '')); registerFallbackValue( Match( id: '', guestDeck: Deck(id: '', userId: '', cards: const []), hostDeck: Deck(id: '', userId: '', cards: const []), ), ); registerFallbackValue( MatchState( id: '', matchId: '', guestPlayedCards: const [], hostPlayedCards: const [], ), ); }); test('can be instantiated', () { expect( MatchRepository( cardsRepository: _MockCardRepository(), dbClient: _MockDbClient(), matchSolver: _MockMatchSolver(), ), isNotNull, ); }); group('getMatch', () { late CardsRepository cardsRepository; late DbClient dbClient; late MatchRepository matchRepository; late MatchSolver matchSolver; const matchId = 'matchId'; final cards = List.generate( 6, (i) => Card( id: 'card_$i', name: 'card_$i', description: 'card_$i', image: 'card_$i', power: 10, rarity: false, suit: Suit.values[i % Suit.values.length], ), ); final hostDeck = Deck( id: 'hostDeckId', userId: 'hostUserId', cards: [cards[0], cards[1], cards[2]], ); final guestDeck = Deck( id: 'guestDeckId', userId: 'guestUserId', cards: [cards[3], cards[4], cards[5]], ); setUp(() { cardsRepository = _MockCardRepository(); when(() => cardsRepository.getDeck(hostDeck.id)) .thenAnswer((_) async => hostDeck); when(() => cardsRepository.getDeck(guestDeck.id)) .thenAnswer((_) async => guestDeck); dbClient = _MockDbClient(); when(() => dbClient.getById('matches', matchId)).thenAnswer( (_) async => DbEntityRecord( id: matchId, data: { 'host': hostDeck.id, 'guest': guestDeck.id, }, ), ); matchSolver = _MockMatchSolver(); matchRepository = MatchRepository( cardsRepository: cardsRepository, dbClient: dbClient, matchSolver: matchSolver, ); }); test('returns the correct match', () async { final match = await matchRepository.getMatch(matchId); expect( match, equals( Match( id: matchId, hostDeck: hostDeck, guestDeck: guestDeck, ), ), ); }); test('returns null when there is no match', () async { when(() => dbClient.getById('matches', matchId)).thenAnswer( (_) async => null, ); final match = await matchRepository.getMatch(matchId); expect(match, isNull); }); test( 'throws GetMatchFailure when for some reason, a deck is null', () async { when(() => cardsRepository.getDeck(guestDeck.id)) .thenAnswer((_) async => null); expect( () async => matchRepository.getMatch(matchId), throwsA( isA<GetMatchFailure>(), ), ); }, ); }); group('isDraftMatch', () { late DbClient dbClient; late MatchRepository matchRepository; const matchId = 'matchId'; const hostDeckId = 'hostDeckId'; const guestDeckId = 'guestDeckId'; setUp(() { dbClient = _MockDbClient(); matchRepository = MatchRepository( cardsRepository: _MockCardRepository(), dbClient: dbClient, matchSolver: _MockMatchSolver(), ); }); test('returns false when guest exists', () async { when(() => dbClient.getById('matches', matchId)).thenAnswer( (_) async => DbEntityRecord( id: matchId, data: const { 'host': hostDeckId, 'guest': guestDeckId, }, ), ); final isDraftMatch = await matchRepository.isDraftMatch(matchId); expect(isDraftMatch, isFalse); }); test('returns true when guest is empty', () async { when(() => dbClient.getById('matches', matchId)).thenAnswer( (_) async => DbEntityRecord( id: matchId, data: const { 'host': hostDeckId, 'guest': emptyKey, }, ), ); final isDraftMatch = await matchRepository.isDraftMatch(matchId); expect(isDraftMatch, isTrue); }); }); group('getScoreCard', () { late CardsRepository cardsRepository; late DbClient dbClient; late MatchRepository matchRepository; late MatchSolver matchSolver; const scoreCardId = 'scoreCardId'; const deckId = 'deckId'; final scoreCard = ScoreCard( id: scoreCardId, wins: 1, currentStreak: 1, longestStreak: 1, currentDeck: deckId, ); setUp(() { cardsRepository = _MockCardRepository(); dbClient = _MockDbClient(); when(() => dbClient.getById('score_cards', scoreCardId)).thenAnswer( (_) async => DbEntityRecord( id: scoreCardId, data: { 'wins': scoreCard.wins, 'currentStreak': scoreCard.currentStreak, 'longestStreak': scoreCard.longestStreak, 'currentDeck': deckId, }, ), ); matchSolver = _MockMatchSolver(); matchRepository = MatchRepository( cardsRepository: cardsRepository, dbClient: dbClient, matchSolver: matchSolver, ); }); test('returns the correct ScoreCard', () async { final result = await matchRepository.getScoreCard(scoreCardId, deckId); expect(result, equals(scoreCard)); }); test('returns empty score card when there is no match', () async { when(() => dbClient.getById('score_cards', scoreCardId)).thenAnswer( (_) async => null, ); when( () => dbClient.set( 'score_cards', DbEntityRecord( id: scoreCardId, data: const { 'wins': 0, 'currentStreak': 0, 'longestStreak': 0, 'currentDeck': deckId, }, ), ), ).thenAnswer( (_) async {}, ); final result = await matchRepository.getScoreCard(scoreCardId, deckId); expect(result, ScoreCard(id: scoreCardId, currentDeck: deckId)); }); }); group('getMatchState', () { late CardsRepository cardsRepository; late DbClient dbClient; late MatchRepository matchRepository; late MatchSolver matchSolver; const matchId = 'matchId'; const deckId = 'deckId'; const matchStateId = 'matchStateId'; setUp(() { matchSolver = _MockMatchSolver(); cardsRepository = _MockCardRepository(); dbClient = _MockDbClient(); when(() => dbClient.findBy('match_states', 'matchId', matchId)) .thenAnswer( (_) async => [ DbEntityRecord( id: matchStateId, data: const { 'matchId': matchId, 'guestPlayedCards': ['A', 'B'], 'hostPlayedCards': ['C', 'D'], 'currentDeck': deckId, }, ), ], ); matchRepository = MatchRepository( cardsRepository: cardsRepository, dbClient: dbClient, matchSolver: matchSolver, ); }); test('returns the correct match state', () async { final matchState = await matchRepository.getMatchState(matchId); expect( matchState, equals( MatchState( id: matchStateId, matchId: matchId, guestPlayedCards: const ['A', 'B'], hostPlayedCards: const ['C', 'D'], ), ), ); }); test('returns null when there is no match', () async { when(() => dbClient.findBy('match_states', 'matchId', matchId)) .thenAnswer( (_) async => [], ); final matchState = await matchRepository.getMatchState(matchId); expect(matchState, isNull); }); }); group('playCard', () { late CardsRepository cardsRepository; late DbClient dbClient; late MatchRepository matchRepository; late MatchSolver matchSolver; const matchId = 'matchId'; const matchStateId = 'matchStateId'; final cards = List.generate( 6, (i) => Card( id: 'card_$i', name: 'card_$i', description: 'card_$i', image: 'card_$i', power: 10, rarity: false, suit: Suit.values[i % Suit.values.length], ), ); final hostDeck = Deck( id: 'hostDeckId', userId: 'hostUserId', cards: [cards[0], cards[1], cards[2]], ); final guestDeck = Deck( id: 'guestDeckId', userId: 'guestUserId', cards: [cards[3], cards[4], cards[5]], ); setUp(() { cardsRepository = _MockCardRepository(); when(() => cardsRepository.getDeck(hostDeck.id)) .thenAnswer((_) async => hostDeck); when(() => cardsRepository.getDeck(guestDeck.id)) .thenAnswer((_) async => guestDeck); dbClient = _MockDbClient(); when(() => dbClient.getById('score_cards', any())).thenAnswer( (_) async => DbEntityRecord( id: 'scoreCardId', ), ); when(() => dbClient.getById('matches', matchId)).thenAnswer( (_) async => DbEntityRecord( id: matchId, data: { 'host': hostDeck.id, 'guest': guestDeck.id, }, ), ); when(() => dbClient.findBy('match_states', 'matchId', matchId)) .thenAnswer( (_) async => [ DbEntityRecord( id: matchStateId, data: const { 'matchId': matchId, 'guestPlayedCards': <String>[], 'hostPlayedCards': <String>[], }, ), ], ); when(() => dbClient.update(any(), any())).thenAnswer((_) async {}); matchSolver = _MockMatchSolver(); when( () => matchSolver.canPlayCard( any(), any(), isHost: any(named: 'isHost'), ), ).thenReturn(true); matchRepository = MatchRepository( cardsRepository: cardsRepository, dbClient: dbClient, matchSolver: matchSolver, ); }); test('correctly updates the match state when is guest', () async { await matchRepository.playCard( matchId: matchId, cardId: 'A', deckId: guestDeck.id, userId: guestDeck.userId, ); verify( () => dbClient.update( 'match_states', DbEntityRecord( id: matchStateId, data: const { 'matchId': matchId, 'guestPlayedCards': ['A'], 'result': null, }, ), ), ).called(1); }); test('correctly updates the match state when is host', () async { await matchRepository.playCard( matchId: matchId, cardId: 'A', deckId: hostDeck.id, userId: hostDeck.userId, ); verify( () => dbClient.update( 'match_states', DbEntityRecord( id: matchStateId, data: const { 'matchId': matchId, 'hostPlayedCards': <String>['A'], 'result': null, }, ), ), ).called(1); }); test( 'correctly updates the match state when is against cpu ' 'and plays only one cpu card', () async { final random = _MockRandom(); when(() => random.nextInt(any())).thenReturn(1); final cpuDeck = Deck( id: 'guestDeckId', userId: 'CPU_UserId', cards: [cards[3], cards[4], cards[5]], ); when(() => cardsRepository.getDeck(guestDeck.id)) .thenAnswer((_) async => cpuDeck); when(() => dbClient.findBy('match_states', 'matchId', matchId)) .thenAnswer( (_) async => [ DbEntityRecord( id: matchStateId, data: const { 'matchId': matchId, 'hostPlayedCards': <String>[], 'guestPlayedCards': <String>[], 'result': null, }, ) ], ); await matchRepository.playCard( matchId: matchId, cardId: 'A', deckId: hostDeck.id, userId: hostDeck.userId, random: random, ); verify( () => dbClient.update( 'match_states', DbEntityRecord( id: matchStateId, data: const { 'matchId': matchId, 'hostPlayedCards': <String>['A'], 'result': null, }, ), ), ).called(1); when(() => dbClient.findBy('match_states', 'matchId', matchId)) .thenAnswer( (_) async => [ DbEntityRecord( id: matchStateId, data: const { 'matchId': matchId, 'hostPlayedCards': <String>['A'], 'guestPlayedCards': <String>[], 'result': null, }, ) ], ); await Future<void>.delayed(const Duration(seconds: 4)); verify( () => dbClient.update( 'match_states', DbEntityRecord( id: matchStateId, data: const { 'matchId': matchId, 'guestPlayedCards': <String>['card_4'], 'result': null, }, ), ), ).called(1); verifyNever(() => dbClient.update('match_states', any())); }, ); test('when the match is over, updates the result', () async { when(() => dbClient.findBy('match_states', 'matchId', matchId)) .thenAnswer( (_) async => [ DbEntityRecord( id: matchStateId, data: const { 'matchId': matchId, 'guestPlayedCards': <String>['A', 'B', 'C'], 'hostPlayedCards': <String>['D', 'E'], }, ), ], ); when(() => matchSolver.calculateMatchResult(any(), any())) .thenReturn(MatchResult.host); await matchRepository.playCard( matchId: matchId, cardId: 'F', deckId: hostDeck.id, userId: hostDeck.userId, ); verify( () => dbClient.update( 'match_states', DbEntityRecord( id: matchStateId, data: const { 'matchId': matchId, 'hostPlayedCards': <String>['D', 'E', 'F'], 'result': 'host', }, ), ), ).called(1); }); test( 'throws MatchNotFoundFailure when match state is not found', () async { when(() => dbClient.findBy('match_states', 'matchId', matchId)) .thenAnswer((_) async => []); await expectLater( () => matchRepository.playCard( matchId: matchId, cardId: 'F', deckId: hostDeck.id, userId: hostDeck.userId, ), throwsA(isA<MatchNotFoundFailure>()), ); }, ); test( "throws MatchNotFoundFailure when match is over, and its match can't " 'be found', () async { when(() => dbClient.findBy('match_states', 'matchId', matchId)) .thenAnswer( (_) async => [ DbEntityRecord( id: matchStateId, data: const { 'matchId': matchId, 'guestPlayedCards': <String>['A', 'B', 'C'], 'hostPlayedCards': <String>['D', 'E'], }, ), ], ); when(() => dbClient.getById('matches', matchId)).thenAnswer( (_) async => null, ); await expectLater( () => matchRepository.playCard( matchId: matchId, cardId: 'F', deckId: hostDeck.id, userId: hostDeck.userId, ), throwsA(isA<MatchNotFoundFailure>()), ); }, ); test('throws PlayCardFailure when card has already been played', () async { when( () => matchSolver.canPlayCard( any(), any(), isHost: any(named: 'isHost'), ), ).thenReturn(false); await expectLater( () => matchRepository.playCard( matchId: matchId, cardId: 'F', deckId: hostDeck.id, userId: hostDeck.userId, ), throwsA(isA<PlayCardFailure>()), ); }); group('score card', () { setUp(() { when(() => dbClient.findBy('match_states', 'matchId', matchId)) .thenAnswer( (_) async => [ DbEntityRecord( id: matchStateId, data: const { 'matchId': matchId, 'guestPlayedCards': <String>['A', 'B', 'C'], 'hostPlayedCards': <String>['D', 'E'], }, ), ], ); }); test('updates correctly when host wins', () async { when(() => matchSolver.calculateMatchResult(any(), any())) .thenReturn(MatchResult.host); when(() => dbClient.getById('score_cards', hostDeck.userId)) .thenAnswer( (_) async => DbEntityRecord( id: hostDeck.userId, data: const { 'wins': 0, 'currentStreak': 0, 'longestStreak': 0, 'currentDeck': 'anyId', }, ), ); await matchRepository.playCard( matchId: matchId, cardId: 'F', deckId: hostDeck.id, userId: hostDeck.userId, ); verify( () => dbClient.update( 'score_cards', DbEntityRecord( id: hostDeck.userId, data: { 'wins': 1, 'currentStreak': 1, 'latestStreak': 1, 'longestStreak': 1, 'currentDeck': hostDeck.id, 'latestDeck': hostDeck.id, 'longestStreakDeck': hostDeck.id, }, ), ), ).called(1); verify( () => dbClient.update( 'score_cards', DbEntityRecord( id: guestDeck.userId, data: { 'currentStreak': 0, 'latestStreak': 0, 'currentDeck': guestDeck.id, 'latestDeck': guestDeck.id, }, ), ), ).called(1); }); test('updates correctly when guest wins', () async { when(() => matchSolver.calculateMatchResult(any(), any())) .thenReturn(MatchResult.guest); when(() => dbClient.getById('score_cards', guestDeck.userId)) .thenAnswer( (_) async => DbEntityRecord( id: guestDeck.userId, data: const { 'wins': 0, 'currentStreak': 0, 'longestStreak': 0, 'currentDeck': 'anyId', }, ), ); await matchRepository.playCard( matchId: matchId, cardId: 'F', deckId: hostDeck.id, userId: hostDeck.userId, ); verify( () => dbClient.update( 'score_cards', DbEntityRecord( id: guestDeck.userId, data: { 'wins': 1, 'currentStreak': 1, 'latestStreak': 1, 'longestStreak': 1, 'currentDeck': guestDeck.id, 'latestDeck': guestDeck.id, 'longestStreakDeck': guestDeck.id, }, ), ), ).called(1); verify( () => dbClient.update( 'score_cards', DbEntityRecord( id: hostDeck.userId, data: { 'currentStreak': 0, 'latestStreak': 0, 'currentDeck': hostDeck.id, 'latestDeck': hostDeck.id, }, ), ), ).called(1); }); test('updates correctly when any player wins but is not longest streak', () async { when(() => matchSolver.calculateMatchResult(any(), any())) .thenReturn(MatchResult.guest); when(() => dbClient.getById('score_cards', guestDeck.userId)) .thenAnswer( (_) async => DbEntityRecord( id: guestDeck.userId, data: { 'wins': 0, 'currentStreak': 0, 'longestStreak': 2, 'currentDeck': guestDeck.id, 'longestStreakDeck': 'longestStreakDeckId' }, ), ); await matchRepository.playCard( matchId: matchId, cardId: 'F', deckId: hostDeck.id, userId: hostDeck.userId, ); verify( () => dbClient.update( 'score_cards', DbEntityRecord( id: guestDeck.userId, data: { 'wins': 1, 'currentStreak': 1, 'latestStreak': 1, 'currentDeck': guestDeck.id, 'latestDeck': guestDeck.id, }, ), ), ).called(1); verify( () => dbClient.update( 'score_cards', DbEntityRecord( id: hostDeck.userId, data: { 'currentStreak': 0, 'latestStreak': 0, 'currentDeck': hostDeck.id, 'latestDeck': hostDeck.id, }, ), ), ).called(1); }); test('do not update when there is a draw', () async { when(() => matchSolver.calculateMatchResult(any(), any())) .thenReturn(MatchResult.draw); await matchRepository.playCard( matchId: matchId, cardId: 'F', deckId: hostDeck.id, userId: hostDeck.userId, ); verifyNever( () => dbClient.update( 'score_cards', any(), ), ); }); }); }); group('calculateMatchResult', () { late CardsRepository cardsRepository; late DbClient dbClient; late MatchRepository matchRepository; late MatchSolver matchSolver; const matchId = 'matchId'; const matchStateId = 'matchStateId'; final cards = List.generate( 6, (i) => Card( id: 'card_$i', name: 'card_$i', description: 'card_$i', image: 'card_$i', power: 10, rarity: false, suit: Suit.values[i % Suit.values.length], ), ); final hostDeck = Deck( id: 'hostDeckId', userId: 'hostUserId', cards: [cards[0], cards[1], cards[2]], ); final guestDeck = Deck( id: 'guestDeckId', userId: 'guestUserId', cards: [cards[3], cards[4], cards[5]], ); setUp(() { cardsRepository = _MockCardRepository(); when(() => cardsRepository.getDeck(hostDeck.id)) .thenAnswer((_) async => hostDeck); when(() => cardsRepository.getDeck(guestDeck.id)) .thenAnswer((_) async => guestDeck); dbClient = _MockDbClient(); when(() => dbClient.getById('score_cards', any())).thenAnswer( (_) async => DbEntityRecord( id: 'scoreCardId', ), ); when(() => dbClient.getById('matches', matchId)).thenAnswer( (_) async => DbEntityRecord( id: matchId, data: { 'host': hostDeck.id, 'guest': guestDeck.id, }, ), ); when(() => dbClient.findBy('match_states', 'matchId', matchId)) .thenAnswer( (_) async => [ DbEntityRecord( id: matchStateId, data: const { 'matchId': matchId, 'guestPlayedCards': <String>['A', 'B', 'C'], 'hostPlayedCards': <String>['D', 'E', 'F'], }, ), ], ); when(() => dbClient.update(any(), any())).thenAnswer((_) async {}); matchSolver = _MockMatchSolver(); matchRepository = MatchRepository( cardsRepository: cardsRepository, dbClient: dbClient, matchSolver: matchSolver, ); }); test('correctly updates the match state when host wins', () async { when(() => matchSolver.calculateMatchResult(any(), any())) .thenReturn(MatchResult.host); final match = Match(id: matchId, hostDeck: hostDeck, guestDeck: guestDeck); final matchState = MatchState( id: matchStateId, matchId: matchId, hostPlayedCards: const ['D', 'E', 'F'], guestPlayedCards: const ['A', 'B', 'C'], ); await matchRepository.calculateMatchResult( match: match, matchState: matchState, ); verify( () => dbClient.update( 'match_states', DbEntityRecord( id: matchStateId, data: const { 'matchId': matchId, 'hostPlayedCards': <String>['D', 'E', 'F'], 'guestPlayedCards': <String>['A', 'B', 'C'], 'result': 'host', }, ), ), ).called(1); }); test('throws CalculateResultFailure when match is not over', () async { final match = Match(id: 'id', hostDeck: hostDeck, guestDeck: guestDeck); final matchState = MatchState( id: 'matchStateId', matchId: matchId, hostPlayedCards: const ['A'], guestPlayedCards: const ['B'], ); await expectLater( () => matchRepository.calculateMatchResult( match: match, matchState: matchState, ), throwsA(isA<CalculateResultFailure>()), ); }); test( 'throws CalculateResultFailure when match is over and already has a ' 'result', () async { final match = Match(id: 'id', hostDeck: hostDeck, guestDeck: guestDeck); final matchState = MatchState( id: 'matchStateId', matchId: matchId, hostPlayedCards: const ['A', 'B', 'C'], guestPlayedCards: const ['D', 'E', 'F'], result: MatchResult.draw, ); await expectLater( () => matchRepository.calculateMatchResult( match: match, matchState: matchState, ), throwsA(isA<CalculateResultFailure>()), ); }, ); group('score card', () { setUp(() { when(() => dbClient.findBy('match_states', 'matchId', matchId)) .thenAnswer( (_) async => [ DbEntityRecord( id: matchStateId, data: const { 'matchId': matchId, 'guestPlayedCards': <String>['A', 'B', 'C'], 'hostPlayedCards': <String>['D', 'E', 'F'], }, ), ], ); }); test('updates correctly when host wins', () async { when(() => matchSolver.calculateMatchResult(any(), any())) .thenReturn(MatchResult.host); when(() => dbClient.getById('score_cards', hostDeck.userId)) .thenAnswer( (_) async => DbEntityRecord( id: hostDeck.userId, data: const { 'wins': 0, 'currentStreak': 0, 'longestStreak': 0, 'currentDeck': 'anyId', }, ), ); final match = Match(id: 'id', hostDeck: hostDeck, guestDeck: guestDeck); final matchState = MatchState( id: 'matchStateId', matchId: matchId, hostPlayedCards: const ['A', 'B', 'C'], guestPlayedCards: const ['D', 'E', 'F'], ); await matchRepository.calculateMatchResult( match: match, matchState: matchState, ); verify( () => dbClient.update( 'score_cards', DbEntityRecord( id: hostDeck.userId, data: { 'wins': 1, 'currentStreak': 1, 'latestStreak': 1, 'longestStreak': 1, 'currentDeck': hostDeck.id, 'latestDeck': hostDeck.id, 'longestStreakDeck': hostDeck.id, }, ), ), ).called(1); verify( () => dbClient.update( 'score_cards', DbEntityRecord( id: guestDeck.userId, data: { 'currentStreak': 0, 'latestStreak': 0, 'currentDeck': guestDeck.id, 'latestDeck': guestDeck.id, }, ), ), ).called(1); }); test('updates correctly when guest wins', () async { when(() => matchSolver.calculateMatchResult(any(), any())) .thenReturn(MatchResult.guest); when(() => dbClient.getById('score_cards', guestDeck.userId)) .thenAnswer( (_) async => DbEntityRecord( id: guestDeck.userId, data: const { 'wins': 0, 'currentStreak': 0, 'longestStreak': 0, 'currentDeck': 'anyId', }, ), ); final match = Match(id: 'id', hostDeck: hostDeck, guestDeck: guestDeck); final matchState = MatchState( id: 'matchStateId', matchId: matchId, hostPlayedCards: const ['A', 'B', 'C'], guestPlayedCards: const ['D', 'E', 'F'], ); await matchRepository.calculateMatchResult( match: match, matchState: matchState, ); verify( () => dbClient.update( 'score_cards', DbEntityRecord( id: guestDeck.userId, data: { 'wins': 1, 'currentStreak': 1, 'latestStreak': 1, 'longestStreak': 1, 'currentDeck': guestDeck.id, 'latestDeck': guestDeck.id, 'longestStreakDeck': guestDeck.id, }, ), ), ).called(1); verify( () => dbClient.update( 'score_cards', DbEntityRecord( id: hostDeck.userId, data: { 'currentStreak': 0, 'latestStreak': 0, 'currentDeck': hostDeck.id, 'latestDeck': hostDeck.id, }, ), ), ).called(1); }); test('updates correctly when any player wins but is not longest streak', () async { when(() => matchSolver.calculateMatchResult(any(), any())) .thenReturn(MatchResult.guest); when(() => dbClient.getById('score_cards', guestDeck.userId)) .thenAnswer( (_) async => DbEntityRecord( id: guestDeck.userId, data: { 'wins': 0, 'currentStreak': 0, 'longestStreak': 2, 'currentDeck': guestDeck.id, 'longestStreakDeck': 'longestStreakDeckId' }, ), ); final match = Match(id: 'id', hostDeck: hostDeck, guestDeck: guestDeck); final matchState = MatchState( id: 'matchStateId', matchId: matchId, hostPlayedCards: const ['A', 'B', 'C'], guestPlayedCards: const ['D', 'E', 'F'], ); await matchRepository.calculateMatchResult( match: match, matchState: matchState, ); verify( () => dbClient.update( 'score_cards', DbEntityRecord( id: guestDeck.userId, data: { 'wins': 1, 'currentStreak': 1, 'latestStreak': 1, 'currentDeck': guestDeck.id, 'latestDeck': guestDeck.id, }, ), ), ).called(1); verify( () => dbClient.update( 'score_cards', DbEntityRecord( id: hostDeck.userId, data: { 'currentStreak': 0, 'latestStreak': 0, 'currentDeck': hostDeck.id, 'latestDeck': hostDeck.id, }, ), ), ).called(1); }); test('do not update when there is a draw', () async { when(() => matchSolver.calculateMatchResult(any(), any())) .thenReturn(MatchResult.draw); final match = Match(id: 'id', hostDeck: hostDeck, guestDeck: guestDeck); final matchState = MatchState( id: 'matchStateId', matchId: matchId, hostPlayedCards: const ['A', 'B', 'C'], guestPlayedCards: const ['D', 'E', 'F'], ); await matchRepository.calculateMatchResult( match: match, matchState: matchState, ); verifyNever( () => dbClient.update( 'score_cards', any(), ), ); }); }); }); group('setCpuConnectivity', () { late final MatchRepository matchRepository; final dbClient = _MockDbClient(); final cardsRepository = _MockCardRepository(); final matchSolver = _MockMatchSolver(); const matchId = 'matchId'; const deckId = 'deckId'; setUp(() { matchRepository = MatchRepository( cardsRepository: cardsRepository, dbClient: dbClient, matchSolver: matchSolver, ); when(() => dbClient.update(any(), any<DbEntityRecord>())) .thenAnswer((_) async {}); }); test('updates the correct field', () async { await matchRepository.setCpuConnectivity( matchId: matchId, deckId: deckId, ); verify( () => dbClient.update( 'matches', DbEntityRecord( id: matchId, data: const { 'guestConnected': true, 'guest': deckId, }, ), ), ); }); }); group('setGuestConnectivity', () { late final MatchRepository matchRepository; final dbClient = _MockDbClient(); final cardsRepository = _MockCardRepository(); final matchSolver = _MockMatchSolver(); const matchId = 'matchId'; setUp(() { matchRepository = MatchRepository( cardsRepository: cardsRepository, dbClient: dbClient, matchSolver: matchSolver, ); when(() => dbClient.update(any(), any<DbEntityRecord>())) .thenAnswer((_) async {}); }); test('updates the correct field', () async { await matchRepository.setGuestConnectivity( match: matchId, active: true, ); verify( () => dbClient.update( 'matches', DbEntityRecord( id: matchId, data: const { 'guestConnected': true, }, ), ), ); await matchRepository.setGuestConnectivity( match: matchId, active: false, ); verify( () => dbClient.update( 'matches', DbEntityRecord( id: matchId, data: const { 'guestConnected': false, }, ), ), ); }); }); group('setHostConnectivity', () { late DbClient dbClient; late MatchRepository matchRepository; const matchId = 'matchId'; setUp(() { dbClient = _MockDbClient(); final cardsRepository = _MockCardRepository(); final matchSolver = _MockMatchSolver(); matchRepository = MatchRepository( cardsRepository: cardsRepository, dbClient: dbClient, matchSolver: matchSolver, ); when(() => dbClient.update(any(), any<DbEntityRecord>())) .thenAnswer((_) async {}); }); test('updates the correct field', () async { await matchRepository.setHostConnectivity( match: matchId, active: true, ); verify( () => dbClient.update( 'matches', DbEntityRecord( id: matchId, data: const { 'hostConnected': true, }, ), ), ); await matchRepository.setHostConnectivity( match: matchId, active: false, ); verify( () => dbClient.update( 'matches', DbEntityRecord( id: matchId, data: const { 'hostConnected': false, }, ), ), ); }); }); group('getPlayerConnectivity', () { late DbClient dbClient; late MatchRepository matchRepository; const userId = 'userId'; setUp(() { dbClient = _MockDbClient(); final cardsRepository = _MockCardRepository(); final matchSolver = _MockMatchSolver(); matchRepository = MatchRepository( cardsRepository: cardsRepository, dbClient: dbClient, matchSolver: matchSolver, ); when(() => dbClient.getById(any(), any())).thenAnswer( (_) async => DbEntityRecord( id: userId, data: const { 'connected': true, }, ), ); }); test('returns the correct result', () async { final result = await matchRepository.getPlayerConnectivity( userId: userId, ); expect(result, isTrue); verify(() => dbClient.getById('connection_states', userId)).called(1); }); }); group('setPlayerConnectivity', () { late DbClient dbClient; late MatchRepository matchRepository; const userId = 'userId'; setUp(() { dbClient = _MockDbClient(); final cardsRepository = _MockCardRepository(); final matchSolver = _MockMatchSolver(); matchRepository = MatchRepository( cardsRepository: cardsRepository, dbClient: dbClient, matchSolver: matchSolver, ); when(() => dbClient.update(any(), any())).thenAnswer((_) async {}); }); test('updates data on the dbClient', () async { await matchRepository.setPlayerConnectivity( userId: userId, connected: false, ); verify( () => dbClient.update( 'connection_states', DbEntityRecord( id: userId, data: const {'connected': false}, ), ), ).called(1); }); }); }); }
io_flip/api/packages/match_repository/test/src/match_repository_test.dart/0
{ "file_path": "io_flip/api/packages/match_repository/test/src/match_repository_test.dart", "repo_id": "io_flip", "token_count": 23406 }
879
const characters = [ 'Dash', 'Sparky', 'Android', 'Dino', ]; const classes = [ 'Captain', 'Chef', 'Cowboy', 'Fairy', 'King', 'Mage', 'Magician', 'Pilot', 'Pirate', 'Queen', 'Royalty', 'Sailor', 'Viking', 'Wizard', ]; const powers = [ 'Astrology', 'Bouncing', 'Break Dancing', 'Bubble Bursting', 'Chocolate', 'Clumsiness', 'Cuteness', 'Dancing', 'Duplication', 'Elasticity', 'Fake Crying', 'Flight', 'Glitter Bombing', 'Glowing', 'Hiccups', 'Hopping', 'Hugs', 'Humming', 'Hypnosis', 'Instant Cooking', 'Invisibility', 'Jazzercise', 'Jumping', 'Levitation', 'Line Dancing', 'Magnetism', 'Making Puns', 'Math', 'Moonwalking', 'Party Vision', 'Playing tag', 'Quantum Leaping', 'Rhyming', 'Shape Shifting', 'Silliness', 'Skipping', 'Sleeping', 'Sneezing', 'Super Smell', 'Super Speed', 'Super Strength', 'Teleportation', 'Tickling', 'Time Travel', 'Translation', 'Trivia', 'Weather', 'Whistling', 'X-Ray Vision', 'Yawning', ]; const locations = [ 'Volcano', 'Pyramids', 'Castle', 'Spaceship', 'Haunted House', 'Snowy Mountains', 'Mountains', 'Desert', 'Grassy Field', 'Active Volcano', 'Beach', 'Lightning Storm', 'Sunken Ship', 'Outer Space', 'Snow Storm', ];
io_flip/api/prompts.dart/0
{ "file_path": "io_flip/api/prompts.dart", "repo_id": "io_flip", "token_count": 558 }
880
import 'dart:async'; import 'dart:io'; import 'package:dart_frog/dart_frog.dart'; import 'package:logging/logging.dart'; import 'package:match_repository/match_repository.dart'; FutureOr<Response> onRequest(RequestContext context, String matchId) async { if (context.request.method == HttpMethod.patch) { final matchRepository = context.read<MatchRepository>(); try { final match = await matchRepository.getMatch(matchId); final matchState = await matchRepository.getMatchState(matchId); if (match == null || matchState == null) { return Response(statusCode: HttpStatus.notFound); } await matchRepository.calculateMatchResult( match: match, matchState: matchState, ); } catch (e, s) { context.read<Logger>().warning('Error calculating match result', e, s); return Response(statusCode: HttpStatus.badRequest); } return Response(statusCode: HttpStatus.noContent); } return Response(statusCode: HttpStatus.methodNotAllowed); }
io_flip/api/routes/game/matches/[matchId]/result.dart/0
{ "file_path": "io_flip/api/routes/game/matches/[matchId]/result.dart", "repo_id": "io_flip", "token_count": 369 }
881
// ignore_for_file: lines_longer_than_80_chars 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:jwt_middleware/jwt_middleware.dart'; import 'package:logging/logging.dart'; import 'package:match_repository/match_repository.dart'; import 'package:mocktail/mocktail.dart'; import 'package:prompt_repository/prompt_repository.dart'; import 'package:test/test.dart'; import '../../../../../routes/game/matches/[matchId]/connect.dart' as route; class _MockMatchRepository extends Mock implements MatchRepository {} class _MockCardsRepository extends Mock implements CardsRepository {} class _MockPromptRepository extends Mock implements PromptRepository {} class _MockAuthenticatedUser extends Mock implements AuthenticatedUser {} class _MockRequestContext extends Mock implements RequestContext {} class _MockLogger extends Mock implements Logger {} class _MockRequest extends Mock implements Request {} void main() { late CardsRepository cardsRepository; late MatchRepository matchRepository; late PromptRepository promptRepository; late AuthenticatedUser user; late Request request; late RequestContext context; late Logger logger; const matchId = 'matchId'; const userId = 'userId'; final cards = List.generate( 12, (_) => const Card( id: '', name: '', description: '', rarity: true, image: '', power: 1, suit: Suit.air, ), ); setUp(() { cardsRepository = _MockCardsRepository(); when( () => cardsRepository.createCpuDeck( cards: any(named: 'cards'), userId: any(named: 'userId'), ), ).thenAnswer((_) async => 'deckId'); when( () => cardsRepository.generateCards( characterClass: any(named: 'characterClass'), characterPower: any(named: 'characterPower'), ), ).thenAnswer((_) async => cards); matchRepository = _MockMatchRepository(); when( () => matchRepository.setCpuConnectivity( matchId: matchId, deckId: any(named: 'deckId'), ), ).thenAnswer( (_) async {}, ); when( () => matchRepository.getPlayerConnectivity(userId: userId), ).thenAnswer((_) => Future.value(true)); when( () => matchRepository.isDraftMatch(matchId), ).thenAnswer((_) => Future.value(true)); promptRepository = _MockPromptRepository(); when( () => promptRepository.getPromptTermsByType(PromptTermType.characterClass), ).thenAnswer( (_) async => const [ PromptTerm( id: 'id', term: 'Mage', type: PromptTermType.characterClass, ), ], ); when( () => promptRepository.getPromptTermsByType(PromptTermType.power), ).thenAnswer( (_) async => const [ PromptTerm( id: 'id', term: 'Super Smell', type: PromptTermType.power, ), ], ); user = _MockAuthenticatedUser(); when(() => user.id).thenReturn(userId); request = _MockRequest(); when(() => request.method).thenReturn(HttpMethod.post); when(request.json).thenAnswer( (_) async => { 'cards': ['a', 'b', 'c'], 'userId': userId, }, ); context = _MockRequestContext(); when(() => context.request).thenReturn(request); when(() => request.uri) .thenReturn(Uri.parse('https://game/matches/connect?matchId=$matchId')); when(() => context.read<CardsRepository>()).thenReturn(cardsRepository); when(() => context.read<AuthenticatedUser>()).thenReturn(user); when(() => context.read<MatchRepository>()).thenReturn(matchRepository); when(() => context.read<PromptRepository>()).thenReturn(promptRepository); logger = _MockLogger(); when(() => context.read<Logger>()).thenReturn(logger); }); group('POST /game/matches/connect', () { test('responds with a 200', () async { final response = await route.onRequest(context, matchId); expect(response.statusCode, equals(HttpStatus.noContent)); }); test('responds with a 401 if user not connected to match', () async { when( () => matchRepository.getPlayerConnectivity(userId: userId), ).thenAnswer((_) => Future.value(false)); when(() => matchRepository.trackPlayerPresence).thenReturn(true); final response = await route.onRequest(context, matchId); expect(response.statusCode, equals(HttpStatus.forbidden)); }); test("responds with a 403 if match isn't a draft", () async { when( () => matchRepository.isDraftMatch(matchId), ).thenAnswer((_) => Future.value(false)); final response = await route.onRequest(context, matchId); expect(response.statusCode, equals(HttpStatus.forbidden)); }); test( 'responds with a 200 if user not connected to match ' 'but presence also is not tracked', () async { when( () => matchRepository.getPlayerConnectivity(userId: userId), ).thenAnswer((_) => Future.value(false)); when(() => matchRepository.trackPlayerPresence).thenReturn(false); final response = await route.onRequest(context, matchId); expect(response.statusCode, equals(HttpStatus.noContent)); }, ); test("responds with a 405 if method isn't POST", () async { when(() => request.method).thenReturn(HttpMethod.put); final response = await route.onRequest(context, matchId); expect(response.statusCode, equals(HttpStatus.methodNotAllowed)); }); test('responds with a 500 if something happens', () async { when( () => matchRepository.setCpuConnectivity( matchId: matchId, deckId: any(named: 'deckId'), ), ).thenThrow(Exception('')); final response = await route.onRequest(context, matchId); expect(response.statusCode, equals(HttpStatus.internalServerError)); }); }); }
io_flip/api/test/routes/game/matches/[matchId]/connect_test.dart/0
{ "file_path": "io_flip/api/test/routes/game/matches/[matchId]/connect_test.dart", "repo_id": "io_flip", "token_count": 2308 }
882
/// Dart tool that feed data into the Database library data_loader; export 'src/character_folder_validator.dart'; export 'src/check_missing_descriptions_loader.dart'; export 'src/check_missing_image_tables.dart'; export 'src/create_image_lookup.dart'; export 'src/data_loader.dart'; export 'src/descriptions_loader.dart'; export 'src/image_loader.dart'; export 'src/normalize_file_names.dart';
io_flip/api/tools/data_loader/lib/data_loader.dart/0
{ "file_path": "io_flip/api/tools/data_loader/lib/data_loader.dart", "repo_id": "io_flip", "token_count": 135 }
883
import 'dart:async'; import 'dart:developer'; import 'package:bloc/bloc.dart'; import 'package:flutter/widgets.dart'; class AppBlocObserver extends BlocObserver { const AppBlocObserver(); @override void onChange(BlocBase<dynamic> bloc, Change<dynamic> change) { super.onChange(bloc, change); log('onChange(${bloc.runtimeType}, $change)'); } @override void onError(BlocBase<dynamic> bloc, Object error, StackTrace stackTrace) { log('onError(${bloc.runtimeType}, $error, $stackTrace)'); super.onError(bloc, error, stackTrace); } } Future<void> bootstrap(FutureOr<Widget> Function() builder) async { FlutterError.onError = (details) { log(details.exceptionAsString(), stackTrace: details.stack); }; Bloc.observer = const AppBlocObserver(); await runZonedGuarded( () async => runApp(await builder()), (error, stackTrace) => log(error.toString(), stackTrace: stackTrace), ); }
io_flip/flop/lib/bootstrap.dart/0
{ "file_path": "io_flip/flop/lib/bootstrap.dart", "repo_id": "io_flip", "token_count": 342 }
884
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:flame/cache.dart'; import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:game_domain/game_domain.dart'; import 'package:game_script_machine/game_script_machine.dart'; import 'package:go_router/go_router.dart'; import 'package:io_flip/app_lifecycle/app_lifecycle.dart'; import 'package:io_flip/audio/audio_controller.dart'; import 'package:io_flip/connection/connection.dart'; import 'package:io_flip/gen/assets.gen.dart'; import 'package:io_flip/l10n/l10n.dart'; import 'package:io_flip/router/router.dart'; import 'package:io_flip/settings/persistence/persistence.dart'; import 'package:io_flip/settings/settings.dart'; import 'package:io_flip/style/snack_bar.dart'; import 'package:io_flip/terms_of_use/terms_of_use.dart'; import 'package:io_flip_ui/io_flip_ui.dart'; import 'package:match_maker_repository/match_maker_repository.dart'; import 'package:provider/provider.dart'; typedef CreateAudioController = AudioController Function(); @visibleForTesting AudioController updateAudioController( BuildContext context, SettingsController settings, ValueNotifier<AppLifecycleState> lifecycleNotifier, AudioController? audio, { CreateAudioController createAudioController = AudioController.new, }) { return audio ?? createAudioController() ..initialize() ..attachSettings(settings) ..attachLifecycleNotifier(lifecycleNotifier); } class App extends StatefulWidget { const App({ required this.settingsPersistence, required this.apiClient, required this.matchMakerRepository, required this.configRepository, required this.connectionRepository, required this.matchSolver, required this.gameScriptMachine, required this.user, required this.isScriptsEnabled, this.router, this.audioController, this.termsOfUseCubit, super.key, }); final SettingsPersistence settingsPersistence; final ApiClient apiClient; final MatchMakerRepository matchMakerRepository; final ConfigRepository configRepository; final ConnectionRepository connectionRepository; final MatchSolver matchSolver; final GameScriptMachine gameScriptMachine; final User user; final GoRouter? router; final AudioController? audioController; final bool isScriptsEnabled; final TermsOfUseCubit? termsOfUseCubit; @override State<App> createState() => _AppState(); } class _AppState extends State<App> { late final router = widget.router ?? createRouter( isScriptsEnabled: widget.isScriptsEnabled, ); @override Widget build(BuildContext context) { return AppLifecycleObserver( child: MultiProvider( providers: [ Provider.value(value: widget.apiClient.gameResource), Provider.value(value: widget.apiClient.scriptsResource), Provider.value(value: widget.apiClient.promptResource), Provider.value(value: widget.apiClient.leaderboardResource), Provider.value(value: widget.apiClient.shareResource), Provider.value(value: widget.matchMakerRepository), Provider.value(value: widget.configRepository), Provider.value(value: widget.connectionRepository), Provider.value(value: widget.matchSolver), Provider.value(value: widget.gameScriptMachine), Provider.value(value: widget.user), Provider.value(value: Images(prefix: '')), Provider<SettingsController>( lazy: false, create: (context) => SettingsController( persistence: widget.settingsPersistence, )..loadStateFromPersistence(), ), ProxyProvider2<SettingsController, ValueNotifier<AppLifecycleState>, AudioController>( // Ensures that the AudioController is created on startup, // and not "only when it's needed", as is default behavior. // This way, music starts immediately. lazy: false, create: (context) => widget.audioController ?? (AudioController()..initialize()), update: updateAudioController, dispose: (context, audio) => audio.dispose(), ), BlocProvider( create: (context) => ConnectionBloc( connectionRepository: widget.connectionRepository, )..add(const ConnectionRequested()), ), BlocProvider( create: (_) => widget.termsOfUseCubit ?? TermsOfUseCubit(), ) ], child: Builder( builder: (context) { return Provider<UISoundAdapter>( create: (context) { final audio = context.read<AudioController>(); return UISoundAdapter( playButtonSound: () { audio.playSfx(Assets.sfx.click); }, ); }, child: MaterialApp.router( title: 'I/O FLIP', theme: IoFlipTheme.themeData, routerConfig: router, scaffoldMessengerKey: scaffoldMessengerKey, localizationsDelegates: AppLocalizations.localizationsDelegates, supportedLocales: AppLocalizations.supportedLocales, builder: (context, child) => ConnectionOverlay(child: child), ), ); }, ), ), ); } }
io_flip/lib/app/view/app.dart/0
{ "file_path": "io_flip/lib/app/view/app.dart", "repo_id": "io_flip", "token_count": 2241 }
885
part of 'draft_bloc.dart'; abstract class DraftEvent extends Equatable { const DraftEvent(); } class DeckRequested extends DraftEvent { const DeckRequested(this.prompts); final Prompt prompts; @override List<Object> get props => []; } class PreviousCard extends DraftEvent { const PreviousCard(); @override List<Object> get props => []; } class NextCard extends DraftEvent { const NextCard(); @override List<Object> get props => []; } class CardSwiped extends DraftEvent { const CardSwiped(); @override List<Object> get props => []; } class CardSwipeStarted extends DraftEvent { const CardSwipeStarted(this.progress); final double progress; @override List<Object> get props => [progress]; } class SelectCard extends DraftEvent { const SelectCard(this.index); final int index; @override List<Object> get props => [index]; } class PlayerDeckRequested extends DraftEvent { const PlayerDeckRequested( this.cardIds, { this.createPrivateMatch, this.privateMatchInviteCode, }); final List<String> cardIds; final bool? createPrivateMatch; final String? privateMatchInviteCode; @override List<Object?> get props => [cardIds, createPrivateMatch, privateMatchInviteCode]; }
io_flip/lib/draft/bloc/draft_event.dart/0
{ "file_path": "io_flip/lib/draft/bloc/draft_event.dart", "repo_id": "io_flip", "token_count": 395 }
886
import 'package:collection/collection.dart'; import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart' hide Card; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:game_domain/game_domain.dart' as game; import 'package:game_domain/game_domain.dart'; import 'package:go_router/go_router.dart'; import 'package:io_flip/audio/audio.dart'; import 'package:io_flip/audio/audio_controller.dart'; import 'package:io_flip/game/game.dart'; import 'package:io_flip/gen/assets.gen.dart'; import 'package:io_flip/l10n/l10n.dart'; import 'package:io_flip/leaderboard/leaderboard.dart'; import 'package:io_flip/match_making/match_making.dart'; import 'package:io_flip_ui/io_flip_ui.dart'; extension on List<TickerFuture> { Future<void> get allDone => Future.wait( map( (t) => t.orCancel.then((_) {}, onError: (_) {}), ), ); } class GameView extends StatefulWidget { const GameView({super.key}); @override State<GameView> createState() => _GameViewState(); } class _GameViewState extends State<GameView> { List<ImageProvider> imagesToEvict = []; Future<void> preloadOpponentImages(List<Card> opponentCards) async { final providers = [ for (final card in opponentCards) NetworkImage(card.image), ]; imagesToEvict.addAll(providers); await Future.wait([ for (final provider in providers) precacheImage(provider, context), ]); } @override void dispose() { for (final provider in imagesToEvict) { provider.evict(); } super.dispose(); } @override Widget build(BuildContext context) { return BlocListener<GameBloc, GameState>( listenWhen: (previous, current) => current is MatchLoadedState && previous is! MatchLoadedState, listener: (context, state) { final bloc = context.read<GameBloc>(); preloadOpponentImages(bloc.opponentCards); }, child: BlocConsumer<GameBloc, GameState>( listenWhen: (previous, current) => context.read<GameBloc>().matchCompleted(current), listener: (context, state) { context.read<GameBloc>().sendMatchLeft(); }, builder: (context, state) { final l10n = context.l10n; final Widget child; if (state is MatchLoadingState) { child = const Center( child: CircularProgressIndicator(), ); } else if (state is MatchLoadFailedState) { child = IoFlipErrorView( text: 'Unable to join game!', buttonText: l10n.playAgain, onPressed: () { final deck = state.deck; if (deck != null) { GoRouter.of(context).goNamed( 'match_making', extra: MatchMakingPageData(deck: deck), ); } else { GoRouter.of(context).go('/'); } }, ); } else if (state is MatchLoadedState) { if (state.matchState.result != null && state.turnAnimationsFinished) { return const GameSummaryView(); } child = const _GameBoard(); } else if (state is LeaderboardEntryState) { child = LeaderboardEntryView( scoreCardId: state.scoreCardId, shareHandPageData: state.shareHandPageData, ); } else if (state is OpponentAbsentState) { child = IoFlipErrorView( text: 'Opponent left the game!', buttonText: l10n.playAgain, onPressed: () { final deck = state.deck; if (deck != null) { GoRouter.of(context).goNamed( 'match_making', extra: MatchMakingPageData(deck: deck), ); } else { GoRouter.of(context).go('/'); } }, ); } else { child = const SizedBox(); } return IoFlipScaffold( body: child, ); }, ), ); } } const clashCardSize = GameCardSize.md(); const playerHandCardSize = GameCardSize.xs(); const opponentHandCardSize = GameCardSize.xxs(); const counterSize = Size(56, 56); const cardSpacingX = IoFlipSpacing.sm; const cardSpacingY = IoFlipSpacing.xlg; const cardsAtHand = 3; const movingCardDuration = Duration(milliseconds: 400); const droppedCardDuration = Duration(milliseconds: 200); const turnEndDuration = Duration(milliseconds: 250); const clashSceneTransitionDuration = Duration(milliseconds: 500); class _GameBoard extends StatefulWidget { const _GameBoard(); @override State<_GameBoard> createState() => _GameBoardState(); } class _GameBoardState extends State<_GameBoard> with TickerProviderStateMixin { Offset? pointerStartPosition; Offset? pointerPosition; int? draggingCardIndex; bool draggingCardAccepted = false; bool didPlayerPlay = false; bool cardLandingShown = false; final boardSize = Size( 2 * clashCardSize.width + 2 * cardSpacingX, opponentHandCardSize.height + cardSpacingY + clashCardSize.height + cardSpacingY + playerHandCardSize.height, ); Size screenSize = Size.zero; late Offset boardOffset; late List<Offset> opponentCardOffsets; late List<Offset> clashCardOffsets; late List<Offset> playerCardStartOffsets; late List<Offset> playerCardOffsets; late List<GameCardSize> playerCardSizes; late Offset counterOffset; VelocityTracker? velocityTracker; VoidCallback? afterClashCompleted; final velocity = ValueNotifier<Offset>(Offset.zero); late List<Tween<GameCardRect?>> playerCardTweens; late List<Animation<GameCardRect?>> opponentCardAnimations; final List<TickerFuture> _runningPlayerAnimations = []; final List<TickerFuture> _runningOpponentAnimations = []; List<AnimationController> clashControllers = []; late AudioController audioController; List<AnimationController> createAnimationControllers() { return List.generate( cardsAtHand, (index) => AnimationController( duration: movingCardDuration, vsync: this, ), ); } late final opponentCardControllers = createAnimationControllers(); late final playerCardControllers = createAnimationControllers(); late final tiltTicker = createTicker(onTiltTick); late final playerAnimatedCardControllers = List.generate( cardsAtHand, (_) => AnimatedCardController(), ); @override void initState() { super.initState(); audioController = context.read<AudioController>(); layoutAll(); final bloc = context.read<GameBloc>(); final state = bloc.state; if (state is MatchLoadedState) { final cardId = state.rounds.isNotEmpty ? state.rounds.first.opponentCardId : null; if (cardId != null) { final cardIndex = bloc.opponentCards.indexWhere( (card) => card.id == cardId, ); if (cardIndex != -1) { WidgetsBinding.instance.addPostFrameCallback((_) { animateOpponentCard(cardIndex); }); } } } } @override void didChangeDependencies() { super.didChangeDependencies(); final newScreenSize = MediaQuery.sizeOf(context); if (newScreenSize != screenSize) { screenSize = newScreenSize; boardOffset = Offset( (screenSize.width - boardSize.width) / 2, (screenSize.height - boardSize.height) / 2, ); } } /// Lays out all the game board elements for the first time. void layoutAll() { // Counter position late final counterY = opponentHandCardSize.height + cardSpacingY + (clashCardSize.height - counterSize.height) / 2; late final counterX = (2 * clashCardSize.width + cardSpacingX - counterSize.width) / 2; counterOffset = Offset(counterX, counterY); // Player card start position calculations late final playerLeftPadding = (boardSize.width - cardsAtHand * (playerHandCardSize.width + cardSpacingX)) / 2; final playerCardPositionY = opponentHandCardSize.height + cardSpacingY + clashCardSize.height + cardSpacingY; playerCardStartOffsets = List.generate( cardsAtHand, (index) => Offset( index * (playerHandCardSize.width + cardSpacingX) + playerLeftPadding, playerCardPositionY, ), ); // Opponent card position calculations final opponentLeftPadding = (boardSize.width - cardsAtHand * (opponentHandCardSize.width + cardSpacingX)) / 2; opponentCardOffsets = List.generate( cardsAtHand, (index) => Offset( index * (opponentHandCardSize.width + cardSpacingX) + opponentLeftPadding, 0, ), ); // Clash zone card position calculations final clashCardPositionY = opponentHandCardSize.height + cardSpacingY; clashCardOffsets = [ Offset(0, clashCardPositionY), Offset(clashCardSize.width + 2 * cardSpacingX, clashCardPositionY), ]; playerCardOffsets = List.of(playerCardStartOffsets); playerCardSizes = List.filled(cardsAtHand, playerHandCardSize); resetCardAnimations(); } /// Resets all card animations and animation controllers. This is called /// when the game is reset in between turns. void resetCardAnimations() { for (final controller in opponentCardControllers) { controller.reset(); } for (final controller in playerCardControllers) { controller.reset(); } opponentCardAnimations = List.generate( cardsAtHand, (i) => opponentCardControllers[i].drive( GameCardRectTween( begin: GameCardRect( offset: opponentCardOffsets[i], gameCardSize: opponentHandCardSize, ), end: GameCardRect( offset: clashCardOffsets.first, gameCardSize: clashCardSize, ), ), ), ); playerCardTweens = List.generate( cardsAtHand, (i) => GameCardRectTween( begin: GameCardRect( offset: playerCardStartOffsets[i], gameCardSize: playerHandCardSize, ), end: GameCardRect( offset: clashCardOffsets.last, gameCardSize: clashCardSize, ), ), ); } int? _getCardForOffset(Offset offset) { for (var i = 0; i < playerCardStartOffsets.length; i++) { final cardRect = (playerCardStartOffsets[i] + boardOffset) & playerHandCardSize.size; if (cardRect.contains(offset)) { return i; } } return null; } void _onPanStart(DragStartDetails event) { if (draggingCardIndex != null) _onPanEnd(); final cardIndex = _getCardForOffset(event.localPosition); if (cardIndex == null) return; final bloc = context.read<GameBloc>(); final card = bloc.playerCards[cardIndex]; if (bloc.canPlayerPlay(card.id)) { setState(() { pointerStartPosition = event.localPosition; pointerPosition = event.localPosition; draggingCardIndex = cardIndex; velocityTracker = VelocityTracker.withKind(event.kind ?? PointerDeviceKind.touch); tiltTicker.start(); }); } } void _onPanUpdate(DragUpdateDetails event) { if (pointerPosition != null && pointerStartPosition != null && draggingCardIndex != null) { pointerPosition = event.localPosition; final goalRect = (clashCardOffsets.last + boardOffset) & clashCardSize.size; final goalY = goalRect.center.dy; final startDistance = pointerStartPosition!.dy - goalY; final currentDistance = pointerPosition!.dy - goalY; final progressY = 1.0 - (currentDistance / startDistance).clamp(0, 1); final relativeOffset = pointerPosition! - pointerStartPosition!; if (event.sourceTimeStamp != null) { velocityTracker?.addPosition( event.sourceTimeStamp!, event.localPosition, ); } setState(() { draggingCardAccepted = goalRect.contains(pointerPosition!); playerCardSizes[draggingCardIndex!] = GameCardSize.lerp( playerHandCardSize, clashCardSize, progressY, )!; playerCardOffsets[draggingCardIndex!] = playerCardStartOffsets[draggingCardIndex!] + relativeOffset; }); } } void _onPanEnd([_]) { final i = draggingCardIndex; if (i == null) return; playerCardTweens[i].begin = GameCardRect( offset: playerCardOffsets[i], gameCardSize: playerCardSizes[i], ); final played = draggingCardAccepted && tryToPlayCard(i); if (played) { playerCardOffsets[i] = clashCardOffsets.last; playerCardSizes[i] = clashCardSize; playerCardTweens[i].end = GameCardRect( offset: clashCardOffsets.last, gameCardSize: clashCardSize, ); } else { playerCardOffsets[i] = playerCardStartOffsets[i]; playerCardSizes[i] = playerHandCardSize; playerCardTweens[i].end = GameCardRect( offset: playerCardStartOffsets[i], gameCardSize: playerHandCardSize, ); } playerCardControllers[i].reset(); _runningPlayerAnimations.add( playerCardControllers[i].animateTo( 1, duration: droppedCardDuration, curve: Curves.easeOut, ), ); setState(() { pointerPosition = null; pointerStartPosition = null; draggingCardIndex = null; draggingCardAccepted = false; velocity.value = Offset.zero; tiltTicker.stop(); velocityTracker = null; }); } void onTiltTick(_) { const scale = 1 / 500; final pps = velocityTracker ?.getVelocity() .clampMagnitude(0, 1 / scale) .pixelsPerSecond; if (pps != null) { velocity.value = pps * scale; } } void _onTapUp(TapUpDetails event) { final index = _getCardForOffset(event.localPosition); if (index != null) { final played = tryToPlayCard(index); if (played) { final controller = playerCardControllers[index]; playerCardTweens[index].begin = GameCardRect( offset: playerCardStartOffsets[index], gameCardSize: playerHandCardSize, ); playerCardTweens[index].end = GameCardRect( offset: clashCardOffsets.last, gameCardSize: clashCardSize, ); _runningPlayerAnimations.add(controller.forward(from: 0)); } } } bool tryToPlayCard(int index) { final bloc = context.read<GameBloc>(); final card = bloc.playerCards[index]; if (bloc.state is MatchLoadedState) { final state = bloc.state as MatchLoadedState; if (bloc.canPlayerPlay(card.id) && state.turnAnimationsFinished) { context.read<GameBloc>().add(PlayerPlayed(card.id)); context.read<AudioController>().playSfx(Assets.sfx.cardMovement); didPlayerPlay = true; return true; } } return false; } void animateOpponentCard(int opponentIndex) { final controller = opponentCardControllers[opponentIndex]; _runningOpponentAnimations.add(controller.forward()); clashControllers.add(controller); } Future<void> clashSceneCompleted() async { final bloc = context.read<GameBloc>()..add(const ClashSceneCompleted()); for (final controller in clashControllers) { controller.value = 1; } await Future.wait([ for (final controller in clashControllers) Future.delayed(turnEndDuration, () => controller.reverse(from: 1)), ]); await playerAnimatedCardControllers[lastPlayedPlayerCardIndex!] .run(bigFlipAnimation); clashControllers = []; final playerCard = bloc.playerCards[lastPlayedPlayerCardIndex!]; final overlayType = bloc.isWinningCard(playerCard, isPlayer: true); if (CardOverlayType.win == overlayType) { audioController.playSfx(Assets.sfx.winMatch); } else if (CardOverlayType.lose == overlayType) { audioController.playSfx(Assets.sfx.lostMatch); } bloc ..add(const TurnAnimationsFinished()) ..add(const TurnTimerStarted()); afterClashCompleted?.call(); afterClashCompleted = null; } int? lastPlayedPlayerCardIndex; @override Widget build(BuildContext context) { final isClashScene = context.select<GameBloc, bool>( (bloc) => bloc.state is MatchLoadedState && (bloc.state as MatchLoadedState).isClashScene, ); final playerCards = context.select<GameBloc, List<Card>>((bloc) => bloc.playerCards); final opponentCards = context.select<GameBloc, List<Card>>((bloc) => bloc.opponentCards); return BlocListener<GameBloc, GameState>( listenWhen: (previous, current) { if (previous is MatchLoadedState && current is MatchLoadedState) { return previous.rounds != current.rounds || previous.showCardLanding != current.showCardLanding; } return false; }, listener: (context, state) async { if (state is MatchLoadedState) { final bloc = context.read<GameBloc>(); final lastPlayedCardId = state.lastPlayedCardId; final playerIndex = playerCards .indexWhere((element) => element.id == lastPlayedCardId); final opponentIndex = opponentCards .indexWhere((element) => element.id == lastPlayedCardId); if (playerIndex >= 0) { final controller = playerCardControllers[playerIndex]; lastPlayedPlayerCardIndex = playerIndex; draggingCardAccepted = false; _onPanEnd(); if (!didPlayerPlay) { final animation = playerCardTweens[playerIndex]; animation ..begin = animation.evaluate(controller) ..end = GameCardRect( offset: clashCardOffsets.last, gameCardSize: clashCardSize, ); _runningPlayerAnimations.add(controller.forward(from: 0)); } clashControllers.add(controller); await _runningPlayerAnimations.allDone; _runningPlayerAnimations.add( playerAnimatedCardControllers[playerIndex].run(bigFlipAnimation), ); Future.delayed(bigFlipAnimation.duration * .85, () { cardLandingShown = true; context.read<GameBloc>().add(const CardLandingStarted()); }); } if (opponentIndex >= 0) { if (state.isClashScene) { afterClashCompleted = () => animateOpponentCard(opponentIndex); } else { animateOpponentCard(opponentIndex); } } if (state.rounds.isNotEmpty) { if (cardLandingShown && !state.showCardLanding && state.rounds.last.isComplete()) { await _runningPlayerAnimations.allDone; await _runningOpponentAnimations.allDone; _runningPlayerAnimations.clear(); _runningOpponentAnimations.clear(); resetCardAnimations(); didPlayerPlay = false; cardLandingShown = false; bloc.add(const ClashSceneStarted()); } } } }, child: GestureDetector( onPanStart: _onPanStart, onPanUpdate: _onPanUpdate, onPanEnd: _onPanEnd, onTapUp: _onTapUp, child: Stack( children: [ AnimatedScale( duration: clashSceneTransitionDuration, curve: Curves.easeOutCubic, scale: isClashScene ? 4 : 1.4, child: Center( child: Image.asset( platformAwareAsset( desktop: Assets.images.desktop.stadiumBackground.keyName, mobile: Assets.images.mobile.stadiumBackground.keyName, ), fit: BoxFit.cover, ), ), ), AnimatedOpacity( duration: clashSceneTransitionDuration, opacity: isClashScene ? 0 : 1, child: Center( child: SizedBox.fromSize( size: boardSize, child: Stack( clipBehavior: Clip.none, children: [ for (final offset in playerCardStartOffsets) _PlaceholderCard( rect: offset & playerHandCardSize.size, ), for (final offset in opponentCardOffsets) _PlaceholderCard( rect: offset & opponentHandCardSize.size, ), ...clashCardOffsets.mapIndexed( (i, offset) { var rect = offset & clashCardSize.size; if (i == 1 && draggingCardAccepted) { rect = rect.inflate(8); } return _ClashCard( key: Key('clash_card_$i'), rect: rect, showPlus: i == 1, ); }, ), ...opponentCards.mapIndexed( (i, card) { return _OpponentCard( card: card, animation: opponentCardAnimations[i], ); }, ), const _CardLandingPuffEffect(), for (var i = 0; i < playerCards.length; i++) AnimatedBuilder( animation: playerCardControllers[i], builder: (context, _) => ValueListenableBuilder( valueListenable: i == draggingCardIndex ? velocity : const AlwaysStoppedAnimation(Offset.zero), builder: (context, velocity, child) => _PlayerCard( card: playerCards[i], isDragging: i == draggingCardIndex, velocity: velocity, rect: i == draggingCardIndex ? GameCardRect( gameCardSize: playerCardSizes[i], offset: playerCardOffsets[i], ) : playerCardTweens[i] .evaluate(playerCardControllers[i])!, animatedCardController: playerAnimatedCardControllers[i], ), ), ), _BoardCounter(counterOffset), ], ), ), ), ), const Positioned( left: 0, bottom: 0, child: Padding( padding: EdgeInsets.all(IoFlipSpacing.sm), child: AudioToggleButton(), ), ), _ClashScene( onFinished: clashSceneCompleted, boardSize: boardSize, ) ], ), ), ); } @override void dispose() { final controllers = [ ...playerCardControllers, ...opponentCardControllers, ]; for (final element in controllers) { element.dispose(); } for (final element in playerAnimatedCardControllers) { element.dispose(); } tiltTicker.dispose(); super.dispose(); } } class _PlaceholderCard extends StatelessWidget { const _PlaceholderCard({required this.rect}); final Rect rect; @override Widget build(BuildContext context) { return Positioned.fromRect( rect: rect, child: Container( alignment: Alignment.center, decoration: BoxDecoration( color: IoFlipColors.seedWhite.withOpacity(0.15), borderRadius: BorderRadius.circular(rect.width * 0.08), border: Border.all( color: IoFlipColors.seedPaletteNeutral95, ), ), child: Opacity( opacity: 0.6, child: IoFlipLogo.white( width: rect.width - 20, ), ), ), ); } } class _OpponentCard extends StatelessWidget { const _OpponentCard({ required this.card, required this.animation, }); final game.Card card; final Animation<GameCardRect?> animation; @override Widget build(BuildContext context) { final overlay = context.select<GameBloc, CardOverlayType?>( (bloc) => bloc.isWinningCard(card, isPlayer: false), ); final alreadyPlayed = context.select<GameBloc, bool>((bloc) { if (bloc.state is MatchLoadedState) { final state = bloc.state as MatchLoadedState; return state.rounds.any( (round) => round.isComplete() && round.opponentCardId == card.id, ); } return false; }); return AnimatedBuilder( animation: animation, builder: (context, _) { final position = animation.value!; return Positioned.fromRect( key: Key('opponent_card_${card.id}'), rect: position.rect, child: alreadyPlayed && animation.isDismissed ? Stack( children: [ GameCard( key: Key('opponent_revealed_card_${card.id}'), image: card.image, name: card.name, description: card.description, power: card.power, suitName: card.suit.name, isRare: card.rarity, size: position.gameCardSize, overlay: overlay, isDimmed: true, ), ], ) : FlippedGameCard( key: Key('opponent_hidden_card_${card.id}'), size: const GameCardSize.xxs(), ), ); }, ); } } class _PlayerCard extends StatelessWidget { const _PlayerCard({ required this.card, required this.rect, required this.animatedCardController, required this.isDragging, required this.velocity, }); final game.Card card; final GameCardRect rect; final AnimatedCardController animatedCardController; final bool isDragging; final Offset velocity; @override Widget build(BuildContext context) { final overlay = context.select<GameBloc, CardOverlayType?>( (bloc) => bloc.isWinningCard(card, isPlayer: true), ); return Positioned.fromRect( key: Key('player_card_${card.id}'), rect: rect.rect, child: MouseRegion( cursor: isDragging ? SystemMouseCursors.grabbing : SystemMouseCursors.grab, child: AnimatedCard( controller: animatedCardController, front: GameCard( tilt: velocity, image: card.image, name: card.name, description: card.description, power: card.power, suitName: card.suit.name, isRare: card.rarity, size: rect.gameCardSize, overlay: overlay, isDimmed: overlay != null, ), back: const FlippedGameCard( size: GameCardSize.xxs(), ), ), ), ); } } class _ClashCard extends StatelessWidget { const _ClashCard({ required this.rect, required this.showPlus, super.key, }); final Rect rect; final bool showPlus; @override Widget build(BuildContext context) { return AnimatedPositioned.fromRect( duration: const Duration(milliseconds: 200), rect: rect, child: Container( alignment: Alignment.center, decoration: BoxDecoration( color: IoFlipColors.seedWhite.withOpacity(0.15), borderRadius: BorderRadius.circular(rect.width * 0.08), border: Border.all( color: IoFlipColors.seedPaletteNeutral95, ), ), child: showPlus ? const SizedBox.square( dimension: 57, child: CustomPaint(painter: CrossPainter()), ) : const SizedBox(), ), ); } } @visibleForTesting class CrossPainter extends CustomPainter { const CrossPainter(); @override void paint(Canvas canvas, Size size) { final paint = Paint() ..color = IoFlipColors.seedWhite ..style = PaintingStyle.stroke; canvas ..drawLine( Offset(size.width / 2, 0), Offset(size.width / 2, size.height), paint, ) ..drawLine( Offset(0, size.height / 2), Offset(size.width, size.height / 2), paint, ); } @override bool shouldRepaint(covariant CrossPainter oldDelegate) => false; } class _BoardCounter extends StatelessWidget { const _BoardCounter(this.counterOffset); final Offset counterOffset; @override Widget build(BuildContext context) { final turnTimeRemaining = context.select( (GameBloc bloc) => bloc.state is MatchLoadedState ? (bloc.state as MatchLoadedState).turnTimeRemaining : 0, ); return Positioned( left: counterOffset.dx, top: counterOffset.dy, child: DecoratedBox( decoration: BoxDecoration( shape: BoxShape.circle, border: Border.all( color: IoFlipColors.seedWhite.withOpacity(.25), width: 8, strokeAlign: BorderSide.strokeAlignOutside, ), ), child: Container( alignment: Alignment.center, width: counterSize.width, height: counterSize.height, decoration: BoxDecoration( color: IoFlipColors.seedWhite, shape: BoxShape.circle, border: Border.all(color: IoFlipColors.seedBlack, width: 2), ), child: Text( '$turnTimeRemaining', style: IoFlipTextStyles.cardNumberLG .copyWith(color: IoFlipColors.seedBlack), ), ), ), ); } } class _CardLandingPuffEffect extends StatelessWidget { const _CardLandingPuffEffect(); @override Widget build(BuildContext context) { final showCardLanding = context.select<GameBloc, bool>( (bloc) => bloc.state is MatchLoadedState && (bloc.state as MatchLoadedState).showCardLanding, ); if (showCardLanding) { return Positioned( top: -20, right: -160, child: CardLandingPuff( playing: showCardLanding, onComplete: () { context.read<GameBloc>().add(const CardLandingCompleted()); }, ), ); } return const SizedBox(); } } class _ClashScene extends StatefulWidget { const _ClashScene({ required this.onFinished, required this.boardSize, }); final VoidCallback onFinished; final Size boardSize; @override State<_ClashScene> createState() => _ClashSceneState(); } class _ClashSceneState extends State<_ClashScene> { @override void initState() { super.initState(); } @override Widget build(BuildContext context) { final isClashScene = context.select<GameBloc, bool>( (bloc) => bloc.state is MatchLoadedState && (bloc.state as MatchLoadedState).isClashScene, ); if (isClashScene) { final opponentCard = context.select<GameBloc, Card>( (bloc) => bloc.clashSceneOpponentCard, ); final playerCard = context.select<GameBloc, Card>( (bloc) => bloc.clashScenePlayerCard, ); return Positioned.fill( child: ClashScene( onFinished: widget.onFinished, opponentCard: opponentCard, playerCard: playerCard, ), ); } return const SizedBox(); } }
io_flip/lib/game/views/game_view.dart/0
{ "file_path": "io_flip/lib/game/views/game_view.dart", "repo_id": "io_flip", "token_count": 14990 }
887
import 'package:flutter/material.dart'; import 'package:io_flip_ui/io_flip_ui.dart'; import 'package:styled_text/styled_text.dart'; class HowToPlayStyledText extends StatelessWidget { const HowToPlayStyledText(this.text, {super.key}); final String text; @override Widget build(BuildContext context) { return StyledText( text: text, style: textStyle, tags: textTags(), textAlign: TextAlign.center, ); } TextStyle get textStyle => IoFlipTextStyles.mobileH4Light; Map<String, StyledTextTagBase> textTags() { return { 'yellow': StyledTextTag( style: const TextStyle(color: IoFlipColors.seedYellow), ), 'lightblue': StyledTextTag( style: const TextStyle(color: IoFlipColors.seedPaletteLightBlue80), ), 'green': StyledTextTag( style: const TextStyle(color: IoFlipColors.seedGreen), ), 'red': StyledTextTag( style: const TextStyle(color: IoFlipColors.seedRed), ), 'blue': StyledTextTag( style: const TextStyle(color: IoFlipColors.seedBlue), ), }; } }
io_flip/lib/how_to_play/widgets/how_to_play_styled_text.dart/0
{ "file_path": "io_flip/lib/how_to_play/widgets/how_to_play_styled_text.dart", "repo_id": "io_flip", "token_count": 460 }
888
import 'package:api_client/api_client.dart'; import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:io_flip/leaderboard/initials_form/initials_form.dart'; import 'package:io_flip/share/share.dart'; class InitialsForm extends StatelessWidget { const InitialsForm({ required this.scoreCardId, this.shareHandPageData, super.key, }); final String scoreCardId; final ShareHandPageData? shareHandPageData; @override Widget build(BuildContext context) { final leaderboardResource = context.read<LeaderboardResource>(); return BlocProvider( create: (_) => InitialsFormBloc( leaderboardResource: leaderboardResource, scoreCardId: scoreCardId, ), child: InitialsFormView( shareHandPageData: shareHandPageData, ), ); } }
io_flip/lib/leaderboard/initials_form/view/initials_form.dart/0
{ "file_path": "io_flip/lib/leaderboard/initials_form/view/initials_form.dart", "repo_id": "io_flip", "token_count": 311 }
889
export 'bloc/match_making_bloc.dart'; export 'views/views.dart';
io_flip/lib/match_making/match_making.dart/0
{ "file_path": "io_flip/lib/match_making/match_making.dart", "repo_id": "io_flip", "token_count": 26 }
890
export 'card_master.dart'; export 'snap_item_scroll_physics.dart';
io_flip/lib/prompt/widgets/widgets.dart/0
{ "file_path": "io_flip/lib/prompt/widgets/widgets.dart", "repo_id": "io_flip", "token_count": 25 }
891
part of 'download_bloc.dart'; enum DownloadStatus { idle, loading, completed, failure, } class DownloadState extends Equatable { const DownloadState({ this.status = DownloadStatus.idle, }); final DownloadStatus status; DownloadState copyWith({ DownloadStatus? status, }) { return DownloadState(status: status ?? this.status); } @override List<Object?> get props => [status]; }
io_flip/lib/share/bloc/download_state.dart/0
{ "file_path": "io_flip/lib/share/bloc/download_state.dart", "repo_id": "io_flip", "token_count": 134 }
892
import 'package:flutter/material.dart'; import 'package:url_launcher/url_launcher.dart'; abstract class ExternalLinks { static const String googleIO = 'https://io.google/2023/'; static const String privacyPolicy = 'https://policies.google.com/privacy'; static const String termsOfService = 'https://policies.google.com/terms'; static const String faq = 'https://flutter.dev/flip'; static const String howItsMade = 'https://flutter.dev/flip'; static const String openSourceCode = 'https://github.com/flutter/io_flip'; static const String devAward = 'https://developers.google.com/profile/badges/events/io/2023/flip_game/award'; } Future<void> openLink(String url, {VoidCallback? onError}) async { final uri = Uri.parse(url); if (await canLaunchUrl(uri)) { await launchUrl(uri); } else if (onError != null) { onError(); } }
io_flip/lib/utils/external_links.dart/0
{ "file_path": "io_flip/lib/utils/external_links.dart", "repo_id": "io_flip", "token_count": 293 }
893
export 'game_resource.dart'; export 'leaderboard_resource.dart'; export 'prompt_resource.dart'; export 'scripts_resource.dart'; export 'share_resource.dart';
io_flip/packages/api_client/lib/src/resources/resources.dart/0
{ "file_path": "io_flip/packages/api_client/lib/src/resources/resources.dart", "repo_id": "io_flip", "token_count": 52 }
894
export 'user.dart';
io_flip/packages/authentication_repository/lib/src/models/models.dart/0
{ "file_path": "io_flip/packages/authentication_repository/lib/src/models/models.dart", "repo_id": "io_flip", "token_count": 8 }
895
import 'package:flutter/material.dart'; import 'package:gallery/story_scaffold.dart'; import 'package:io_flip_ui/io_flip_ui.dart'; class AppColorsStory extends StatelessWidget { const AppColorsStory({super.key}); @override Widget build(BuildContext context) { const colorItems = [ _ColorItem(name: 'gold', color: IoFlipColors.seedGold), _ColorItem(name: 'silver', color: IoFlipColors.seedSilver), _ColorItem(name: 'bronze', color: IoFlipColors.seedBronze), _ColorItem(name: 'seedLightBlue', color: IoFlipColors.seedLightBlue), _ColorItem(name: 'seedBlue', color: IoFlipColors.seedBlue), _ColorItem(name: 'seedRed', color: IoFlipColors.seedRed), _ColorItem(name: 'seedYellow', color: IoFlipColors.seedYellow), _ColorItem(name: 'seedGreen', color: IoFlipColors.seedGreen), _ColorItem(name: 'seedBrown', color: IoFlipColors.seedBrown), _ColorItem(name: 'seedBlack', color: IoFlipColors.seedBlack), _ColorItem(name: 'seedGrey30', color: IoFlipColors.seedGrey30), _ColorItem(name: 'seedGrey50', color: IoFlipColors.seedGrey50), _ColorItem(name: 'seedGrey70', color: IoFlipColors.seedGrey70), _ColorItem(name: 'seedGrey80', color: IoFlipColors.seedGrey80), _ColorItem(name: 'seedGrey90', color: IoFlipColors.seedGrey90), _ColorItem(name: 'seedWhite', color: IoFlipColors.seedWhite), _ColorItem(name: 'seedScrim', color: IoFlipColors.seedScrim), _ColorItem( name: 'seedPaletteLightBlue0', color: IoFlipColors.seedPaletteLightBlue0, ), _ColorItem( name: 'seedPaletteLightBlue10', color: IoFlipColors.seedPaletteLightBlue10, ), _ColorItem( name: 'seedPaletteLightBlue20', color: IoFlipColors.seedPaletteLightBlue20, ), _ColorItem( name: 'seedPaletteLightBlue30', color: IoFlipColors.seedPaletteLightBlue30, ), _ColorItem( name: 'seedPaletteLightBlue40', color: IoFlipColors.seedPaletteLightBlue40, ), _ColorItem( name: 'seedPaletteLightBlue50', color: IoFlipColors.seedPaletteLightBlue50, ), _ColorItem( name: 'seedPaletteLightBlue60', color: IoFlipColors.seedPaletteLightBlue60, ), _ColorItem( name: 'seedPaletteLightBlue70', color: IoFlipColors.seedPaletteLightBlue70, ), _ColorItem( name: 'seedPaletteLightBlue80', color: IoFlipColors.seedPaletteLightBlue80, ), _ColorItem( name: 'seedPaletteLightBlue90', color: IoFlipColors.seedPaletteLightBlue90, ), _ColorItem( name: 'seedPaletteLightBlue95', color: IoFlipColors.seedPaletteLightBlue95, ), _ColorItem( name: 'seedPaletteLightBlue99', color: IoFlipColors.seedPaletteLightBlue99, ), _ColorItem( name: 'seedPaletteLightBlue100', color: IoFlipColors.seedPaletteLightBlue100, ), _ColorItem( name: 'seedPaletteBlue0', color: IoFlipColors.seedPaletteBlue0, ), _ColorItem( name: 'seedPaletteBlue10', color: IoFlipColors.seedPaletteBlue10, ), _ColorItem( name: 'seedPaletteBlue20', color: IoFlipColors.seedPaletteBlue20, ), _ColorItem( name: 'seedPaletteBlue30', color: IoFlipColors.seedPaletteBlue30, ), _ColorItem( name: 'seedPaletteBlue40', color: IoFlipColors.seedPaletteBlue40, ), _ColorItem( name: 'seedPaletteBlue50', color: IoFlipColors.seedPaletteBlue50, ), _ColorItem( name: 'seedPaletteBlue60', color: IoFlipColors.seedPaletteBlue60, ), _ColorItem( name: 'seedPaletteBlue70', color: IoFlipColors.seedPaletteBlue70, ), _ColorItem( name: 'seedPaletteBlue80', color: IoFlipColors.seedPaletteBlue80, ), _ColorItem( name: 'seedPaletteBlue90', color: IoFlipColors.seedPaletteBlue90, ), _ColorItem( name: 'seedPaletteBlue95', color: IoFlipColors.seedPaletteBlue95, ), _ColorItem( name: 'seedPaletteBlue99', color: IoFlipColors.seedPaletteBlue99, ), _ColorItem( name: 'seedPaletteBlue100', color: IoFlipColors.seedPaletteBlue100, ), _ColorItem(name: 'seedPaletteRed0', color: IoFlipColors.seedPaletteRed0), _ColorItem( name: 'seedPaletteRed10', color: IoFlipColors.seedPaletteRed10, ), _ColorItem( name: 'seedPaletteRed20', color: IoFlipColors.seedPaletteRed20, ), _ColorItem( name: 'seedPaletteRed30', color: IoFlipColors.seedPaletteRed30, ), _ColorItem( name: 'seedPaletteRed40', color: IoFlipColors.seedPaletteRed40, ), _ColorItem( name: 'seedPaletteRed50', color: IoFlipColors.seedPaletteRed50, ), _ColorItem( name: 'seedPaletteRed60', color: IoFlipColors.seedPaletteRed60, ), _ColorItem( name: 'seedPaletteRed70', color: IoFlipColors.seedPaletteRed70, ), _ColorItem( name: 'seedPaletteRed80', color: IoFlipColors.seedPaletteRed80, ), _ColorItem( name: 'seedPaletteRed90', color: IoFlipColors.seedPaletteRed90, ), _ColorItem( name: 'seedPaletteRed95', color: IoFlipColors.seedPaletteRed95, ), _ColorItem( name: 'seedPaletteRed99', color: IoFlipColors.seedPaletteRed99, ), _ColorItem( name: 'seedPaletteRed100', color: IoFlipColors.seedPaletteRed100, ), _ColorItem( name: 'seedPaletteGreen0', color: IoFlipColors.seedPaletteGreen0, ), _ColorItem( name: 'seedPaletteGreen10', color: IoFlipColors.seedPaletteGreen10, ), _ColorItem( name: 'seedPaletteGreen20', color: IoFlipColors.seedPaletteGreen20, ), _ColorItem( name: 'seedPaletteGreen30', color: IoFlipColors.seedPaletteGreen30, ), _ColorItem( name: 'seedPaletteGreen40', color: IoFlipColors.seedPaletteGreen40, ), _ColorItem( name: 'seedPaletteGreen50', color: IoFlipColors.seedPaletteGreen50, ), _ColorItem( name: 'seedPaletteGreen60', color: IoFlipColors.seedPaletteGreen60, ), _ColorItem( name: 'seedPaletteGreen70', color: IoFlipColors.seedPaletteGreen70, ), _ColorItem( name: 'seedPaletteGreen80', color: IoFlipColors.seedPaletteGreen80, ), _ColorItem( name: 'seedPaletteGreen90', color: IoFlipColors.seedPaletteGreen90, ), _ColorItem( name: 'seedPaletteGreen95', color: IoFlipColors.seedPaletteGreen95, ), _ColorItem( name: 'seedPaletteGreen99', color: IoFlipColors.seedPaletteGreen99, ), _ColorItem( name: 'seedPaletteGreen100', color: IoFlipColors.seedPaletteGreen100, ), _ColorItem( name: 'seedPaletteYellow0', color: IoFlipColors.seedPaletteYellow0, ), _ColorItem( name: 'seedPaletteYellow10', color: IoFlipColors.seedPaletteYellow10, ), _ColorItem( name: 'seedPaletteYellow20', color: IoFlipColors.seedPaletteYellow20, ), _ColorItem( name: 'seedPaletteYellow30', color: IoFlipColors.seedPaletteYellow30, ), _ColorItem( name: 'seedPaletteYellow40', color: IoFlipColors.seedPaletteYellow40, ), _ColorItem( name: 'seedPaletteYellow50', color: IoFlipColors.seedPaletteYellow50, ), _ColorItem( name: 'seedPaletteYellow60', color: IoFlipColors.seedPaletteYellow60, ), _ColorItem( name: 'seedPaletteYellow70', color: IoFlipColors.seedPaletteYellow70, ), _ColorItem( name: 'seedPaletteYellow80', color: IoFlipColors.seedPaletteYellow80, ), _ColorItem( name: 'seedPaletteYellow90', color: IoFlipColors.seedPaletteYellow90, ), _ColorItem( name: 'seedPaletteYellow95', color: IoFlipColors.seedPaletteYellow95, ), _ColorItem( name: 'seedPaletteYellow99', color: IoFlipColors.seedPaletteYellow99, ), _ColorItem( name: 'seedPaletteYellow100', color: IoFlipColors.seedPaletteYellow100, ), _ColorItem( name: 'seedPaletteBrown0', color: IoFlipColors.seedPaletteBrown0, ), _ColorItem( name: 'seedPaletteBrown10', color: IoFlipColors.seedPaletteBrown10, ), _ColorItem( name: 'seedPaletteBrown20', color: IoFlipColors.seedPaletteBrown20, ), _ColorItem( name: 'seedPaletteBrown30', color: IoFlipColors.seedPaletteBrown30, ), _ColorItem( name: 'seedPaletteBrown40', color: IoFlipColors.seedPaletteBrown40, ), _ColorItem( name: 'seedPaletteBrown50', color: IoFlipColors.seedPaletteBrown50, ), _ColorItem( name: 'seedPaletteBrown60', color: IoFlipColors.seedPaletteBrown60, ), _ColorItem( name: 'seedPaletteBrown70', color: IoFlipColors.seedPaletteBrown70, ), _ColorItem( name: 'seedPaletteBrown80', color: IoFlipColors.seedPaletteBrown80, ), _ColorItem( name: 'seedPaletteBrown90', color: IoFlipColors.seedPaletteBrown90, ), _ColorItem( name: 'seedPaletteBrown95', color: IoFlipColors.seedPaletteBrown95, ), _ColorItem( name: 'seedPaletteBrown99', color: IoFlipColors.seedPaletteBrown99, ), _ColorItem( name: 'seedPaletteBrown100', color: IoFlipColors.seedPaletteBrown100, ), _ColorItem( name: 'seedPaletteNeutral0', color: IoFlipColors.seedPaletteNeutral0, ), _ColorItem( name: 'seedPaletteNeutral10', color: IoFlipColors.seedPaletteNeutral10, ), _ColorItem( name: 'seedPaletteNeutral20', color: IoFlipColors.seedPaletteNeutral20, ), _ColorItem( name: 'seedPaletteNeutral30', color: IoFlipColors.seedPaletteNeutral30, ), _ColorItem( name: 'seedPaletteNeutral40', color: IoFlipColors.seedPaletteNeutral40, ), _ColorItem( name: 'seedPaletteNeutral50', color: IoFlipColors.seedPaletteNeutral50, ), _ColorItem( name: 'seedPaletteNeutral60', color: IoFlipColors.seedPaletteNeutral60, ), _ColorItem( name: 'seedPaletteNeutral70', color: IoFlipColors.seedPaletteNeutral70, ), _ColorItem( name: 'seedPaletteNeutral80', color: IoFlipColors.seedPaletteNeutral80, ), _ColorItem( name: 'seedPaletteNeutral90', color: IoFlipColors.seedPaletteNeutral90, ), _ColorItem( name: 'seedPaletteNeutral95', color: IoFlipColors.seedPaletteNeutral95, ), _ColorItem( name: 'seedPaletteNeutral99', color: IoFlipColors.seedPaletteNeutral99, ), _ColorItem( name: 'seedPaletteNeutral100', color: IoFlipColors.seedPaletteNeutral100, ), _ColorItem( name: 'seedArchiveGrey99', color: IoFlipColors.seedArchiveGrey99, ), _ColorItem( name: 'seedArchiveGrey95', color: IoFlipColors.seedArchiveGrey95, ), _ColorItem(name: 'accessibleBlack', color: IoFlipColors.accessibleBlack), _ColorItem(name: 'accessibleGrey', color: IoFlipColors.accessibleGrey), _ColorItem( name: 'accessibleBrandLightBlue', color: IoFlipColors.accessibleBrandLightBlue, ), _ColorItem( name: 'accessibleBrandBlue', color: IoFlipColors.accessibleBrandBlue, ), _ColorItem( name: 'accessibleBrandRed', color: IoFlipColors.accessibleBrandRed, ), _ColorItem( name: 'accessibleBrandYellow', color: IoFlipColors.accessibleBrandYellow, ), _ColorItem( name: 'accessibleBrandGreen', color: IoFlipColors.accessibleBrandGreen, ), ]; return const StoryScaffold( title: 'Colors', body: SingleChildScrollView( child: Wrap( children: colorItems, ), ), ); } } class _ColorItem extends StatelessWidget { const _ColorItem({ required this.name, required this.color, }); final String name; final Color color; @override Widget build(BuildContext context) { return Padding( padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 16), child: Column( mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[ Text(name), const SizedBox(height: 16), _ColorSquare(color: color), ], ), ); } } class _ColorSquare extends StatelessWidget { const _ColorSquare({required this.color}); final Color color; TextStyle get textStyle { return TextStyle( color: color.computeLuminance() > 0.5 ? Colors.black : Colors.white, ); } String get hexCode { if (color.value.toRadixString(16).length <= 2) { return '--'; } else { return '#${color.value.toRadixString(16).substring(2).toUpperCase()}'; } } @override Widget build(BuildContext context) { return Padding( padding: const EdgeInsets.symmetric(vertical: 2), child: Stack( children: [ SizedBox( width: 100, height: 100, child: DecoratedBox( decoration: BoxDecoration(color: color, border: Border.all()), ), ), Positioned.fill( child: Center(child: Text(hexCode, style: textStyle)), ), ], ), ); } }
io_flip/packages/io_flip_ui/gallery/lib/colors/app_colors_story.dart/0
{ "file_path": "io_flip/packages/io_flip_ui/gallery/lib/colors/app_colors_story.dart", "repo_id": "io_flip", "token_count": 6899 }
896
import 'package:flutter/material.dart'; import 'package:gallery/story_scaffold.dart'; import 'package:io_flip_ui/io_flip_ui.dart'; class GameCardStory extends StatelessWidget { const GameCardStory({ required this.name, required this.description, required this.isRare, super.key, }); final String name; final String description; final bool isRare; @override Widget build(BuildContext context) { final cardList = [ _GameCardItem( size: const GameCardSize.xxs(), name: 'xxs', cardName: name, cardDescription: description, isRare: isRare, ), _GameCardItem( size: const GameCardSize.xs(), name: 'xs', cardName: name, cardDescription: description, isRare: isRare, ), _GameCardItem( size: const GameCardSize.sm(), name: 'sm', cardName: name, cardDescription: description, isRare: isRare, ), _GameCardItem( size: const GameCardSize.md(), name: 'md', cardName: name, cardDescription: description, isRare: isRare, ), _GameCardItem( size: const GameCardSize.lg(), name: 'lg', cardName: name, cardDescription: description, isRare: isRare, ), _GameCardItem( size: const GameCardSize.xl(), name: 'xl', cardName: name, cardDescription: description, isRare: isRare, ), _GameCardItem( size: const GameCardSize.xxl(), name: 'xxl', cardName: name, cardDescription: description, isRare: isRare, ), ]; return StoryScaffold( title: 'Game Card', body: SingleChildScrollView( child: Center( child: Column( children: cardList, ), ), ), ); } } class _GameCardItem extends StatelessWidget { const _GameCardItem({ required this.size, required this.name, required this.cardName, required this.cardDescription, required this.isRare, }); final GameCardSize size; final String name; final String cardName; final String cardDescription; final bool isRare; @override Widget build(BuildContext context) { return Padding( padding: const EdgeInsets.all(IoFlipSpacing.lg), child: Row( children: [ TiltBuilder( builder: (context, tilt) => GameCard( tilt: tilt, image: 'https://firebasestorage.googleapis.com/v0/b/top-dash-dev.appspot.com/o/public%2Fdash_3.png?alt=media', name: cardName, description: cardDescription, suitName: 'earth', power: 57, size: size, isRare: isRare, ), ), const SizedBox(width: IoFlipSpacing.md), Text('$name (${size.width} x ${size.height})'), ], ), ); } }
io_flip/packages/io_flip_ui/gallery/lib/widgets/game_card_story.dart/0
{ "file_path": "io_flip/packages/io_flip_ui/gallery/lib/widgets/game_card_story.dart", "repo_id": "io_flip", "token_count": 1423 }
897
/// UI Toolkit for IO FLIP. library io_flip_ui; export 'src/animations/animations.dart'; export 'src/layout/layout.dart'; export 'src/theme/theme.dart'; export 'src/ui_sound_adapter.dart'; export 'src/utils/utils.dart'; export 'src/widgets/widgets.dart';
io_flip/packages/io_flip_ui/lib/io_flip_ui.dart/0
{ "file_path": "io_flip/packages/io_flip_ui/lib/io_flip_ui.dart", "repo_id": "io_flip", "token_count": 99 }
898
/// Namespace for Default IO FLIP Breakpoints abstract class IoFlipBreakpoints { /// Max width for a medium layout. static const double medium = 1150; /// Max width for a small layout. static const double small = 740; }
io_flip/packages/io_flip_ui/lib/src/layout/breakpoints.dart/0
{ "file_path": "io_flip/packages/io_flip_ui/lib/src/layout/breakpoints.dart", "repo_id": "io_flip", "token_count": 63 }
899
import 'package:flame/cache.dart'; import 'package:flame/extensions.dart'; import 'package:flame/widgets.dart'; import 'package:flutter/material.dart'; import 'package:io_flip_ui/io_flip_ui.dart'; import 'package:provider/provider.dart'; /// {@template damage_receive} /// A widget that renders a [SpriteAnimation] for the damages received. /// {@endtemplate} class DamageReceive extends StatelessWidget { /// {@macro damage_receive} const DamageReceive( this.path, { required this.size, required this.assetSize, required this.animationColor, super.key, this.onComplete, }); /// The size of the card. final GameCardSize size; /// Optional callback to be called when the animation is complete. final VoidCallback? onComplete; /// Path of the asset containing the sprite sheet. final String path; /// Size of the assets to use, large or small final AssetSize assetSize; /// The color of the animation, used on mobile animation. final Color animationColor; @override Widget build(BuildContext context) { final images = context.read<Images>(); final height = 1.6 * size.height; final width = 1.6 * size.width; if (assetSize == AssetSize.large) { return SizedBox( height: height, width: width, child: SpriteAnimationWidget.asset( path: path, images: images, anchor: Anchor.center, onComplete: onComplete, data: SpriteAnimationData.sequenced( amount: 16, amountPerRow: 4, textureSize: Vector2(499.5, 509), stepTime: 0.04, loop: false, ), ), ); } else { return _MobileAnimation( onComplete: onComplete, animationColor: animationColor, width: width, height: height, ); } } } class _MobileAnimation extends StatefulWidget { const _MobileAnimation({ required this.onComplete, required this.animationColor, required this.width, required this.height, }); final VoidCallback? onComplete; final Color animationColor; final double width; final double height; @override State<_MobileAnimation> createState() => _MobileAnimationState(); } class _MobileAnimationState extends State<_MobileAnimation> with TickerProviderStateMixin { late List<AnimationController> animationControllers; var _stepCounter = 1; @override void initState() { super.initState(); animationControllers = List.generate( 2, (index) => AnimationController( vsync: this, duration: const Duration(milliseconds: 750), ), ); animationControllers.first ..forward() ..repeat(); Future.delayed( const Duration(milliseconds: 500), () => animationControllers.last ..forward() ..addStatusListener( (status) { if (status == AnimationStatus.completed) { if (_stepCounter == 0) { animationControllers.first.stop(); animationControllers.last.stop(); widget.onComplete?.call(); } else { animationControllers.last ..reset() ..forward(); } _stepCounter--; } }, ), ); } @override void dispose() { animationControllers.first.dispose(); animationControllers.last.dispose(); super.dispose(); } @override Widget build(BuildContext context) { return SizedBox( child: Stack( children: [ _AnimatedRing( animationController: animationControllers.first, index: 1, color: widget.animationColor, size: widget.width, ), _AnimatedRing( animationController: animationControllers.last, index: 3, color: widget.animationColor, size: widget.width, ), ], ), ); } } class _AnimatedRing extends StatelessWidget { const _AnimatedRing({ required this.animationController, required this.index, required this.color, required this.size, }); final AnimationController animationController; final int index; final Color color; final double size; @override Widget build(BuildContext context) { return SizedBox( child: AnimatedBuilder( animation: animationController, builder: (context, child) { final scale = animationController.value; return Transform.scale( scale: scale, child: Container( decoration: BoxDecoration( gradient: RadialGradient( colors: [Colors.transparent, color.withOpacity(1 - scale)], ), borderRadius: BorderRadius.circular(size / 2), ), width: size / 4, height: size / 4, ), ); }, ), ); } }
io_flip/packages/io_flip_ui/lib/src/widgets/damages/damage_receive.dart/0
{ "file_path": "io_flip/packages/io_flip_ui/lib/src/widgets/damages/damage_receive.dart", "repo_id": "io_flip", "token_count": 2133 }
900
// ignore_for_file: avoid_print import 'package:flutter/widgets.dart'; import 'package:io_flip_ui/io_flip_ui.dart'; /// Signature for the individual builders (`small`, `large`). typedef ResponsiveLayoutWidgetBuilder = Widget Function(BuildContext, Widget?); /// {@template responsive_layout_builder} /// A wrapper around [LayoutBuilder] which exposes builders for /// various responsive breakpoints. /// {@endtemplate} class ResponsiveLayoutBuilder extends StatelessWidget { /// {@macro responsive_layout_builder} const ResponsiveLayoutBuilder({ required this.small, required this.large, super.key, this.child, }); /// [ResponsiveLayoutWidgetBuilder] for small layout. final ResponsiveLayoutWidgetBuilder small; /// [ResponsiveLayoutWidgetBuilder] for large layout. final ResponsiveLayoutWidgetBuilder large; /// Optional child widget which will be passed /// to the `small` and `large` /// builders as a way to share/optimize shared layout. final Widget? child; @override Widget build(BuildContext context) { return LayoutBuilder( builder: (context, constraints) { if (constraints.maxWidth < constraints.maxHeight || constraints.maxWidth < IoFlipBreakpoints.medium) { return small(context, child); } return large(context, child); }, ); } }
io_flip/packages/io_flip_ui/lib/src/widgets/responsive_layout.dart/0
{ "file_path": "io_flip/packages/io_flip_ui/lib/src/widgets/responsive_layout.dart", "repo_id": "io_flip", "token_count": 432 }
901
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_ui/io_flip_ui.dart'; import 'package:mocktail/mocktail.dart'; import 'package:provider/provider.dart'; class _MockImages extends Mock implements Images {} void main() { group('CardLandingPuff', () { late Images images; setUp(() { images = _MockImages(); }); testWidgets('renders SpriteAnimationWidget', (tester) async { await tester.pumpWidget( Directionality( textDirection: TextDirection.ltr, child: Provider.value( value: images, child: const CardLandingPuff(), ), ), ); expect(find.byType(SpriteAnimationWidget), findsOneWidget); }); test('duration is correct', () { expect( CardLandingPuff.duration.inMilliseconds, equals(CardLandingPuff.frames * CardLandingPuff.stepTime * 1000), ); }); }); }
io_flip/packages/io_flip_ui/test/src/widgets/card_landing_puff_test.dart/0
{ "file_path": "io_flip/packages/io_flip_ui/test/src/widgets/card_landing_puff_test.dart", "repo_id": "io_flip", "token_count": 434 }
902
// ignore_for_file: prefer_const_constructors import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:io_flip_ui/io_flip_ui.dart'; import 'package:provider/provider.dart'; void main() { group('IoFlipErrorView', () { testWidgets('renders correctly', (tester) async { await tester.pumpSubject(); expect( find.byType(IoFlipErrorView), findsOneWidget, ); expect(find.text('Hey'), findsOneWidget); expect(find.text('Play again'), findsOneWidget); }); testWidgets('button tap works correctly', (tester) async { var flag = false; await tester.pumpSubject( onPressed: () { flag = true; }, ); await tester.tap(find.byType(RoundedButton)); await tester.pumpAndSettle(); expect(flag, equals(true)); }); }); } extension IoFlipErrorViewTest on WidgetTester { Future<void> pumpSubject({ void Function()? onPressed, }) { return pumpWidget( MaterialApp( home: Provider( create: (_) => UISoundAdapter(playButtonSound: () {}), child: Scaffold( body: IoFlipErrorView( text: 'Hey', buttonText: 'Play again', onPressed: onPressed ?? () {}, ), ), ), ), ); } }
io_flip/packages/io_flip_ui/test/src/widgets/io_flip_error_view_test.dart/0
{ "file_path": "io_flip/packages/io_flip_ui/test/src/widgets/io_flip_error_view_test.dart", "repo_id": "io_flip", "token_count": 621 }
903
import 'package:equatable/equatable.dart'; /// {@template draft_match} /// A class representing a partially-formed match between a host and a guest. /// {@endtemplate} class DraftMatch extends Equatable { /// {@macro draft_match} const DraftMatch({ required this.id, required this.host, this.guest, this.inviteCode, this.guestConnected = false, this.hostConnected = false, }); /// Unique identifier of the match. final String id; /// Name of the host. final String host; /// Name of the guest. /// /// Defaults to `null`. final String? guest; /// Code to invite a friend when the match is closed. final String? inviteCode; /// If the host is connected or disconnected from the match. final bool hostConnected; /// If the guest is connected or disconnected from the match. final bool guestConnected; /// Returns a new [DraftMatch] object with a new [guest] property. DraftMatch copyWithGuest({ required String guest, }) { return DraftMatch( id: id, host: host, guest: guest, inviteCode: inviteCode, ); } @override List<Object?> get props => [ id, host, hostConnected, guest, guestConnected, inviteCode, ]; }
io_flip/packages/match_maker_repository/lib/src/models/draft_match.dart/0
{ "file_path": "io_flip/packages/match_maker_repository/lib/src/models/draft_match.dart", "repo_id": "io_flip", "token_count": 448 }
904
import 'dart:async'; import 'package:audioplayers/audioplayers.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:io_flip/audio/audio_controller.dart'; import 'package:io_flip/gen/assets.gen.dart'; import 'package:io_flip/settings/settings.dart'; import 'package:mocktail/mocktail.dart'; class _MockSettingsController extends Mock implements SettingsController {} class _MockBoolValueListener extends Mock implements ValueNotifier<bool> {} class _MockAudioPlayer extends Mock implements AudioPlayer {} class _MockAudioPlayerFactory { _MockAudioPlayerFactory(); final Map<String, AudioPlayer> players = {}; final Map<String, StreamController<void>> controllers = {}; AudioPlayer createPlayer({required String playerId}) { final player = _MockAudioPlayer(); final streamController = StreamController<void>(); when( () => player.play( any(), volume: any(named: 'volume'), ), ).thenAnswer((_) async {}); when(() => player.onPlayerComplete).thenAnswer( (_) => streamController.stream, ); when(player.stop).thenAnswer((_) async {}); when(player.pause).thenAnswer((_) async {}); when(player.resume).thenAnswer((_) async {}); controllers[playerId] = streamController; return players[playerId] = player; } } ValueNotifier<bool> _createMockNotifier() { final notifier = _MockBoolValueListener(); when(() => notifier.addListener(any())).thenAnswer((_) {}); when(() => notifier.removeListener(any())).thenAnswer((_) {}); when(() => notifier.value).thenReturn(true); return notifier; } void main() { TestWidgetsFlutterBinding.ensureInitialized(); group('AudioController', () { late SettingsController settingsController; late ValueNotifier<bool> muted; late ValueNotifier<bool> musicOn; late ValueNotifier<bool> soundsOn; setUpAll(() { registerFallbackValue(AssetSource('')); }); setUp(() { settingsController = _MockSettingsController(); muted = _createMockNotifier(); when(() => settingsController.muted).thenReturn(muted); soundsOn = _createMockNotifier(); when(() => settingsController.soundsOn).thenReturn(soundsOn); musicOn = _createMockNotifier(); when(() => settingsController.musicOn).thenReturn(musicOn); }); test('can be instantiated', () { expect( AudioController(), isNotNull, ); }); group('attachSettings', () { test('attach to the settings', () { AudioController().attachSettings(settingsController); verify(() => muted.addListener(any())).called(1); verify(() => musicOn.addListener(any())).called(1); verify(() => soundsOn.addListener(any())).called(1); }); test('auto play the music if is not muted', () { final playerFactory = _MockAudioPlayerFactory(); when(() => musicOn.value).thenReturn(true); when(() => muted.value).thenReturn(false); AudioController( createPlayer: playerFactory.createPlayer, ).attachSettings( settingsController, ); final player = playerFactory.players['musicPlayer']; verify(() => player!.play(any(), volume: any(named: 'volume'))) .called(1); }); test('replace an old settings', () { final audioController = AudioController() ..attachSettings(settingsController); verify(() => muted.addListener(any())).called(1); verify(() => musicOn.addListener(any())).called(1); verify(() => soundsOn.addListener(any())).called(1); final newController = _MockSettingsController(); final newMuted = _createMockNotifier(); when(() => newController.muted).thenReturn(newMuted); final newSoundsOn = _createMockNotifier(); when(() => newController.soundsOn).thenReturn(newSoundsOn); final newMusicOn = _createMockNotifier(); when(() => newController.musicOn).thenReturn(newMusicOn); audioController.attachSettings(newController); verify(() => muted.removeListener(any())).called(1); verify(() => musicOn.removeListener(any())).called(1); verify(() => soundsOn.removeListener(any())).called(1); verify(() => newMuted.addListener(any())).called(1); verify(() => newMusicOn.addListener(any())).called(1); verify(() => newSoundsOn.addListener(any())).called(1); }); }); group('playSfx', () { test('plays a sfx', () { final playerFactory = _MockAudioPlayerFactory(); when(() => soundsOn.value).thenReturn(true); when(() => musicOn.value).thenReturn(true); when(() => muted.value).thenReturn(false); AudioController( createPlayer: playerFactory.createPlayer, polyphony: 1, ) ..attachSettings( settingsController, ) ..playSfx(Assets.sfx.addToHand); final player = playerFactory.players['sfxPlayer#0']!; final captured = verify( () => player.play( captureAny(), ), ).captured; final source = captured.first; expect(source, isA<AssetSource>()); expect((source as AssetSource).path, 'sfx/add_to_hand.mp3'); }); test( "throws ArgumentError when trying to play a sound that doesn't exists", () { final playerFactory = _MockAudioPlayerFactory(); when(() => soundsOn.value).thenReturn(true); when(() => musicOn.value).thenReturn(true); when(() => muted.value).thenReturn(false); expect( () => AudioController( createPlayer: playerFactory.createPlayer, polyphony: 1, ) ..attachSettings( settingsController, ) ..playSfx('this_assets_does_not_exists.mp3'), throwsArgumentError, ); }, ); test("doesn't play when is muted", () { final playerFactory = _MockAudioPlayerFactory(); when(() => soundsOn.value).thenReturn(true); when(() => musicOn.value).thenReturn(true); when(() => muted.value).thenReturn(true); AudioController( createPlayer: playerFactory.createPlayer, polyphony: 1, ) ..attachSettings( settingsController, ) ..playSfx(Assets.sfx.addToHand); final player = playerFactory.players['sfxPlayer#0']!; verifyNever( () => player.play( AssetSource('sfx/add_to_hand.mp3'), ), ); }); test("doesn't play when sounds is off", () { final playerFactory = _MockAudioPlayerFactory(); when(() => soundsOn.value).thenReturn(false); when(() => musicOn.value).thenReturn(true); when(() => muted.value).thenReturn(false); AudioController( createPlayer: playerFactory.createPlayer, polyphony: 1, ) ..attachSettings( settingsController, ) ..playSfx(Assets.sfx.addToHand); final player = playerFactory.players['sfxPlayer#0']!; verifyNever( () => player.play( AssetSource('sfx/add_to_hand.mp3'), ), ); }); }); group('muted', () { test('stops the music when muted', () async { final playerFactory = _MockAudioPlayerFactory(); final muted = ValueNotifier(false); when(() => settingsController.muted).thenReturn(muted); when(() => soundsOn.value).thenReturn(true); when(() => musicOn.value).thenReturn(true); AudioController( createPlayer: playerFactory.createPlayer, polyphony: 1, ) ..attachSettings( settingsController, ) ..playSfx(Assets.sfx.addToHand); final musicPlayer = playerFactory.players.entries .firstWhere((entry) => entry.key.startsWith('music')) .value; final sfxPlayer = playerFactory.players.entries .firstWhere((entry) => entry.key.startsWith('sfxPlayer')) .value; when(() => musicPlayer.state).thenReturn(PlayerState.playing); when(() => sfxPlayer.state).thenReturn(PlayerState.playing); muted.value = true; await Future.microtask(() {}); verify(musicPlayer.pause).called(1); verify(sfxPlayer.stop).called(1); }); test('resumes the music when unmuting', () async { final playerFactory = _MockAudioPlayerFactory(); final muted = ValueNotifier(true); when(() => settingsController.muted).thenReturn(muted); when(() => soundsOn.value).thenReturn(true); when(() => musicOn.value).thenReturn(true); AudioController( createPlayer: playerFactory.createPlayer, polyphony: 1, ) ..attachSettings( settingsController, ) ..playSfx(Assets.sfx.addToHand); final musicPlayer = playerFactory.players.entries .firstWhere((entry) => entry.key.startsWith('music')) .value; when(() => musicPlayer.state).thenReturn(PlayerState.paused); muted.value = false; await Future.microtask(() {}); verify(musicPlayer.resume).called(1); }); }); group('musicOn', () { test('stops the music when music is disabled', () async { final playerFactory = _MockAudioPlayerFactory(); final musicOn = ValueNotifier(true); when(() => settingsController.musicOn).thenReturn(musicOn); when(() => muted.value).thenReturn(false); when(() => soundsOn.value).thenReturn(true); AudioController( createPlayer: playerFactory.createPlayer, polyphony: 1, ).attachSettings( settingsController, ); final musicPlayer = playerFactory.players.entries .firstWhere((entry) => entry.key.startsWith('music')) .value; when(() => musicPlayer.state).thenReturn(PlayerState.playing); musicOn.value = false; await Future.microtask(() {}); verify(musicPlayer.pause).called(1); }); }); group('soundsOn', () { test('stops the sfx when sound is disabled', () async { final playerFactory = _MockAudioPlayerFactory(); final soundsOn = ValueNotifier(true); when(() => settingsController.soundsOn).thenReturn(soundsOn); when(() => muted.value).thenReturn(false); when(() => musicOn.value).thenReturn(false); AudioController( createPlayer: playerFactory.createPlayer, polyphony: 1, ) ..attachSettings( settingsController, ) ..playSfx(Assets.sfx.addToHand); final sfxPlayer = playerFactory.players.entries .firstWhere((entry) => entry.key.startsWith('sfxPlayer')) .value; when(() => sfxPlayer.state).thenReturn(PlayerState.playing); soundsOn.value = false; await Future.microtask(() {}); verify(sfxPlayer.stop).called(1); }); }); group('lifecycle handling', () { test('when app is paused, pauses and stop sounds', () async { final lifecycleNotifier = ValueNotifier(AppLifecycleState.resumed); final playerFactory = _MockAudioPlayerFactory(); when(() => soundsOn.value).thenReturn(true); when(() => musicOn.value).thenReturn(true); when(() => muted.value).thenReturn(false); AudioController( createPlayer: playerFactory.createPlayer, polyphony: 1, ) ..attachSettings( settingsController, ) ..attachLifecycleNotifier(lifecycleNotifier) ..playSfx(Assets.sfx.addToHand); final musicPlayer = playerFactory.players.entries .firstWhere((entry) => entry.key.startsWith('music')) .value; final sfxPlayer = playerFactory.players.entries .firstWhere((entry) => entry.key.startsWith('sfxPlayer')) .value; when(() => musicPlayer.state).thenReturn(PlayerState.playing); when(() => sfxPlayer.state).thenReturn(PlayerState.playing); lifecycleNotifier.value = AppLifecycleState.paused; await Future.microtask(() {}); verify(musicPlayer.pause).called(1); verify(sfxPlayer.stop).called(1); }); test('when app is detached, pauses and stop sounds', () async { final lifecycleNotifier = ValueNotifier(AppLifecycleState.resumed); final playerFactory = _MockAudioPlayerFactory(); when(() => soundsOn.value).thenReturn(true); when(() => musicOn.value).thenReturn(true); when(() => muted.value).thenReturn(false); AudioController( createPlayer: playerFactory.createPlayer, polyphony: 1, ) ..attachSettings( settingsController, ) ..attachLifecycleNotifier(lifecycleNotifier) ..playSfx(Assets.sfx.addToHand); final musicPlayer = playerFactory.players.entries .firstWhere((entry) => entry.key.startsWith('music')) .value; final sfxPlayer = playerFactory.players.entries .firstWhere((entry) => entry.key.startsWith('sfxPlayer')) .value; when(() => musicPlayer.state).thenReturn(PlayerState.playing); when(() => sfxPlayer.state).thenReturn(PlayerState.playing); lifecycleNotifier.value = AppLifecycleState.detached; await Future.microtask(() {}); verify(musicPlayer.pause).called(1); verify(sfxPlayer.stop).called(1); }); test('when app is inactive, do nothing', () async { final lifecycleNotifier = ValueNotifier(AppLifecycleState.resumed); final playerFactory = _MockAudioPlayerFactory(); when(() => soundsOn.value).thenReturn(true); when(() => musicOn.value).thenReturn(true); when(() => muted.value).thenReturn(false); AudioController( createPlayer: playerFactory.createPlayer, polyphony: 1, ) ..attachSettings( settingsController, ) ..attachLifecycleNotifier(lifecycleNotifier) ..playSfx(Assets.sfx.addToHand); final musicPlayer = playerFactory.players.entries .firstWhere((entry) => entry.key.startsWith('music')) .value; final sfxPlayer = playerFactory.players.entries .firstWhere((entry) => entry.key.startsWith('sfxPlayer')) .value; when(() => musicPlayer.state).thenReturn(PlayerState.playing); when(() => sfxPlayer.state).thenReturn(PlayerState.playing); lifecycleNotifier.value = AppLifecycleState.inactive; await Future.microtask(() {}); verifyNever(musicPlayer.pause); verifyNever(sfxPlayer.stop); }); test('when app is resumed, resumes the music', () async { final lifecycleNotifier = ValueNotifier(AppLifecycleState.inactive); final playerFactory = _MockAudioPlayerFactory(); when(() => soundsOn.value).thenReturn(true); when(() => musicOn.value).thenReturn(true); when(() => muted.value).thenReturn(false); AudioController( createPlayer: playerFactory.createPlayer, polyphony: 1, ) ..attachSettings( settingsController, ) ..attachLifecycleNotifier(lifecycleNotifier) ..playSfx(Assets.sfx.addToHand); final musicPlayer = playerFactory.players.entries .firstWhere((entry) => entry.key.startsWith('music')) .value; when(() => musicPlayer.state).thenReturn(PlayerState.paused); lifecycleNotifier.value = AppLifecycleState.resumed; await Future.microtask(() {}); verify(musicPlayer.resume).called(1); }); test('when resuming, and an error happens, play the next', () async { final lifecycleNotifier = ValueNotifier(AppLifecycleState.paused); final playerFactory = _MockAudioPlayerFactory(); when(() => soundsOn.value).thenReturn(true); when(() => musicOn.value).thenReturn(true); when(() => muted.value).thenReturn(false); AudioController( createPlayer: playerFactory.createPlayer, polyphony: 1, ) ..attachSettings( settingsController, ) ..attachLifecycleNotifier(lifecycleNotifier); final musicPlayer = playerFactory.players.entries .firstWhere((entry) => entry.key.startsWith('music')) .value; when(() => musicPlayer.state).thenReturn(PlayerState.paused); when(musicPlayer.resume).thenThrow('Error'); lifecycleNotifier.value = AppLifecycleState.resumed; await Future.microtask(() {}); verify(() => musicPlayer.play(any(), volume: any(named: 'volume'))) .called(2); }); test('when resuming, and player is completed, play the next', () async { final lifecycleNotifier = ValueNotifier(AppLifecycleState.paused); final playerFactory = _MockAudioPlayerFactory(); when(() => soundsOn.value).thenReturn(true); when(() => musicOn.value).thenReturn(true); when(() => muted.value).thenReturn(false); AudioController( createPlayer: playerFactory.createPlayer, polyphony: 1, ) ..attachSettings( settingsController, ) ..attachLifecycleNotifier(lifecycleNotifier); final musicPlayer = playerFactory.players.entries .firstWhere((entry) => entry.key.startsWith('music')) .value; when(() => musicPlayer.state).thenReturn(PlayerState.completed); lifecycleNotifier.value = AppLifecycleState.resumed; await Future.microtask(() {}); verify(() => musicPlayer.play(any(), volume: any(named: 'volume'))) .called(2); }); test('when resuming, and player is playing, do nothing', () async { final lifecycleNotifier = ValueNotifier(AppLifecycleState.paused); final playerFactory = _MockAudioPlayerFactory(); when(() => soundsOn.value).thenReturn(true); when(() => musicOn.value).thenReturn(true); when(() => muted.value).thenReturn(false); AudioController( createPlayer: playerFactory.createPlayer, polyphony: 1, ) ..attachSettings( settingsController, ) ..attachLifecycleNotifier(lifecycleNotifier); final musicPlayer = playerFactory.players.entries .firstWhere((entry) => entry.key.startsWith('music')) .value; when(() => musicPlayer.state).thenReturn(PlayerState.playing); lifecycleNotifier.value = AppLifecycleState.resumed; await Future.microtask(() {}); verify(() => musicPlayer.play(any(), volume: any(named: 'volume'))) .called(1); }); }); group('changeSong', () { test('plays the next song when the one is playing finishes', () async { final playerFactory = _MockAudioPlayerFactory(); when(() => muted.value).thenReturn(false); when(() => musicOn.value).thenReturn(true); when(() => soundsOn.value).thenReturn(true); AudioController( createPlayer: playerFactory.createPlayer, polyphony: 1, ).attachSettings( settingsController, ); final musicPlayer = playerFactory.players.entries .firstWhere((entry) => entry.key.startsWith('music')) .value; playerFactory.controllers.entries .firstWhere((entry) => entry.key.startsWith('music')) .value .add(null); await Future.microtask(() {}); verify(() => musicPlayer.play(any(), volume: any(named: 'volume'))) .called(2); }); }); }); }
io_flip/test/audio/audio_controller_test.dart/0
{ "file_path": "io_flip/test/audio/audio_controller_test.dart", "repo_id": "io_flip", "token_count": 8557 }
905
// ignore_for_file: prefer_const_constructors import 'package:flutter_test/flutter_test.dart'; import 'package:game_domain/game_domain.dart'; import 'package:go_router/go_router.dart'; import 'package:io_flip/game/game.dart'; import 'package:mocktail/mocktail.dart'; import '../../helpers/pump_app.dart'; class _MockGoRouterState extends Mock implements GoRouterState {} void main() { group('GamePage', () { late GoRouterState goRouterState; const matchId = 'matchId'; const deck = Deck(id: 'deckId', userId: 'userId', cards: []); final data = GamePageData(isHost: true, matchId: matchId, deck: deck); setUp(() { goRouterState = _MockGoRouterState(); when(() => goRouterState.extra).thenReturn(data); }); test('routeBuilder returns a GamePage', () { expect( GamePage.routeBuilder(null, goRouterState), isA<GamePage>() .having((page) => page.isHost, 'isHost', equals(data.isHost)) .having((page) => page.matchId, 'matchId', equals(data.matchId)) .having((page) => page.deck, 'deck', equals(data.deck)), ); }); testWidgets('renders a GameView', (tester) async { await tester.pumpApp( GamePage( matchId: 'matchId', isHost: false, deck: deck, ), ); expect(find.byType(GameView), findsOneWidget); }); }); }
io_flip/test/game/views/game_page_test.dart/0
{ "file_path": "io_flip/test/game/views/game_page_test.dart", "repo_id": "io_flip", "token_count": 591 }
906
import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:io_flip/info/info.dart'; import '../../helpers/helpers.dart'; void main() { group('InfoView', () { Widget buildSubject() => const Scaffold(body: InfoView()); testWidgets('renders correct texts', (tester) async { await tester.pumpApp(buildSubject()); final l10n = tester.l10n; final descriptionText = '${l10n.infoDialogDescriptionPrefix} ' '${l10n.infoDialogDescriptionInfixOne} ' '${l10n.infoDialogDescriptionInfixTwo} ' '${l10n.infoDialogDescriptionSuffix}'; final expectedTexts = [ l10n.infoDialogTitle, descriptionText, l10n.infoDialogOtherLinks, l10n.privacyPolicyLinkLabel, l10n.termsOfServiceLinkLabel, l10n.faqLinkLabel, ]; for (final text in expectedTexts) { expect(find.text(text, findRichText: true), findsOneWidget); } }); }); }
io_flip/test/info/view/info_view_test.dart/0
{ "file_path": "io_flip/test/info/view/info_view_test.dart", "repo_id": "io_flip", "token_count": 423 }
907
// ignore_for_file: prefer_const_constructors import 'package:flutter/widgets.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:game_domain/game_domain.dart'; import 'package:go_router/go_router.dart'; import 'package:io_flip/match_making/match_making.dart'; import 'package:io_flip/settings/settings.dart'; import 'package:mocktail/mocktail.dart'; import 'package:mocktail_image_network/mocktail_image_network.dart'; import '../../helpers/helpers.dart'; class _MockGoRouterState extends Mock implements GoRouterState {} class _MockSettingsController extends Mock implements SettingsController {} const deck = Deck( id: 'deckId', userId: 'userId', cards: [ Card( id: 'a', name: '', description: '', image: '', power: 1, rarity: false, suit: Suit.air, ), Card( id: 'b', name: '', description: '', image: '', power: 1, rarity: false, suit: Suit.air, ), Card( id: 'c', name: '', description: '', image: '', power: 1, rarity: false, suit: Suit.air, ), ], ); final pageData = MatchMakingPageData(deck: deck); void main() { group('MatchMakingPage', () { late GoRouterState goRouterState; setUp(() { goRouterState = _MockGoRouterState(); when(() => goRouterState.extra).thenReturn(pageData); when(() => goRouterState.queryParams).thenReturn({}); }); test('routeBuilder returns a MatchMakingPage', () { expect( MatchMakingPage.routeBuilder(null, goRouterState), isA<MatchMakingPage>(), ); }); group('mapEvent', () { test('correctly maps to GuestPrivateMatchRequested', () { expect( MatchMakingPage( deck: deck, createPrivateMatch: false, inviteCode: 'inviteCode', ).mapEvent(), equals(GuestPrivateMatchRequested('inviteCode')), ); }); test('correctly maps to PrivateMatchRequested', () { expect( MatchMakingPage( deck: deck, createPrivateMatch: true, inviteCode: null, ).mapEvent(), equals(PrivateMatchRequested()), ); }); test('correctly maps to MatchRequested', () { expect( MatchMakingPage( deck: deck, createPrivateMatch: false, inviteCode: null, ).mapEvent(), equals(MatchRequested()), ); }); }); testWidgets('renders a MatchMakingView', (tester) async { await tester.pumpSubject(); expect(find.byType(MatchMakingView), findsOneWidget); }); }); group('MatchMakingPageData', () { test('supports equality', () { expect( MatchMakingPageData(deck: deck), equals(MatchMakingPageData(deck: deck)), ); expect( MatchMakingPageData(deck: deck), isNot( equals( MatchMakingPageData( deck: Deck(id: 'id', userId: 'userId', cards: const []), ), ), ), ); }); }); } extension GameSummaryViewTest on WidgetTester { Future<void> pumpSubject({ GoRouter? goRouter, }) { final SettingsController settingsController = _MockSettingsController(); when(() => settingsController.muted).thenReturn(ValueNotifier(true)); return mockNetworkImages(() { return pumpApp( MatchMakingPage( deck: deck, createPrivateMatch: false, inviteCode: null, ), router: goRouter, settingsController: settingsController, ); }); } }
io_flip/test/match_making/views/match_making_page_test.dart/0
{ "file_path": "io_flip/test/match_making/views/match_making_page_test.dart", "repo_id": "io_flip", "token_count": 1636 }
908
import 'package:flutter_test/flutter_test.dart'; import 'package:io_flip/settings/persistence/persistence.dart'; void main() { group('MemoryOnlySettingsPersistence', () { test('getMusicOn', () async { final persistence = MemoryOnlySettingsPersistence()..musicOn = false; final value = await persistence.getMusicOn(); expect(value, isFalse); }); test('getSoundsOn', () async { final persistence = MemoryOnlySettingsPersistence()..soundsOn = false; final value = await persistence.getSoundsOn(); expect(value, isFalse); }); test('getMuted', () async { final persistence = MemoryOnlySettingsPersistence()..muted = false; final value = await persistence.getMuted(defaultValue: false); expect(value, isFalse); }); test('getMuted returns default value if null', () async { final persistence = MemoryOnlySettingsPersistence(); final value = await persistence.getMuted(defaultValue: false); expect(value, isFalse); }); test('saveMuted', () async { final persistence = MemoryOnlySettingsPersistence(); await persistence.saveMuted(active: true); expect( await persistence.getMuted(defaultValue: false), isTrue, ); }); test('saveMusicOn', () async { final persistence = MemoryOnlySettingsPersistence(); await persistence.saveMusicOn(active: true); expect( await persistence.getMusicOn(), isTrue, ); }); test('saveSoundsOn', () async { final persistence = MemoryOnlySettingsPersistence(); await persistence.saveSoundsOn(active: true); expect( await persistence.getSoundsOn(), isTrue, ); }); }); }
io_flip/test/settings/persistence/memory_only_settings_persistence_test.dart/0
{ "file_path": "io_flip/test/settings/persistence/memory_only_settings_persistence_test.dart", "repo_id": "io_flip", "token_count": 622 }
909
--- sidebar_position: 2 description: Learn how to work with translations in your Flutter news application. --- # Working with translations This project relies on [flutter_localizations](https://api.flutter.dev/flutter/flutter_localizations/flutter_localizations-library.html) and follows the [official internationalization guide for Flutter](https://flutter.dev/docs/development/accessibility-and-localization/internationalization). ## 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:google_news_template/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 `ios/Runner/Info.plist` file to include the new locale. For example: ```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" } } ``` ## Text directionality Flutter automatically supports right-to-left languages when the user changes their language settings. No additional configuration or code is required to support text directionality as referenced in the [Flutter internationalization guide](https://docs.flutter.dev/development/accessibility-and-localization/internationalization) in your app.
news_toolkit/docs/docs/flutter_development/translations.md/0
{ "file_path": "news_toolkit/docs/docs/flutter_development/translations.md", "repo_id": "news_toolkit", "token_count": 908 }
910
--- sidebar_position: 1 description: Learn how to run your news API. --- # Running the API ## Overview The Flutter News Example API is written in [Dart](https://dart.dev) and uses [Dart Frog](https://dartfrog.vgv.dev). ### Running the API server locally To launch the server locally, run the following command from the current directory: ```sh dart_frog dev ``` This starts the server on [localhost:8080](http://localhost:8080). ### Running the API server in Docker To run the server in Docker, make sure you have [Docker installed](https://docs.docker.com/get-docker/), then use the following instructions: 1. Create a production build with the following command: ```sh dart_frog build ``` 2. Switch directories into the generated `build` directory: ```sh cd build ``` 3. Create a Docker image: ```sh docker build -q . ``` Once you have created an image, run it using the following command: ```sh docker run -d -p 8080:8080 --rm <IMAGE> ``` To kill the container: ```sh docker kill <CONTAINER> ``` To delete an image: ```sh docker rmi <IMAGE> ``` ## API documentation Find the service API documentation in `docs/api.apib`. The documentation uses the [API Blueprint](https://github.com/apiaryio/api-blueprint) specification. Preview the doc using the [Apiary Client](https://github.com/apiaryio/apiary-client). ### Running the documentation locally To run the interactive API documentation locally, make sure that you have the [Apiary Client](https://github.com/apiaryio/apiary-client) installed: ```sh $ gem install apiaryio ``` Then use the `preview` command to run the documentation: ```sh $ apiary preview --path docs/api.apib --watch ``` The interactive documentation is available at [localhost:8080](http://localhost:8080). For more information, refer to the [Apiary Client Documentation](https://help.apiary.io/tools/apiary-cli). ### Contributing to the API documentation For documentation and tutorials on using the API Blueprint specification, refer to [APIBlueprint.org](https://apiblueprint.org/). For more information, refer to the [API Blueprint Specification](https://github.com/apiaryio/api-blueprint/blob/master/API%20Blueprint%20Specification.md). We recommend that you install the [API Elements VSCode Extension](https://marketplace.visualstudio.com/items?itemName=vncz.vscode-apielements) to provide syntax highlighting and show errors and warnings when using invalid syntax.
news_toolkit/docs/docs/server_development/running_the_api.md/0
{ "file_path": "news_toolkit/docs/docs/server_development/running_the_api.md", "repo_id": "news_toolkit", "token_count": 707 }
911
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 { compileSdkVersion 33 compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } sourceSets { main.java.srcDirs += 'src/main/kotlin' } lintOptions { disable 'InvalidPackage' checkReleaseBuilds false } defaultConfig { applicationId "com.flutter.news.example" minSdkVersion 23 targetSdkVersion 31 versionCode flutterVersionCode.toInteger() versionName flutterVersionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } signingConfigs { if (System.getenv("ANDROID_KEYSTORE_PATH")) { release { storeFile file(System.getenv("ANDROID_KEYSTORE_PATH")) keyAlias System.getenv("ANDROID_KEYSTORE_ALIAS") keyPassword System.getenv("ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD") storePassword System.getenv("ANDROID_KEYSTORE_PASSWORD") } } else { release { keyAlias keystoreProperties['keyAlias'] keyPassword keystoreProperties['keyPassword'] storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null storePassword keystoreProperties['storePassword'] } } } flavorDimensions "default" productFlavors { development { dimension "default" applicationIdSuffix "dev" manifestPlaceholders = [appName: "Flutter News Example [DEV]"] } production { dimension "default" applicationIdSuffix "" manifestPlaceholders = [appName: "Flutter News Example"] } } buildTypes { release { signingConfig signingConfigs.release } debug { signingConfig signingConfigs.debug } } } flutter { source '../..' } dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'com.google.guava:guava:27.0.1-android' implementation 'com.google.firebase:firebase-analytics:17.4.4' implementation 'com.google.firebase:firebase-crashlytics:17.1.1' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test:runner:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' } apply plugin: 'com.google.gms.google-services' apply plugin: 'com.google.firebase.crashlytics'
news_toolkit/flutter_news_example/android/app/build.gradle/0
{ "file_path": "news_toolkit/flutter_news_example/android/app/build.gradle", "repo_id": "news_toolkit", "token_count": 1523 }
912
/// Flutter News Example API Client-Side Library library client; export 'package:news_blocks/news_blocks.dart' show BlockAction, BlockActionType, DividerHorizontalBlock, ImageBlock, NewsBlock, NewsBlocksConverter, PostCategory, PostGridGroupBlock, PostGridTileBlock, PostLargeBlock, PostMediumBlock, PostSmallBlock, SectionHeaderBlock, SpacerBlock, Spacing, TextCaptionBlock, TextCaptionColor, TextHeadlineBlock, TextLeadParagraphBlock, TextParagraphBlock, TrendingStoryBlock, VideoBlock; export 'src/client/flutter_news_example_api_client.dart' show FlutterNewsExampleApiClient, FlutterNewsExampleApiMalformedResponse, FlutterNewsExampleApiRequestFailure, TokenProvider; export 'src/data/models/models.dart' show Article, Category, Feed, RelatedArticles, Subscription, SubscriptionCost, SubscriptionPlan, User; export 'src/models/models.dart' show ArticleResponse, CategoriesResponse, CurrentUserResponse, FeedResponse, PopularSearchResponse, RelatedArticlesResponse, RelevantSearchResponse, SubscriptionsResponse;
news_toolkit/flutter_news_example/api/lib/client.dart/0
{ "file_path": "news_toolkit/flutter_news_example/api/lib/client.dart", "repo_id": "news_toolkit", "token_count": 616 }
913
part of 'in_memory_news_data_source.dart'; /// List of available subscriptions. const subscriptions = <Subscription>[ Subscription( id: 'dd339fda-33e9-49d0-9eb5-0ccb77eb760f', name: SubscriptionPlan.premium, cost: SubscriptionCost( annual: 16200, monthly: 1499, ), benefits: [ 'Ut rhoncus dui vel imperdiet ullamcorper.', 'Proin pellentesque erat et metus fringilla tincidunt.', 'Nunc scelerisque nulla quis urna auctor.', ], ), Subscription( id: '375af719-c9e0-44c4-be05-4527df45a13d', name: SubscriptionPlan.plus, cost: SubscriptionCost( annual: 10800, monthly: 999, ), benefits: ['Nunc scelerisque nulla quis urna auctor.'], ), Subscription( id: '34809bc1-28e5-4967-b029-2432638b0dc7', name: SubscriptionPlan.basic, cost: SubscriptionCost( annual: 5400, monthly: 499, ), benefits: ['Nunc scelerisque nulla quis urna auctor.'], ), ]; /// List of popular search topics. const popularTopics = [ 'Ukraine', 'Supreme Court', 'China', 'Inflation', 'Oil Prices', 'Plane Crash', ]; /// List of relevant search topics. const relevantTopics = [ 'South China Sea', 'US-China Relations', 'China at the Olymptics', ]; /// List of popular search articles. final popularArticles = <NewsItem>[ NewsItem( post: PostSmallBlock( id: '5c47495a-608b-4e8b-a7f0-642a02594888', category: PostCategory.technology, author: 'CNN', publishedAt: DateTime(2022, 3, 17), imageUrl: 'https://cdn.cnn.com/cnnnext/dam/assets/220518135103-03-boeing-starliner-pre-launch-0518-super-tease.jpg', title: 'Boeing makes third attempt to launch its ' 'Starliner capsule to the ISS', description: 'Boeing will try yet again Thursday to send the capsule it ' 'designed to ferry astronauts to and from the International ' 'Space Station on a successful, uncrewed test mission. ' 'After two prior attempts to complete such a mission failed, ' "Boeing's goal is to prove th…", ), content: [ ArticleIntroductionBlock( category: PostCategory.technology, author: 'Sean Hollister', publishedAt: DateTime(2022, 3, 17), title: 'Boeing makes third attempt to launch its ' 'Starliner capsule to the ISS', imageUrl: 'https://cdn.cnn.com/cnnnext/dam/assets/220518135103-03-boeing-starliner-pre-launch-0518-super-tease.jpg', ), ], contentPreview: [], url: Uri.parse( 'https://nbc-2.com/news/2022/05/19/boeing-makes-third-attempt-to-launch-its-starliner-capsule-to-the-iss', ), ) ]; /// List of relevant search articles. final relevantArticles = <NewsItem>[ NewsItem( post: PostSmallBlock( id: '781b6a65-0357-45c7-8789-3ee890e43e0e', category: PostCategory.health, author: 'CNN', publishedAt: DateTime(2022, 5, 20), imageUrl: 'https://cdn.cnn.com/cnnnext/dam/assets/220519121645-01-monkeypox-explainer-super-tease.jpg', title: 'What is monkeypox and its signs and symptoms?', description: 'Where did monkeypox come from, what are the signs and ' "symptoms and how worried should you be? Here's what we know.", ), content: [ ArticleIntroductionBlock( category: PostCategory.health, author: 'Sandee LaMotte', publishedAt: DateTime(2022, 5, 20), title: 'What is monkeypox and its signs and symptoms?', imageUrl: 'https://cdn.cnn.com/cnnnext/dam/assets/220519121645-01-monkeypox-explainer-super-tease.jpg', ), ], contentPreview: [], url: Uri.parse( 'https://www.cnn.com/2022/05/24/health/what-is-monkeypox-virus-explainer-update-wellness', ), ) ]; /// Technology news items. final technologyItems = <NewsItem>[ ...technologyLargeItems, ...technologyMediumItems, ...technologySmallItems, ]; /// Technology large news items. final technologyLargeItems = <NewsItem>[ NewsItem( post: PostLargeBlock( id: '499305f6-5096-4051-afda-824dcfc7df23', category: PostCategory.technology, author: 'Sean Hollister', publishedAt: DateTime(2022, 4, 19), imageUrl: 'https://cdn.vox-cdn.com/thumbor/OTpmptgr7XcTVAJ27UBvIxl0vrg=/0x146:2040x1214/fit-in/1200x630/cdn.vox-cdn.com/uploads/chorus_asset/file/22049166/shollister_201117_4303_0003.0.jpg', title: 'Nvidia and AMD GPUs are returning to shelves ' 'and prices are finally falling', action: const NavigateToArticleAction( articleId: '499305f6-5096-4051-afda-824dcfc7df23', ), ), content: [ ArticleIntroductionBlock( category: PostCategory.technology, author: 'Sean Hollister', publishedAt: DateTime(2022, 4, 19), title: 'Nvidia and AMD GPUs are returning to shelves ' 'and prices are finally falling', imageUrl: 'https://cdn.vox-cdn.com/thumbor/OTpmptgr7XcTVAJ27UBvIxl0vrg=/0x146:2040x1214/fit-in/1200x630/cdn.vox-cdn.com/uploads/chorus_asset/file/22049166/shollister_201117_4303_0003.0.jpg', ), const TextLeadParagraphBlock( text: 'Scientists at the University of Copenhagen research institute have' ' developed an Artificial Intelligence (AI) algorithm that can help' ' communicate with animals in the future. Currently, AI algorithms ' 'are being used on pigs to decode their emotions and researchers ' 'claim that they have achieved 60% of success in translating ' 'positive & negative emotions hidden in pig grunts.', ), const SpacerBlock(spacing: Spacing.large), const TextParagraphBlock( text: 'Cybersecurity Insiders has learned that an algorithm induced with ' '7,414 recordings of pig calls from over 411 pigs was analyzed and ' 'will be used further to improve the mental health of swine.', ), const SpacerBlock(spacing: Spacing.large), const VideoBlock( videoUrl: 'https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4', ), const SpacerBlock(spacing: Spacing.large), const TextParagraphBlock( text: 'Apparently, the breakthrough can also pave the way to a new ' 'world where humans could communicate with animals and that can ' 'lead to an ecosystem where every living being receives equal ' 'respect in this supernatural power-driven world.', ), const SpacerBlock(spacing: Spacing.large), const SlideshowIntroductionBlock( title: 'High end GPUs', coverImageUrl: 'https://cdn.vox-cdn.com/thumbor/nC20D1S_iVCFb-sPRnEiFPLeg-s=/0x0:3181x2391/1820x1213/filters:focal(1337x942:1845x1450):format(webp)/cdn.vox-cdn.com/uploads/chorus_image/image/70682614/955510a1_40de_495a_ad94_09d04e6105d7.0.jpg', action: NavigateToSlideshowAction( articleId: '499305f6-5096-4051-afda-824dcfc7df23', slideshow: SlideshowBlock( title: 'High end GPUs', slides: [ SlideBlock( caption: 'Nvidia RTX 4090', description: 'Fusce ornare quis odio eget fringilla. Curabitur gravida ' 'velit urna, semper imperdiet metus fermentum congue. ' 'Vestibulum ut diam ut risus porta mattis. Proin fringilla ' 'arcu lorem, sit amet porttitor ante iaculis sit amet.', photoCredit: 'Nvidia', imageUrl: 'https://cdn.vox-cdn.com/thumbor/-2TdzHiFfbfz8K1Z0D5V7fv7-3A=/0x0:1200x554/1820x1213/filters:focal(430x196:622x388):format(webp)/cdn.vox-cdn.com/uploads/chorus_image/image/70876010/nvidia_3090_generic.0.jpg', ), SlideBlock( caption: 'AMD Ryzen 7000', description: 'Fusce ornare quis odio eget fringilla. Curabitur gravida ' 'velit urna, semper imperdiet metus fermentum congue. ' 'Vestibulum ut diam ut risus porta mattis. Proin fringilla ' 'arcu lorem, sit amet porttitor ante iaculis sit amet.', photoCredit: 'AMD', imageUrl: 'https://cdn.vox-cdn.com/thumbor/tb-1DMHN6elrf_2in0qFUeARDoY=/0x0:1510x1130/1820x1213/filters:focal(635x445:875x685):format(webp)/cdn.vox-cdn.com/uploads/chorus_image/image/70899444/2022_05_22_15_38_37_Dly6cgt0xY.0.jpg', ), SlideBlock( caption: 'Asus GeForce RTX 3070 Noctua', description: 'Fusce ornare quis odio eget fringilla. Curabitur gravida ' 'velit urna, semper imperdiet metus fermentum congue. ' 'Vestibulum ut diam ut risus porta mattis. Proin fringilla ' 'arcu lorem, sit amet porttitor ante iaculis sit amet.', photoCredit: 'Asus', imageUrl: 'https://cdn.vox-cdn.com/thumbor/oU-H_vwU66ldMk3M69k3eY3Td1U=/34x189:1238x869/1820x1213/filters:focal(295x343:615x663):format(webp)/cdn.vox-cdn.com/uploads/chorus_image/image/70879959/kv.0.jpg', ), ], ), ), ), const SpacerBlock(spacing: Spacing.large), const BannerAdBlock(size: BannerAdSize.large), const SpacerBlock(spacing: Spacing.large), const TextHeadlineBlock(text: 'Now, comes the big surprise!'), const SpacerBlock(spacing: Spacing.medium), const TextParagraphBlock( text: 'In the next few months, a machine language will be developed in ' 'such a way that farmers indulged in pig farming will communicate ' 'with their swine, cutting down unnecessary chaos between animals ' 'and humans in large farms and slaughterhouses.', ), const SpacerBlock(spacing: Spacing.large), const ImageBlock( imageUrl: 'https://cdn.vox-cdn.com/thumbor/OTpmptgr7XcTVAJ27UBvIxl0vrg=/0x146:2040x1214/fit-in/1200x630/cdn.vox-cdn.com/uploads/chorus_asset/file/22049166/shollister_201117_4303_0003.0.jpg', ), const SpacerBlock(spacing: Spacing.medium), const TextCaptionBlock( text: 'Caption. Et has minim elitr intellegat. Mea aeterno eleifend ' 'antiopam ad, nam no suscipit quaerendum. ' 'At nam minimum ponderum.', color: TextCaptionColor.normal, ), const TextCaptionBlock( text: 'Credit: Phineas Photographer', color: TextCaptionColor.light, ), const SpacerBlock(spacing: Spacing.large), const NewsletterBlock(), const DividerHorizontalBlock(), TrendingStoryBlock( content: PostSmallBlock( id: '5c47497a-608b-4e9b-a7f0-642a02594900', category: PostCategory.technology, author: 'Fall Guys', publishedAt: DateTime(2022, 3, 9), imageUrl: 'https://cdn2.unrealengine.com/preregevent-3840x2160-03-pp-3840x2160-74911d8b9813.jpg', title: 'Fall Guys: Ultimate Knockout' ' free for ALL', description: 'Welcome to Fall Guys: Free for All! You are invited to ' 'dive and dodge your way to victory in the pantheon of clumsy. ' 'Rookie or pro? Solo or partied up? ' 'Fall Guys delivers ever-evolving, ' 'high-concentrated hilarity and fun!', ), ), const DividerHorizontalBlock(), ], contentPreview: [ ArticleIntroductionBlock( category: PostCategory.technology, author: 'Sean Hollister', publishedAt: DateTime(2022, 4, 19), title: 'Nvidia and AMD GPUs are returning to shelves ' 'and prices are finally falling', imageUrl: 'https://cdn.vox-cdn.com/thumbor/OTpmptgr7XcTVAJ27UBvIxl0vrg=/0x146:2040x1214/fit-in/1200x630/cdn.vox-cdn.com/uploads/chorus_asset/file/22049166/shollister_201117_4303_0003.0.jpg', ), const TextLeadParagraphBlock( text: 'Scientists at the University of Copenhagen research institute have' ' developed an Artificial Intelligence (AI) algorithm that can help' ' communicate with animals in the future. Currently, AI algorithms ' 'are being used on pigs to decode their emotions and researchers ' 'claim that they have achieved 60% of success in translating ' 'positive & negative emotions hidden in pig grunts.', ), ], relatedArticles: [ PostSmallBlock( id: '2224b86e-60d6-461a-a5d8-e8e71589669f', category: PostCategory.technology, author: 'The Drive', publishedAt: DateTime(2022, 3, 17), imageUrl: 'https://www.thedrive.com/uploads/2022/05/17/asdrf.jpg?auto=webp', title: 'Leaked Pic Hints Ford F-150 Raptor R ' 'Will Get the Mustang GT500 V8', description: 'A build sheet leaked to Instagram indicates that the upcoming ' "F-150 Raptor R will likely get the GT500's " 'supercharged V8 engine.', ), ], url: Uri.parse( 'https://www.theverge.com/2022/4/19/23031309/nvidia-amd-gpu-price-in-stock-retail-ebay', ), ), NewsItem( post: PostLargeBlock( id: '7dd29642-2bbd-40ea-80af-99e4381bbabb', category: PostCategory.technology, author: 'Jasmine Hicks', publishedAt: DateTime(2022, 6, 2), imageUrl: 'https://cdn.vox-cdn.com/thumbor/TanD-HFR6zb_ZfUEMwGMRWkdl5E=/0x0:1920x1080/1820x1213/filters:focal(807x387:1113x693):format(webp)/cdn.vox-cdn.com/uploads/chorus_image/image/70937578/676eeda0_4ebe_4742_857e_9934a172200d.0.png', title: 'Meta adds new Calls tab to its Messenger app for iOS and Android', action: const NavigateToArticleAction( articleId: '7dd29642-2bbd-40ea-80af-99e4381bbabb', ), isPremium: true, ), content: [ ArticleIntroductionBlock( category: PostCategory.technology, author: 'Jasmine Hicks', publishedAt: DateTime(2022, 6, 2), title: 'Meta adds new Calls tab to its Messenger app for iOS and Android', imageUrl: 'https://cdn.vox-cdn.com/thumbor/TanD-HFR6zb_ZfUEMwGMRWkdl5E=/0x0:1920x1080/1820x1213/filters:focal(807x387:1113x693):format(webp)/cdn.vox-cdn.com/uploads/chorus_image/image/70937578/676eeda0_4ebe_4742_857e_9934a172200d.0.png', isPremium: true, ), ], contentPreview: [ ArticleIntroductionBlock( category: PostCategory.technology, author: 'Jasmine Hicks', publishedAt: DateTime(2022, 6, 2), title: 'Meta adds new Calls tab to its Messenger app for iOS and Android', imageUrl: 'https://cdn.vox-cdn.com/thumbor/TanD-HFR6zb_ZfUEMwGMRWkdl5E=/0x0:1920x1080/1820x1213/filters:focal(807x387:1113x693):format(webp)/cdn.vox-cdn.com/uploads/chorus_image/image/70937578/676eeda0_4ebe_4742_857e_9934a172200d.0.png', ), ], url: Uri.parse( 'https://www.theverge.com/2022/6/2/23151755/meta-messenger-call-tab-ios-android-rollout', ), ), ]; /// Technology medium news items. final technologyMediumItems = <NewsItem>[ NewsItem( post: PostMediumBlock( id: 'd62a154f-b69a-4e8c-87ee-a1bdfcec3cfa', category: PostCategory.technology, author: 'Victoria Song', publishedAt: DateTime(2022, 6, 2), imageUrl: 'https://cdn.vox-cdn.com/thumbor/vztwGP7fw5SuqtFUfNC3WpXOS4U=/0x38:1920x1043/fit-in/1200x630/cdn.vox-cdn.com/uploads/chorus_asset/file/23449170/Google_Pixel_Watch_1.png', title: "It's okay if the Pixel Watch only manages a day of battery life", description: 'A new report claims that Google’s forthcoming Pixel Watch ' 'will “only” get 24 hours of battery life. While that’s nowhere ' 'close to fitness trackers, it’s actually pretty standard for a ' 'full-featured flagship smartwatch.', action: const NavigateToArticleAction( articleId: 'd62a154f-b69a-4e8c-87ee-a1bdfcec3cfa', ), ), content: [ ArticleIntroductionBlock( category: PostCategory.technology, author: 'Victoria Song', publishedAt: DateTime(2022, 6, 2), title: "It's okay if the Pixel Watch only manages a day of battery life", imageUrl: 'https://cdn.vox-cdn.com/thumbor/vztwGP7fw5SuqtFUfNC3WpXOS4U=/0x38:1920x1043/fit-in/1200x630/cdn.vox-cdn.com/uploads/chorus_asset/file/23449170/Google_Pixel_Watch_1.png', ), ], contentPreview: [ ArticleIntroductionBlock( category: PostCategory.technology, author: 'Victoria Song', publishedAt: DateTime(2022, 6, 2), title: "It's okay if the Pixel Watch only manages a day of battery life", imageUrl: 'https://cdn.vox-cdn.com/thumbor/vztwGP7fw5SuqtFUfNC3WpXOS4U=/0x38:1920x1043/fit-in/1200x630/cdn.vox-cdn.com/uploads/chorus_asset/file/23449170/Google_Pixel_Watch_1.png', ), ], url: Uri.parse( 'https://www.theverge.com/2022/6/2/23151748/pixel-watch-battery-wear-os-3-google-apple-samsung', ), ), ]; /// Technology small news items. final technologySmallItems = <NewsItem>[ NewsItem( post: PostSmallBlock( id: '36f4a017-d099-4fce-8727-1d9ca6a0398c', category: PostCategory.technology, author: 'Tom Phillips', publishedAt: DateTime(2022, 6, 2), imageUrl: 'https://assets.reedpopcdn.com/stray_XlfRQmc.jpg/BROK/thumbnail/1600x900/format/jpg/quality/80/stray_XlfRQmc.jpg', title: 'Stray launches next month, included in pricier PlayStation ' 'Plus tiers on day one', description: "Stray, everyone's favourite upcoming cyberpunk cat game, " 'launches for PC, PlayStation 4 and PS5 on 19th July.', action: const NavigateToArticleAction( articleId: '36f4a017-d099-4fce-8727-1d9ca6a0398c', ), ), content: [ ArticleIntroductionBlock( category: PostCategory.technology, author: 'Tom Phillips', publishedAt: DateTime(2022, 6, 2), imageUrl: 'https://assets.reedpopcdn.com/stray_XlfRQmc.jpg/BROK/thumbnail/1600x900/format/jpg/quality/80/stray_XlfRQmc.jpg', title: 'Stray launches next month, included in pricier PlayStation ' 'Plus tiers on day one', ), ], contentPreview: [ ArticleIntroductionBlock( category: PostCategory.technology, author: 'Tom Phillips', publishedAt: DateTime(2022, 6, 2), imageUrl: 'https://assets.reedpopcdn.com/stray_XlfRQmc.jpg/BROK/thumbnail/1600x900/format/jpg/quality/80/stray_XlfRQmc.jpg', title: 'Stray launches next month, included in pricier PlayStation ' 'Plus tiers on day one', ), ], url: Uri.parse( 'https://www.eurogamer.net/stray-launches-next-month-included-in-pricier-playstation-plus-tiers-on-day-one', ), ), NewsItem( post: PostSmallBlock( id: 'f903c34b-e4a7-4db1-8945-94f9fb7c7284', category: PostCategory.technology, author: 'Mike Andronico', publishedAt: DateTime(2022, 6, 2), title: 'Walmart has a big PS5 restock today — ' 'here’s how to have the best shot', description: 'Walmart will have the PS5 in stock today exclusively for ' "Walmart+ members. Here's how to have the best shot at scoring this " 'still-elusive console.', action: const NavigateToArticleAction( articleId: 'f903c34b-e4a7-4db1-8945-94f9fb7c7284', ), isPremium: true, ), content: [ ArticleIntroductionBlock( category: PostCategory.technology, author: 'Victoria Song', publishedAt: DateTime(2022, 6, 2), title: 'Walmart has a big PS5 restock today — ' 'here’s how to have the best shot', isPremium: true, ), ], contentPreview: [ ArticleIntroductionBlock( category: PostCategory.technology, author: 'Victoria Song', publishedAt: DateTime(2022, 6, 2), title: 'Walmart has a big PS5 restock today — ' 'here’s how to have the best shot', ), ], url: Uri.parse( 'https://us.cnn.com/2022/06/02/cnn-underscored/deals/ps5-restock-walmart-june-2', ), ), ]; /// Sports news items. final sportsItems = <NewsItem>[ ...sportsLargeItems, ...sportsMediumItems, ...sportsSmallItems, ]; /// Sports large news items. final sportsLargeItems = <NewsItem>[ NewsItem( post: PostLargeBlock( id: 'e24e8c44-fcba-4312-92bc-4da4c83e1f4b', category: PostCategory.sports, author: 'Peter Brody', publishedAt: DateTime(2022, 6, 3), imageUrl: 'https://cdn.vox-cdn.com/thumbor/a3ES9_uJ0NKxcWTH3xrtM0FulHE=/0x0:3482x1823/fit-in/1200x630/cdn.vox-cdn.com/uploads/chorus_asset/file/23605079/usa_today_18419260.jpg', title: 'Yankees win, 2-1, as Jameson Taillon carries ' 'perfect game into eighth', description: 'Taillon took us tantalizingly close to history, and Rizzo saved the ' 'day with a come-from-behind hit.', action: const NavigateToArticleAction( articleId: 'e24e8c44-fcba-4312-92bc-4da4c83e1f4b', ), ), content: [ ArticleIntroductionBlock( category: PostCategory.sports, author: 'Peter Brody', publishedAt: DateTime(2022, 6, 3), imageUrl: 'https://cdn.vox-cdn.com/thumbor/a3ES9_uJ0NKxcWTH3xrtM0FulHE=/0x0:3482x1823/fit-in/1200x630/cdn.vox-cdn.com/uploads/chorus_asset/file/23605079/usa_today_18419260.jpg', title: 'Yankees win, 2-1, as Jameson Taillon carries ' 'perfect game into eighth', ), ], contentPreview: [ ArticleIntroductionBlock( category: PostCategory.sports, author: 'Peter Brody', publishedAt: DateTime(2022, 6, 3), imageUrl: 'https://cdn.vox-cdn.com/thumbor/a3ES9_uJ0NKxcWTH3xrtM0FulHE=/0x0:3482x1823/fit-in/1200x630/cdn.vox-cdn.com/uploads/chorus_asset/file/23605079/usa_today_18419260.jpg', title: 'Yankees win, 2-1, as Jameson Taillon carries ' 'perfect game into eighth', ), ], url: Uri.parse( 'https://www.pinstripealley.com/2022/6/2/23150750/yankees-game-score-recap-angels-sweep-jameson-taillon-perfect-game-bid-anthony-rizzo-doubleheader', ), ), ]; /// Sports medium news items. final sportsMediumItems = <NewsItem>[ NewsItem( post: PostMediumBlock( id: '82c49bf1-946d-4920-a801-302291f367b5', category: PostCategory.sports, author: 'Tom Dierberger', publishedAt: DateTime(2022, 5, 5), imageUrl: 'https://www.nbcsports.com/sites/rsnunited/files/styles/metatags_opengraph/public/article/hero/pat-bev-ja-morant-USA.jpg', title: 'Patrick Beverley throws shade at Warriors ' 'for Ja Morant struggles - NBC Sports', description: 'Patrick Beverley is no longer participating in the NBA playoffs, ' 'but he sure has a lot to say. In Game 2 between the Warriors and ' 'Memphis Grizzlies on Tuesday night, Ja Morant torched the Dubs ' 'for 47 points...', action: const NavigateToArticleAction( articleId: '82c49bf1-946d-4920-a801-302291f367b5', ), ), content: [ ArticleIntroductionBlock( category: PostCategory.sports, author: 'Tom Dierberger', publishedAt: DateTime(2022, 5, 22), imageUrl: 'https://www.nbcsports.com/sites/rsnunited/files/styles/metatags_opengraph/public/article/hero/pat-bev-ja-morant-USA.jpg', title: 'Patrick Beverley throws shade at Warriors ' 'for Ja Morant struggles - NBC Sports', ), ], contentPreview: [ ArticleIntroductionBlock( category: PostCategory.sports, author: 'Tom Dierberger', publishedAt: DateTime(2022, 5, 22), imageUrl: 'https://www.nbcsports.com/sites/rsnunited/files/styles/metatags_opengraph/public/article/hero/pat-bev-ja-morant-USA.jpg', title: 'Patrick Beverley throws shade at Warriors ' 'for Ja Morant struggles - NBC Sports', ), ], relatedArticles: [ PostSmallBlock( id: 'b77f8854-7483-4353-ac91-5a8a10e576b0', category: PostCategory.sports, author: 'Bleacher Report', publishedAt: DateTime(2022, 3, 17), imageUrl: 'https://img.bleacherreport.net/img/images/photos/003/921/731/fb79b6bfb3d129622735c307266f225c_crop_exact.jpg?w=1200&h=1200&q=75', title: '1 Trade Every Lottery Team Must Consider ' 'If It Wins No. 1 Draft Pick', description: 'The 2022 NBA draft lottery is Tuesday, and it could change ' 'everything for whichever team lands the first overall pick. ' 'In most cases, the squad that secures that top ' 'selection should keep it...', ), ], url: Uri.parse( 'https://www.nbcsports.com/bayarea/warriors/patrick-beverley-throws-shade-warriors-ja-morant-struggles', ), ), ]; /// Sports small news items. final sportsSmallItems = <NewsItem>[ NewsItem( post: PostSmallBlock( id: 'b1e70b22-b7a3-4b07-808d-3735fe7131af', category: PostCategory.sports, author: 'Jasmyn Wimbish', publishedAt: DateTime(2022, 6, 3), imageUrl: 'https://sportshub.cbsistatic.com/i/r/2022/06/03/ff016f39-ad02-4dd9-8237-f1c7d3b1b5a6/thumbnail/1200x675/ed10f396f5f3cdf4b6b912e44fdf2597/untitled-design-2022-06-02t212223-267.png', title: 'NBA commissioner Adam Silver talks about league expansion, ' 'potential All-NBA changes ahead of Finals', description: 'Silver touched on a number of topics during his ' 'annual press conference.', action: const NavigateToArticleAction( articleId: 'b1e70b22-b7a3-4b07-808d-3735fe7131af', ), ), content: [ ArticleIntroductionBlock( category: PostCategory.sports, author: 'Jasmyn Wimbish', publishedAt: DateTime(2022, 6, 3), imageUrl: 'https://sportshub.cbsistatic.com/i/r/2022/06/03/ff016f39-ad02-4dd9-8237-f1c7d3b1b5a6/thumbnail/1200x675/ed10f396f5f3cdf4b6b912e44fdf2597/untitled-design-2022-06-02t212223-267.png', title: 'NBA commissioner Adam Silver talks about league expansion, ' 'potential All-NBA changes ahead of Finals', ), ], contentPreview: [ ArticleIntroductionBlock( category: PostCategory.sports, author: 'Jasmyn Wimbish', publishedAt: DateTime(2022, 6, 3), imageUrl: 'https://sportshub.cbsistatic.com/i/r/2022/06/03/ff016f39-ad02-4dd9-8237-f1c7d3b1b5a6/thumbnail/1200x675/ed10f396f5f3cdf4b6b912e44fdf2597/untitled-design-2022-06-02t212223-267.png', title: 'NBA commissioner Adam Silver talks about league expansion, ' 'potential All-NBA changes ahead of Finals', ), ], url: Uri.parse( 'https://www.cbssports.com/nba/news/nba-commissioner-adam-silver-talks-about-league-expansion-potential-all-nba-changes-ahead-of-finals/', ), ), NewsItem( post: PostSmallBlock( id: '7f03f6bf-011f-49cf-88b8-08c79a21745c', category: PostCategory.sports, author: 'Adam Rowe', publishedAt: DateTime(2022, 6, 3), title: 'Five-Star International Recruit Tyrese Proctor will reclassify ' 'up to 2022 and enroll at Duke this summer', description: 'Duke will be getting one of their top Class of 2023 ' 'recruits, Tyrese Proctor, a year earlier than originally expected', action: const NavigateToArticleAction( articleId: '7f03f6bf-011f-49cf-88b8-08c79a21745c', ), ), content: [ ArticleIntroductionBlock( category: PostCategory.sports, author: 'Adam Rowe', publishedAt: DateTime(2022, 6, 3), title: 'Five-Star International Recruit Tyrese Proctor will reclassify ' 'up to 2022 and enroll at Duke this summer', ), ], contentPreview: [ ArticleIntroductionBlock( category: PostCategory.sports, author: 'Adam Rowe', publishedAt: DateTime(2022, 6, 3), title: 'Five-Star International Recruit Tyrese Proctor will reclassify ' 'up to 2022 and enroll at Duke this summer', ), ], url: Uri.parse( 'https://247sports.com/college/duke/Article/tyrese-proctor-reclassfication-2022-188267682/', ), ), ]; /// Health news items. final healthItems = <NewsItem>[ ...healthLargeItems, ...healthMediumItems, ...healthSmallItems, ]; /// Health large news items. final healthLargeItems = <NewsItem>[ NewsItem( post: PostLargeBlock( id: 'f237463b-f4d8-4b23-a468-d448a446b03b', category: PostCategory.health, author: 'Neuroscience News', publishedAt: DateTime(2022, 6, 2), imageUrl: 'https://neurosciencenews.com/files/2022/06/asd-genetics-neurosicnes-public.jpg', title: 'Broad Spectrum of Autism Depends on Spectrum of Genetic Factors', description: 'Genetic factors influence the severity of symptoms in ' 'children on the autism spectrum, and different genetic factors were ' 'associated with different symptoms of ASD.', action: const NavigateToArticleAction( articleId: 'f237463b-f4d8-4b23-a468-d448a446b03b', ), ), content: [ ArticleIntroductionBlock( category: PostCategory.health, author: 'Neuroscience News', publishedAt: DateTime(2022, 6, 2), imageUrl: 'https://neurosciencenews.com/files/2022/06/asd-genetics-neurosicnes-public.jpg', title: 'Broad Spectrum of Autism Depends on Spectrum of Genetic Factors', ), ], contentPreview: [ ArticleIntroductionBlock( category: PostCategory.health, author: 'Neuroscience News', publishedAt: DateTime(2022, 6, 2), imageUrl: 'https://neurosciencenews.com/files/2022/06/asd-genetics-neurosicnes-public.jpg', title: 'Broad Spectrum of Autism Depends on Spectrum of Genetic Factors', ), ], url: Uri.parse( 'https://neurosciencenews.com/asd-genetics-symptoms-20731/', ), ), ]; /// Health medium news items. final healthMediumItems = <NewsItem>[ NewsItem( post: PostMediumBlock( id: '057d4de4-a7c5-4dc3-b231-33052bcea53d', category: PostCategory.health, author: 'Neuroscience News', publishedAt: DateTime(2022, 6, 2), imageUrl: 'https://neurosciencenews.com/files/2022/06/amd-eye-supplements-neurosinces-public.jpg', title: 'Study Confirms Benefit of Supplements for Slowing Age-Related ' 'Macular Degeneration', description: 'The AREDS2 dietary supplement that substitutes ' 'antioxidants lutein and zeaxanthin for beta-carotene reduces the ' 'risk of age-related macular degeneration progression, a new study ' 'reveals.', action: const NavigateToArticleAction( articleId: '057d4de4-a7c5-4dc3-b231-33052bcea53d', ), ), content: [ ArticleIntroductionBlock( category: PostCategory.health, author: 'Neuroscience News', publishedAt: DateTime(2022, 6, 2), imageUrl: 'https://neurosciencenews.com/files/2022/06/amd-eye-supplements-neurosinces-public.jpg', title: 'Study Confirms Benefit of Supplements for Slowing Age-Related ' 'Macular Degeneration', ), ], contentPreview: [ ArticleIntroductionBlock( category: PostCategory.health, author: 'Neuroscience News', publishedAt: DateTime(2022, 6, 2), imageUrl: 'https://neurosciencenews.com/files/2022/06/amd-eye-supplements-neurosinces-public.jpg', title: 'Study Confirms Benefit of Supplements for Slowing Age-Related ' 'Macular Degeneration', ), ], url: Uri.parse( 'https://neurosciencenews.com/asd-genetics-symptoms-20731/', ), ), ]; /// Health small news items. final healthSmallItems = <NewsItem>[ NewsItem( post: PostSmallBlock( id: 'b1fc2ffc-eb02-42ce-af65-79702172a987', category: PostCategory.health, author: 'Northwestern University', publishedAt: DateTime(2022, 5, 4), imageUrl: 'https://scitechdaily.com/images/Ear-Hearing-Concept.jpg', title: 'Restoring Hearing: New Tool To Create Ear Hair Cells ' 'Lost Due to Aging or Noise', description: '‘We have overcome a major hurdle’ to restore hearing, ' 'investigators say. Gene discovery allows the production of inner ' 'or outer ear hair cells, death of outer hair cells due to aging ' 'or noise cause most hearing loss...', action: const NavigateToArticleAction( articleId: 'b1fc2ffc-eb02-42ce-af65-79702172a987', ), ), content: [ ArticleIntroductionBlock( category: PostCategory.health, author: 'Northwestern University', publishedAt: DateTime(2022, 5, 4), imageUrl: 'https://scitechdaily.com/images/Ear-Hearing-Concept.jpg', title: 'Restoring Hearing: New Tool To Create Ear Hair Cells ' 'Lost Due to Aging or Noise', ), ], contentPreview: [ ArticleIntroductionBlock( category: PostCategory.health, author: 'Northwestern University', publishedAt: DateTime(2022, 5, 4), imageUrl: 'https://scitechdaily.com/images/Ear-Hearing-Concept.jpg', title: 'Restoring Hearing: New Tool To Create Ear Hair Cells ' 'Lost Due to Aging or Noise', ), ], relatedArticles: [ PostSmallBlock( id: '7a5661d7-32a3-4b05-9fe2-7bc5ff8ea904', category: PostCategory.health, author: 'New York Times', publishedAt: DateTime(2022, 3, 17), imageUrl: 'https://static01.nyt.com/images/2022/05/17/science/00kidney1/00kidney1-facebookJumbo.jpg', title: 'Targeting the Uneven Burden of Kidney Disease ' 'on Black Americans', description: 'New treatments aim for a gene variant causing the illness in ' 'people of sub-Saharan African descent. ' 'Some experts worry that focus will neglect other factors.', ), ], url: Uri.parse( 'https://scitechdaily.com/restoring-hearing-new-tool-to-create-ear-hair-cells-lost-due-to-aging-or-noise', ), ), NewsItem( post: PostSmallBlock( id: '67c36008-42f3-4ed3-9bcc-2c96acaa27d3', category: PostCategory.health, author: 'Gabby Landsverk', publishedAt: DateTime(2022, 6, 2), title: 'Keto and Mediterranean diets both help manage blood sugar, ' 'but keto may have more side effects, according to research', description: 'A high-fat ketogenic diet and a high-fiber Mediterranean ' 'diet may be equally effective for balancing blood sugar levels, ' 'according to a study published May 31 in the American Journal of ' 'Clinical Nutrition.', action: const NavigateToArticleAction( articleId: '67c36008-42f3-4ed3-9bcc-2c96acaa27d3', ), ), content: [ ArticleIntroductionBlock( category: PostCategory.health, author: 'Gabby Landsverk', publishedAt: DateTime(2022, 6, 2), title: 'Keto and Mediterranean diets both help manage blood sugar, ' 'but keto may have more side effects, according to research', ), ], contentPreview: [ ArticleIntroductionBlock( category: PostCategory.health, author: 'Gabby Landsverk', publishedAt: DateTime(2022, 6, 2), title: 'Keto and Mediterranean diets both help manage blood sugar, ' 'but keto may have more side effects, according to research', ), ], url: Uri.parse( 'https://www.msn.com/en-us/health/nutrition/keto-and-mediterranean-diets-both-help-manage-blood-sugar-but-keto-may-have-more-side-effects-according-to-research/ar-AAY0S3q?li=BBnba9O', ), ), ]; /// Science news items. final scienceItems = <NewsItem>[ ...scienceLargeItems, ...scienceMediumItems, ...scienceSmallItems, ...scienceVideoItems, ]; /// Science large news items. final scienceLargeItems = <NewsItem>[ NewsItem( post: PostLargeBlock( id: 'f6e66eb4-add9-4181-bf1e-ce09c629287d', category: PostCategory.science, author: 'Megan Marples and Ashley Strickland', publishedAt: DateTime(2022, 6, 2), imageUrl: 'https://neurosciencenews.com/files/2022/06/asd-genetics-neurosicnes-public.jpg', title: 'A rare, 5-planet alignment will take over the sky this month', description: 'Mercury, Venus, Mars, Jupiter and Saturn will align in the ' 'month of June, with the waning crescent moon making a special ' 'appearance on June 24.', action: const NavigateToArticleAction( articleId: 'f6e66eb4-add9-4181-bf1e-ce09c629287d', ), ), content: [ ArticleIntroductionBlock( category: PostCategory.science, author: 'Megan Marples and Ashley Strickland', publishedAt: DateTime(2022, 6, 2), imageUrl: 'https://neurosciencenews.com/files/2022/06/asd-genetics-neurosicnes-public.jpg', title: 'A rare, 5-planet alignment will take over the sky this month', ), ], contentPreview: [ ArticleIntroductionBlock( category: PostCategory.science, author: 'Megan Marples and Ashley Strickland', publishedAt: DateTime(2022, 6, 2), imageUrl: 'https://neurosciencenews.com/files/2022/06/asd-genetics-neurosicnes-public.jpg', title: 'A rare, 5-planet alignment will take over the sky this month', ), ], url: Uri.parse( 'https://edition.cnn.com/2022/06/02/world/five-planet-alignment-june-scn/index.html', ), ), ]; /// Science medium news items. final scienceMediumItems = <NewsItem>[ NewsItem( post: PostMediumBlock( id: '506271f9-394e-48e4-a6d8-9d438f561532', category: PostCategory.science, author: 'Jeff Foust', publishedAt: DateTime(2022, 6, 2), imageUrl: 'https://spacenews.com/wp-content/uploads/2021/11/crew2-depature.jpg', title: 'NASA to buy five additional Crew Dragon flights', description: 'NASA is planning to purchase five more Crew Dragon ' 'missions from SpaceX, a move the agency says is needed to ensure ' 'long-term access to the station.', action: const NavigateToArticleAction( articleId: '506271f9-394e-48e4-a6d8-9d438f561532', ), ), content: [ ArticleIntroductionBlock( category: PostCategory.science, author: 'Jeff Foust', publishedAt: DateTime(2022, 6, 2), imageUrl: 'https://spacenews.com/wp-content/uploads/2021/11/crew2-depature.jpg', title: 'NASA to buy five additional Crew Dragon flights', ), ], contentPreview: [ ArticleIntroductionBlock( category: PostCategory.science, author: 'Jeff Foust', publishedAt: DateTime(2022, 6, 2), imageUrl: 'https://spacenews.com/wp-content/uploads/2021/11/crew2-depature.jpg', title: 'NASA to buy five additional Crew Dragon flights', ), ], url: Uri.parse( 'https://spacenews.com/?p=128336&#038;preview=true&#038;preview_id=128336', ), ), ]; /// Science small news items. final scienceSmallItems = <NewsItem>[ NewsItem( post: PostSmallBlock( id: '1273746e-900d-45d9-a4f3-acbb462de797', category: PostCategory.science, author: 'Tomasz Nowakowski', publishedAt: DateTime(2022, 6, 2), imageUrl: 'https://scx2.b-cdn.net/gfx/news/2022/super-earth-exoplanet.jpg', title: 'Super-Earth exoplanet orbiting nearby star discovered', description: 'An international team of astronomers reports the discovery ' 'of a new super-Earth exoplanet orbiting a nearby M-dwarf star ' 'known as Ross 508.', action: const NavigateToArticleAction( articleId: '1273746e-900d-45d9-a4f3-acbb462de797', ), ), content: [ ArticleIntroductionBlock( category: PostCategory.science, author: 'Tomasz Nowakowski', publishedAt: DateTime(2022, 6, 2), imageUrl: 'https://scx2.b-cdn.net/gfx/news/2022/super-earth-exoplanet.jpg', title: 'Super-Earth exoplanet orbiting nearby star discovered', ), ], contentPreview: [ ArticleIntroductionBlock( category: PostCategory.science, author: 'Tomasz Nowakowski', publishedAt: DateTime(2022, 6, 2), imageUrl: 'https://scx2.b-cdn.net/gfx/news/2022/super-earth-exoplanet.jpg', title: 'Super-Earth exoplanet orbiting nearby star discovered', ), ], url: Uri.parse( 'https://phys.org/news/2022-06-super-earth-exoplanet-orbiting-nearby-star.html', ), ), NewsItem( post: PostSmallBlock( id: '52c74e71-36b3-45aa-bc06-f50b1d2631fa', category: PostCategory.science, author: 'Phil Plait', publishedAt: DateTime(2022, 6, 2), title: 'Are supermassive black holes killing their host galaxies?', description: 'Why are young galaxies in the distant Universe dying? ' 'Their supermassive black holes may be killing them.', action: const NavigateToArticleAction( articleId: '52c74e71-36b3-45aa-bc06-f50b1d2631fa', ), ), content: [ ArticleIntroductionBlock( category: PostCategory.science, author: 'Phil Plait', publishedAt: DateTime(2022, 6, 2), title: 'Are supermassive black holes killing their host galaxies?', ), ], contentPreview: [ ArticleIntroductionBlock( category: PostCategory.science, author: 'Phil Plait', publishedAt: DateTime(2022, 6, 2), title: 'Are supermassive black holes killing their host galaxies?', ), ], url: Uri.parse( 'https://www.syfy.com/syfy-wire/bad-astronomy-astronomers-link-supermassive-black-holes-reduced-star-birth', ), ), ]; /// Science video news items. final scienceVideoItems = <NewsItem>[ NewsItem( post: PostGridTileBlock( id: '384a15ff-a50e-46d5-96a7-8864facdcc48', category: PostCategory.science, author: 'Loren Grush', publishedAt: DateTime(2022, 5, 6), imageUrl: 'https://cdn.vox-cdn.com/thumbor/eqkJgsUMn-iJOrN98c4gduFGDT8=/0x74:1050x624/fit-in/1200x630/cdn.vox-cdn.com/uploads/chorus_asset/file/23441881/Screen_Shot_2022_05_06_at_1.13.12_AM.png', title: 'SpaceX successfully returns four astronauts from the International ' 'Space Station', action: const NavigateToVideoArticleAction( articleId: '384a15ff-a50e-46d5-96a7-8864facdcc48', ), ), content: const [ VideoIntroductionBlock( category: PostCategory.science, title: 'SpaceX successfully returns four astronauts from the ' 'International Space Station', videoUrl: 'https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4', ), ], contentPreview: const [ VideoIntroductionBlock( category: PostCategory.science, title: 'SpaceX successfully returns four astronauts from the ' 'International Space Station', videoUrl: 'https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4', ), ], relatedArticles: [ PostSmallBlock( id: 'bfd5aa62-4c50-40c6-9aef-5511535c7b68', category: PostCategory.science, author: 'SciTechDaily', publishedAt: DateTime(2022, 3, 17), imageUrl: 'https://scitechdaily.com/images/Sample-of-Hypatia-Stone-From-Outside-Solar-System.jpg', title: 'Extraterrestrial Stone Could Be First Evidence ' 'on Earth of Supernova Ia Explosion', description: 'New chemistry ‘forensics’ indicates that the stone named Hypatia ' 'from the Egyptian desert could be the first physical evidence ' 'found on Earth of a supernova type Ia explosion. ' 'These rare supernovas are some of the most energetic ' 'events in the universe.', ), ], url: Uri.parse( 'https://www.theverge.com/2022/5/6/23055274/spacex-crew-3-return-iss-nasa-crew-dragon', ), ), NewsItem( post: PostGridTileBlock( id: '13e448bb-cd26-4ae0-b138-4a67067f7a93', category: PostCategory.science, author: 'Daniel Strain', publishedAt: DateTime(2022, 5, 6), imageUrl: 'https://scx2.b-cdn.net/gfx/news/2022/a-surging-glow-in-a-di.jpg', title: 'A surging glow in a distant galaxy could change the way we look at ' 'black holes', action: const NavigateToVideoArticleAction( articleId: '13e448bb-cd26-4ae0-b138-4a67067f7a93', ), ), content: const [ VideoIntroductionBlock( category: PostCategory.science, title: 'A surging glow in a distant galaxy could change ' 'the way we look at black holes', videoUrl: 'https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4', ), ], contentPreview: const [ VideoIntroductionBlock( category: PostCategory.science, title: 'A surging glow in a distant galaxy could change ' 'the way we look at black holes', videoUrl: 'https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4', ), ], url: Uri.parse( 'https://phys.org/news/2022-05-surging-distant-galaxy-black-holes.html', ), ), NewsItem( post: PostGridTileBlock( id: '842e3193-86d2-4069-a7e6-f769faa6f970', category: PostCategory.science, author: 'SciTechDaily', publishedAt: DateTime(2022, 5, 5), imageUrl: 'https://scitechdaily.com/images/Qubit-Platform-Single-Electron-on-Solid-Neon.jpg', title: 'The Quest for an Ideal Quantum Bit: New Qubit Breakthrough Could ' 'Revolutionize Quantum Computing', action: const NavigateToVideoArticleAction( articleId: '842e3193-86d2-4069-a7e6-f769faa6f970', ), ), content: const [ VideoIntroductionBlock( category: PostCategory.science, title: 'The Quest for an Ideal Quantum Bit: New Qubit Breakthrough Could ' 'Revolutionize Quantum Computing', videoUrl: 'https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4', ), ], contentPreview: const [ VideoIntroductionBlock( category: PostCategory.science, title: 'The Quest for an Ideal Quantum Bit: New Qubit Breakthrough Could ' 'Revolutionize Quantum Computing', videoUrl: 'https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4', ), ], url: Uri.parse( 'https://scitechdaily.com/the-quest-for-an-ideal-quantum-bit-new-qubit-breakthrough-could-revolutionize-quantum-computing', ), ), NewsItem( post: PostGridTileBlock( id: '1f79da6f-64cb-430a-b7b2-2318d23b719f', category: PostCategory.science, author: 'SciTechDaily', publishedAt: DateTime(2022, 5, 4), imageUrl: 'https://scitechdaily.com/images/Black-Hole-Sonification.gif', title: 'Hear What a Black Hole Sounds Like – New NASA Black Hole ' 'Sonifications With a Remix', action: const NavigateToVideoArticleAction( articleId: '1f79da6f-64cb-430a-b7b2-2318d23b719f', ), ), content: const [ VideoIntroductionBlock( category: PostCategory.science, title: 'Hear What a Black Hole Sounds Like – New NASA Black Hole ' 'Sonifications With a Remix', videoUrl: 'https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4', ), ], contentPreview: const [ VideoIntroductionBlock( category: PostCategory.science, title: 'Hear What a Black Hole Sounds Like – New NASA Black Hole ' 'Sonifications With a Remix', videoUrl: 'https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4', ), ], url: Uri.parse( 'https://www.cbsnews.com/news/black-hole-audio-perseus-galaxy-cluster', ), ) ]; /// Top news feed blocks. final topNewsFeedBlocks = <NewsBlock>[ const SpacerBlock(spacing: Spacing.small), const SectionHeaderBlock(title: 'Breaking News'), technologyLargeItems.first.post, const BannerAdBlock(size: BannerAdSize.normal), const SpacerBlock(spacing: Spacing.small), const SectionHeaderBlock( title: 'Technology', action: NavigateToFeedCategoryAction( category: Category.technology, ), ), technologyLargeItems.last.post, const BannerAdBlock(size: BannerAdSize.large), const SpacerBlock(spacing: Spacing.small), const SectionHeaderBlock( title: 'Science Videos', action: NavigateToFeedCategoryAction( category: Category.science, ), ), PostGridGroupBlock( category: PostCategory.science, tiles: [...scienceVideoItems.map((e) => e.post).cast<PostGridTileBlock>()], ), const SpacerBlock(spacing: Spacing.large), const DividerHorizontalBlock(), const SectionHeaderBlock( title: 'Sports', action: NavigateToFeedCategoryAction( category: Category.sports, ), ), sportsMediumItems.first.post, const SpacerBlock(spacing: Spacing.medium), const BannerAdBlock(size: BannerAdSize.extraLarge), const SpacerBlock(spacing: Spacing.small), const SectionHeaderBlock( title: 'Health', action: NavigateToFeedCategoryAction( category: Category.health, ), ), healthSmallItems.first.post, const SpacerBlock(spacing: Spacing.small), const NewsletterBlock(), const SpacerBlock(spacing: Spacing.small), healthSmallItems.last.post, const SpacerBlock(spacing: Spacing.medium), ]; /// Technology feed blocks. final technologyFeedBlocks = <NewsBlock>[ const SpacerBlock(spacing: Spacing.small), const SectionHeaderBlock(title: 'Technology'), ...technologyLargeItems.map((item) => item.post), const BannerAdBlock(size: BannerAdSize.large), const SpacerBlock(spacing: Spacing.small), const SectionHeaderBlock(title: 'Popular in Tech'), ...technologyMediumItems.map((item) => item.post), const SpacerBlock(spacing: Spacing.small), const BannerAdBlock(size: BannerAdSize.normal), const SpacerBlock(spacing: Spacing.small), technologySmallItems.first.post, const SpacerBlock(spacing: Spacing.small), const NewsletterBlock(), technologySmallItems.last.post, const SpacerBlock(spacing: Spacing.small), const SpacerBlock(spacing: Spacing.medium), ]; /// Sports feed blocks. final sportsFeedBlocks = <NewsBlock>[ const SpacerBlock(spacing: Spacing.small), const SectionHeaderBlock(title: 'Sports'), ...sportsLargeItems.map((item) => item.post), const BannerAdBlock(size: BannerAdSize.large), const SpacerBlock(spacing: Spacing.small), const SectionHeaderBlock(title: 'Popular in Sports'), ...sportsMediumItems.map((item) => item.post), const SpacerBlock(spacing: Spacing.small), const BannerAdBlock(size: BannerAdSize.normal), const SpacerBlock(spacing: Spacing.small), sportsSmallItems.first.post, const SpacerBlock(spacing: Spacing.small), const NewsletterBlock(), sportsSmallItems.last.post, const SpacerBlock(spacing: Spacing.small), const SpacerBlock(spacing: Spacing.medium), ]; /// Health feed blocks. final healthFeedBlocks = <NewsBlock>[ const SpacerBlock(spacing: Spacing.small), const SectionHeaderBlock(title: 'Health'), ...healthLargeItems.map((item) => item.post), const BannerAdBlock(size: BannerAdSize.large), const SpacerBlock(spacing: Spacing.small), const SectionHeaderBlock(title: 'Popular in Health'), ...healthMediumItems.map((item) => item.post), const SpacerBlock(spacing: Spacing.small), const BannerAdBlock(size: BannerAdSize.normal), const SpacerBlock(spacing: Spacing.small), healthSmallItems.first.post, const SpacerBlock(spacing: Spacing.small), const NewsletterBlock(), healthSmallItems.last.post, const SpacerBlock(spacing: Spacing.small), const SpacerBlock(spacing: Spacing.medium), ]; /// Science feed blocks. final scienceFeedBlocks = <NewsBlock>[ const SpacerBlock(spacing: Spacing.small), const SectionHeaderBlock(title: 'Science'), ...scienceLargeItems.map((item) => item.post), const BannerAdBlock(size: BannerAdSize.large), const SpacerBlock(spacing: Spacing.small), const SectionHeaderBlock(title: 'Popular in Science'), ...scienceMediumItems.map((item) => item.post), const SpacerBlock(spacing: Spacing.small), const BannerAdBlock(size: BannerAdSize.normal), const SpacerBlock(spacing: Spacing.small), scienceSmallItems.first.post, const SpacerBlock(spacing: Spacing.small), const NewsletterBlock(), scienceSmallItems.last.post, const SpacerBlock(spacing: Spacing.small), const BannerAdBlock(size: BannerAdSize.normal), const SpacerBlock(spacing: Spacing.small), const SectionHeaderBlock(title: 'Science Videos'), PostGridGroupBlock( category: PostCategory.science, tiles: [...scienceVideoItems.map((e) => e.post).cast<PostGridTileBlock>()], ), const SpacerBlock(spacing: Spacing.medium), ]; List<NewsItem> get _newsItems { return [ ...technologyItems, ...sportsItems, ...healthItems, ...scienceItems, ]; } final _newsFeedData = <Category, Feed>{ Category.top: topNewsFeedBlocks.toFeed(), Category.technology: technologyFeedBlocks.toFeed(), Category.sports: sportsFeedBlocks.toFeed(), Category.health: healthFeedBlocks.toFeed(), Category.science: scienceFeedBlocks.toFeed(), }; extension on List<NewsBlock> { Feed toFeed() => Feed(blocks: this, totalBlocks: length); Article toArticle({required String title, required Uri url}) { return Article( title: title, blocks: this, totalBlocks: length, url: url, ); } }
news_toolkit/flutter_news_example/api/lib/src/data/static_news_data.dart/0
{ "file_path": "news_toolkit/flutter_news_example/api/lib/src/data/static_news_data.dart", "repo_id": "news_toolkit", "token_count": 23543 }
914
// GENERATED CODE - DO NOT MODIFY BY HAND part of 'related_articles_response.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** RelatedArticlesResponse _$RelatedArticlesResponseFromJson( Map<String, dynamic> json) => RelatedArticlesResponse( relatedArticles: const NewsBlocksConverter().fromJson(json['relatedArticles'] as List), totalCount: json['totalCount'] as int, ); Map<String, dynamic> _$RelatedArticlesResponseToJson( RelatedArticlesResponse instance) => <String, dynamic>{ 'relatedArticles': const NewsBlocksConverter().toJson(instance.relatedArticles), 'totalCount': instance.totalCount, };
news_toolkit/flutter_news_example/api/lib/src/models/related_articles_response/related_articles_response.g.dart/0
{ "file_path": "news_toolkit/flutter_news_example/api/lib/src/models/related_articles_response/related_articles_response.g.dart", "repo_id": "news_toolkit", "token_count": 255 }
915
import 'package:json_annotation/json_annotation.dart'; import 'package:news_blocks/news_blocks.dart'; /// {@template block_action_converter} /// A [JsonConverter] that supports (de)serializing a [BlockAction]. /// {@endtemplate} class BlockActionConverter implements JsonConverter<BlockAction?, Map<String, dynamic>?> { /// {@macro block_action_converter} const BlockActionConverter(); @override Map<String, dynamic>? toJson(BlockAction? blockAction) => blockAction?.toJson(); @override BlockAction? fromJson(Object? jsonString) => jsonString != null ? BlockAction.fromJson(jsonString as Map<String, dynamic>) : null; }
news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/block_action_converter.dart/0
{ "file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/block_action_converter.dart", "repo_id": "news_toolkit", "token_count": 228 }
916
import 'package:json_annotation/json_annotation.dart'; import 'package:news_blocks/news_blocks.dart'; part 'post_grid_tile_block.g.dart'; /// {@template post_grid_tile_block} /// A block which represents a post grid tile block. /// /// Multiple [PostGridTileBlock] blocks form a [PostGridGroupBlock]. /// https://www.figma.com/file/RajSN6YbRqTuqvdKYtij3b/Google-News-Template-App-v3?node-id=391%3A18875 /// {@endtemplate} @JsonSerializable() class PostGridTileBlock extends PostBlock { /// {@macro post_grid_tile_block} const PostGridTileBlock({ required super.id, required super.category, required super.author, required super.publishedAt, required String super.imageUrl, required super.title, super.description, super.action, super.type = PostGridTileBlock.identifier, super.isPremium, }) : super(isContentOverlaid: true); /// Converts a `Map<String, dynamic>` into a [PostGridTileBlock] instance. factory PostGridTileBlock.fromJson(Map<String, dynamic> json) => _$PostGridTileBlockFromJson(json); /// The post grid tile block type identifier. static const identifier = '__post_grid_tile__'; @override Map<String, dynamic> toJson() => _$PostGridTileBlockToJson(this); } /// {@template post_grid_tile_block_ext} /// Converts [PostGridTileBlock] into a [PostBlock] instance. /// {@endtemplate} extension PostGridTileBlockExt on PostGridTileBlock { /// Converts [PostGridTileBlock] into a [PostLargeBlock] instance. PostLargeBlock toPostLargeBlock() => PostLargeBlock( id: id, category: category, author: author, publishedAt: publishedAt, imageUrl: imageUrl!, title: title, isContentOverlaid: true, description: description, action: action, ); /// Converts [PostGridTileBlock] into a [PostMediumBlock] instance. PostMediumBlock toPostMediumBlock() => PostMediumBlock( id: id, category: category, author: author, publishedAt: publishedAt, imageUrl: imageUrl!, title: title, isContentOverlaid: true, description: description, action: action, ); }
news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/post_grid_tile_block.dart/0
{ "file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/post_grid_tile_block.dart", "repo_id": "news_toolkit", "token_count": 801 }
917
import 'package:equatable/equatable.dart'; import 'package:json_annotation/json_annotation.dart'; import 'package:news_blocks/news_blocks.dart'; part 'spacer_block.g.dart'; /// The spacing of [SpacerBlock]. enum Spacing { /// The extra small spacing. extraSmall, /// The small spacing. small, /// The medium spacing. medium, /// The large spacing. large, /// The very large spacing. veryLarge, /// The extra large spacing. extraLarge, } /// {@template spacer_block} /// A block which represents a spacer. /// https://www.figma.com/file/RajSN6YbRqTuqvdKYtij3b/Google-News-Template-App-v3?node-id=358%3A18765 /// {@endtemplate} @JsonSerializable() class SpacerBlock with EquatableMixin implements NewsBlock { /// {@macro spacer_block} const SpacerBlock({ required this.spacing, this.type = SpacerBlock.identifier, }); /// Converts a `Map<String, dynamic>` into a [SpacerBlock] instance. factory SpacerBlock.fromJson(Map<String, dynamic> json) => _$SpacerBlockFromJson(json); /// The spacer block type identifier. static const identifier = '__spacer__'; /// The spacing of this spacer. final Spacing spacing; @override final String type; @override Map<String, dynamic> toJson() => _$SpacerBlockToJson(this); @override List<Object?> get props => [spacing, type]; }
news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/spacer_block.dart/0
{ "file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/spacer_block.dart", "repo_id": "news_toolkit", "token_count": 461 }
918
import 'package:equatable/equatable.dart'; import 'package:json_annotation/json_annotation.dart'; import 'package:news_blocks/news_blocks.dart'; part 'video_introduction_block.g.dart'; /// {@template video_introduction_block} /// A block which represents a video introduction. /// https://www.figma.com/file/RajSN6YbRqTuqvdKYtij3b/Google-News-Template-App-v3?node-id=391%3A18167 /// {@endtemplate} @JsonSerializable() class VideoIntroductionBlock with EquatableMixin implements NewsBlock { /// {@macro video_introduction_block} const VideoIntroductionBlock({ required this.category, required this.title, required this.videoUrl, this.type = VideoIntroductionBlock.identifier, }); /// Converts a `Map<String, dynamic>` /// into a [VideoIntroductionBlock] instance. factory VideoIntroductionBlock.fromJson(Map<String, dynamic> json) => _$VideoIntroductionBlockFromJson(json); /// The video introduction block type identifier. static const identifier = '__video_introduction__'; /// The category of the associated article. final PostCategory category; /// The title of the associated article. final String title; /// The video url of the associated article. final String videoUrl; @override final String type; @override Map<String, dynamic> toJson() => _$VideoIntroductionBlockToJson(this); @override List<Object> get props => [category, title, videoUrl, type]; }
news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/video_introduction_block.dart/0
{ "file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/video_introduction_block.dart", "repo_id": "news_toolkit", "token_count": 437 }
919