text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
import 'package:flutter_test/flutter_test.dart';
import 'package:{{projectName}}/{{projectName}}.dart';
void main() {
test('adds one to input values', () {
final calculator = Calculator();
expect(calculator.addOne(2), 3);
expect(calculator.addOne(-7), -6);
expect(calculator.addOne(0), 1);
});
}
| flutter/packages/flutter_tools/templates/package/test/projectName_test.dart.tmpl/0 | {
"file_path": "flutter/packages/flutter_tools/templates/package/test/projectName_test.dart.tmpl",
"repo_id": "flutter",
"token_count": 122
} | 820 |
group = "{{androidIdentifier}}"
version = "1.0"
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:{{agpVersion}}")
}
}
rootProject.allprojects {
repositories {
google()
mavenCentral()
}
}
ap... | flutter/packages/flutter_tools/templates/plugin/android-java.tmpl/build.gradle.tmpl/0 | {
"file_path": "flutter/packages/flutter_tools/templates/plugin/android-java.tmpl/build.gradle.tmpl",
"repo_id": "flutter",
"token_count": 503
} | 821 |
#include "{{pluginClassSnakeCase}}.h"
// This must be included before many other Windows headers.
#include <windows.h>
// For getPlatformVersion; remove unless needed for your plugin implementation.
#include <VersionHelpers.h>
#include <flutter/method_channel.h>
#include <flutter/plugin_registrar_windows.h>
#include... | flutter/packages/flutter_tools/templates/plugin/windows.tmpl/pluginClassSnakeCase.cpp.tmpl/0 | {
"file_path": "flutter/packages/flutter_tools/templates/plugin/windows.tmpl/pluginClassSnakeCase.cpp.tmpl",
"repo_id": "flutter",
"token_count": 622
} | 822 |
{
"version": 1.0,
"_comment": "A listing of all possible template output files. Files ending in .img.tmpl correspond to files checked in to the flutter_template_images package in the flutter/packages repo, located at the same path, excluding the .img.tmpl suffix.",
"files": [
"templates/app/lib/main... | flutter/packages/flutter_tools/templates/template_manifest.json/0 | {
"file_path": "flutter/packages/flutter_tools/templates/template_manifest.json",
"repo_id": "flutter",
"token_count": 12435
} | 823 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:convert';
import 'package:args/command_runner.dart';
import 'package:file/file.dart';
import 'package:file/memory.dart';... | flutter/packages/flutter_tools/test/commands.shard/hermetic/analyze_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/commands.shard/hermetic/analyze_test.dart",
"repo_id": "flutter",
"token_count": 3165
} | 824 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:typed_data';
import 'package:args/args.dart';
import 'package:args/command_runner.dart';
import 'package:file/memory.dar... | flutter/packages/flutter_tools/test/commands.shard/hermetic/custom_devices_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/commands.shard/hermetic/custom_devices_test.dart",
"repo_id": "flutter",
"token_count": 18490
} | 825 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:args/command_runner.dart';
import 'package:file/memory.dart';
import 'package:flutter_tools/src/base/file_system.dart';
import 'package:flu... | flutter/packages/flutter_tools/test/commands.shard/hermetic/pub_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/commands.shard/hermetic/pub_test.dart",
"repo_id": "flutter",
"token_count": 3490
} | 826 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:io';
import 'package:flutter_tools/src/cache.dart';
import 'package:flutter_tools/src/globals.dart' as globals;
import '../../src/common.dar... | flutter/packages/flutter_tools/test/commands.shard/permeable/script_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/commands.shard/permeable/script_test.dart",
"repo_id": "flutter",
"token_count": 380
} | 827 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file/memory.dart';
import 'package:flutter_tools/src/android/android_sdk.dart';
import 'package:flutter_tools/src/base/config.dart';
import... | flutter/packages/flutter_tools/test/general.shard/android/android_sdk_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/android/android_sdk_test.dart",
"repo_id": "flutter",
"token_count": 8384
} | 828 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file/memory.dart';
import 'package:file_testing/file_testing.dart';
import 'package:flutter_tools/src/base/file_system.dart';
import 'packa... | flutter/packages/flutter_tools/test/general.shard/artifact_updater_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/artifact_updater_test.dart",
"repo_id": "flutter",
"token_count": 7968
} | 829 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:io' as io; // flutter_ignore: dart_io_import;
import 'package:file/file.dart';
import 'package:file/memory.dart';
import 'package:file_testin... | flutter/packages/flutter_tools/test/general.shard/base/error_handling_io_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/base/error_handling_io_test.dart",
"repo_id": "flutter",
"token_count": 18806
} | 830 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file/memory.dart';
import 'package:flutter_tools/src/artifacts.dart';
import 'package:flutter_tools/src/base/file_system.dart';
import 'pa... | flutter/packages/flutter_tools/test/general.shard/build_info_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/build_info_test.dart",
"repo_id": "flutter",
"token_count": 5048
} | 831 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file/memory.dart';
import 'package:file_testing/file_testing.dart';
import 'package:flutter_tools/src/artifacts.dart';
import 'package:flut... | flutter/packages/flutter_tools/test/general.shard/build_system/targets/ios_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/build_system/targets/ios_test.dart",
"repo_id": "flutter",
"token_count": 12304
} | 832 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file/memory.dart';
import 'package:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/src/base/platform.dart';
import ... | flutter/packages/flutter_tools/test/general.shard/commands/flutter_root_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/commands/flutter_root_test.dart",
"repo_id": "flutter",
"token_count": 1327
} | 833 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:file/memory.dart';
import 'package:flutter_tools/src/base/platform.dart';
import 'package:flutter_tools/src/cache.dar... | flutter/packages/flutter_tools/test/general.shard/dap/flutter_test_adapter_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/dap/flutter_test_adapter_test.dart",
"repo_id": "flutter",
"token_count": 1876
} | 834 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_tools/src/base/logger.dart';
import 'package:flutter_tools/src/flutter_manifest.dart';
import '../src/common.dart';
void main() {... | flutter/packages/flutter_tools/test/general.shard/flutter_manifest_assets_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/flutter_manifest_assets_test.dart",
"repo_id": "flutter",
"token_count": 1608
} | 835 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file/memory.dart';
import 'package:flutter_tools/src/artifacts.dart';
import 'package:flutter_tools/src/base/file_system.dart';
import 'pac... | flutter/packages/flutter_tools/test/general.shard/hot_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/hot_test.dart",
"repo_id": "flutter",
"token_count": 9749
} | 836 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file/file.dart';
import 'package:file/memory.dart';
import 'package:flutter_tools/src/artifacts.dart';
import 'package:flutter_tools/src/ba... | flutter/packages/flutter_tools/test/general.shard/ios/mac_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/ios/mac_test.dart",
"repo_id": "flutter",
"token_count": 7479
} | 837 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file/memory.dart';
import 'package:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/src/base/logger.dart';
import 'p... | flutter/packages/flutter_tools/test/general.shard/persistent_tool_state_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/persistent_tool_state_test.dart",
"repo_id": "flutter",
"token_count": 725
} | 838 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:dds/dds.dart' as dds;
import 'package:file/memory.dart';
import 'package:file_testing/file_testing.dart';
import 'pac... | flutter/packages/flutter_tools/test/general.shard/resident_runner_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/resident_runner_test.dart",
"repo_id": "flutter",
"token_count": 33838
} | 839 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:io';
import 'package:file/file.dart';
import 'package:file/memory.dart';
import 'package:flutter_tools/src/base/context.... | flutter/packages/flutter_tools/test/general.shard/testbed_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/testbed_test.dart",
"repo_id": "flutter",
"token_count": 1151
} | 840 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert';
import 'package:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/src/base/logger.dart';
import 'package:flut... | flutter/packages/flutter_tools/test/general.shard/web/golden_comparator_process_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/web/golden_comparator_process_test.dart",
"repo_id": "flutter",
"token_count": 1498
} | 841 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file/memory.dart';
import 'package:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/src/base/logger.dart';
import 'p... | flutter/packages/flutter_tools/test/general.shard/windows/windows_device_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/windows/windows_device_test.dart",
"repo_id": "flutter",
"token_count": 1769
} | 842 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file/file.dart';
import 'package:flutter_tools/src/android/gradle_utils.dart'
show getGradlewFileName;
import 'package:flutter_tools/sr... | flutter/packages/flutter_tools/test/integration.shard/android_gradle_java_version_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/android_gradle_java_version_test.dart",
"repo_id": "flutter",
"token_count": 652
} | 843 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert';
import 'package:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/src/base/io.dart';
import 'package:flutter_... | flutter/packages/flutter_tools/test/integration.shard/command_output_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/command_output_test.dart",
"repo_id": "flutter",
"token_count": 3534
} | 844 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file_testing/file_testing.dart';
import 'package:flutter_tools/src/base/file_system.dart';
import '../src/common.dart';
import 'test_utils... | flutter/packages/flutter_tools/test/integration.shard/flutter_build_android_app_project_builddir_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/flutter_build_android_app_project_builddir_test.dart",
"repo_id": "flutter",
"token_count": 850
} | 845 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file/file.dart';
import '../src/common.dart';
import 'test_data/basic_project.dart';
import 'test_driver.dart';
import 'test_utils.dart';
... | flutter/packages/flutter_tools/test/integration.shard/lifetime_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/lifetime_test.dart",
"repo_id": "flutter",
"token_count": 455
} | 846 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import '../test_utils.dart';
import 'project.dart';
class HotReloadWithAssetProject extends Project {
@override
final String pubspec = '''
name: test
... | flutter/packages/flutter_tools/test/integration.shard/test_data/hot_reload_with_asset.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/test_data/hot_reload_with_asset.dart",
"repo_id": "flutter",
"token_count": 555
} | 847 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_tools/src/base/io.dart';
import '../src/common.dart';
import 'test_utils.dart';
final String toolBackend = fileSystem.path.join(g... | flutter/packages/flutter_tools/test/integration.shard/tool_backend_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/tool_backend_test.dart",
"repo_id": "flutter",
"token_count": 1156
} | 848 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:io' as io show IOSink, ProcessSignal, Stdout, StdoutException;
import 'package:flutter_tools/src/android/android_sdk.dar... | flutter/packages/flutter_tools/test/src/fakes.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/src/fakes.dart",
"repo_id": "flutter",
"token_count": 5921
} | 849 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:file/file.dart';
import 'package:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/src/vmservic... | flutter/packages/flutter_tools/test/web.shard/vm_service_web_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/web.shard/vm_service_web_test.dart",
"repo_id": "flutter",
"token_count": 1381
} | 850 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_web_plugins/url_strategy.dart';
/// A mock implementation of [PlatformLocation] that doesn't access the browser.
class TestPlatfor... | flutter/packages/flutter_web_plugins/test/navigation/common.dart/0 | {
"file_path": "flutter/packages/flutter_web_plugins/test/navigation/common.dart",
"repo_id": "flutter",
"token_count": 317
} | 851 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:fuchsia_remote_debug_protocol/src/dart/dart_vm.dart';
import 'package:test/fake.dart';
import 'package:test/test.dart... | flutter/packages/fuchsia_remote_debug_protocol/test/src/dart/dart_vm_test.dart/0 | {
"file_path": "flutter/packages/fuchsia_remote_debug_protocol/test/src/dart/dart_vm_test.dart",
"repo_id": "flutter",
"token_count": 4860
} | 852 |
# integration_test_example
Demonstrates how to use the `package:integration_test`.
To run `integration_test/example_test.dart`,
## Android / iOS
```sh
flutter drive \
--driver=test_driver/integration_test.dart \
--target=integration_test/example_test.dart
```
## Web
In one shell, run Chromedriver ([download
h... | flutter/packages/integration_test/example/README.md/0 | {
"file_path": "flutter/packages/integration_test/example/README.md",
"repo_id": "flutter",
"token_count": 211
} | 853 |
{
"name": "example",
"short_name": "example",
"start_url": ".",
"display": "minimal-ui",
"background_color": "#0175C2",
"theme_color": "#0175C2",
"description": "A new Flutter project.",
"orientation": "portrait-primary",
"prefer_related_applications": false,
"icons": [
{... | flutter/packages/integration_test/example/web/manifest.json/0 | {
"file_path": "flutter/packages/integration_test/example/web/manifest.json",
"repo_id": "flutter",
"token_count": 303
} | 854 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:convert';
/// A callback to use with [integrationDriver].
///
/// The callback receives the name of screenshot passed to... | flutter/packages/integration_test/lib/common.dart/0 | {
"file_path": "flutter/packages/integration_test/lib/common.dart",
"repo_id": "flutter",
"token_count": 3322
} | 855 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/common.da... | flutter/packages/integration_test/test/binding_test.dart/0 | {
"file_path": "flutter/packages/integration_test/test/binding_test.dart",
"repo_id": "flutter",
"token_count": 2060
} | 856 |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
/// This is the model that contains the customization options for the c... | flutter_clock/flutter_clock_helper/lib/model.dart/0 | {
"file_path": "flutter_clock/flutter_clock_helper/lib/model.dart",
"repo_id": "flutter_clock",
"token_count": 1493
} | 857 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/gallery_localizations.dart';
// BEGIN c... | gallery/lib/demos/cupertino/cupertino_navigation_bar_demo.dart/0 | {
"file_path": "gallery/lib/demos/cupertino/cupertino_navigation_bar_demo.dart",
"repo_id": "gallery",
"token_count": 1488
} | 858 |
// Copyright 2020 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/gallery_localizations.dart';
const String _kGalleryAssetsPackage = 'flutter_gall... | gallery/lib/demos/material/cards_demo.dart/0 | {
"file_path": "gallery/lib/demos/material/cards_demo.dart",
"repo_id": "gallery",
"token_count": 6981
} | 859 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/gallery_localizations.dart';
// BEGIN snackbarsDemo
class SnackbarsDemo extends... | gallery/lib/demos/material/snackbar_demo.dart/0 | {
"file_path": "gallery/lib/demos/material/snackbar_demo.dart",
"repo_id": "gallery",
"token_count": 671
} | 860 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/gallery_localizations.dart';
// BEGIN typographyDemo
class _TextStyleItem exte... | gallery/lib/demos/reference/typography_demo.dart/0 | {
"file_path": "gallery/lib/demos/reference/typography_demo.dart",
"repo_id": "gallery",
"token_count": 1415
} | 861 |
{
"loading": "লোড হচ্ছে",
"deselect": "টিক চিহ্ন সরিয়ে দিন",
"select": "বেছে নিন",
"selectable": "বেছে নিতে পারেন (বেশিক্ষণ প্রেস করুন)",
"selected": "বেছে নেওয়া আইটেম",
"demo": "ডেমো",
"bottomAppBar": "স্ক্রিনের নিচের দিকে থাকা অ্যাপ বার",
"notSelected": "বেছে নেওয়া হয়নি",
"demoCupertinoSearchTextFie... | gallery/lib/l10n/intl_bn.arb/0 | {
"file_path": "gallery/lib/l10n/intl_bn.arb",
"repo_id": "gallery",
"token_count": 55668
} | 862 |
{
"loading": "ಲೋಡ್ ಆಗುತ್ತಿದೆ",
"deselect": "ಆಯ್ಕೆ ರದ್ದುಮಾಡಿ",
"select": "ಆಯ್ಕೆಮಾಡಿ",
"selectable": "ಆಯ್ಕೆ ಮಾಡಬಹುದಾದ (ದೀರ್ಘಕಾಲ ಒತ್ತಿಹಿಡಿಯುವುದು)",
"selected": "ಆಯ್ಕೆಮಾಡಲಾಗಿದೆ",
"demo": "ಡೆಮೋ",
"bottomAppBar": "ಬಾಟಮ್ ಆ್ಯಪ್ ಬಾರ್",
"notSelected": "ಆಯ್ಕೆ ಮಾಡಿಲ್ಲ",
"demoCupertinoSearchTextFieldTitle": "ಪಠ್ಯ... | gallery/lib/l10n/intl_kn.arb/0 | {
"file_path": "gallery/lib/l10n/intl_kn.arb",
"repo_id": "gallery",
"token_count": 75598
} | 863 |
{
"loading": "ਲੋਡ ਕੀਤਾ ਜਾ ਰਿਹਾ ਹੈ",
"deselect": "ਅਣ-ਚੁਣਿਆ ਕਰੋ",
"select": "ਚੁਣੋ",
"selectable": "ਚੁਣਨਯੋਗ (ਦਬਾਈ ਰੱਖਣਾ)",
"selected": "ਚੁਣੀ ਗਈ",
"demo": "ਡੈਮੋ",
"bottomAppBar": "ਹੇਠਲੀ ਐਪ ਬਾਰ",
"notSelected": "ਚੁਣੀ ਨਹੀਂ ਗਈ",
"demoCupertinoSearchTextFieldTitle": "ਖੋਜ ਲਿਖਤ ਖੇਤਰ",
"demoCupertinoPicker": "... | gallery/lib/l10n/intl_pa.arb/0 | {
"file_path": "gallery/lib/l10n/intl_pa.arb",
"repo_id": "gallery",
"token_count": 45833
} | 864 |
{
"loading": "లోడ్ అవుతోంది",
"deselect": "ఎంపికను తొలగించండి",
"select": "ఎంచుకోండి",
"selectable": "ఎంచుకోగలిగేది (ఎక్కువసేపు నొక్కి, ఉంచాలి)",
"selected": "ఎంచుకోబడింది",
"demo": "డెమో",
"bottomAppBar": "దిగువ యాప్ బార్",
"notSelected": "ఎంచుకోబడలేదు",
"demoCupertinoSearchTextFieldTitle": "సెర్చ్ ట... | gallery/lib/l10n/intl_te.arb/0 | {
"file_path": "gallery/lib/l10n/intl_te.arb",
"repo_id": "gallery",
"token_count": 75816
} | 865 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
abstract class BackLayerItem extends StatefulWidget {
final int index;
const BackLayerItem({super.key, required ... | gallery/lib/studies/crane/backlayer.dart/0 | {
"file_path": "gallery/lib/studies/crane/backlayer.dart",
"repo_id": "gallery",
"token_count": 408
} | 866 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:animations/animations.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_gen/gen_l... | gallery/lib/studies/rally/app.dart/0 | {
"file_path": "gallery/lib/studies/rally/app.dart",
"repo_id": "gallery",
"token_count": 1549
} | 867 |
// Copyright 2020 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
const String galleryBenchmarkPrefix = 'gallery_v2';
const String galleryStudiesPerf = '${galleryBenchmarkPrefix}_studies_perf';
const String galleryUnanimate... | gallery/test_benchmarks/benchmarks/common.dart/0 | {
"file_path": "gallery/test_benchmarks/benchmarks/common.dart",
"repo_id": "gallery",
"token_count": 199
} | 868 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Page Not Found</title>
<style media="screen">
body { background: #ECEFF1; color: rgba(0,0,0,0.87); font-family: Roboto, Helvetica, Arial, sans-serif; margin: 0; paddi... | gallery/web/404.html/0 | {
"file_path": "gallery/web/404.html",
"repo_id": "gallery",
"token_count": 746
} | 869 |
{
"projects": {
"default": "top-dash-dev"
},
"targets": {
"top-dash-dev": {
"hosting": {
"app_dev": [
"a16e0900d-fe2c-3609-b43c-87093e447b78"
],
"flop_dev": [
"flop-a16e0900d-fe2c-3609-b43c-87093e447b78"
],
"app_staging": [
"a26e0... | io_flip/.firebaserc/0 | {
"file_path": "io_flip/.firebaserc",
"repo_id": "io_flip",
"token_count": 336
} | 870 |
include: package:very_good_analysis/analysis_options.4.0.0.yaml
analyzer:
exclude:
- build/**
- '**/*.g.dart'
linter:
rules:
file_names: false
| io_flip/api/analysis_options.yaml/0 | {
"file_path": "io_flip/api/analysis_options.yaml",
"repo_id": "io_flip",
"token_count": 69
} | 871 |
include: package:very_good_analysis/analysis_options.4.0.0.yaml
| io_flip/api/packages/cards_repository/analysis_options.yaml/0 | {
"file_path": "io_flip/api/packages/cards_repository/analysis_options.yaml",
"repo_id": "io_flip",
"token_count": 23
} | 872 |
include: package:very_good_analysis/analysis_options.4.0.0.yaml
| io_flip/api/packages/db_client/analysis_options.yaml/0 | {
"file_path": "io_flip/api/packages/db_client/analysis_options.yaml",
"repo_id": "io_flip",
"token_count": 23
} | 873 |
include: package:very_good_analysis/analysis_options.3.1.0.yaml
| io_flip/api/packages/firebase_cloud_storage/analysis_options.yaml/0 | {
"file_path": "io_flip/api/packages/firebase_cloud_storage/analysis_options.yaml",
"repo_id": "io_flip",
"token_count": 23
} | 874 |
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
part 'leaderboard_player.g.dart';
/// {@template leaderboard_player}
/// A model that represents a player in the leaderboard.
/// {@endtemplate}
@JsonSerializable(ignoreUnannotated: true)
class LeaderboardPlayer extends ... | io_flip/api/packages/game_domain/lib/src/models/leaderboard_player.dart/0 | {
"file_path": "io_flip/api/packages/game_domain/lib/src/models/leaderboard_player.dart",
"repo_id": "io_flip",
"token_count": 346
} | 875 |
export 'match_solver.dart';
| io_flip/api/packages/game_domain/lib/src/solvers/solvers.dart/0 | {
"file_path": "io_flip/api/packages/game_domain/lib/src/solvers/solvers.dart",
"repo_id": "io_flip",
"token_count": 11
} | 876 |
include: package:very_good_analysis/analysis_options.4.0.0.yaml
| io_flip/api/packages/jwt_middleware/analysis_options.yaml/0 | {
"file_path": "io_flip/api/packages/jwt_middleware/analysis_options.yaml",
"repo_id": "io_flip",
"token_count": 23
} | 877 |
name: language_model_repository
description: Repository providing access language model services
version: 0.1.0+1
publish_to: none
environment:
sdk: ">=3.0.0 <4.0.0"
dependencies:
db_client:
path: ../db_client
game_domain:
path: ../game_domain
prompt_repository:
path: ../prompt_repository
dev_dep... | io_flip/api/packages/language_model_repository/pubspec.yaml/0 | {
"file_path": "io_flip/api/packages/language_model_repository/pubspec.yaml",
"repo_id": "io_flip",
"token_count": 164
} | 878 |
// ignore_for_file: prefer_const_constructors
import 'dart:math';
import 'package:cards_repository/cards_repository.dart';
import 'package:db_client/db_client.dart';
import 'package:game_domain/game_domain.dart';
import 'package:match_repository/match_repository.dart';
import 'package:mocktail/mocktail.dart';
import '... | io_flip/api/packages/match_repository/test/src/match_repository_test.dart/0 | {
"file_path": "io_flip/api/packages/match_repository/test/src/match_repository_test.dart",
"repo_id": "io_flip",
"token_count": 23406
} | 879 |
const characters = [
'Dash',
'Sparky',
'Android',
'Dino',
];
const classes = [
'Captain',
'Chef',
'Cowboy',
'Fairy',
'King',
'Mage',
'Magician',
'Pilot',
'Pirate',
'Queen',
'Royalty',
'Sailor',
'Viking',
'Wizard',
];
const powers = [
'Astrology',
'Bouncing',
'Break Dancing',
... | io_flip/api/prompts.dart/0 | {
"file_path": "io_flip/api/prompts.dart",
"repo_id": "io_flip",
"token_count": 558
} | 880 |
import 'dart:async';
import 'dart:io';
import 'package:dart_frog/dart_frog.dart';
import 'package:logging/logging.dart';
import 'package:match_repository/match_repository.dart';
FutureOr<Response> onRequest(RequestContext context, String matchId) async {
if (context.request.method == HttpMethod.patch) {
final m... | io_flip/api/routes/game/matches/[matchId]/result.dart/0 | {
"file_path": "io_flip/api/routes/game/matches/[matchId]/result.dart",
"repo_id": "io_flip",
"token_count": 369
} | 881 |
// ignore_for_file: lines_longer_than_80_chars
import 'dart:io';
import 'package:cards_repository/cards_repository.dart';
import 'package:dart_frog/dart_frog.dart';
import 'package:game_domain/game_domain.dart';
import 'package:jwt_middleware/jwt_middleware.dart';
import 'package:logging/logging.dart';
import 'packag... | io_flip/api/test/routes/game/matches/[matchId]/connect_test.dart/0 | {
"file_path": "io_flip/api/test/routes/game/matches/[matchId]/connect_test.dart",
"repo_id": "io_flip",
"token_count": 2308
} | 882 |
/// Dart tool that feed data into the Database
library data_loader;
export 'src/character_folder_validator.dart';
export 'src/check_missing_descriptions_loader.dart';
export 'src/check_missing_image_tables.dart';
export 'src/create_image_lookup.dart';
export 'src/data_loader.dart';
export 'src/descriptions_loader.dart... | io_flip/api/tools/data_loader/lib/data_loader.dart/0 | {
"file_path": "io_flip/api/tools/data_loader/lib/data_loader.dart",
"repo_id": "io_flip",
"token_count": 135
} | 883 |
import 'dart:async';
import 'dart:developer';
import 'package:bloc/bloc.dart';
import 'package:flutter/widgets.dart';
class AppBlocObserver extends BlocObserver {
const AppBlocObserver();
@override
void onChange(BlocBase<dynamic> bloc, Change<dynamic> change) {
super.onChange(bloc, change);
log('onChan... | io_flip/flop/lib/bootstrap.dart/0 | {
"file_path": "io_flip/flop/lib/bootstrap.dart",
"repo_id": "io_flip",
"token_count": 342
} | 884 |
import 'package:api_client/api_client.dart';
import 'package:authentication_repository/authentication_repository.dart';
import 'package:config_repository/config_repository.dart';
import 'package:connection_repository/connection_repository.dart';
import 'package:flame/cache.dart';
import 'package:flutter/material.dart';... | io_flip/lib/app/view/app.dart/0 | {
"file_path": "io_flip/lib/app/view/app.dart",
"repo_id": "io_flip",
"token_count": 2241
} | 885 |
part of 'draft_bloc.dart';
abstract class DraftEvent extends Equatable {
const DraftEvent();
}
class DeckRequested extends DraftEvent {
const DeckRequested(this.prompts);
final Prompt prompts;
@override
List<Object> get props => [];
}
class PreviousCard extends DraftEvent {
const PreviousCard();
@ov... | io_flip/lib/draft/bloc/draft_event.dart/0 | {
"file_path": "io_flip/lib/draft/bloc/draft_event.dart",
"repo_id": "io_flip",
"token_count": 395
} | 886 |
import 'package:collection/collection.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart' hide Card;
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:game_domain/game_domain.dart' as game;
import 'package:game_domain/game_domain.dart';
import 'package:go_router/go_route... | io_flip/lib/game/views/game_view.dart/0 | {
"file_path": "io_flip/lib/game/views/game_view.dart",
"repo_id": "io_flip",
"token_count": 14990
} | 887 |
import 'package:flutter/material.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
import 'package:styled_text/styled_text.dart';
class HowToPlayStyledText extends StatelessWidget {
const HowToPlayStyledText(this.text, {super.key});
final String text;
@override
Widget build(BuildContext context) {
retu... | io_flip/lib/how_to_play/widgets/how_to_play_styled_text.dart/0 | {
"file_path": "io_flip/lib/how_to_play/widgets/how_to_play_styled_text.dart",
"repo_id": "io_flip",
"token_count": 460
} | 888 |
import 'package:api_client/api_client.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:io_flip/leaderboard/initials_form/initials_form.dart';
import 'package:io_flip/share/share.dart';
class InitialsForm extends StatelessWidget {
const InitialsForm({
... | io_flip/lib/leaderboard/initials_form/view/initials_form.dart/0 | {
"file_path": "io_flip/lib/leaderboard/initials_form/view/initials_form.dart",
"repo_id": "io_flip",
"token_count": 311
} | 889 |
export 'bloc/match_making_bloc.dart';
export 'views/views.dart';
| io_flip/lib/match_making/match_making.dart/0 | {
"file_path": "io_flip/lib/match_making/match_making.dart",
"repo_id": "io_flip",
"token_count": 26
} | 890 |
export 'card_master.dart';
export 'snap_item_scroll_physics.dart';
| io_flip/lib/prompt/widgets/widgets.dart/0 | {
"file_path": "io_flip/lib/prompt/widgets/widgets.dart",
"repo_id": "io_flip",
"token_count": 25
} | 891 |
part of 'download_bloc.dart';
enum DownloadStatus {
idle,
loading,
completed,
failure,
}
class DownloadState extends Equatable {
const DownloadState({
this.status = DownloadStatus.idle,
});
final DownloadStatus status;
DownloadState copyWith({
DownloadStatus? status,
}) {
return Downlo... | io_flip/lib/share/bloc/download_state.dart/0 | {
"file_path": "io_flip/lib/share/bloc/download_state.dart",
"repo_id": "io_flip",
"token_count": 134
} | 892 |
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
abstract class ExternalLinks {
static const String googleIO = 'https://io.google/2023/';
static const String privacyPolicy = 'https://policies.google.com/privacy';
static const String termsOfService = 'https://policies.googl... | io_flip/lib/utils/external_links.dart/0 | {
"file_path": "io_flip/lib/utils/external_links.dart",
"repo_id": "io_flip",
"token_count": 293
} | 893 |
export 'game_resource.dart';
export 'leaderboard_resource.dart';
export 'prompt_resource.dart';
export 'scripts_resource.dart';
export 'share_resource.dart';
| io_flip/packages/api_client/lib/src/resources/resources.dart/0 | {
"file_path": "io_flip/packages/api_client/lib/src/resources/resources.dart",
"repo_id": "io_flip",
"token_count": 52
} | 894 |
export 'user.dart';
| io_flip/packages/authentication_repository/lib/src/models/models.dart/0 | {
"file_path": "io_flip/packages/authentication_repository/lib/src/models/models.dart",
"repo_id": "io_flip",
"token_count": 8
} | 895 |
import 'package:flutter/material.dart';
import 'package:gallery/story_scaffold.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
class AppColorsStory extends StatelessWidget {
const AppColorsStory({super.key});
@override
Widget build(BuildContext context) {
const colorItems = [
_ColorItem(name: 'gol... | io_flip/packages/io_flip_ui/gallery/lib/colors/app_colors_story.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/gallery/lib/colors/app_colors_story.dart",
"repo_id": "io_flip",
"token_count": 6899
} | 896 |
import 'package:flutter/material.dart';
import 'package:gallery/story_scaffold.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
class GameCardStory extends StatelessWidget {
const GameCardStory({
required this.name,
required this.description,
required this.isRare,
super.key,
});
final String ... | io_flip/packages/io_flip_ui/gallery/lib/widgets/game_card_story.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/gallery/lib/widgets/game_card_story.dart",
"repo_id": "io_flip",
"token_count": 1423
} | 897 |
/// UI Toolkit for IO FLIP.
library io_flip_ui;
export 'src/animations/animations.dart';
export 'src/layout/layout.dart';
export 'src/theme/theme.dart';
export 'src/ui_sound_adapter.dart';
export 'src/utils/utils.dart';
export 'src/widgets/widgets.dart';
| io_flip/packages/io_flip_ui/lib/io_flip_ui.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/lib/io_flip_ui.dart",
"repo_id": "io_flip",
"token_count": 99
} | 898 |
/// Namespace for Default IO FLIP Breakpoints
abstract class IoFlipBreakpoints {
/// Max width for a medium layout.
static const double medium = 1150;
/// Max width for a small layout.
static const double small = 740;
}
| io_flip/packages/io_flip_ui/lib/src/layout/breakpoints.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/lib/src/layout/breakpoints.dart",
"repo_id": "io_flip",
"token_count": 63
} | 899 |
import 'package:flame/cache.dart';
import 'package:flame/extensions.dart';
import 'package:flame/widgets.dart';
import 'package:flutter/material.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
import 'package:provider/provider.dart';
/// {@template damage_receive}
/// A widget that renders a [SpriteAnimation] for ... | io_flip/packages/io_flip_ui/lib/src/widgets/damages/damage_receive.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/lib/src/widgets/damages/damage_receive.dart",
"repo_id": "io_flip",
"token_count": 2133
} | 900 |
// ignore_for_file: avoid_print
import 'package:flutter/widgets.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
/// Signature for the individual builders (`small`, `large`).
typedef ResponsiveLayoutWidgetBuilder = Widget Function(BuildContext, Widget?);
/// {@template responsive_layout_builder}
/// A wrapper aro... | io_flip/packages/io_flip_ui/lib/src/widgets/responsive_layout.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/lib/src/widgets/responsive_layout.dart",
"repo_id": "io_flip",
"token_count": 432
} | 901 |
import 'package:flame/cache.dart';
import 'package:flame/widgets.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
import 'package:mocktail/mocktail.dart';
import 'package:provider/provider.dart';
class _MockImages extends Mock ... | io_flip/packages/io_flip_ui/test/src/widgets/card_landing_puff_test.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/test/src/widgets/card_landing_puff_test.dart",
"repo_id": "io_flip",
"token_count": 434
} | 902 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
import 'package:provider/provider.dart';
void main() {
group('IoFlipErrorView', () {
testWidgets('renders correctly', (tester) async... | io_flip/packages/io_flip_ui/test/src/widgets/io_flip_error_view_test.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/test/src/widgets/io_flip_error_view_test.dart",
"repo_id": "io_flip",
"token_count": 621
} | 903 |
import 'package:equatable/equatable.dart';
/// {@template draft_match}
/// A class representing a partially-formed match between a host and a guest.
/// {@endtemplate}
class DraftMatch extends Equatable {
/// {@macro draft_match}
const DraftMatch({
required this.id,
required this.host,
this.guest,
... | io_flip/packages/match_maker_repository/lib/src/models/draft_match.dart/0 | {
"file_path": "io_flip/packages/match_maker_repository/lib/src/models/draft_match.dart",
"repo_id": "io_flip",
"token_count": 448
} | 904 |
import 'dart:async';
import 'package:audioplayers/audioplayers.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_flip/audio/audio_controller.dart';
import 'package:io_flip/gen/assets.gen.dart';
import 'package:io_flip/settings/settings.dart';
import 'pack... | io_flip/test/audio/audio_controller_test.dart/0 | {
"file_path": "io_flip/test/audio/audio_controller_test.dart",
"repo_id": "io_flip",
"token_count": 8557
} | 905 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter_test/flutter_test.dart';
import 'package:game_domain/game_domain.dart';
import 'package:go_router/go_router.dart';
import 'package:io_flip/game/game.dart';
import 'package:mocktail/mocktail.dart';
import '../../helpers/pump_app.dart';
class _MockG... | io_flip/test/game/views/game_page_test.dart/0 | {
"file_path": "io_flip/test/game/views/game_page_test.dart",
"repo_id": "io_flip",
"token_count": 591
} | 906 |
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_flip/info/info.dart';
import '../../helpers/helpers.dart';
void main() {
group('InfoView', () {
Widget buildSubject() => const Scaffold(body: InfoView());
testWidgets('renders correct texts', (tester... | io_flip/test/info/view/info_view_test.dart/0 | {
"file_path": "io_flip/test/info/view/info_view_test.dart",
"repo_id": "io_flip",
"token_count": 423
} | 907 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:game_domain/game_domain.dart';
import 'package:go_router/go_router.dart';
import 'package:io_flip/match_making/match_making.dart';
import 'package:io_flip/settings/setti... | io_flip/test/match_making/views/match_making_page_test.dart/0 | {
"file_path": "io_flip/test/match_making/views/match_making_page_test.dart",
"repo_id": "io_flip",
"token_count": 1636
} | 908 |
import 'package:flutter_test/flutter_test.dart';
import 'package:io_flip/settings/persistence/persistence.dart';
void main() {
group('MemoryOnlySettingsPersistence', () {
test('getMusicOn', () async {
final persistence = MemoryOnlySettingsPersistence()..musicOn = false;
final value = await persisten... | io_flip/test/settings/persistence/memory_only_settings_persistence_test.dart/0 | {
"file_path": "io_flip/test/settings/persistence/memory_only_settings_persistence_test.dart",
"repo_id": "io_flip",
"token_count": 622
} | 909 |
---
sidebar_position: 2
description: Learn how to work with translations in your Flutter news application.
---
# Working with translations
This project relies on [flutter_localizations](https://api.flutter.dev/flutter/flutter_localizations/flutter_localizations-library.html) and follows the [official internationaliza... | news_toolkit/docs/docs/flutter_development/translations.md/0 | {
"file_path": "news_toolkit/docs/docs/flutter_development/translations.md",
"repo_id": "news_toolkit",
"token_count": 908
} | 910 |
---
sidebar_position: 1
description: Learn how to run your news API.
---
# Running the API
## Overview
The Flutter News Example API is written in [Dart](https://dart.dev) and uses [Dart Frog](https://dartfrog.vgv.dev).
### Running the API server locally
To launch the server locally, run the following command from ... | news_toolkit/docs/docs/server_development/running_the_api.md/0 | {
"file_path": "news_toolkit/docs/docs/server_development/running_the_api.md",
"repo_id": "news_toolkit",
"token_count": 707
} | 911 |
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == ... | news_toolkit/flutter_news_example/android/app/build.gradle/0 | {
"file_path": "news_toolkit/flutter_news_example/android/app/build.gradle",
"repo_id": "news_toolkit",
"token_count": 1523
} | 912 |
/// Flutter News Example API Client-Side Library
library client;
export 'package:news_blocks/news_blocks.dart'
show
BlockAction,
BlockActionType,
DividerHorizontalBlock,
ImageBlock,
NewsBlock,
NewsBlocksConverter,
PostCategory,
PostGridGroupBlock,
... | news_toolkit/flutter_news_example/api/lib/client.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/lib/client.dart",
"repo_id": "news_toolkit",
"token_count": 616
} | 913 |
part of 'in_memory_news_data_source.dart';
/// List of available subscriptions.
const subscriptions = <Subscription>[
Subscription(
id: 'dd339fda-33e9-49d0-9eb5-0ccb77eb760f',
name: SubscriptionPlan.premium,
cost: SubscriptionCost(
annual: 16200,
monthly: 1499,
),
benefits: [
'U... | news_toolkit/flutter_news_example/api/lib/src/data/static_news_data.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/lib/src/data/static_news_data.dart",
"repo_id": "news_toolkit",
"token_count": 23543
} | 914 |
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'related_articles_response.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
RelatedArticlesResponse _$RelatedArticlesRespons... | news_toolkit/flutter_news_example/api/lib/src/models/related_articles_response/related_articles_response.g.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/lib/src/models/related_articles_response/related_articles_response.g.dart",
"repo_id": "news_toolkit",
"token_count": 255
} | 915 |
import 'package:json_annotation/json_annotation.dart';
import 'package:news_blocks/news_blocks.dart';
/// {@template block_action_converter}
/// A [JsonConverter] that supports (de)serializing a [BlockAction].
/// {@endtemplate}
class BlockActionConverter
implements JsonConverter<BlockAction?, Map<String, dynamic>... | news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/block_action_converter.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/block_action_converter.dart",
"repo_id": "news_toolkit",
"token_count": 228
} | 916 |
import 'package:json_annotation/json_annotation.dart';
import 'package:news_blocks/news_blocks.dart';
part 'post_grid_tile_block.g.dart';
/// {@template post_grid_tile_block}
/// A block which represents a post grid tile block.
///
/// Multiple [PostGridTileBlock] blocks form a [PostGridGroupBlock].
/// https://www.f... | news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/post_grid_tile_block.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/post_grid_tile_block.dart",
"repo_id": "news_toolkit",
"token_count": 801
} | 917 |
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:news_blocks/news_blocks.dart';
part 'spacer_block.g.dart';
/// The spacing of [SpacerBlock].
enum Spacing {
/// The extra small spacing.
extraSmall,
/// The small spacing.
small,
/// The mediu... | news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/spacer_block.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/spacer_block.dart",
"repo_id": "news_toolkit",
"token_count": 461
} | 918 |
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:news_blocks/news_blocks.dart';
part 'video_introduction_block.g.dart';
/// {@template video_introduction_block}
/// A block which represents a video introduction.
/// https://www.figma.com/file/RajSN6YbRq... | news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/video_introduction_block.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/video_introduction_block.dart",
"repo_id": "news_toolkit",
"token_count": 437
} | 919 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.