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 '../base/context.dart';
import '../base/user_messages.dart';
import '../doctor_validator.dart';
import 'visual_studio.dart';
VisualStudioValidator?... | flutter/packages/flutter_tools/lib/src/windows/visual_studio_validator.dart/0 | {
"file_path": "flutter/packages/flutter_tools/lib/src/windows/visual_studio_validator.dart",
"repo_id": "flutter",
"token_count": 1271
} | 812 |
<component name="libraryTable">
<library name="KotlinJavaRuntime">
<CLASSES>
<root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-stdlib.jar!/" />
<root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-reflect.jar!/" />
<root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-test.jar!/" />
</CLASSES>
<JAVADOC />
... | flutter/packages/flutter_tools/templates/app_shared/.idea/libraries/KotlinJavaRuntime.xml.tmpl/0 | {
"file_path": "flutter/packages/flutter_tools/templates/app_shared/.idea/libraries/KotlinJavaRuntime.xml.tmpl",
"repo_id": "flutter",
"token_count": 296
} | 813 |
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android" name="Android">
<configuration>
<option name="ALLOW_USER_CONFIGURATION" value="false" />
<option name="GEN_FOLDER_RELATIVE_PATH_APT" value="/gen" />
<o... | flutter/packages/flutter_tools/templates/plugin/android-java.tmpl/projectName_android.iml.tmpl/0 | {
"file_path": "flutter/packages/flutter_tools/templates/plugin/android-java.tmpl/projectName_android.iml.tmpl",
"repo_id": "flutter",
"token_count": 562
} | 814 |
#ifndef FLUTTER_PLUGIN_{{pluginClassCapitalSnakeCase}}_H_
#define FLUTTER_PLUGIN_{{pluginClassCapitalSnakeCase}}_H_
#include <flutter/method_channel.h>
#include <flutter/plugin_registrar_windows.h>
#include <memory>
namespace {{projectName}} {
class {{pluginClass}} : public flutter::Plugin {
public:
static void ... | flutter/packages/flutter_tools/templates/plugin/windows.tmpl/pluginClassSnakeCase.h.tmpl/0 | {
"file_path": "flutter/packages/flutter_tools/templates/plugin/windows.tmpl/pluginClassSnakeCase.h.tmpl",
"repo_id": "flutter",
"token_count": 306
} | 815 |
# The Flutter tooling requires that developers have a version of Visual Studio
# installed that includes CMake 3.14 or later. You should not increase this
# version, as doing so will cause the plugin to fail to compile for some
# customers of the plugin.
cmake_minimum_required(VERSION 3.14)
# Project-level configurati... | flutter/packages/flutter_tools/templates/plugin_ffi/windows.tmpl/CMakeLists.txt.tmpl/0 | {
"file_path": "flutter/packages/flutter_tools/templates/plugin_ffi/windows.tmpl/CMakeLists.txt.tmpl",
"repo_id": "flutter",
"token_count": 284
} | 816 |
# Template Xcode project with a custom application bundle
This template is an empty Xcode project with a settable application bundle path
within the `xcscheme`. It is used when debugging a project on a physical iOS 17+
device via Xcode 15+ when `--use-application-binary` is used. | flutter/packages/flutter_tools/templates/xcode/ios/custom_application_bundle/README.md/0 | {
"file_path": "flutter/packages/flutter_tools/templates/xcode/ios/custom_application_bundle/README.md",
"repo_id": "flutter",
"token_count": 67
} | 817 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart: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/android_analyze_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/commands.shard/hermetic/android_analyze_test.dart",
"repo_id": "flutter",
"token_count": 1653
} | 818 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:io' as io;
import 'dart:typed_data';
import 'package:fake_async/fake_async.dart';
import 'package:file/file.dart';
impor... | flutter/packages/flutter_tools/test/commands.shard/hermetic/daemon_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/commands.shard/hermetic/daemon_test.dart",
"repo_id": "flutter",
"token_count": 19772
} | 819 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package: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/run_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/commands.shard/hermetic/run_test.dart",
"repo_id": "flutter",
"token_count": 21540
} | 820 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file/memory.dart';
import 'package:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/src/base/io.dart';
import 'packa... | flutter/packages/flutter_tools/test/commands.shard/permeable/upgrade_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/commands.shard/permeable/upgrade_test.dart",
"repo_id": "flutter",
"token_count": 7165
} | 821 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file/memory.dart';
import 'package:flutter_tools/src/android/android_studio.dart';
import 'package:flutter_tools/src/base/common.dart';
imp... | flutter/packages/flutter_tools/test/general.shard/android/android_studio_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/android/android_studio_test.dart",
"repo_id": "flutter",
"token_count": 19873
} | 822 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file/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/general.shard/artifacts_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/artifacts_test.dart",
"repo_id": "flutter",
"token_count": 12282
} | 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:io' as io;
import 'package:file/memory.dart';
import 'package:file_testing/file_testing.dart';
import 'package:flutter_t... | flutter/packages/flutter_tools/test/general.shard/base/file_system_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/base/file_system_test.dart",
"repo_id": "flutter",
"token_count": 5490
} | 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 'package:file/memory.dart';
import 'package:file_testing/file_testing.dart';
import 'package:flutter_tools/src/artifacts.dart'... | flutter/packages/flutter_tools/test/general.shard/build_system/build_system_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/build_system/build_system_test.dart",
"repo_id": "flutter",
"token_count": 9223
} | 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: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/linux_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/build_system/targets/linux_test.dart",
"repo_id": "flutter",
"token_count": 3887
} | 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 '../src/common.dart';
void main() {
group('containsIgnoreWhitespace Matcher', () {
group('on item to be contained', () {
test('matches ... | flutter/packages/flutter_tools/test/general.shard/common_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/common_test.dart",
"repo_id": "flutter",
"token_count": 786
} | 827 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:collection/collection.dart';
import 'package:dds/dap.dart';
import 'package:flutter_tools/src/base/file_system.dart';... | flutter/packages/flutter_tools/test/general.shard/dap/mocks.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/dap/mocks.dart",
"repo_id": "flutter",
"token_count": 3193
} | 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:flutter_tools/src/base/logger.dart';
import 'package:flutter_tools/src/flutter_manifest.dart';
import '../src/common.dart';
void main() {... | flutter/packages/flutter_tools/test/general.shard/flutter_manifest_assets_transformers_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/flutter_manifest_assets_transformers_test.dart",
"repo_id": "flutter",
"token_count": 1933
} | 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 'package:file/file.dart';
import 'package:flutter_tools/src/application_package.dart';
import 'package:flutter_tools/src/base/io.dart' as io;
import... | flutter/packages/flutter_tools/test/general.shard/integration_test_device_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/integration_test_device_test.dart",
"repo_id": "flutter",
"token_count": 3014
} | 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/base/file_system.dart';
import 'package:flutter_tools/src/base/io.dart';
import 'packa... | flutter/packages/flutter_tools/test/general.shard/ios/simulators_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/ios/simulators_test.dart",
"repo_id": "flutter",
"token_count": 20370
} | 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:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/src/base/logger.dart';
import 'p... | flutter/packages/flutter_tools/test/general.shard/linux/linux_device_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/linux/linux_device_test.dart",
"repo_id": "flutter",
"token_count": 2388
} | 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/platform_plugins.dart';
impo... | flutter/packages/flutter_tools/test/general.shard/plugin_parsing_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/plugin_parsing_test.dart",
"repo_id": "flutter",
"token_count": 5576
} | 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/application_package.dart';
import 'package:flutter_tools/src/bas... | flutter/packages/flutter_tools/test/general.shard/resident_web_runner_cold_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/resident_web_runner_cold_test.dart",
"repo_id": "flutter",
"token_count": 2980
} | 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 'dart:async';
import 'package:file/file.dart';
import 'package:file/memory.dart';
import 'package:flutter_tools/src/application_package.dart';
impo... | flutter/packages/flutter_tools/test/general.shard/tester/flutter_tester_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/tester/flutter_tester_test.dart",
"repo_id": "flutter",
"token_count": 2927
} | 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 'dart:async';
import 'dart:convert';
import 'dart:typed_data';
import 'package:file/memory.dart';
import 'package:flutter_tools/src/base/file_syste... | flutter/packages/flutter_tools/test/general.shard/web/golden_comparator_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/web/golden_comparator_test.dart",
"repo_id": "flutter",
"token_count": 3049
} | 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:flutter_tools/src/base/platform.dart';
import 'package:flutter_tools/src/windows/windows_workflow.dart';
import '../../src/common.dart';
i... | flutter/packages/flutter_tools/test/general.shard/windows/windows_workflow_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/windows/windows_workflow_test.dart",
"repo_id": "flutter",
"token_count": 707
} | 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 'dart:convert';
import 'dart:io' as io;
import 'package:file/file.dart';
import 'package:flutter_tools/src/android/gradle_utils.dart'
show getG... | flutter/packages/flutter_tools/test/integration.shard/android_gradle_outputs_app_link_settings_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/android_gradle_outputs_app_link_settings_test.dart",
"repo_id": "flutter",
"token_count": 4787
} | 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 'package:file/file.dart';
import 'package:file_testing/file_testing.dart';
import '../src/common.dart';
import 'test_data/test_project.dart';
impo... | flutter/packages/flutter_tools/test/integration.shard/coverage_collection_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/coverage_collection_test.dart",
"repo_id": "flutter",
"token_count": 365
} | 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 'package:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/src/base/io.dart';
import '../src/common.dart';
import 'test_utils... | flutter/packages/flutter_tools/test/integration.shard/flutter_build_apk_verbose_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/flutter_build_apk_verbose_test.dart",
"repo_id": "flutter",
"token_count": 574
} | 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:async';
import 'package:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/src/base/io.dart';
import 'package:flutter_to... | flutter/packages/flutter_tools/test/integration.shard/observatory_port_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/observatory_port_test.dart",
"repo_id": "flutter",
"token_count": 1384
} | 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/file.dart';
import 'package:flutter_tools/src/base/file_system.dart';
import '../test_utils.dart';
import 'project.dart';
import 'tes... | flutter/packages/flutter_tools/test/integration.shard/test_data/integration_tests_project.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/test_data/integration_tests_project.dart",
"repo_id": "flutter",
"token_count": 601
} | 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 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:flutter_tools/src/base/platform.dart';
import 'package:meta/meta.dart';
impo... | flutter/packages/flutter_tools/test/integration.shard/transition_test_utils.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/transition_test_utils.dart",
"repo_id": "flutter",
"token_count": 3919
} | 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:io' as io show Directory, File, IOOverrides, Link;
import 'package:flutter_tools/src/base/file_system.dart';
/// An [IOOverrides] that can d... | flutter/packages/flutter_tools/test/src/io.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/src/io.dart",
"repo_id": "flutter",
"token_count": 1020
} | 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:flutter_tools/src/base/common.dart';
import 'package:flutter_tools/src/base/logger.dart';
import 'package:flutter_tools/src/base/process.da... | flutter/packages/flutter_tools/test/web.shard/web_driver_service_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/web.shard/web_driver_service_test.dart",
"repo_id": "flutter",
"token_count": 549
} | 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.
@TestOn('!chrome')
library;
import 'package:flutter_test/flutter_test.dart';
import 'package:flutter_web_plugins/url_strategy.dart';
import 'common.dart'... | flutter/packages/flutter_web_plugins/test/navigation/non_web_url_strategy_test.dart/0 | {
"file_path": "flutter/packages/flutter_web_plugins/test/navigation/non_web_url_strategy_test.dart",
"repo_id": "flutter",
"token_count": 380
} | 846 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert';
import 'dart:io' show ProcessResult, systemEncoding;
import 'package:fuchsia_remote_debug_protocol/src/runners/ssh_command_runner.d... | flutter/packages/fuchsia_remote_debug_protocol/test/src/runners/ssh_command_runner_test.dart/0 | {
"file_path": "flutter/packages/fuchsia_remote_debug_protocol/test/src/runners/ssh_command_runner_test.dart",
"repo_id": "flutter",
"token_count": 1898
} | 847 |
## 0.0.2
* Renames package to integration_test_macos.
## 0.0.1+1
* Remove Android folder from `e2e_macos`.
## 0.0.1
* Initial release
| flutter/packages/integration_test/integration_test_macos/CHANGELOG.md/0 | {
"file_path": "flutter/packages/integration_test/integration_test_macos/CHANGELOG.md",
"repo_id": "flutter",
"token_count": 59
} | 848 |
## Directory contents
The `.yaml` files in these directories are used to
define the [`dart fix` framework](https://dart.dev/tools/dart-fix) refactorings
used by `integration_test`.
The number of fix rules defined in a file should not exceed 50 for better
maintainability. Searching for `title:` in a given `.yaml` file... | flutter/packages/integration_test/lib/fix_data/README.md/0 | {
"file_path": "flutter/packages/integration_test/lib/fix_data/README.md",
"repo_id": "flutter",
"token_count": 567
} | 849 |
Files in this directory are not invoked directly by the test command.
They are used as inputs for the other test files outside of this directory, so
that failures can be tested. | flutter/packages/integration_test/test/data/README.md/0 | {
"file_path": "flutter/packages/integration_test/test/data/README.md",
"repo_id": "flutter",
"token_count": 38
} | 850 |
name: flutter_clock_helper
description: Helper classes for Flutter Clock contest.
version: 1.0.0+1
environment:
sdk: ">=2.2.2 <3.0.0"
dependencies:
flutter:
sdk: flutter
intl: "^0.16.0"
cupertino_icons: ^0.1.2
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
| flutter_clock/flutter_clock_helper/pubspec.yaml/0 | {
"file_path": "flutter_clock/flutter_clock_helper/pubspec.yaml",
"repo_id": "flutter_clock",
"token_count": 140
} | 851 |
source "https://rubygems.org"
gem "fastlane"
| gallery/android/Gemfile/0 | {
"file_path": "gallery/android/Gemfile",
"repo_id": "gallery",
"token_count": 18
} | 852 |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="craneName">crane</string>
</resources>
| gallery/android/app/src/main/res/values/strings.xml/0 | {
"file_path": "gallery/android/app/src/main/res/values/strings.xml",
"repo_id": "gallery",
"token_count": 39
} | 853 |
{
"file_generated_by": "FlutterFire CLI",
"purpose": "FirebaseAppID & ProjectID for this Firebase app in this directory",
"GOOGLE_APP_ID": "1:934901241041:ios:8d4c8bde3db3391fe621f0",
"FIREBASE_PROJECT_ID": "gallery-flutter-dev",
"GCM_SENDER_ID": "934901241041"
} | gallery/ios/firebase_app_id_file.json/0 | {
"file_path": "gallery/ios/firebase_app_id_file.json",
"repo_id": "gallery",
"token_count": 122
} | 854 |
// 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';
import 'package:intl/intl.dart';
// BEGIN cupertin... | gallery/lib/demos/cupertino/cupertino_picker_demo.dart/0 | {
"file_path": "gallery/lib/demos/cupertino/cupertino_picker_demo.dart",
"repo_id": "gallery",
"token_count": 4667
} | 855 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/gallery_localizations.dart';
import 'package:gallery/demos/material/material_demo... | gallery/lib/demos/material/chip_demo.dart/0 | {
"file_path": "gallery/lib/demos/material/chip_demo.dart",
"repo_id": "gallery",
"token_count": 4329
} | 856 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/gallery_localizations.dart';
import 'package:gallery/demos/material/material_demo... | gallery/lib/demos/material/tabs_demo.dart/0 | {
"file_path": "gallery/lib/demos/material/tabs_demo.dart",
"repo_id": "gallery",
"token_count": 2009
} | 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/material.dart';
/// Animations class to compute animation values for overlay widgets.
///
/// Values are loosely based on Material De... | gallery/lib/feature_discovery/animation.dart/0 | {
"file_path": "gallery/lib/feature_discovery/animation.dart",
"repo_id": "gallery",
"token_count": 3628
} | 858 |
{
"loading": "Učitavanje",
"deselect": "Poništi odabir",
"select": "Odaberi",
"selectable": "Moguće je odabrati (dugi pritisak)",
"selected": "Odabrano",
"demo": "Demo verzija",
"bottomAppBar": "Donja traka aplikacije",
"notSelected": "Nije odabrano",
"demoCupertinoSearchTextFieldTitle": "Polje za tek... | gallery/lib/l10n/intl_bs.arb/0 | {
"file_path": "gallery/lib/l10n/intl_bs.arb",
"repo_id": "gallery",
"token_count": 21692
} | 859 |
{
"loading": "Cargando",
"deselect": "Anular a selección",
"select": "Seleccionar",
"selectable": "Pódese seleccionar (pulsación longa)",
"selected": "Seleccionado",
"demo": "Versión de demostración",
"bottomAppBar": "Barra de aplicacións inferior",
"notSelected": "Non seleccionado",
"demoCupertinoSea... | gallery/lib/l10n/intl_gl.arb/0 | {
"file_path": "gallery/lib/l10n/intl_gl.arb",
"repo_id": "gallery",
"token_count": 19604
} | 860 |
{
"loading": "로드 중",
"deselect": "선택 해제",
"select": "선택",
"selectable": "선택 가능(길게 누르기)",
"selected": "선택됨",
"demo": "데모",
"bottomAppBar": "하단 앱 바",
"notSelected": "선택되지 않음",
"demoCupertinoSearchTextFieldTitle": "검색 텍스트 입력란",
"demoCupertinoPicker": "선택 도구",
"demoCupertinoSearchTextFieldSubtitle": "... | gallery/lib/l10n/intl_ko.arb/0 | {
"file_path": "gallery/lib/l10n/intl_ko.arb",
"repo_id": "gallery",
"token_count": 33355
} | 861 |
{
"loading": "Wczytuję",
"deselect": "Odznacz",
"select": "Zaznacz",
"selectable": "Możliwość zaznaczenia (przez przytrzymanie)",
"selected": "Zaznaczono",
"demo": "Wersja demonstracyjna",
"bottomAppBar": "Dolny pasek aplikacji",
"notSelected": "Nie zaznaczono",
"demoCupertinoSearchTextFieldTitle": "P... | gallery/lib/l10n/intl_pl.arb/0 | {
"file_path": "gallery/lib/l10n/intl_pl.arb",
"repo_id": "gallery",
"token_count": 23273
} | 862 |
{
"loading": "กำลังโหลด",
"deselect": "ยกเลิกการเลือก",
"select": "เลือก",
"selectable": "เลือกได้ (กดค้าง)",
"selected": "เลือกแล้ว",
"demo": "เดโม",
"bottomAppBar": "แถบด้านล่างของแอป",
"notSelected": "ไม่ได้เลือก",
"demoCupertinoSearchTextFieldTitle": "ช่องข้อความค้นหา",
"demoCupertinoPicker": "เ... | gallery/lib/l10n/intl_th.arb/0 | {
"file_path": "gallery/lib/l10n/intl_th.arb",
"repo_id": "gallery",
"token_count": 48870
} | 863 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:gallery/data/gallery_options.dart';
double _textScaleFactor(BuildContext contex... | gallery/lib/layout/text_scale.dart/0 | {
"file_path": "gallery/lib/layout/text_scale.dart",
"repo_id": "gallery",
"token_count": 759
} | 864 |
// 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/semantics.dart';
import 'package:gallery/data/gallery_options.dart';
import 'package:gallery/... | gallery/lib/studies/rally/charts/line_chart.dart/0 | {
"file_path": "gallery/lib/studies/rally/charts/line_chart.dart",
"repo_id": "gallery",
"token_count": 3630
} | 865 |
import 'dart:math' as math;
import 'dart:ui' as ui;
import 'package:animations/animations.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter_gen/gen_l10n/gallery_localizations.dart';
import 'package:gallery/data/gallery_options.dart';
import 'package:gallery... | gallery/lib/studies/reply/adaptive_nav.dart/0 | {
"file_path": "gallery/lib/studies/reply/adaptive_nav.dart",
"repo_id": "gallery",
"token_count": 22884
} | 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:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/gallery_localizations.dart';
import 'package:gallery/data/gallery_options.dart';
... | gallery/lib/studies/shrine/category_menu_page.dart/0 | {
"file_path": "gallery/lib/studies/shrine/category_menu_page.dart",
"repo_id": "gallery",
"token_count": 3910
} | 867 |
{
"images" : [
{
"filename" : "app_icon_16.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "16x16"
},
{
"filename" : "app_icon_32.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "16x16"
},
{
"filename" : "app_icon_32.png",
"idiom" : "mac"... | gallery/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json/0 | {
"file_path": "gallery/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json",
"repo_id": "gallery",
"token_count": 765
} | 868 |
// Copyright 2020 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.
// ignore_for_file:avoid_print
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:gallery/data/demos... | gallery/test_benchmarks/benchmarks/gallery_automator.dart/0 | {
"file_path": "gallery/test_benchmarks/benchmarks/gallery_automator.dart",
"repo_id": "gallery",
"token_count": 2700
} | 869 |
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="development" type="FlutterRunConfigurationType" factoryName="Flutter">
<option name="additionalArgs" value="--dart-define=ENCRYPTION_KEY=$ENCRYPTION_KEY --dart-define=ENCRYPTION_IV=$ENCRYPTION_IV --dart-define=RECAPTCHA_KEY=$RE... | io_flip/.idea/runConfigurations/development.xml/0 | {
"file_path": "io_flip/.idea/runConfigurations/development.xml",
"repo_id": "io_flip",
"token_count": 220
} | 870 |
import 'package:dart_frog/dart_frog.dart';
import 'package:jwt_middleware/jwt_middleware.dart';
import 'package:shelf_cors_headers/shelf_cors_headers.dart';
Middleware allowHeaders() {
return (handler) {
return (context) async {
final response = await handler(context);
final headers = Map<String, Str... | io_flip/api/headers/allow_headers.dart/0 | {
"file_path": "io_flip/api/headers/allow_headers.dart",
"repo_id": "io_flip",
"token_count": 267
} | 871 |
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'leaderboard_player.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
LeaderboardPlayer _$LeaderboardPlayerFromJson(Map<Strin... | io_flip/api/packages/game_domain/lib/src/models/leaderboard_player.g.dart/0 | {
"file_path": "io_flip/api/packages/game_domain/lib/src/models/leaderboard_player.g.dart",
"repo_id": "io_flip",
"token_count": 221
} | 872 |
name: game_domain
description: Domain classes for the game
version: 0.1.0+1
publish_to: none
environment:
sdk: ">=3.0.0 <4.0.0"
dev_dependencies:
build_runner: ^2.4.1
json_serializable: ^6.6.1
mocktail: ^0.3.0
test: ^1.24.1
very_good_analysis: ^4.0.0
dependencies:
equatable: ^2.0.5
game_script_machin... | io_flip/api/packages/game_domain/pubspec.yaml/0 | {
"file_path": "io_flip/api/packages/game_domain/pubspec.yaml",
"repo_id": "io_flip",
"token_count": 251
} | 873 |
/// Holds and proccess the scripts responsible for calculating the result of a
/// game match
library game_script_machine;
export 'src/default_script.dart';
export 'src/game_script_machine.dart';
| io_flip/api/packages/game_script_machine/lib/game_script_machine.dart/0 | {
"file_path": "io_flip/api/packages/game_script_machine/lib/game_script_machine.dart",
"repo_id": "io_flip",
"token_count": 55
} | 874 |
// ignore_for_file: prefer_const_constructors
import 'dart:math';
import 'package:db_client/db_client.dart';
import 'package:game_domain/game_domain.dart';
import 'package:language_model_repository/language_model_repository.dart';
import 'package:mocktail/mocktail.dart';
import 'package:prompt_repository/prompt_reposi... | io_flip/api/packages/language_model_repository/test/src/language_model_repository_test.dart/0 | {
"file_path": "io_flip/api/packages/language_model_repository/test/src/language_model_repository_test.dart",
"repo_id": "io_flip",
"token_count": 2740
} | 875 |
import 'dart:async';
import 'dart:io';
import 'package:dart_frog/dart_frog.dart';
import 'package:match_repository/match_repository.dart';
FutureOr<Response> onRequest(RequestContext context, String matchId) async {
if (context.request.method == HttpMethod.get) {
final matchRepository = context.read<MatchReposi... | io_flip/api/routes/game/matches/[matchId]/state.dart/0 | {
"file_path": "io_flip/api/routes/game/matches/[matchId]/state.dart",
"repo_id": "io_flip",
"token_count": 207
} | 876 |
import 'dart:io';
import 'package:dart_frog/dart_frog.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:test/test.dart';
import '../../../../../../../route... | io_flip/api/test/routes/game/matches/[matchId]/decks/[deckId]/[cardId]_test.dart/0 | {
"file_path": "io_flip/api/test/routes/game/matches/[matchId]/decks/[deckId]/[cardId]_test.dart",
"repo_id": "io_flip",
"token_count": 1428
} | 877 |
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 character_folder_validator}
/// Dart tool that checks if the character folder is valid
/// given the prompts stored in csv file.
/// {@endtempla... | io_flip/api/tools/data_loader/lib/src/character_folder_validator.dart/0 | {
"file_path": "io_flip/api/tools/data_loader/lib/src/character_folder_validator.dart",
"repo_id": "io_flip",
"token_count": 841
} | 878 |
// File generated by FlutterFire CLI.
// ignore_for_file: lines_longer_than_80_chars, avoid_classes_with_only_static_members, no_default_cases
import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
import 'package:flutter/foundation.dart'
show TargetPlatform, defaultTargetPlatform, kIsWeb;
/// Def... | io_flip/flop/lib/firebase_options_development.dart/0 | {
"file_path": "io_flip/flop/lib/firebase_options_development.dart",
"repo_id": "io_flip",
"token_count": 883
} | 879 |
{
"name": "Flop",
"short_name": "Flop",
"start_url": ".",
"display": "standalone",
"background_color": "#0175C2",
"theme_color": "#0175C2",
"description": "A Very Good Project created by Very Good CLI.",
"orientation": "portrait-primary",
"prefer_related_applications": false,
"ic... | io_flip/flop/web/manifest.json/0 | {
"file_path": "io_flip/flop/web/manifest.json",
"repo_id": "io_flip",
"token_count": 307
} | 880 |
// Copyright 2022, the Flutter project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/widgets.dart';
import 'package:logging/logging.dart';
import 'package:provider/pr... | io_flip/lib/app_lifecycle/app_lifecycle.dart/0 | {
"file_path": "io_flip/lib/app_lifecycle/app_lifecycle.dart",
"repo_id": "io_flip",
"token_count": 687
} | 881 |
part of 'draft_bloc.dart';
enum DraftStateStatus {
initial,
deckLoading,
deckLoaded,
deckFailed,
deckSelected,
playerDeckCreated,
playerDeckFailed,
}
class DraftState extends Equatable {
const DraftState({
required this.cards,
required this.status,
required this.selectedCards,
required... | io_flip/lib/draft/bloc/draft_state.dart/0 | {
"file_path": "io_flip/lib/draft/bloc/draft_state.dart",
"repo_id": "io_flip",
"token_count": 598
} | 882 |
export 'game_page.dart';
export 'game_summary.dart';
export 'game_view.dart';
| io_flip/lib/game/views/views.dart/0 | {
"file_path": "io_flip/lib/game/views/views.dart",
"repo_id": "io_flip",
"token_count": 30
} | 883 |
import 'package:collection/collection.dart';
import 'package:flutter/material.dart';
import 'package:game_domain/game_domain.dart';
import 'package:io_flip/gen/assets.gen.dart';
import 'package:io_flip/how_to_play/how_to_play.dart';
import 'package:io_flip/l10n/l10n.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
... | io_flip/lib/how_to_play/widgets/suits_wheel.dart/0 | {
"file_path": "io_flip/lib/how_to_play/widgets/suits_wheel.dart",
"repo_id": "io_flip",
"token_count": 3696
} | 884 |
import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart';
import 'package:flutter/services.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:go_router/go_router.dart';
import 'package:io_flip/l10n/l10n.dart';
import 'package:io_flip/leaderboard/initials_form/initials_form.da... | io_flip/lib/leaderboard/initials_form/view/initials_form_view.dart/0 | {
"file_path": "io_flip/lib/leaderboard/initials_form/view/initials_form_view.dart",
"repo_id": "io_flip",
"token_count": 4573
} | 885 |
import 'package:api_client/api_client.dart';
import 'package:config_repository/config_repository.dart';
import 'package:connection_repository/connection_repository.dart';
import 'package:equatable/equatable.dart';
import 'package:flutter/material.dart' hide Card;
import 'package:flutter_bloc/flutter_bloc.dart';
import ... | io_flip/lib/match_making/views/match_making_page.dart/0 | {
"file_path": "io_flip/lib/match_making/views/match_making_page.dart",
"repo_id": "io_flip",
"token_count": 877
} | 886 |
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import 'package:io_flip/draft/draft.dart';
import 'package:io_flip/game/game.dart';
import 'package:io_flip/main_menu/main_menu_screen.dart';
import 'package:io_flip/match_making/match_making.dart';
import 'package:io_flip/prompt/prompt.... | io_flip/lib/router/router.dart/0 | {
"file_path": "io_flip/lib/router/router.dart",
"repo_id": "io_flip",
"token_count": 1010
} | 887 |
export 'views/views.dart';
export 'widgets/widgets.dart';
| io_flip/lib/share/share.dart/0 | {
"file_path": "io_flip/lib/share/share.dart",
"repo_id": "io_flip",
"token_count": 22
} | 888 |
import 'package:flutter/widgets.dart';
import 'package:go_router/go_router.dart';
extension BuildContextMaybePop on BuildContext {
void maybePop() {
final router = GoRouter.of(this);
if (router.canPop()) {
router.pop();
}
}
}
| io_flip/lib/utils/maybe_pop_extension.dart/0 | {
"file_path": "io_flip/lib/utils/maybe_pop_extension.dart",
"repo_id": "io_flip",
"token_count": 99
} | 889 |
import 'dart:io';
import 'package:api_client/api_client.dart';
/// {@template scripts_resource}
/// Resource to access the scripts api.
/// {@endtemplate}
class ScriptsResource {
/// {@macro scripts_resource}
ScriptsResource({
required ApiClient apiClient,
}) : _apiClient = apiClient;
final ApiClient _ap... | io_flip/packages/api_client/lib/src/resources/scripts_resource.dart/0 | {
"file_path": "io_flip/packages/api_client/lib/src/resources/scripts_resource.dart",
"repo_id": "io_flip",
"token_count": 413
} | 890 |
import 'package:equatable/equatable.dart';
/// {@template user}
/// User model
/// {@endtemplate}
class User extends Equatable {
/// {@macro user}
const User({
required this.id,
});
/// The current user's id.
final String id;
/// Represents an unauthenticated user.
static const unauthenticated = Us... | io_flip/packages/authentication_repository/lib/src/models/user.dart/0 | {
"file_path": "io_flip/packages/authentication_repository/lib/src/models/user.dart",
"repo_id": "io_flip",
"token_count": 126
} | 891 |
/// Repository to manage the connection state.
library connection_repository;
export 'src/connection_repository.dart';
| io_flip/packages/connection_repository/lib/connection_repository.dart/0 | {
"file_path": "io_flip/packages/connection_repository/lib/connection_repository.dart",
"repo_id": "io_flip",
"token_count": 33
} | 892 |
import 'package:dashbook/dashbook.dart';
import 'package:flutter/material.dart';
import 'package:gallery/stories.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
void main() {
final dashbook = Dashbook(
title: 'I/O Flip Dashbook',
theme: IoFlipTheme.themeData.copyWith(
// Edits to make drawer and it... | io_flip/packages/io_flip_ui/gallery/lib/main.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/gallery/lib/main.dart",
"repo_id": "io_flip",
"token_count": 260
} | 893 |
import 'package:flutter/material.dart';
import 'package:gallery/story_scaffold.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
class GameCardSuitsStory extends StatelessWidget {
const GameCardSuitsStory({super.key});
@override
Widget build(BuildContext context) {
return const StoryScaffold(
title:... | io_flip/packages/io_flip_ui/gallery/lib/widgets/game_card_suits_story.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/gallery/lib/widgets/game_card_suits_story.dart",
"repo_id": "io_flip",
"token_count": 1494
} | 894 |
export 'card_animation.dart';
export 'card_animations.dart';
export 'damages/damages.dart';
export 'game_card_rect_tween.dart';
export 'stretch_animation.dart';
export 'there_and_back_again.dart';
export 'transform_tween.dart';
| io_flip/packages/io_flip_ui/lib/src/animations/animations.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/lib/src/animations/animations.dart",
"repo_id": "io_flip",
"token_count": 86
} | 895 |
export 'breakpoints.dart';
| io_flip/packages/io_flip_ui/lib/src/layout/layout.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/lib/src/layout/layout.dart",
"repo_id": "io_flip",
"token_count": 9
} | 896 |
import 'package:flame/cache.dart';
import 'package:flame/extensions.dart';
import 'package:flame/widgets.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
import 'package:provider/provider.dart';
/// {@template damage_send}
/// A ... | io_flip/packages/io_flip_ui/lib/src/widgets/damages/damage_send.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/lib/src/widgets/damages/damage_send.dart",
"repo_id": "io_flip",
"token_count": 1333
} | 897 |
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
import 'package:provider/provider.dart';
/// {@template rounded_button}
/// I/O FLIP Rounded Button.
/// {@endtemplate}
class RoundedButton extends StatefulWidget {
/// Basic [RoundedBu... | io_flip/packages/io_flip_ui/lib/src/widgets/rounded_button.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/lib/src/widgets/rounded_button.dart",
"repo_id": "io_flip",
"token_count": 2215
} | 898 |
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_flip_ui/gen/assets.gen.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
class _FakeCustomPainter extends Fake implements CustomPainter {}
void main() {
group('CardOverlay', () {
testWidgets(
'ren... | io_flip/packages/io_flip_ui/test/src/widgets/card_overlay_test.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/test/src/widgets/card_overlay_test.dart",
"repo_id": "io_flip",
"token_count": 2016
} | 899 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter_test/flutter_test.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
void main() {
group('IoFlipLogo', () {
testWidgets('renders correctly', (tester) async {
await tester.pumpWidget(IoFlipLogo());
expect(
find.byType(IoF... | io_flip/packages/io_flip_ui/test/src/widgets/io_flip_logo_test.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/test/src/widgets/io_flip_logo_test.dart",
"repo_id": "io_flip",
"token_count": 432
} | 900 |
export 'draft_match.dart';
| io_flip/packages/match_maker_repository/lib/src/models/models.dart/0 | {
"file_path": "io_flip/packages/match_maker_repository/lib/src/models/models.dart",
"repo_id": "io_flip",
"token_count": 10
} | 901 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter_test/flutter_test.dart';
import 'package:io_flip/audio/songs.dart';
void main() {
group('Song', () {
test('toString returns correctly', () {
expect(
Song('SONG.mp3', 'SONG').toString(),
equals('Song<SONG.mp3>'),
);... | io_flip/test/audio/soungs_test.dart/0 | {
"file_path": "io_flip/test/audio/soungs_test.dart",
"repo_id": "io_flip",
"token_count": 145
} | 902 |
// ignore_for_file: prefer_const_constructors, one_member_abstracts
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter/material.dart' hide Card;
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:game_domain/game_domain.dart';
import 'packa... | io_flip/test/game/views/game_summary_test.dart/0 | {
"file_path": "io_flip/test/game/views/game_summary_test.dart",
"repo_id": "io_flip",
"token_count": 11407
} | 903 |
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', () {
testWidgets('can navigate to the info view', (tester) async {
await tester.pumpApp(const Scaffold(body... | io_flip/test/info/widgets/info_button_test.dart/0 | {
"file_path": "io_flip/test/info/widgets/info_button_test.dart",
"repo_id": "io_flip",
"token_count": 191
} | 904 |
// ignore_for_file: prefer_const_constructors, one_member_abstracts
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter/material.dart' hide Card;
import 'package:flutter/services.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:game... | io_flip/test/match_making/views/match_making_view_test.dart/0 | {
"file_path": "io_flip/test/match_making/views/match_making_view_test.dart",
"repo_id": "io_flip",
"token_count": 4055
} | 905 |
import 'package:flutter_test/flutter_test.dart';
import 'package:io_flip/settings/persistence/persistence.dart';
import 'package:io_flip/settings/settings.dart';
import 'package:mocktail/mocktail.dart';
class _MockSettingsPersistence extends Mock implements SettingsPersistence {}
void main() {
group('SettingsContro... | io_flip/test/settings/settings_controller_test.dart/0 | {
"file_path": "io_flip/test/settings/settings_controller_test.dart",
"repo_id": "io_flip",
"token_count": 702
} | 906 |
node_modules
/build
/public/build
.env
.docusaurus
| news_toolkit/docs/.prettierignore/0 | {
"file_path": "news_toolkit/docs/.prettierignore",
"repo_id": "news_toolkit",
"token_count": 20
} | 907 |
---
slug: /
sidebar_position: 1
---
# Overview
Flutter and the [Google News Initiative](https://newsinitiative.withgoogle.com/) have co-sponsored the development of a news application template. The goal of this project is to help news publishers build mobile applications easily in order to make reliable information a... | news_toolkit/docs/docs/overview.md/0 | {
"file_path": "news_toolkit/docs/docs/overview.md",
"repo_id": "news_toolkit",
"token_count": 2244
} | 908 |
---
sidebar_position: 3
description: Learn how to write and run tests for your API.
---
# Testing
The Flutter News Toolkit server comes with 100% test coverage out of the box. Tests are located in a parallel file structure relative to your server source code, residing in the `api/test` directory that mirrors the `api... | news_toolkit/docs/docs/server_development/testing.md/0 | {
"file_path": "news_toolkit/docs/docs/server_development/testing.md",
"repo_id": "news_toolkit",
"token_count": 344
} | 909 |
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.flutter.news.example">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
... | news_toolkit/flutter_news_example/android/app/src/debug/AndroidManifest.xml/0 | {
"file_path": "news_toolkit/flutter_news_example/android/app/src/debug/AndroidManifest.xml",
"repo_id": "news_toolkit",
"token_count": 182
} | 910 |
import 'dart:convert';
import 'dart:io';
import 'package:flutter_news_example_api/client.dart';
import 'package:http/http.dart' as http;
/// {@template flutter_news_example_api_malformed_response}
/// An exception thrown when there is a problem decoded the response body.
/// {@endtemplate}
class FlutterNewsExampleApi... | news_toolkit/flutter_news_example/api/lib/src/client/flutter_news_example_api_client.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/lib/src/client/flutter_news_example_api_client.dart",
"repo_id": "news_toolkit",
"token_count": 3801
} | 911 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.