text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:meta/meta.dart';
import 'package:process/process.dart';
import 'package:unified_analytics/unified_analytics.dart';
i... | flutter/packages/flutter_tools/lib/src/macos/xcdevice.dart/0 | {
"file_path": "flutter/packages/flutter_tools/lib/src/macos/xcdevice.dart",
"repo_id": "flutter",
"token_count": 11753
} | 754 |
// 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:meta/meta.dart';
import 'package:process/process.dart';
import 'application_package.dart';
import 'artifacts.dart';
... | flutter/packages/flutter_tools/lib/src/preview_device.dart/0 | {
"file_path": "flutter/packages/flutter_tools/lib/src/preview_device.dart",
"repo_id": "flutter",
"token_count": 2545
} | 755 |
// 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.
library reporting;
import 'dart:async';
import 'package:file/file.dart';
import 'package:meta/meta.dart';
import 'package:package_config/package_config.d... | flutter/packages/flutter_tools/lib/src/reporting/reporting.dart/0 | {
"file_path": "flutter/packages/flutter_tools/lib/src/reporting/reporting.dart",
"repo_id": "flutter",
"token_count": 270
} | 756 |
// 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; // flutter_ignore: dart_io_import;
import 'package:dds/dds.dart';
import 'package:meta/meta.dart';
import 'pa... | flutter/packages/flutter_tools/lib/src/test/flutter_tester_device.dart/0 | {
"file_path": "flutter/packages/flutter_tools/lib/src/test/flutter_tester_device.dart",
"repo_id": "flutter",
"token_count": 5433
} | 757 |
// 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:meta/meta.dart';
import 'base/common.dart';
import 'base/file_system.dart';
import 'base/io.dart';
import 'base/logger.dart';
import 'base... | flutter/packages/flutter_tools/lib/src/version.dart/0 | {
"file_path": "flutter/packages/flutter_tools/lib/src/version.dart",
"repo_id": "flutter",
"token_count": 14005
} | 758 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import '../base/platform.dart';
import '../doctor_validator.dart';
import 'chrome.dart';
/// A validator for Chromium-based browsers.
abstract class Chrom... | flutter/packages/flutter_tools/lib/src/web/web_validator.dart/0 | {
"file_path": "flutter/packages/flutter_tools/lib/src/web/web_validator.dart",
"repo_id": "flutter",
"token_count": 846
} | 759 |
package {{androidIdentifier}};
import io.flutter.embedding.android.FlutterActivity;
public class MainActivity extends FlutterActivity {
}
| flutter/packages/flutter_tools/templates/app_shared/android-java.tmpl/app/src/main/java/androidIdentifier/MainActivity.java.tmpl/0 | {
"file_path": "flutter/packages/flutter_tools/templates/app_shared/android-java.tmpl/app/src/main/java/androidIdentifier/MainActivity.java.tmpl",
"repo_id": "flutter",
"token_count": 38
} | 760 |
#import "GeneratedPluginRegistrant.h"
| flutter/packages/flutter_tools/templates/app_shared/ios-swift.tmpl/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "flutter/packages/flutter_tools/templates/app_shared/ios-swift.tmpl/Runner/Runner-Bridging-Header.h",
"repo_id": "flutter",
"token_count": 13
} | 761 |
# Templates for Flutter Module
## common
Written to root of Flutter application.
Adds Dart project files including `pubspec.yaml`.
## android
#### library
Written to the `.android/` hidden folder.
Contents wraps Flutter/Dart code as a Gradle project that defines an
Android library.
Executing `./gradlew flutter:... | flutter/packages/flutter_tools/templates/module/README.md/0 | {
"file_path": "flutter/packages/flutter_tools/templates/module/README.md",
"repo_id": "flutter",
"token_count": 646
} | 762 |
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id=":flutter" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/../../.." external.system.id="GRADLE" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android-gradle" name="Android... | flutter/packages/flutter_tools/templates/module/android/library_new_embedding/Flutter.tmpl/flutter.iml.copy.tmpl/0 | {
"file_path": "flutter/packages/flutter_tools/templates/module/android/library_new_embedding/Flutter.tmpl/flutter.iml.copy.tmpl",
"repo_id": "flutter",
"token_count": 523
} | 763 |
#include "Flutter.xcconfig"
| flutter/packages/flutter_tools/templates/module/ios/host_app_ephemeral/Config.tmpl/Debug.xcconfig/0 | {
"file_path": "flutter/packages/flutter_tools/templates/module/ios/host_app_ephemeral/Config.tmpl/Debug.xcconfig",
"repo_id": "flutter",
"token_count": 12
} | 764 |
import 'package:native_toolchain_c/native_toolchain_c.dart';
import 'package:logging/logging.dart';
import 'package:native_assets_cli/native_assets_cli.dart';
const packageName = '{{projectName}}';
void main(List<String> args) async {
final buildConfig = await BuildConfig.fromArgs(args);
final buildOutput = Build... | flutter/packages/flutter_tools/templates/package_ffi/build.dart.tmpl/0 | {
"file_path": "flutter/packages/flutter_tools/templates/package_ffi/build.dart.tmpl",
"repo_id": "flutter",
"token_count": 269
} | 765 |
package {{androidIdentifier}}
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
import kotlin.test.Test
import org.mockito.Mockito
/*
* This demonstrates a simple unit test of the Kotlin portion of this plugin's implementation.
*
* Once you have built the plugin's example app... | flutter/packages/flutter_tools/templates/plugin/android-kotlin.tmpl/src/test/kotlin/androidIdentifier/pluginClassTest.kt.tmpl/0 | {
"file_path": "flutter/packages/flutter_tools/templates/plugin/android-kotlin.tmpl/src/test/kotlin/androidIdentifier/pluginClassTest.kt.tmpl",
"repo_id": "flutter",
"token_count": 283
} | 766 |
#ifndef FLUTTER_PLUGIN_{{pluginClassCapitalSnakeCase}}_H_
#define FLUTTER_PLUGIN_{{pluginClassCapitalSnakeCase}}_H_
#include <flutter_linux/flutter_linux.h>
G_BEGIN_DECLS
#ifdef FLUTTER_PLUGIN_IMPL
#define FLUTTER_PLUGIN_EXPORT __attribute__((visibility("default")))
#else
#define FLUTTER_PLUGIN_EXPORT
#endif
typede... | flutter/packages/flutter_tools/templates/plugin/linux.tmpl/include/projectName.tmpl/pluginClassSnakeCase.h.tmpl/0 | {
"file_path": "flutter/packages/flutter_tools/templates/plugin/linux.tmpl/include/projectName.tmpl/pluginClassSnakeCase.h.tmpl",
"repo_id": "flutter",
"token_count": 264
} | 767 |
# Run with `dart run ffigen --config ffigen.yaml`.
name: {{pluginDartClass}}Bindings
description: |
Bindings for `src/{{projectName}}.h`.
Regenerate bindings with `dart run ffigen --config ffigen.yaml`.
output: 'lib/{{projectName}}_bindings_generated.dart'
headers:
entry-points:
- 'src/{{projectName}}.h'
i... | flutter/packages/flutter_tools/templates/plugin_ffi/ffigen.yaml.tmpl/0 | {
"file_path": "flutter/packages/flutter_tools/templates/plugin_ffi/ffigen.yaml.tmpl",
"repo_id": "flutter",
"token_count": 203
} | 768 |
import 'package:flutter/material.dart';
/// Displays detailed information about a SampleItem.
class SampleItemDetailsView extends StatelessWidget {
const SampleItemDetailsView({super.key});
static const routeName = '/sample_item';
@override
Widget build(BuildContext context) {
return Scaffold(
appB... | flutter/packages/flutter_tools/templates/skeleton/lib/src/sample_feature/sample_item_details_view.dart.tmpl/0 | {
"file_path": "flutter/packages/flutter_tools/templates/skeleton/lib/src/sample_feature/sample_item_details_view.dart.tmpl",
"repo_id": "flutter",
"token_count": 164
} | 769 |
// 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:typed_data';
import 'package:args/command_runner.dart';
import 'package:file/memory.dart';
import 'package:flutter_tools/src/artifacts.dart';... | flutter/packages/flutter_tools/test/commands.shard/hermetic/build_ipa_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/commands.shard/hermetic/build_ipa_test.dart",
"repo_id": "flutter",
"token_count": 27482
} | 770 |
// 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 'pac... | flutter/packages/flutter_tools/test/commands.shard/hermetic/generate_localizations_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/commands.shard/hermetic/generate_localizations_test.dart",
"repo_id": "flutter",
"token_count": 7268
} | 771 |
// 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:args/command_runner.dart';
import 'package:file/file.dart';
import 'package:file/memory.dart';
import 'package:flutte... | flutter/packages/flutter_tools/test/commands.shard/hermetic/upgrade_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/commands.shard/hermetic/upgrade_test.dart",
"repo_id": "flutter",
"token_count": 4061
} | 772 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:flutter_tools/src/android/android_device.dart';
import 'package:test/fake.dart';
import '../../src/common.dart';
imp... | flutter/packages/flutter_tools/test/general.shard/android/adb_log_reader_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/android/adb_log_reader_test.dart",
"repo_id": "flutter",
"token_count": 3112
} | 773 |
// 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/android/gradle_errors.dart';
import '... | flutter/packages/flutter_tools/test/general.shard/android/gradle_errors_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/android/gradle_errors_test.dart",
"repo_id": "flutter",
"token_count": 23432
} | 774 |
// 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/asset.dart';
import 'package:flutter_tools/src/base/file_system.dart';
import 'package... | flutter/packages/flutter_tools/test/general.shard/asset_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/asset_test.dart",
"repo_id": "flutter",
"token_count": 3617
} | 775 |
// 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:archive/archive.dart';
import 'package:file/file.dart';
import 'package:file/memory.dart';
import 'package:file_testing/file_testing.dart';... | flutter/packages/flutter_tools/test/general.shard/base/os_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/base/os_test.dart",
"repo_id": "flutter",
"token_count": 10332
} | 776 |
// 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/artifacts.dart';
import 'package:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/src/base/platfor... | flutter/packages/flutter_tools/test/general.shard/build_system/source_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/build_system/source_test.dart",
"repo_id": "flutter",
"token_count": 2916
} | 777 |
// 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:flut... | flutter/packages/flutter_tools/test/general.shard/build_system/targets/windows_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/build_system/targets/windows_test.dart",
"repo_id": "flutter",
"token_count": 3519
} | 778 |
// 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/common.dart';
import 'package:flutter_tools/src/convert.dart';
import '../src/common.dart';
void main() {
late S... | flutter/packages/flutter_tools/test/general.shard/convert_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/convert_test.dart",
"repo_id": "flutter",
"token_count": 364
} | 779 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:convert';
import 'dart:io' as io show Process, ProcessSignal;
import 'dart:typed_data';
import 'package:args/args.dart';... | flutter/packages/flutter_tools/test/general.shard/devfs_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/devfs_test.dart",
"repo_id": "flutter",
"token_count": 14559
} | 780 |
// 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:file/memory.dart';
import 'package:flutter_tools/src/artifacts.dart';
import 'package:flutter_... | flutter/packages/flutter_tools/test/general.shard/fuchsia/fuchsia_device_start_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/fuchsia/fuchsia_device_start_test.dart",
"repo_id": "flutter",
"token_count": 10355
} | 781 |
// 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:file/memory.dart';
import 'package:file_testing/file_testing.dart';
import 'package:flutter_to... | flutter/packages/flutter_tools/test/general.shard/ios/ios_deploy_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/ios/ios_deploy_test.dart",
"repo_id": "flutter",
"token_count": 12002
} | 782 |
// 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:flut... | flutter/packages/flutter_tools/test/general.shard/isolated/build_system/targets/native_assets_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/isolated/build_system/targets/native_assets_test.dart",
"repo_id": "flutter",
"token_count": 3179
} | 783 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:file/memory.dart';
import 'package:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/src/base/l... | flutter/packages/flutter_tools/test/general.shard/macos/macos_device_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/macos/macos_device_test.dart",
"repo_id": "flutter",
"token_count": 3219
} | 784 |
// 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:fake_async/fake_async.dart';
import 'package:flutter_tools/src/base/logger.dart';
import 'package:flutter_tools/src/device_port_forwarder.d... | flutter/packages/flutter_tools/test/general.shard/protocol_discovery_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/protocol_discovery_test.dart",
"repo_id": "flutter",
"token_count": 7306
} | 785 |
// 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/runner.dart' as runner;
import 'package:flutter_tools/src/artifacts.... | flutter/packages/flutter_tools/test/general.shard/runner/runner_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/runner/runner_test.dart",
"repo_id": "flutter",
"token_count": 7999
} | 786 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert';
import 'package:file/file.dart';
import 'package:file/memory.dart';
import 'package:flutter_tools/src/base/logger.dart';
import 'pa... | flutter/packages/flutter_tools/test/general.shard/version_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/version_test.dart",
"repo_id": "flutter",
"token_count": 15828
} | 787 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_tools/src/base/platform.dart';
import 'package:flutter_tools/src/web/workflow.dart';
import '../../src/common.dart';
import '../..... | flutter/packages/flutter_tools/test/general.shard/web/workflow_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/web/workflow_test.dart",
"repo_id": "flutter",
"token_count": 753
} | 788 |
# Integration tests
These tests are not hermetic, and use the actual Flutter SDK. While
they don't require actual devices, they run `flutter_tester` to test
Dart VM and Flutter integration.
Use this command to run (from the `flutter_tools` directory):
```shell
../../bin/cache/dart-sdk/bin/dart run test test/integrat... | flutter/packages/flutter_tools/test/integration.shard/README.md/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/README.md",
"repo_id": "flutter",
"token_count": 252
} | 789 |
// 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 'package:flutter_tools/src/base/io.dart';... | flutter/packages/flutter_tools/test/integration.shard/android_plugin_skip_unsupported_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/android_plugin_skip_unsupported_test.dart",
"repo_id": "flutter",
"token_count": 2475
} | 790 |
// 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:dds/dap.dart';
import 'package:file/file.dart';
import 'package:flutter_tools/src/cache.dart';
impo... | flutter/packages/flutter_tools/test/integration.shard/debug_adapter/test_support.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/debug_adapter/test_support.dart",
"repo_id": "flutter",
"token_count": 1989
} | 791 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file/file.dart';
import 'package:flutter_tools/src/base/io.dart';
import 'package:process/process.dart';
import '../src/common.dart';
impo... | flutter/packages/flutter_tools/test/integration.shard/flutter_run_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/flutter_run_test.dart",
"repo_id": "flutter",
"token_count": 951
} | 792 |
// 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';
/// Spawns a background isolate that prints a debug message.
class BackgroundProject extends Project {... | flutter/packages/flutter_tools/test/integration.shard/test_data/background_project.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/test_data/background_project.dart",
"repo_id": "flutter",
"token_count": 849
} | 793 |
// 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 'project.dart';
class ProjectWithEarlyError extends Project {
@override
final String pubspec = '''
name: test
environment:
sdk: '>=3.2... | flutter/packages/flutter_tools/test/integration.shard/test_data/project_with_early_error.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/test_data/project_with_early_error.dart",
"repo_id": "flutter",
"token_count": 286
} | 794 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:io' as io;
import 'package:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/src/base/io.dart';
import 'package:flutter... | flutter/packages/flutter_tools/test/integration.shard/xcode_backend_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/xcode_backend_test.dart",
"repo_id": "flutter",
"token_count": 2939
} | 795 |
// 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/memory.dart';
import 'package:flutter_tools/src/base/context.dart';
import 'package:flutter_to... | flutter/packages/flutter_tools/test/src/testbed.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/src/testbed.dart",
"repo_id": "flutter",
"token_count": 2179
} | 796 |
// 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.
/// The platform channels and plugin registry implementations for
/// the web implementations of Flutter plugins.
///
/// This library provides the [Regist... | flutter/packages/flutter_web_plugins/lib/flutter_web_plugins.dart/0 | {
"file_path": "flutter/packages/flutter_web_plugins/lib/flutter_web_plugins.dart",
"repo_id": "flutter",
"token_count": 260
} | 797 |
// 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.
/// Library for logging the remote debug protocol internals.
///
/// Useful for determining connection issues and the like. This is included as a
/// separ... | flutter/packages/fuchsia_remote_debug_protocol/lib/logging.dart/0 | {
"file_path": "flutter/packages/fuchsia_remote_debug_protocol/lib/logging.dart",
"repo_id": "flutter",
"token_count": 121
} | 798 |
org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError
| flutter/packages/integration_test/android/gradle.properties/0 | {
"file_path": "flutter/packages/integration_test/android/gradle.properties",
"repo_id": "flutter",
"token_count": 38
} | 799 |
<!-- 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. -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.integration_test_example">
<!-- ${applicationName} is us... | flutter/packages/integration_test/example/android/app/src/main/AndroidManifest.xml/0 | {
"file_path": "flutter/packages/integration_test/example/android/app/src/main/AndroidManifest.xml",
"repo_id": "flutter",
"token_count": 578
} | 800 |
// 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' show Platform;
import 'dart:ui';
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import '../com... | flutter/packages/integration_test/lib/src/_callback_io.dart/0 | {
"file_path": "flutter/packages/integration_test/lib/src/_callback_io.dart",
"repo_id": "flutter",
"token_count": 1321
} | 801 |
// 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_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
class SocketExceptionHttpClie... | flutter/packages/integration_test/test/socket_fail_test.dart/0 | {
"file_path": "flutter/packages/integration_test/test/socket_fail_test.dart",
"repo_id": "flutter",
"token_count": 333
} | 802 |
// 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 'dart:math' as math;
import 'package:flutter/material.dart';
import 'hand.dart';
/// A clock hand that is drawn with [CustomPainter]
///
/// The... | flutter_clock/analog_clock/lib/drawn_hand.dart/0 | {
"file_path": "flutter_clock/analog_clock/lib/drawn_hand.dart",
"repo_id": "flutter_clock",
"token_count": 1011
} | 803 |
package io.flutter.demo.gallery
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| gallery/android/app/src/main/kotlin/io/flutter/demo/gallery/MainActivity.kt/0 | {
"file_path": "gallery/android/app/src/main/kotlin/io/flutter/demo/gallery/MainActivity.kt",
"repo_id": "gallery",
"token_count": 40
} | 804 |
package_name("io.flutter.demo.gallery")
| gallery/android/fastlane/Appfile/0 | {
"file_path": "gallery/android/fastlane/Appfile",
"repo_id": "gallery",
"token_count": 15
} | 805 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:collection';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/gallery_local... | gallery/lib/data/demos.dart/0 | {
"file_path": "gallery/lib/data/demos.dart",
"repo_id": "gallery",
"token_count": 26252
} | 806 |
// 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_gen/gen_l10n/gallery_localizations.dart';
// BEGIN cupertinoNavigationDemo
class _TabInfo ... | gallery/lib/demos/cupertino/cupertino_tab_bar_demo.dart/0 | {
"file_path": "gallery/lib/demos/cupertino/cupertino_tab_bar_demo.dart",
"repo_id": "gallery",
"token_count": 1020
} | 807 |
enum BottomNavigationDemoType {
withLabels,
withoutLabels,
}
enum BottomSheetDemoType {
persistent,
modal,
}
enum ButtonDemoType {
text,
elevated,
outlined,
toggle,
floating,
}
enum ChipDemoType {
action,
choice,
filter,
input,
}
enum DialogDemoType {
alert,
alertTitle,
simple,
ful... | gallery/lib/demos/material/material_demo_types.dart/0 | {
"file_path": "gallery/lib/demos/material/material_demo_types.dart",
"repo_id": "gallery",
"token_count": 342
} | 808 |
// Copyright 2019 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:animations/animations.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/gallery_localizations.dart';
// ... | gallery/lib/demos/reference/motion_demo_fade_through_transition.dart/0 | {
"file_path": "gallery/lib/demos/reference/motion_demo_fade_through_transition.dart",
"repo_id": "gallery",
"token_count": 2780
} | 809 |
{
"loading": "جارٍ التحميل",
"deselect": "إلغاء الاختيار",
"select": "اختيار",
"selectable": "قابل للاختيار (بالضغط مع الاستمرار)",
"selected": "محدَّد",
"demo": "إصدار تجريبي",
"bottomAppBar": "شريط التطبيق السفلي",
"notSelected": "غير محدَّد",
"demoCupertinoSearchTextFieldTitle": "الحقل النصي للبحث"... | gallery/lib/l10n/intl_ar.arb/0 | {
"file_path": "gallery/lib/l10n/intl_ar.arb",
"repo_id": "gallery",
"token_count": 33197
} | 810 |
{
"loading": "Betöltés…",
"deselect": "Kiválasztás megszüntetése",
"select": "Kiválasztás",
"selectable": "Kiválasztható (hosszú megnyomással)",
"selected": "Kiválasztva",
"demo": "Demó",
"bottomAppBar": "Alsó alkalmazássáv",
"notSelected": "Nincs kiválasztva",
"demoCupertinoSearchTextFieldTitle": "Ke... | gallery/lib/l10n/intl_hu.arb/0 | {
"file_path": "gallery/lib/l10n/intl_hu.arb",
"repo_id": "gallery",
"token_count": 24316
} | 811 |
{
"notSelected": "തിരഞ്ഞെടുത്തില്ല",
"deselect": "തിരഞ്ഞെടുത്തത് മാറ്റുക",
"select": "തിരഞ്ഞെടുക്കുക",
"selectable": "തിരഞ്ഞെടുക്കാവുന്നത് (ദീർഘനേരം അമർത്തുക)",
"selected": "തിരഞ്ഞെടുത്തു",
"demo": "ഡെമോ",
"bottomAppBar": "ചുവടെയുള്ള ആപ്പ് ബാർ",
"loading": "ലോഡ് ചെയ്യുന്നു",
"demoCupertinoScrollbarDes... | gallery/lib/l10n/intl_ml.arb/0 | {
"file_path": "gallery/lib/l10n/intl_ml.arb",
"repo_id": "gallery",
"token_count": 83135
} | 812 |
{
"loading": "පූරණය වේ",
"deselect": "නොතෝරන්න",
"select": "තෝරන්න",
"selectable": "තේරිය හැකි (දිගු එබීම)",
"selected": "තෝරන ලදි",
"demo": "ආදර්ශනය",
"bottomAppBar": "පහළ යෙදුම් තීරුව",
"notSelected": "තෝරා නැත",
"demoCupertinoSearchTextFieldTitle": "පෙළ ක්ෂේත්රය සොයන්න",
"demoCupertinoPicker": "... | gallery/lib/l10n/intl_si.arb/0 | {
"file_path": "gallery/lib/l10n/intl_si.arb",
"repo_id": "gallery",
"token_count": 64900
} | 813 |
{
"loading": "Đang tải",
"deselect": "Bỏ chọn",
"select": "Chọn",
"selectable": "Chọn được (nhấn và giữ)",
"selected": "Đã chọn",
"demo": "Bản minh hoạ",
"bottomAppBar": "Thanh ứng dụng ở dưới cùng",
"notSelected": "Chưa chọn",
"demoCupertinoSearchTextFieldTitle": "Trường văn bản tìm kiếm",
"demoCup... | gallery/lib/l10n/intl_vi.arb/0 | {
"file_path": "gallery/lib/l10n/intl_vi.arb",
"repo_id": "gallery",
"token_count": 31910
} | 814 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:math' as math;
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter_gen... | gallery/lib/pages/home.dart/0 | {
"file_path": "gallery/lib/pages/home.dart",
"repo_id": "gallery",
"token_count": 17833
} | 815 |
// 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';
class Category {
const Category({
required t... | gallery/lib/studies/shrine/model/product.dart/0 | {
"file_path": "gallery/lib/studies/shrine/model/product.dart",
"repo_id": "gallery",
"token_count": 494
} | 816 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/gallery_localizations.dart';
import 'package:gallery/layout/adaptive.dart';
con... | gallery/lib/studies/starter/home.dart/0 | {
"file_path": "gallery/lib/studies/starter/home.dart",
"repo_id": "gallery",
"token_count": 2921
} | 817 |
// 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:collection/collection.dart';
import 'package:flutter_gen/gen_l10n/gallery_localizations_en.dart';
import 'package:flutter_test/flutter_test.da... | gallery/test/demo_descriptions_test.dart/0 | {
"file_path": "gallery/test/demo_descriptions_test.dart",
"repo_id": "gallery",
"token_count": 758
} | 818 |
// 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 'dart:io';
import 'package:path/path.dart' as path;
import 'package:test/test.dart';
// Benchmark size in kB.
const int bundleSizeBenchmark = 5000;
c... | gallery/test_benchmarks/web_bundle_size_test.dart/0 | {
"file_path": "gallery/test_benchmarks/web_bundle_size_test.dart",
"repo_id": "gallery",
"token_count": 888
} | 819 |
// 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_test/flutter_test.dart';
import 'package:gallery/main.dart';
import 'testing/precache_image... | gallery/test_goldens/home_test.dart/0 | {
"file_path": "gallery/test_goldens/home_test.dart",
"repo_id": "gallery",
"token_count": 875
} | 820 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
const mobileSize = Size(540, 960);
const desktopSize = Size(1280, 85... | gallery/test_goldens/testing/util.dart/0 | {
"file_path": "gallery/test_goldens/testing/util.dart",
"repo_id": "gallery",
"token_count": 1577
} | 821 |
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch development",
"request": "launch",
"typ... | io_flip/.vscode/launch.json/0 | {
"file_path": "io_flip/.vscode/launch.json",
"repo_id": "io_flip",
"token_count": 1115
} | 822 |
import 'package:mustache_template/mustache_template.dart';
const _template = '''
<img
src="{{{handImage}}}"
/>
<div class="hand-section">
{{#initials}}
<h3 class="initials">{{initials}}</h3>
{{/initials}}
{{#streak}}
<h4 class="streak">{{streak}} win st... | io_flip/api/lib/templates/share_deck_template.dart/0 | {
"file_path": "io_flip/api/lib/templates/share_deck_template.dart",
"repo_id": "io_flip",
"token_count": 276
} | 823 |
# Encryption Middleware
[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]
[](https://github.com/felangel/mason)
[![License: MIT][license_badge]][license_link]
A dart_frog middleware for encr... | io_flip/api/packages/encryption_middleware/README.md/0 | {
"file_path": "io_flip/api/packages/encryption_middleware/README.md",
"repo_id": "io_flip",
"token_count": 934
} | 824 |
include: package:very_good_analysis/analysis_options.4.0.0.yaml
analyzer:
exclude:
- "**/*.g.dart" | io_flip/api/packages/game_domain/analysis_options.yaml/0 | {
"file_path": "io_flip/api/packages/game_domain/analysis_options.yaml",
"repo_id": "io_flip",
"token_count": 44
} | 825 |
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
part 'prompt.g.dart';
/// {@template prompt}
/// A model that contains the 3 prompt attributes required to generate a deck.
/// {@endtemplate}
@JsonSerializable(ignoreUnannotated: true, explicitToJson: true)
class Prompt... | io_flip/api/packages/game_domain/lib/src/models/prompt.dart/0 | {
"file_path": "io_flip/api/packages/game_domain/lib/src/models/prompt.dart",
"repo_id": "io_flip",
"token_count": 541
} | 826 |
// ignore_for_file: prefer_const_constructors
import 'package:game_domain/game_domain.dart';
import 'package:test/test.dart';
void main() {
group('Match', () {
const card1 = Card(
id: 'card1',
name: '',
description: '',
image: '',
rarity: false,
power: 1,
suit: Suit.air... | io_flip/api/packages/game_domain/test/src/models/match_test.dart/0 | {
"file_path": "io_flip/api/packages/game_domain/test/src/models/match_test.dart",
"repo_id": "io_flip",
"token_count": 2672
} | 827 |
// ignore_for_file: prefer_const_constructors
import 'package:jwt_middleware/src/authenticated_user.dart';
import 'package:test/test.dart';
void main() {
group('AuthenticatedUser', () {
test('uses value equality', () {
final a = AuthenticatedUser('id');
final b = AuthenticatedUser('id');
final... | io_flip/api/packages/jwt_middleware/test/src/authenticated_user_test.dart/0 | {
"file_path": "io_flip/api/packages/jwt_middleware/test/src/authenticated_user_test.dart",
"repo_id": "io_flip",
"token_count": 158
} | 828 |
name: leaderboard_repository
description: Access to Leaderboard datasource.
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
dev_dependencies:
mocktail: ^0.3.0
test: ^1.19.2
very_good_analysis: ^3.1.... | io_flip/api/packages/leaderboard_repository/pubspec.yaml/0 | {
"file_path": "io_flip/api/packages/leaderboard_repository/pubspec.yaml",
"repo_id": "io_flip",
"token_count": 141
} | 829 |
// ignore_for_file: prefer_const_constructors
import 'package:db_client/db_client.dart';
import 'package:game_domain/game_domain.dart';
import 'package:mocktail/mocktail.dart';
import 'package:prompt_repository/prompt_repository.dart';
import 'package:test/test.dart';
class _MockDbClient extends Mock implements DbClie... | io_flip/api/packages/prompt_repository/test/src/prompt_repository_test.dart/0 | {
"file_path": "io_flip/api/packages/prompt_repository/test/src/prompt_repository_test.dart",
"repo_id": "io_flip",
"token_count": 6153
} | 830 |
import 'dart:async';
import 'dart:io';
import 'package:config_repository/config_repository.dart';
import 'package:dart_frog/dart_frog.dart';
FutureOr<Response> onRequest(RequestContext context) {
if (context.request.method == HttpMethod.get) {
return _getConfigs(context);
}
return Response(statusCode: HttpS... | io_flip/api/routes/game/configs/index.dart/0 | {
"file_path": "io_flip/api/routes/game/configs/index.dart",
"repo_id": "io_flip",
"token_count": 222
} | 831 |
import 'dart:async';
import 'dart:io';
import 'package:card_renderer/card_renderer.dart';
import 'package:cards_repository/cards_repository.dart';
import 'package:dart_frog/dart_frog.dart';
import 'package:firebase_cloud_storage/firebase_cloud_storage.dart';
FutureOr<Response> onRequest(RequestContext context, String... | io_flip/api/routes/public/decks/[deckId].dart/0 | {
"file_path": "io_flip/api/routes/public/decks/[deckId].dart",
"repo_id": "io_flip",
"token_count": 525
} | 832 |
import 'dart:io';
import 'dart:typed_data';
import 'package:api/game_url.dart';
import 'package:card_renderer/card_renderer.dart';
import 'package:cards_repository/cards_repository.dart';
import 'package:dart_frog/dart_frog.dart';
import 'package:firebase_cloud_storage/firebase_cloud_storage.dart';
import 'package:gam... | io_flip/api/test/routes/public/cards/[cardId]_test.dart/0 | {
"file_path": "io_flip/api/test/routes/public/cards/[cardId]_test.dart",
"repo_id": "io_flip",
"token_count": 1647
} | 833 |
import 'dart:io';
import 'package:data_loader/src/prompt_mapper.dart';
import 'package:game_domain/game_domain.dart';
import 'package:path/path.dart' as path;
/// {@template data_loader}
/// Dart tool that feed data into the Database
/// {@endtemplate}
class ImageLoader {
/// {@macro data_loader}
const ImageLoade... | io_flip/api/tools/data_loader/lib/src/image_loader.dart/0 | {
"file_path": "io_flip/api/tools/data_loader/lib/src/image_loader.dart",
"repo_id": "io_flip",
"token_count": 1035
} | 834 |
# Flop
![coverage][coverage_badge]
[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]
[![License: MIT][license_badge]][license_link]
Generated by the [Very Good CLI][very_good_cli_link] 🤖
Flop is a bot made to automatic play test the I/O Flip game. Which will be
used to do scaling tes... | io_flip/flop/README.md/0 | {
"file_path": "io_flip/flop/README.md",
"repo_id": "io_flip",
"token_count": 343
} | 835 |
import 'package:flop/flop/bloc/flop_bloc.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
class FlopView extends StatelessWidget {
const FlopView({super.key});
String _stepText(FlopStep step) {
switch (step) {
case FlopStep.initial:
return 'Initiali... | io_flip/flop/lib/flop/view/flop_view.dart/0 | {
"file_path": "io_flip/flop/lib/flop/view/flop_view.dart",
"repo_id": "io_flip",
"token_count": 1951
} | 836 |
import * as admin from 'firebase-admin';
import * as functions from 'firebase-functions';
const firestore = admin.firestore();
const storage = admin.storage();
function chunk<T>(arr: T[], size: number): T[][] {
const acc = <T[][]>[];
for (let i = 0; i < arr.length; i += size) {
acc.push(arr.slice(i, i + size... | io_flip/functions/src/deleteUserData.ts/0 | {
"file_path": "io_flip/functions/src/deleteUserData.ts",
"repo_id": "io_flip",
"token_count": 948
} | 837 |
import 'dart:async';
import 'dart:developer';
import 'package:bloc/bloc.dart';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:firebase_app_check/firebase_app_check.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets... | io_flip/lib/bootstrap.dart/0 | {
"file_path": "io_flip/lib/bootstrap.dart",
"repo_id": "io_flip",
"token_count": 712
} | 838 |
export 'deck_pack.dart';
| io_flip/lib/draft/widgets/widgets.dart/0 | {
"file_path": "io_flip/lib/draft/widgets/widgets.dart",
"repo_id": "io_flip",
"token_count": 10
} | 839 |
import 'package:bloc/bloc.dart';
import 'package:equatable/equatable.dart';
import 'package:flutter/widgets.dart';
import 'package:game_domain/game_domain.dart';
import 'package:io_flip/how_to_play/how_to_play.dart';
part 'how_to_play_event.dart';
part 'how_to_play_state.dart';
class HowToPlayBloc extends Bloc<HowToP... | io_flip/lib/how_to_play/bloc/how_to_play_bloc.dart/0 | {
"file_path": "io_flip/lib/how_to_play/bloc/how_to_play_bloc.dart",
"repo_id": "io_flip",
"token_count": 735
} | 840 |
{
"@@locale": "en",
"play": "PLAY NOW",
"@play": {
"description": "Label play"
},
"playAgain": "PLAY AGAIN",
"@playAgain": {
"description": "Label play again"
},
"ioFlip": "I/O FLIP",
"@ioFlip": {
"description": "I/O FLIP - Name of the game"
},
"generatingCards": "Generating {count} of... | io_flip/lib/l10n/arb/app_en.arb/0 | {
"file_path": "io_flip/lib/l10n/arb/app_en.arb",
"repo_id": "io_flip",
"token_count": 5021
} | 841 |
export 'leaderboard_players.dart';
| io_flip/lib/leaderboard/widgets/widgets.dart/0 | {
"file_path": "io_flip/lib/leaderboard/widgets/widgets.dart",
"repo_id": "io_flip",
"token_count": 11
} | 842 |
export 'bloc/prompt_form_bloc.dart';
export 'view/view.dart';
export 'widgets/widgets.dart';
| io_flip/lib/prompt/prompt.dart/0 | {
"file_path": "io_flip/lib/prompt/prompt.dart",
"repo_id": "io_flip",
"token_count": 39
} | 843 |
export 'scripts_page.dart';
export 'scripts_view.dart';
| io_flip/lib/scripts/views/views.dart/0 | {
"file_path": "io_flip/lib/scripts/views/views.dart",
"repo_id": "io_flip",
"token_count": 20
} | 844 |
import 'dart:math' as math;
import 'package:flutter/material.dart' hide Card;
import 'package:game_domain/game_domain.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
class CardFan extends StatelessWidget {
const CardFan({
required this.cards,
super.key,
});
final List<Card> cards;
@override
Wi... | io_flip/lib/share/widgets/card_fan.dart/0 | {
"file_path": "io_flip/lib/share/widgets/card_fan.dart",
"repo_id": "io_flip",
"token_count": 807
} | 845 |
include: package:very_good_analysis/analysis_options.4.0.0.yaml
| io_flip/packages/api_client/analysis_options.yaml/0 | {
"file_path": "io_flip/packages/api_client/analysis_options.yaml",
"repo_id": "io_flip",
"token_count": 23
} | 846 |
import 'dart:convert';
import 'dart:io';
import 'package:api_client/api_client.dart';
import 'package:game_domain/game_domain.dart';
import 'package:http/http.dart' as http;
import 'package:mocktail/mocktail.dart';
import 'package:test/test.dart';
class _MockApiClient extends Mock implements ApiClient {}
class _Mock... | io_flip/packages/api_client/test/src/resources/prompt_resource_test.dart/0 | {
"file_path": "io_flip/packages/api_client/test/src/resources/prompt_resource_test.dart",
"repo_id": "io_flip",
"token_count": 1200
} | 847 |
include: package:very_good_analysis/analysis_options.4.0.0.yaml
| io_flip/packages/config_repository/analysis_options.yaml/0 | {
"file_path": "io_flip/packages/config_repository/analysis_options.yaml",
"repo_id": "io_flip",
"token_count": 23
} | 848 |
include: package:very_good_analysis/analysis_options.4.0.0.yaml
| io_flip/packages/io_flip_ui/analysis_options.yaml/0 | {
"file_path": "io_flip/packages/io_flip_ui/analysis_options.yaml",
"repo_id": "io_flip",
"token_count": 23
} | 849 |
<svg width="67" height="67" viewBox="0 0 67 67" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M40.5774 18.1975L60.6711 60.1712H53.6272H11.8153H6.34863L31.7742 6.32056L38.0294 21.7902L40.5774 18.1975Z" fill="#FF5145" stroke="#202124" stroke-width="1.5" stroke-linejoin="round"/>
</svg>
| io_flip/packages/io_flip_ui/assets/images/suits/onboarding/earth.svg/0 | {
"file_path": "io_flip/packages/io_flip_ui/assets/images/suits/onboarding/earth.svg",
"repo_id": "io_flip",
"token_count": 138
} | 850 |
import 'package:flutter/material.dart';
import 'package:gallery/story_scaffold.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
class AnimatedCardStory extends StatelessWidget {
const AnimatedCardStory({super.key, required this.controller});
final AnimatedCardController controller;
@override
Widget build(... | io_flip/packages/io_flip_ui/gallery/lib/widgets/animated_card_story.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/gallery/lib/widgets/animated_card_story.dart",
"repo_id": "io_flip",
"token_count": 442
} | 851 |
import 'package:flame/widgets.dart';
import 'package:flutter/material.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
/// {@template elemental_damage}
/// A widget that renders several [SpriteAnimation]s for the damages
/// of a card on another.
/// {@endtemplate}
abstract class ElementalDamage {
/// {@macro ele... | io_flip/packages/io_flip_ui/lib/src/animations/damages/elemental_damage.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/lib/src/animations/damages/elemental_damage.dart",
"repo_id": "io_flip",
"token_count": 1288
} | 852 |
export 'io_flip_card_sizes.dart';
export 'io_flip_colors.dart';
export 'io_flip_spacing.dart';
export 'io_flip_text_styles.dart';
export 'io_flip_theme.dart';
| io_flip/packages/io_flip_ui/lib/src/theme/theme.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/lib/src/theme/theme.dart",
"repo_id": "io_flip",
"token_count": 72
} | 853 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.