text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/src/base/logger.dart';
import 'package:flutter_tools/src/base/os.da... | flutter/packages/flutter_tools/test/general.shard/base/os_utils_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/base/os_utils_test.dart",
"repo_id": "flutter",
"token_count": 574
} | 771 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import '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/android_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/build_system/targets/android_test.dart",
"repo_id": "flutter",
"token_count": 8271
} | 772 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:typed_data';
import 'package:args/args.dart';
import 'package:file/memory.dart';
import 'package:file_testing/file_testing.dart';
import 'pac... | flutter/packages/flutter_tools/test/general.shard/bundle_builder_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/bundle_builder_test.dart",
"repo_id": "flutter",
"token_count": 3741
} | 773 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert' show jsonEncode;
import 'dart:io' show Directory, File;
import 'package:coverage/coverage.dart' show HitMap;
import 'package:file/me... | flutter/packages/flutter_tools/test/general.shard/coverage_collector_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/coverage_collector_test.dart",
"repo_id": "flutter",
"token_count": 14236
} | 774 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:io' as io;
import 'package:flutter_tools/src/base/io.dart';
import 'package:flutter_tools/src/device_port_forwarder.dart';
import 'package:tes... | flutter/packages/flutter_tools/test/general.shard/device_port_forwarder_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/device_port_forwarder_test.dart",
"repo_id": "flutter",
"token_count": 350
} | 775 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:file/memory.dart';
import 'package:flutter_tools/src/application_package.dart';
import 'package:flutter_tools/src/art... | flutter/packages/flutter_tools/test/general.shard/fuchsia/fuchsia_device_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/fuchsia/fuchsia_device_test.dart",
"repo_id": "flutter",
"token_count": 15040
} | 776 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package: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/ios/ios_device_install_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/ios/ios_device_install_test.dart",
"repo_id": "flutter",
"token_count": 5960
} | 777 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file/file.dart';
import 'package:flutter_tools/src/base/logger.dart';
import 'package:flutter_tools/src/isolated/native_assets/native_asset... | flutter/packages/flutter_tools/test/general.shard/isolated/fake_native_assets_build_runner.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/isolated/fake_native_assets_build_runner.dart",
"repo_id": "flutter",
"token_count": 1291
} | 778 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file/memory.dart';
import 'package:flutter_tools/src/application_package.dart';
import 'package:flutter_tools/src/base/logger.dart';
import... | flutter/packages/flutter_tools/test/general.shard/macos/macos_ipad_device_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/macos/macos_ipad_device_test.dart",
"repo_id": "flutter",
"token_count": 2258
} | 779 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:typed_data';
import 'package:fake_async/fake_async.dart';
import 'package:flutter_tools/src/proxied_devices/debounce_dat... | flutter/packages/flutter_tools/test/general.shard/proxied_devices/debounce_data_stream_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/proxied_devices/debounce_data_stream_test.dart",
"repo_id": "flutter",
"token_count": 2246
} | 780 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:flutter_tools/src/base/logger.dart';
import 'package:flutter_tools/src/base/platform.dart';
import 'package:flutter_t... | flutter/packages/flutter_tools/test/general.shard/runner/target_devices_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/runner/target_devices_test.dart",
"repo_id": "flutter",
"token_count": 45711
} | 781 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:fake_async/fake_async.dart';
import 'package:flutter_tools/src/base/io.dart' as io;
import 'package:flutter_tools/src... | flutter/packages/flutter_tools/test/general.shard/vmservice_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/vmservice_test.dart",
"repo_id": "flutter",
"token_count": 12381
} | 782 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file/file.dart';
import 'package:file/memory.dart';
import 'package:flutter_tools/src/web_template.dart';
import '../src/common.dart';
co... | flutter/packages/flutter_tools/test/general.shard/web_template_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/web_template_test.dart",
"repo_id": "flutter",
"token_count": 3314
} | 783 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file/file.dart';
import 'package:flutter_tools/src/base/io.dart';
import 'package:flutter_tools/src/globals.dart' as globals;
import '../s... | flutter/packages/flutter_tools/test/integration.shard/analyze_all_templates_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/analyze_all_templates_test.dart",
"repo_id": "flutter",
"token_count": 503
} | 784 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:file/file.dart';
import '../src/common.dart';
import 'test_data/background_project.dart';
import 'test_driver.dart';... | flutter/packages/flutter_tools/test/integration.shard/background_isolate_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/background_isolate_test.dart",
"repo_id": "flutter",
"token_count": 1055
} | 785 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file/file.dart';
import '../src/common.dart';
import 'test_data/stepping_project.dart';
import 'test_driver.dart';
import 'test_utils.dart... | flutter/packages/flutter_tools/test/integration.shard/debugger_stepping_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/debugger_stepping_test.dart",
"repo_id": "flutter",
"token_count": 564
} | 786 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:file/file.dart';
import 'package:flutter_tools/src/base/io.dart';
import 'package:vm_service/vm_service.dart';
import... | flutter/packages/flutter_tools/test/integration.shard/flutter_run_with_error_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/flutter_run_with_error_test.dart",
"repo_id": "flutter",
"token_count": 1163
} | 787 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'project.dart';
class BasicProject extends Project {
@override
final String pubspec = '''
name: test
environment:
sdk: '>=3.2.0-0 <4.0... | flutter/packages/flutter_tools/test/integration.shard/test_data/basic_project.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/test_data/basic_project.dart",
"repo_id": "flutter",
"token_count": 1741
} | 788 |
// 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 HotReloadProject extends Project {
@override
final String pubspec = '''
name: test
envir... | flutter/packages/flutter_tools/test/integration.shard/test_data/stateless_stateful_project.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/test_data/stateless_stateful_project.dart",
"repo_id": "flutter",
"token_count": 706
} | 789 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_tools/src/android/android_builder.dart';
import 'package:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/sr... | flutter/packages/flutter_tools/test/src/android_common.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/src/android_common.dart",
"repo_id": "flutter",
"token_count": 609
} | 790 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_tools/src/dart/pub.dart';
import 'package:flutter_tools/src/project.dart';
class ThrowingPub implements Pub {
@override
Future... | flutter/packages/flutter_tools/test/src/throwing_pub.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/src/throwing_pub.dart",
"repo_id": "flutter",
"token_count": 473
} | 791 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:ui_web' as ui_web;
import 'utils.dart';
export 'dart:ui_web'
show
BrowserPlatformLocation,
EventListener,
HashUr... | flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart/0 | {
"file_path": "flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart",
"repo_id": "flutter",
"token_count": 988
} | 792 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:core';
import 'dart:io';
/// Determines the level of logging.
///
/// Verbosity is increasing from one (none) to five (fine). The sixth level... | flutter/packages/fuchsia_remote_debug_protocol/lib/src/common/logging.dart/0 | {
"file_path": "flutter/packages/fuchsia_remote_debug_protocol/lib/src/common/logging.dart",
"repo_id": "flutter",
"token_count": 1398
} | 793 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility that Flutter provides. ... | flutter/packages/integration_test/example/integration_test/_example_test_io.dart/0 | {
"file_path": "flutter/packages/integration_test/example/integration_test/_example_test_io.dart",
"repo_id": "flutter",
"token_count": 514
} | 794 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_driver/flutter_driver.dart';
import 'package:integration_test/integration_test_driver_extended.dart';
Future<void> main() async {
... | flutter/packages/integration_test/example/test_driver/extended_integration_test.dart/0 | {
"file_path": "flutter/packages/integration_test/example/test_driver/extended_integration_test.dart",
"repo_id": "flutter",
"token_count": 350
} | 795 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import '../common.dart';
/// The dart:html implementation of [CallbackManager].
///
/// See also:
///
/// * `_callback_io.dart`, wh... | flutter/packages/integration_test/lib/src/_callback_web.dart/0 | {
"file_path": "flutter/packages/integration_test/lib/src/_callback_web.dart",
"repo_id": "flutter",
"token_count": 2168
} | 796 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@Tags(<String>['web'])
library;
import 'dart:js' as js;
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_tes... | flutter/packages/integration_test/test/web_extension_test.dart/0 | {
"file_path": "flutter/packages/integration_test/test/web_extension_test.dart",
"repo_id": "flutter",
"token_count": 242
} | 797 |
// 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/material.dart';
/// A base class for an analog clock hand-drawing widget.
///
/// This only draws one hand of the analog clock. P... | flutter_clock/analog_clock/lib/hand.dart/0 | {
"file_path": "flutter_clock/analog_clock/lib/hand.dart",
"repo_id": "flutter_clock",
"token_count": 303
} | 798 |
name: digital_clock
description: Digital clock.
version: 1.0.0+1
environment:
sdk: ">=2.1.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
flutter_clock_helper:
path: ../flutter_clock_helper
cupertino_icons: ^0.1.2
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true... | flutter_clock/digital_clock/pubspec.yaml/0 | {
"file_path": "flutter_clock/digital_clock/pubspec.yaml",
"repo_id": "flutter_clock",
"token_count": 188
} | 799 |
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-pl... | gallery/android/fastlane/Fastfile/0 | {
"file_path": "gallery/android/fastlane/Fastfile",
"repo_id": "gallery",
"token_count": 442
} | 800 |
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
| gallery/android/gradle.properties/0 | {
"file_path": "gallery/android/gradle.properties",
"repo_id": "gallery",
"token_count": 31
} | 801 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart' show timeDilation;
import 'package:flutter/services.dart... | gallery/lib/data/gallery_options.dart/0 | {
"file_path": "gallery/lib/data/gallery_options.dart",
"repo_id": "gallery",
"token_count": 2803
} | 802 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/cupertino.dart';
import 'package:flutter_gen/gen_l10n/gallery_localizations.dart';
// BEGIN cupertinoTextFieldDemo
class CupertinoTe... | gallery/lib/demos/cupertino/cupertino_text_field_demo.dart/0 | {
"file_path": "gallery/lib/demos/cupertino/cupertino_text_field_demo.dart",
"repo_id": "gallery",
"token_count": 1586
} | 803 |
export 'package:gallery/demos/material/app_bar_demo.dart';
export 'package:gallery/demos/material/banner_demo.dart';
export 'package:gallery/demos/material/bottom_app_bar_demo.dart';
export 'package:gallery/demos/material/bottom_navigation_demo.dart';
export 'package:gallery/demos/material/bottom_sheet_demo.dart';
expo... | gallery/lib/demos/material/material_demos.dart/0 | {
"file_path": "gallery/lib/demos/material/material_demos.dart",
"repo_id": "gallery",
"token_count": 516
} | 804 |
// Copyright 2019 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:animations/animations.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/gallery_localizations.dart';
// ... | gallery/lib/demos/reference/motion_demo_shared_x_axis_transition.dart/0 | {
"file_path": "gallery/lib/demos/reference/motion_demo_shared_x_axis_transition.dart",
"repo_id": "gallery",
"token_count": 3989
} | 805 |
{
"loading": "Բեռնում",
"deselect": "Ապընտրել",
"select": "Ընտրել",
"selectable": "Կարելի է ընտրել (երկար սեղմել)",
"selected": "Ընտրված է",
"demo": "Դեմո",
"bottomAppBar": "Հավելվածների ստորին գոտի",
"notSelected": "Ընտրված չէ",
"demoCupertinoSearchTextFieldTitle": "Որոնման տեքստի վանդակ",
"demoCup... | gallery/lib/l10n/intl_hy.arb/0 | {
"file_path": "gallery/lib/l10n/intl_hy.arb",
"repo_id": "gallery",
"token_count": 55676
} | 806 |
{
"loading": "Ачаалж байна",
"deselect": "Сонголтыг цуцлах",
"select": "Сонгох",
"selectable": "Сонгох боломжтой (удаан дарах)",
"selected": "Сонгосон",
"demo": "Демо",
"bottomAppBar": "Доод талын аппын талбар",
"notSelected": "Сонгоогүй",
"demoCupertinoSearchTextFieldTitle": "Хайлтын текстийн талбар"... | gallery/lib/l10n/intl_mn.arb/0 | {
"file_path": "gallery/lib/l10n/intl_mn.arb",
"repo_id": "gallery",
"token_count": 41134
} | 807 |
{
"loading": "Načítava sa",
"deselect": "Zrušiť výber",
"select": "Vybrať",
"selectable": "Môžete vybrať (dlhým stlačením)",
"selected": "Vybrané",
"demo": "Ukážka",
"bottomAppBar": "Dolný panel aplikácií",
"notSelected": "Nevybrané",
"demoCupertinoSearchTextFieldTitle": "Textové pole vyhľadávania",
... | gallery/lib/l10n/intl_sk.arb/0 | {
"file_path": "gallery/lib/l10n/intl_sk.arb",
"repo_id": "gallery",
"token_count": 23368
} | 808 |
{
"loading": "正在加载",
"deselect": "取消选择",
"select": "选择",
"selectable": "可选择(长按)",
"selected": "已选择",
"demo": "演示",
"bottomAppBar": "底部应用栏",
"notSelected": "未选择",
"demoCupertinoSearchTextFieldTitle": "搜索文本字段",
"demoCupertinoPicker": "选择器",
"demoCupertinoSearchTextFieldSubtitle": "iOS 样式的搜索文本字段",
... | gallery/lib/l10n/intl_zh.arb/0 | {
"file_path": "gallery/lib/l10n/intl_zh.arb",
"repo_id": "gallery",
"token_count": 25854
} | 809 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:collection';
import 'package:collection/collection.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/gallery_l... | gallery/lib/pages/settings.dart/0 | {
"file_path": "gallery/lib/pages/settings.dart",
"repo_id": "gallery",
"token_count": 6483
} | 810 |
// 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/crane/model/destination.dart/0 | {
"file_path": "gallery/lib/studies/crane/model/destination.dart",
"repo_id": "gallery",
"token_count": 1005
} | 811 |
import 'package:flutter/material.dart';
import 'package:gallery/layout/adaptive.dart';
import 'package:gallery/studies/reply/mail_card_preview.dart';
import 'package:gallery/studies/reply/model/email_model.dart';
import 'package:gallery/studies/reply/model/email_store.dart';
import 'package:provider/provider.dart';
cl... | gallery/lib/studies/reply/mailbox_body.dart/0 | {
"file_path": "gallery/lib/studies/reply/mailbox_body.dart",
"repo_id": "gallery",
"token_count": 2739
} | 812 |
// 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_gen/gen_l10n/gallery_localizations.dart';
import 'package:gallery/studies/shrine/model/product.dart';
class ProductsRepository {
st... | gallery/lib/studies/shrine/model/products_repository.dart/0 | {
"file_path": "gallery/lib/studies/shrine/model/products_repository.dart",
"repo_id": "gallery",
"token_count": 5034
} | 813 |
//
// Generated file. Do not edit.
//
import FlutterMacOS
import Foundation
import path_provider_foundation
import url_launcher_macos
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
UrlLauncherPlugin.register... | gallery/macos/Flutter/GeneratedPluginRegistrant.swift/0 | {
"file_path": "gallery/macos/Flutter/GeneratedPluginRegistrant.swift",
"repo_id": "gallery",
"token_count": 115
} | 814 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:test/test.dart';
import '../tool/l10n_cli/l10n_cli.dart';
import 'utils.dart';
void main() {
test('verify intl_en_US.xml is up to date', (... | gallery/test/l10n_test.dart/0 | {
"file_path": "gallery/test/l10n_test.dart",
"repo_id": "gallery",
"token_count": 231
} | 815 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:gallery/main.dart';
import 'package:gallery/studies/... | gallery/test_goldens/shrine_test.dart/0 | {
"file_path": "gallery/test_goldens/shrine_test.dart",
"repo_id": "gallery",
"token_count": 940
} | 816 |
# Codeviewer
A command-line application to highlight dart source code.
## Overview
Code segments are highlighted before the app is compiled.
This is done because the highlighting process can take 300ms to finish, creating
a noticeable delay when the demo switches to code page.
The highlighter takes all files in the... | gallery/tool/codeviewer_cli/README.md/0 | {
"file_path": "gallery/tool/codeviewer_cli/README.md",
"repo_id": "gallery",
"token_count": 539
} | 817 |
{
"eslint.workingDirectories": [
"functions"
]
} | io_flip/.vscode/settings.json/0 | {
"file_path": "io_flip/.vscode/settings.json",
"repo_id": "io_flip",
"token_count": 26
} | 818 |
import 'package:api/templates/templates.dart';
import 'package:mustache_template/mustache_template.dart';
const _template = '''
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/png" href="{{{meta.favIconUrl}}}" />
<meta name="viewport" content="width=device-wi... | io_flip/api/lib/templates/share_template.dart/0 | {
"file_path": "io_flip/api/lib/templates/share_template.dart",
"repo_id": "io_flip",
"token_count": 2424
} | 819 |
/// Renders a card based on its metadata and illustration
library card_renderer;
export 'src/card_renderer.dart';
export 'src/rainbow_filter.dart';
| io_flip/api/packages/card_renderer/lib/card_renderer.dart/0 | {
"file_path": "io_flip/api/packages/card_renderer/lib/card_renderer.dart",
"repo_id": "io_flip",
"token_count": 46
} | 820 |
include: package:very_good_analysis/analysis_options.3.1.0.yaml
| io_flip/api/packages/config_repository/analysis_options.yaml/0 | {
"file_path": "io_flip/api/packages/config_repository/analysis_options.yaml",
"repo_id": "io_flip",
"token_count": 23
} | 821 |
include: package:very_good_analysis/analysis_options.3.1.0.yaml
| io_flip/api/packages/encryption_middleware/analysis_options.yaml/0 | {
"file_path": "io_flip/api/packages/encryption_middleware/analysis_options.yaml",
"repo_id": "io_flip",
"token_count": 23
} | 822 |
/// Domain classes for the game
library game_domain;
export 'src/keys.dart';
export 'src/models/models.dart';
export 'src/solvers/solvers.dart';
| io_flip/api/packages/game_domain/lib/game_domain.dart/0 | {
"file_path": "io_flip/api/packages/game_domain/lib/game_domain.dart",
"repo_id": "io_flip",
"token_count": 50
} | 823 |
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'prompt.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
Prompt _$PromptFromJson(Map<String, dynamic> json) => Prompt(
... | io_flip/api/packages/game_domain/lib/src/models/prompt.g.dart/0 | {
"file_path": "io_flip/api/packages/game_domain/lib/src/models/prompt.g.dart",
"repo_id": "io_flip",
"token_count": 167
} | 824 |
// ignore_for_file: prefer_const_constructors
import 'package:game_domain/game_domain.dart';
import 'package:test/test.dart';
void main() {
group('PromptTerm', () {
test('can be instantiated', () {
expect(
PromptTerm(
id: '',
term: '',
type: PromptTermType.character,
... | io_flip/api/packages/game_domain/test/src/models/prompt_term_test.dart/0 | {
"file_path": "io_flip/api/packages/game_domain/test/src/models/prompt_term_test.dart",
"repo_id": "io_flip",
"token_count": 1512
} | 825 |
include: package:very_good_analysis/analysis_options.4.0.0.yaml
| io_flip/api/packages/image_model_repository/analysis_options.yaml/0 | {
"file_path": "io_flip/api/packages/image_model_repository/analysis_options.yaml",
"repo_id": "io_flip",
"token_count": 23
} | 826 |
// ignore_for_file: prefer_const_constructors
import 'package:db_client/db_client.dart';
import 'package:game_domain/game_domain.dart';
import 'package:leaderboard_repository/leaderboard_repository.dart';
import 'package:mocktail/mocktail.dart';
import 'package:test/test.dart';
class _MockDbClient extends Mock impleme... | io_flip/api/packages/leaderboard_repository/test/src/leaderboard_repository_test.dart/0 | {
"file_path": "io_flip/api/packages/leaderboard_repository/test/src/leaderboard_repository_test.dart",
"repo_id": "io_flip",
"token_count": 4526
} | 827 |
import 'dart:async';
import 'dart:io';
import 'package:cards_repository/cards_repository.dart';
import 'package:dart_frog/dart_frog.dart';
FutureOr<Response> onRequest(RequestContext context, String deckId) {
if (context.request.method == HttpMethod.get) {
return _getDeck(context, deckId);
}
return Response... | io_flip/api/routes/game/decks/[deckId].dart/0 | {
"file_path": "io_flip/api/routes/game/decks/[deckId].dart",
"repo_id": "io_flip",
"token_count": 226
} | 828 |
import 'dart:convert';
import 'dart:io';
import 'package:api/game_url.dart';
import 'package:api/templates/templates.dart';
import 'package:cards_repository/cards_repository.dart';
import 'package:dart_frog/dart_frog.dart';
import 'package:leaderboard_repository/leaderboard_repository.dart';
Future<Response> onReques... | io_flip/api/routes/public/share.dart/0 | {
"file_path": "io_flip/api/routes/public/share.dart",
"repo_id": "io_flip",
"token_count": 851
} | 829 |
// ignore_for_file: lines_longer_than_80_chars
import 'dart:async';
import 'dart:convert';
import 'package:dart_frog/dart_frog.dart';
import 'package:dart_frog_web_socket/dart_frog_web_socket.dart';
import 'package:game_domain/game_domain.dart';
import 'package:jwt_middleware/jwt_middleware.dart';
import 'package:mat... | io_flip/api/test/routes/public/connect_test.dart/0 | {
"file_path": "io_flip/api/test/routes/public/connect_test.dart",
"repo_id": "io_flip",
"token_count": 5766
} | 830 |
// ignore_for_file: avoid_print
import 'dart:io';
import 'dart:math' as math;
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.
/// {@endtemplate}
class NormalizeImageNames {
/// {... | io_flip/api/tools/data_loader/lib/src/normalize_file_names.dart/0 | {
"file_path": "io_flip/api/tools/data_loader/lib/src/normalize_file_names.dart",
"repo_id": "io_flip",
"token_count": 797
} | 831 |
export 'flop_page.dart';
export 'flop_view.dart';
| io_flip/flop/lib/flop/view/view.dart/0 | {
"file_path": "io_flip/flop/lib/flop/view/view.dart",
"repo_id": "io_flip",
"token_count": 22
} | 832 |
import * as admin from 'firebase-admin';
import * as functions from 'firebase-functions';
admin.initializeApp(functions.config().firebase);
export {deleteUserData} from './deleteUserData';
export {updateLeaderboard} from './updateLeaderboard';
| io_flip/functions/src/index.ts/0 | {
"file_path": "io_flip/functions/src/index.ts",
"repo_id": "io_flip",
"token_count": 70
} | 833 |
import 'dart:async';
import 'package:bloc/bloc.dart';
import 'package:connection_repository/connection_repository.dart';
import 'package:equatable/equatable.dart';
import 'package:game_domain/game_domain.dart';
part 'connection_event.dart';
part 'connection_state.dart';
class ConnectionBloc extends Bloc<ConnectionEv... | io_flip/lib/connection/bloc/connection_bloc.dart/0 | {
"file_path": "io_flip/lib/connection/bloc/connection_bloc.dart",
"repo_id": "io_flip",
"token_count": 729
} | 834 |
part of 'how_to_play_bloc.dart';
abstract class HowToPlayEvent extends Equatable {
const HowToPlayEvent();
@override
List<Object> get props => [];
}
class NextPageRequested extends HowToPlayEvent {
const NextPageRequested();
}
class PreviousPageRequested extends HowToPlayEvent {
const PreviousPageRequeste... | io_flip/lib/how_to_play/bloc/how_to_play_event.dart/0 | {
"file_path": "io_flip/lib/how_to_play/bloc/how_to_play_event.dart",
"repo_id": "io_flip",
"token_count": 100
} | 835 |
// ignore_for_file: avoid_web_libraries_in_flutter
import 'dart:async';
import 'dart:js' as js;
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/conne... | io_flip/lib/main_development.dart/0 | {
"file_path": "io_flip/lib/main_development.dart",
"repo_id": "io_flip",
"token_count": 997
} | 836 |
import 'dart:math' as math;
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:game_domain/game_domain.dart';
import 'package:io_flip/l10n/l10n.dart';
import 'package:io_flip/prompt/prompt.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
import 'package:provider... | io_flip/lib/prompt/view/prompt_form.dart/0 | {
"file_path": "io_flip/lib/prompt/view/prompt_form.dart",
"repo_id": "io_flip",
"token_count": 650
} | 837 |
// 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:io_flip/settings/persistence/persistence.dart';
import 'package:shared_preferences/shared... | io_flip/lib/settings/persistence/local_storage_settings_persistence.dart/0 | {
"file_path": "io_flip/lib/settings/persistence/local_storage_settings_persistence.dart",
"repo_id": "io_flip",
"token_count": 475
} | 838 |
import 'package:api_client/api_client.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart' hide Card;
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:game_domain/game_domain.dart';
import 'package:io_flip/gen/assets.gen.dart';
import 'package:io_flip/l10n/l10n.dart';
... | io_flip/lib/share/widgets/share_dialog.dart/0 | {
"file_path": "io_flip/lib/share/widgets/share_dialog.dart",
"repo_id": "io_flip",
"token_count": 3417
} | 839 |
import 'dart:io';
import 'package:api_client/api_client.dart';
import 'package:http/http.dart' as http;
import 'package:mocktail/mocktail.dart';
import 'package:test/test.dart';
class _MockApiClient extends Mock implements ApiClient {}
class _MockResponse extends Mock implements http.Response {}
void main() {
gro... | io_flip/packages/api_client/test/src/resources/scripts_resource_test.dart/0 | {
"file_path": "io_flip/packages/api_client/test/src/resources/scripts_resource_test.dart",
"repo_id": "io_flip",
"token_count": 1159
} | 840 |
import 'package:flutter/material.dart';
import 'package:gallery/story_scaffold.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
class BottomBarStory extends StatelessWidget {
const BottomBarStory({super.key});
@override
Widget build(BuildContext context) {
final screenWidth = MediaQuery.of(context).size.... | io_flip/packages/io_flip_ui/gallery/lib/widgets/bottom_bar_story.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/gallery/lib/widgets/bottom_bar_story.dart",
"repo_id": "io_flip",
"token_count": 622
} | 841 |
import 'dart:async';
import 'dart:math';
import 'package:flame/sprite.dart';
import 'package:flutter/material.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
import 'package:io_flip_ui/src/animations/damages/air_damage.dart';
import 'package:io_flip_ui/src/animations/damages/earth_damage.dart';
import 'package:io_... | io_flip/packages/io_flip_ui/lib/src/animations/damages/elemental_damage_animation.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/lib/src/animations/damages/elemental_damage_animation.dart",
"repo_id": "io_flip",
"token_count": 8529
} | 842 |
/// Function definition for a function that plays a sound for buttons.
typedef PlayButtonSound = void Function();
/// {@template ui_sound_adapter}
/// An adapter used by the io_flip_ui package to play sounds.
///
/// This adapter should be provided on top of the application tree
/// in order for its widgets to have ac... | io_flip/packages/io_flip_ui/lib/src/ui_sound_adapter.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/lib/src/ui_sound_adapter.dart",
"repo_id": "io_flip",
"token_count": 162
} | 843 |
import 'package:flutter/material.dart';
import 'package:io_flip_ui/gen/assets.gen.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
/// {@template flipped_game_card}
/// I/O FLIP Flipped Game Card.
/// {@endtemplate}
class FlippedGameCard extends StatelessWidget {
/// {@macro flipped_game_card}
const FlippedGame... | io_flip/packages/io_flip_ui/lib/src/widgets/flipped_game_card.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/lib/src/widgets/flipped_game_card.dart",
"repo_id": "io_flip",
"token_count": 263
} | 844 |
import 'dart:io';
import 'package:mocktail/mocktail.dart';
T mockFailedNetworkImages<T>(T Function() body) {
return HttpOverrides.runZoned(
body,
createHttpClient: (_) => _createErrorHttpClient(),
);
}
class _MockHttpClient extends Mock implements HttpClient {
_MockHttpClient() {
registerFallbackVa... | io_flip/packages/io_flip_ui/test/helpers/mock_failed_network_image.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/test/helpers/mock_failed_network_image.dart",
"repo_id": "io_flip",
"token_count": 383
} | 845 |
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/damages/victory_charge_front_test.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/test/src/widgets/damages/victory_charge_front_test.dart",
"repo_id": "io_flip",
"token_count": 443
} | 846 |
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
void main() {
group('TiltBuilder', () {
const child = SizedBox(
width: 200,
height: 200,
key: Key('child'),
);
Of... | io_flip/packages/io_flip_ui/test/src/widgets/tilt_builder_test.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/test/src/widgets/tilt_builder_test.dart",
"repo_id": "io_flip",
"token_count": 875
} | 847 |
#!/bin/bash
PORT=$1
for ((n=0;n<30;n++))
do
open -na "Google Chrome" --args --new-window --incognito http://localhost:$PORT/index.html
sleep 1
done
| io_flip/scripts/spam_flop.sh/0 | {
"file_path": "io_flip/scripts/spam_flop.sh",
"repo_id": "io_flip",
"token_count": 61
} | 848 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter_test/flutter_test.dart';
import 'package:game_domain/game_domain.dart';
import 'package:io_flip/draft/draft.dart';
void main() {
const card1 = Card(
id: '1',
name: '',
description: '',
rarity: true,
image: '',
power: 1,
... | io_flip/test/draft/bloc/draft_state_test.dart/0 | {
"file_path": "io_flip/test/draft/bloc/draft_state_test.dart",
"repo_id": "io_flip",
"token_count": 2762
} | 849 |
import 'dart:ui';
import 'package:flutter_test/flutter_test.dart';
extension IoFlipWidgetTester on WidgetTester {
void setDisplaySize(Size size) {
view
..physicalSize = size
..devicePixelRatio = 1.0;
addTearDown(() {
view
..resetPhysicalSize()
..resetDevicePixelRatio();
... | io_flip/test/helpers/set_display_size.dart/0 | {
"file_path": "io_flip/test/helpers/set_display_size.dart",
"repo_id": "io_flip",
"token_count": 257
} | 850 |
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:game_domain/game_domain.dart';
import 'package:go_router/go_router.dart';
import 'p... | io_flip/test/leaderboard/initials_form/view/initials_form_view_test.dart/0 | {
"file_path": "io_flip/test/leaderboard/initials_form/view/initials_form_view_test.dart",
"repo_id": "io_flip",
"token_count": 5323
} | 851 |
// ignore_for_file: prefer_const_constructors
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:game_domain/game_domain.dart';
import 'package:go_router/go_router.dart';
im... | io_flip/test/prompt/view/prompt_view_test.dart/0 | {
"file_path": "io_flip/test/prompt/view/prompt_view_test.dart",
"repo_id": "io_flip",
"token_count": 1113
} | 852 |
import 'package:flutter/material.dart' hide Card;
import 'package:flutter_test/flutter_test.dart';
import 'package:game_domain/game_domain.dart';
import 'package:io_flip/share/widgets/widgets.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
import 'package:mocktail_image_network/mocktail_image_network.dart';
import... | io_flip/test/share/widgets/card_fan_test.dart/0 | {
"file_path": "io_flip/test/share/widgets/card_fan_test.dart",
"repo_id": "io_flip",
"token_count": 459
} | 853 |
---
sidebar_position: 6
description: Learn how to configure authentication in your Flutter news application.
---
# Authentication
Currently, the Flutter News Toolkit project supports multiple ways of authentication such as `email`, `google`, `apple`, `twitter`, and `facebook` login.
The current implementation of the... | news_toolkit/docs/docs/flutter_development/authentication.md/0 | {
"file_path": "news_toolkit/docs/docs/flutter_development/authentication.md",
"repo_id": "news_toolkit",
"token_count": 590
} | 854 |
---
sidebar_position: 1
description: Learn how to configure your repository on GitHub.
---
# GitHub setup
Below are the recommended configuration settings for your repository on GitHub. Note that you're welcome to use other development hosting services, if desired.
## Create repository
If you don't already have an ... | news_toolkit/docs/docs/project_configuration/github.md/0 | {
"file_path": "news_toolkit/docs/docs/project_configuration/github.md",
"repo_id": "news_toolkit",
"token_count": 954
} | 855 |
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="production" type="FlutterRunConfigurationType" factoryName="Flutter" singleton="false">
<option name="additionalArgs" value="--dart-define FLAVOR_DEEP_LINK_DOMAIN=googlenewstemplate.page.link --dart-define FLAVOR_DEEP_LINK_PATH... | news_toolkit/flutter_news_example/.idea/runConfigurations/production.xml/0 | {
"file_path": "news_toolkit/flutter_news_example/.idea/runConfigurations/production.xml",
"repo_id": "news_toolkit",
"token_count": 282
} | 856 |
buildscript {
ext.kotlin_version = '1.8.10'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
classpath 'com.google.gms:google-services:4.3.4'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.2.0'... | news_toolkit/flutter_news_example/android/build.gradle/0 | {
"file_path": "news_toolkit/flutter_news_example/android/build.gradle",
"repo_id": "news_toolkit",
"token_count": 323
} | 857 |
import 'package:news_blocks/news_blocks.dart';
/// {@template news_item}
/// An class that contains metadata representing a news item.
/// News items contain the post used within a news feed as well as
/// the article content.
/// {@endtemplate}
class NewsItem {
/// {@macro post}
const NewsItem({
required this... | news_toolkit/flutter_news_example/api/lib/src/data/models/news_item.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/lib/src/data/models/news_item.dart",
"repo_id": "news_toolkit",
"token_count": 232
} | 858 |
import 'package:equatable/equatable.dart';
import 'package:flutter_news_example_api/api.dart';
import 'package:json_annotation/json_annotation.dart';
part 'current_user_response.g.dart';
/// {@template current_user_response}
/// A response object which contains the current user.
/// {@endtemplate}
@JsonSerializable(e... | news_toolkit/flutter_news_example/api/lib/src/models/current_user_response/current_user_response.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/lib/src/models/current_user_response/current_user_response.dart",
"repo_id": "news_toolkit",
"token_count": 283
} | 859 |
targets:
$default:
builders:
source_gen|combining_builder:
options:
ignore_for_file:
- cast_nullable_to_non_nullable
- implicit_dynamic_parameter
- lines_longer_than_80_chars
- prefer_const_constructors
- require_trailing_commas
... | news_toolkit/flutter_news_example/api/packages/news_blocks/build.yaml/0 | {
"file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/build.yaml",
"repo_id": "news_toolkit",
"token_count": 281
} | 860 |
import 'package:json_annotation/json_annotation.dart';
import 'package:meta/meta.dart';
import 'package:news_blocks/news_blocks.dart';
/// {@template news_block}
/// A reusable news block which represents a content-based component.
/// {@endtemplate}
@immutable
@JsonSerializable()
abstract class NewsBlock {
/// {@ma... | news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/news_block.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/news_block.dart",
"repo_id": "news_toolkit",
"token_count": 1040
} | 861 |
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:news_blocks/news_blocks.dart';
part 'section_header_block.g.dart';
/// {@template section_header_block}
/// A block which represents a section header.
/// https://www.figma.com/file/RajSN6YbRqTuqvdKYtij3b... | news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/section_header_block.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/section_header_block.dart",
"repo_id": "news_toolkit",
"token_count": 410
} | 862 |
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:news_blocks/news_blocks.dart';
part 'text_paragraph_block.g.dart';
/// {@template text_paragraph_block}
/// A block which represents a text paragraph.
/// https://www.figma.com/file/RajSN6YbRqTuqvdKYtij3b... | news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/text_paragraph_block.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/text_paragraph_block.dart",
"repo_id": "news_toolkit",
"token_count": 379
} | 863 |
// ignore_for_file: prefer_const_constructors
import 'package:news_blocks/src/divider_horizontal_block.dart';
import 'package:test/test.dart';
void main() {
group('DividerHorizontalBlock', () {
test('can be (de)serialized', () {
final block = DividerHorizontalBlock();
expect(DividerHorizontalBlock.... | news_toolkit/flutter_news_example/api/packages/news_blocks/test/src/divider_horizontal_block_test.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/test/src/divider_horizontal_block_test.dart",
"repo_id": "news_toolkit",
"token_count": 137
} | 864 |
// ignore_for_file: prefer_const_constructors
import 'package:news_blocks/news_blocks.dart';
import 'package:test/test.dart';
void main() {
group('SpacerBlock', () {
test('can be (de)serialized', () {
final block = SpacerBlock(spacing: Spacing.medium);
expect(SpacerBlock.fromJson(block.toJson()), e... | news_toolkit/flutter_news_example/api/packages/news_blocks/test/src/spacer_block_test.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/test/src/spacer_block_test.dart",
"repo_id": "news_toolkit",
"token_count": 133
} | 865 |
import 'dart:io';
import 'package:dart_frog/dart_frog.dart';
Response onRequest(RequestContext context) {
if (context.request.method != HttpMethod.post) {
return Response(statusCode: HttpStatus.methodNotAllowed);
}
return Response(statusCode: HttpStatus.created);
}
| news_toolkit/flutter_news_example/api/routes/api/v1/newsletter/subscription.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/routes/api/v1/newsletter/subscription.dart",
"repo_id": "news_toolkit",
"token_count": 93
} | 866 |
// ignore_for_file: prefer_const_constructors
import 'dart:io';
import 'package:dart_frog/dart_frog.dart';
import 'package:flutter_news_example_api/api.dart';
import 'package:mocktail/mocktail.dart';
import 'package:test/test.dart';
import '../../../routes/api/v1/users/me.dart' as route;
class _MockRequestContext e... | news_toolkit/flutter_news_example/api/test/routes/users/me_test.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/test/routes/users/me_test.dart",
"repo_id": "news_toolkit",
"token_count": 1216
} | 867 |
import 'dart:async';
import 'package:analytics_repository/analytics_repository.dart' as analytics;
import 'package:bloc/bloc.dart';
import 'package:equatable/equatable.dart';
import 'package:user_repository/user_repository.dart';
part 'analytics_event.dart';
part 'analytics_state.dart';
class AnalyticsBloc extends B... | news_toolkit/flutter_news_example/lib/analytics/bloc/analytics_bloc.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/analytics/bloc/analytics_bloc.dart",
"repo_id": "news_toolkit",
"token_count": 501
} | 868 |
import 'package:app_ui/app_ui.dart';
import 'package:article_repository/article_repository.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_news_example/ads/ads.dart';
import 'package:flutter_news_example/app/... | news_toolkit/flutter_news_example/lib/article/view/article_page.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/article/view/article_page.dart",
"repo_id": "news_toolkit",
"token_count": 3219
} | 869 |
import 'dart:async';
import 'package:bloc_concurrency/bloc_concurrency.dart';
import 'package:equatable/equatable.dart';
import 'package:hydrated_bloc/hydrated_bloc.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:news_blocks/news_blocks.dart';
import 'package:news_repository/news_reposito... | news_toolkit/flutter_news_example/lib/feed/bloc/feed_bloc.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/feed/bloc/feed_bloc.dart",
"repo_id": "news_toolkit",
"token_count": 1372
} | 870 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.