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:file/file.dart';
import 'package:file/memory.dart';
import 'package:file_testing/file_testing.dart';
import 'package:flutter_tools/src/arti... | flutter/packages/flutter_tools/test/general.shard/isolated/linux/native_assets_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/isolated/linux/native_assets_test.dart",
"repo_id": "flutter",
"token_count": 6676
} | 812 |
// 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/artifacts.dart';
import 'package:flutter_tools/src/base/io.dart'... | flutter/packages/flutter_tools/test/general.shard/macos/xcode_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/macos/xcode_test.dart",
"repo_id": "flutter",
"token_count": 27963
} | 813 |
// 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/project.dart';
import 'packa... | flutter/packages/flutter_tools/test/general.shard/pub_dependencies_project_validator_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/pub_dependencies_project_validator_test.dart",
"repo_id": "flutter",
"token_count": 1080
} | 814 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:file/file.dart';
import 'package:file/memory.dart';
import 'package:file_testing/file_testing.dart';
import 'package:... | flutter/packages/flutter_tools/test/general.shard/terminal_handler_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/terminal_handler_test.dart",
"repo_id": "flutter",
"token_count": 19683
} | 815 |
// 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/web/bootstrap.dart';
import 'package:package_config/package_config.dart';
import '../../src/common.dart';
void main() {... | flutter/packages/flutter_tools/test/general.shard/web/bootstrap_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/web/bootstrap_test.dart",
"repo_id": "flutter",
"token_count": 4847
} | 816 |
// 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/base/logger.dart';
import 'package:flutter_tools/src/... | flutter/packages/flutter_tools/test/general.shard/windows/migrations/show_window_migration_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/general.shard/windows/migrations/show_window_migration_test.dart",
"repo_id": "flutter",
"token_count": 2678
} | 817 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert';
import 'package:args/command_runner.dart';
import 'package:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/... | flutter/packages/flutter_tools/test/integration.shard/analyze_suggestions_integration_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/analyze_suggestions_integration_test.dart",
"repo_id": "flutter",
"token_count": 3059
} | 818 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// TODO(gspencergoog): Remove this tag once this test's state leaks/test
// dependencies have been fixed.
// https://github.com/flutter/flutter/issues/8516... | flutter/packages/flutter_tools/test/integration.shard/break_on_framework_exceptions_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/break_on_framework_exceptions_test.dart",
"repo_id": "flutter",
"token_count": 7574
} | 819 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/src/base/io.dart';
import 'package:flutter_to... | flutter/packages/flutter_tools/test/integration.shard/devtools_uri_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/devtools_uri_test.dart",
"repo_id": "flutter",
"token_count": 563
} | 820 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file/file.dart';
import 'package:file_testing/file_testing.dart';
import 'package:flutter_tools/src/base/io.dart';
import '../src/common.d... | flutter/packages/flutter_tools/test/integration.shard/gradle_non_android_plugin_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/gradle_non_android_plugin_test.dart",
"repo_id": "flutter",
"token_count": 1026
} | 821 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import '../../src/common.dart';
import 'deferred_components_config.dart';
import 'project.dart';
class DeferredComponentsProject extends Project {
Defer... | flutter/packages/flutter_tools/test/integration.shard/test_data/deferred_components_project.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/test_data/deferred_components_project.dart",
"repo_id": "flutter",
"token_count": 20620
} | 822 |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:file/file.dart';
import 'package:flutter_tools/src/base/file_system.dart';
import '../test_utils.dart';
import 'project.dart';
class Test... | flutter/packages/flutter_tools/test/integration.shard/test_data/tests_project.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/integration.shard/test_data/tests_project.dart",
"repo_id": "flutter",
"token_count": 529
} | 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 'package:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/src/convert.dart';
import 'package:flutter_tools/src/custom_devices... | flutter/packages/flutter_tools/test/src/custom_devices_common.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/src/custom_devices_common.dart",
"repo_id": "flutter",
"token_count": 625
} | 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 'package:file/file.dart';
import '../integration.shard/test_data/stepping_project.dart';
import '../integration.shard/test_driver.dart';
import '..... | flutter/packages/flutter_tools/test/web.shard/debugger_stepping_web_test.dart/0 | {
"file_path": "flutter/packages/flutter_tools/test/web.shard/debugger_stepping_web_test.dart",
"repo_id": "flutter",
"token_count": 628
} | 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 'dart:async';
import 'dart:ui' as ui;
import 'platform_location.dart';
export 'platform_location.dart';
/// Callback that receives the new state ... | flutter/packages/flutter_web_plugins/lib/src/navigation_non_web/url_strategy.dart/0 | {
"file_path": "flutter/packages/flutter_web_plugins/lib/src/navigation_non_web/url_strategy.dart",
"repo_id": "flutter",
"token_count": 1270
} | 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:async';
import 'dart:convert';
import 'dart:io';
import 'package:process/process.dart';
import 'common/logging.dart';
import 'common/network... | flutter/packages/fuchsia_remote_debug_protocol/lib/src/fuchsia_remote_connection.dart/0 | {
"file_path": "flutter/packages/fuchsia_remote_debug_protocol/lib/src/fuchsia_remote_connection.dart",
"repo_id": "flutter",
"token_count": 9157
} | 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.
package dev.flutter.plugins.integration_test;
import android.annotation.TargetApi;
import android.app.Activity;
import android.graphics.Bitmap;
import and... | flutter/packages/integration_test/android/src/main/java/dev/flutter/plugins/integration_test/FlutterDeviceScreenshot.java/0 | {
"file_path": "flutter/packages/integration_test/android/src/main/java/dev/flutter/plugins/integration_test/FlutterDeviceScreenshot.java",
"repo_id": "flutter",
"token_count": 3402
} | 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.
// 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/_extended_test_web.dart/0 | {
"file_path": "flutter/packages/integration_test/example/integration_test/_extended_test_web.dart",
"repo_id": "flutter",
"token_count": 999
} | 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 Foundation;
@import ObjectiveC.runtime;
NS_ASSUME_NONNULL_BEGIN
DEPRECATED_MSG_ATTRIBUTE("Use FLTIntegrationTestRunner instead.")
@interface Inte... | flutter/packages/integration_test/ios/Classes/IntegrationTestIosTest.h/0 | {
"file_path": "flutter/packages/integration_test/ios/Classes/IntegrationTestIosTest.h",
"repo_id": "flutter",
"token_count": 2786
} | 830 |
name: analog_clock
description: Analog 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/analog_clock/pubspec.yaml/0 | {
"file_path": "flutter_clock/analog_clock/pubspec.yaml",
"repo_id": "flutter_clock",
"token_count": 141
} | 831 |
See https://github.com/flutter/gallery/releases. | gallery/CHANGELOG.md/0 | {
"file_path": "gallery/CHANGELOG.md",
"repo_id": "gallery",
"token_count": 15
} | 832 |
# ==============================================================================
# The contents of this file are automatically generated and it is not
# recommended to modify this file manually.
# ==============================================================================
#
# In order to prevent unexpected splitting... | gallery/deferred_components_loading_units.yaml/0 | {
"file_path": "gallery/deferred_components_loading_units.yaml",
"repo_id": "gallery",
"token_count": 6668
} | 833 |
// 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';
// BEGIN bannerDemo
enum BannerDemoAction {
rese... | gallery/lib/demos/material/banner_demo.dart/0 | {
"file_path": "gallery/lib/demos/material/banner_demo.dart",
"repo_id": "gallery",
"token_count": 1993
} | 834 |
// 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 navRailDemo
class NavRailDemo extends Sta... | gallery/lib/demos/material/navigation_rail_demo.dart/0 | {
"file_path": "gallery/lib/demos/material/navigation_rail_demo.dart",
"repo_id": "gallery",
"token_count": 1594
} | 835 |
{
"loading": "درحال بار کردن",
"deselect": "لغو انتخاب",
"select": "انتخاب",
"selectable": "قابل انتخاب (فشار طولانی)",
"selected": "انتخابشده",
"demo": "نسخه نمونه",
"bottomAppBar": "نوار برنامه پایین صفحه",
"notSelected": "انتخابنشده",
"demoCupertinoSearchTextFieldTitle": "فیلد نوشتاری جستجو",
"... | gallery/lib/l10n/intl_fa.arb/0 | {
"file_path": "gallery/lib/l10n/intl_fa.arb",
"repo_id": "gallery",
"token_count": 35623
} | 836 |
{
"loading": "Caricamento in corso…",
"deselect": "Deseleziona",
"select": "Seleziona",
"selectable": "Selezionabile (pressione prolungata)",
"selected": "Elemento selezionato",
"demo": "Demo",
"bottomAppBar": "Barra dell'app in basso",
"notSelected": "Elemento non selezionato",
"demoCupertinoSearchTe... | gallery/lib/l10n/intl_it.arb/0 | {
"file_path": "gallery/lib/l10n/intl_it.arb",
"repo_id": "gallery",
"token_count": 19377
} | 837 |
{
"loading": "ဖွင့်နေသည်",
"deselect": "မရွေးပါနှင့်",
"select": "ရွေးရန်",
"selectable": "ရွေးနိုင်သည် (ကြာရှည်နှိပ်ထားရန်)",
"selected": "ရွေးထားသည်",
"demo": "သရုပ်ပြ",
"bottomAppBar": "အောက်ခြေရှိ အက်ပ်ဘား",
"notSelected": "ရွေးမထားပါ",
"demoCupertinoSearchTextFieldTitle": "ရှာဖွေရေး စာသားအကွက်",
... | gallery/lib/l10n/intl_my.arb/0 | {
"file_path": "gallery/lib/l10n/intl_my.arb",
"repo_id": "gallery",
"token_count": 85199
} | 838 |
{
"loading": "Учитава се",
"deselect": "Опозови избор",
"select": "Изабери",
"selectable": "Може да се изабере (дуги притисак)",
"selected": "Изабрано је",
"demo": "Демо верзија",
"bottomAppBar": "Доња трака са апликацијама",
"notSelected": "Није изабрано",
"demoCupertinoSearchTextFieldTitle": "Поље з... | gallery/lib/l10n/intl_sr.arb/0 | {
"file_path": "gallery/lib/l10n/intl_sr.arb",
"repo_id": "gallery",
"token_count": 38096
} | 839 |
{
"loading": "載入中",
"deselect": "取消選取",
"select": "選取",
"selectable": "可選取 (長按)",
"selected": "已選取",
"demo": "示範模式",
"bottomAppBar": "底部應用程式列",
"notSelected": "未選取",
"demoCupertinoSearchTextFieldTitle": "搜尋文字欄位",
"demoCupertinoPicker": "挑選器",
"demoCupertinoSearchTextFieldSubtitle": "iOS 樣式的搜尋文字欄位"... | gallery/lib/l10n/intl_zh_TW.arb/0 | {
"file_path": "gallery/lib/l10n/intl_zh_TW.arb",
"repo_id": "gallery",
"token_count": 26046
} | 840 |
// 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/studies/crane/backlayer.dar... | gallery/lib/studies/crane/sleep_form.dart/0 | {
"file_path": "gallery/lib/studies/crane/sleep_form.dart",
"repo_id": "gallery",
"token_count": 727
} | 841 |
// 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/studies/rally/charts/pie_ch... | gallery/lib/studies/rally/tabs/accounts.dart/0 | {
"file_path": "gallery/lib/studies/rally/tabs/accounts.dart",
"repo_id": "gallery",
"token_count": 478
} | 842 |
import 'package:flutter/material.dart';
class ProfileAvatar extends StatelessWidget {
const ProfileAvatar({
super.key,
required this.avatar,
this.radius = 20,
});
final String avatar;
final double radius;
@override
Widget build(BuildContext context) {
return Material(
color: Colors.... | gallery/lib/studies/reply/profile_avatar.dart/0 | {
"file_path": "gallery/lib/studies/reply/profile_avatar.dart",
"repo_id": "gallery",
"token_count": 328
} | 843 |
// 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';
class Scrim extends StatelessWidget {
const Scrim({super.key, required this.controller});
final AnimationControl... | gallery/lib/studies/shrine/scrim.dart/0 | {
"file_path": "gallery/lib/studies/shrine/scrim.dart",
"repo_id": "gallery",
"token_count": 638
} | 844 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| gallery/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "gallery/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "gallery",
"token_count": 32
} | 845 |
// 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:gallery/themes/material_demo_theme_data.dart';
import 'package:test/test.dart';
void main() {
test(... | gallery/test/theme_test.dart/0 | {
"file_path": "gallery/test/theme_test.dart",
"repo_id": "gallery",
"token_count": 341
} | 846 |
// 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 'testing/precache_images... | gallery/test_goldens/demo_test.dart/0 | {
"file_path": "gallery/test_goldens/demo_test.dart",
"repo_id": "gallery",
"token_count": 1040
} | 847 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'prehighlighter.dart';
const codeSegmentsSourcePath = 'lib/demos';
const codeSegmentsPa... | gallery/tool/codeviewer_cli/segment_generator.dart/0 | {
"file_path": "gallery/tool/codeviewer_cli/segment_generator.dart",
"repo_id": "gallery",
"token_count": 3280
} | 848 |
# I/O FLIP
[![I/O FLIP Header][logo]][io_flip_link]
[![io_flip][build_status_badge]][workflow_link]
![coverage][coverage_badge]
[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]
An AI-designed card game built with [Flutter][flutter_link] and [Firebase][firebase_link] for [Google I/O 2... | io_flip/README.md/0 | {
"file_path": "io_flip/README.md",
"repo_id": "io_flip",
"token_count": 1935
} | 849 |
export 'share_card_template.dart';
export 'share_deck_template.dart';
export 'share_template.dart';
export 'template_metadata.dart';
| io_flip/api/lib/templates/templates.dart/0 | {
"file_path": "io_flip/api/lib/templates/templates.dart",
"repo_id": "io_flip",
"token_count": 44
} | 850 |
name: card_renderer
description: Renders a card based on its metadata and illustration
version: 0.1.0+1
publish_to: none
environment:
sdk: ">=3.0.0 <4.0.0"
dependencies:
game_domain:
path: ../game_domain
http: ^0.13.5
image: ^4.0.15
dev_dependencies:
mocktail: ^0.3.0
test: ^1.19.2
very_good_analysi... | io_flip/api/packages/card_renderer/pubspec.yaml/0 | {
"file_path": "io_flip/api/packages/card_renderer/pubspec.yaml",
"repo_id": "io_flip",
"token_count": 145
} | 851 |
import 'dart:developer';
import 'package:db_client/db_client.dart';
/// {@template config_repository}
/// Repository with access to dynamic project configurations
/// {@endtemplate}
class ConfigRepository {
/// {@macro config_repository}
const ConfigRepository({
required DbClient dbClient,
}) : _dbClient = ... | io_flip/api/packages/config_repository/lib/src/config_repository.dart/0 | {
"file_path": "io_flip/api/packages/config_repository/lib/src/config_repository.dart",
"repo_id": "io_flip",
"token_count": 642
} | 852 |
import 'dart:convert';
import 'dart:io';
import 'package:dart_frog/dart_frog.dart';
import 'package:encrypt/encrypt.dart';
/// {@template encryption_middleware}
/// A dart_frog middleware for encrypting responses.
/// {@endtemplate}
class EncryptionMiddleware {
/// {@macro encryption_middleware}
const EncryptionM... | io_flip/api/packages/encryption_middleware/lib/src/encryption_middleware.dart/0 | {
"file_path": "io_flip/api/packages/encryption_middleware/lib/src/encryption_middleware.dart",
"repo_id": "io_flip",
"token_count": 574
} | 853 |
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'card.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
Card _$CardFromJson(Map<String, dynamic> json) => Card(
id: jso... | io_flip/api/packages/game_domain/lib/src/models/card.g.dart/0 | {
"file_path": "io_flip/api/packages/game_domain/lib/src/models/card.g.dart",
"repo_id": "io_flip",
"token_count": 411
} | 854 |
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
part 'score_card.g.dart';
/// {@template score_card}
/// A class representing the user session's win and streak count.
/// {@endtemplate}
@JsonSerializable(ignoreUnannotated: true)
class ScoreCard extends Equatable {
/... | io_flip/api/packages/game_domain/lib/src/models/score_card.dart/0 | {
"file_path": "io_flip/api/packages/game_domain/lib/src/models/score_card.dart",
"repo_id": "io_flip",
"token_count": 715
} | 855 |
// ignore_for_file: prefer_const_constructors
import 'dart:convert';
import 'package:game_domain/game_domain.dart';
import 'package:test/test.dart';
void main() {
group('WebSocketMessage', () {
group('error', () {
test('has correct message type', () {
final message = WebSocketMessage.error(WebSoc... | io_flip/api/packages/game_domain/test/src/models/web_socket_message_test.dart/0 | {
"file_path": "io_flip/api/packages/game_domain/test/src/models/web_socket_message_test.dart",
"repo_id": "io_flip",
"token_count": 3348
} | 856 |
import 'dart:math';
import 'package:game_domain/game_domain.dart';
import 'package:prompt_repository/prompt_repository.dart';
/// {@template image_result}
/// Image result model.
/// {@endtemplate}
class ImageResult {
/// {@macro image_result}
const ImageResult({
required this.character,
required this.cha... | io_flip/api/packages/image_model_repository/lib/src/image_model_repository.dart/0 | {
"file_path": "io_flip/api/packages/image_model_repository/lib/src/image_model_repository.dart",
"repo_id": "io_flip",
"token_count": 1125
} | 857 |
include: package:very_good_analysis/analysis_options.4.0.0.yaml
| io_flip/api/packages/match_repository/analysis_options.yaml/0 | {
"file_path": "io_flip/api/packages/match_repository/analysis_options.yaml",
"repo_id": "io_flip",
"token_count": 23
} | 858 |
import 'dart:async';
import 'dart:io';
import 'package:dart_frog/dart_frog.dart';
import 'package:leaderboard_repository/leaderboard_repository.dart';
FutureOr<Response> onRequest(RequestContext context) async {
if (context.request.method == HttpMethod.get) {
final leaderboardRepository = context.read<Leaderboa... | io_flip/api/routes/game/leaderboard/initials_blacklist/index.dart/0 | {
"file_path": "io_flip/api/routes/game/leaderboard/initials_blacklist/index.dart",
"repo_id": "io_flip",
"token_count": 169
} | 859 |
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:logging/logging.dart';
import 'package:mocktail/mocktail.dart';
import 'package:test/test.dart';
import '../../../../routes/game/decks/[d... | io_flip/api/test/routes/game/decks/[deckId]_test.dart/0 | {
"file_path": "io_flip/api/test/routes/game/decks/[deckId]_test.dart",
"repo_id": "io_flip",
"token_count": 1014
} | 860 |
// ignore_for_file: prefer_const_constructors
import 'dart:io';
import 'package:data_loader/data_loader.dart';
import 'package:game_domain/game_domain.dart';
import 'package:mocktail/mocktail.dart';
import 'package:path/path.dart' as path;
import 'package:test/test.dart';
class _MockFile extends Mock implements File ... | io_flip/api/tools/data_loader/test/src/character_folder_validator_test.dart/0 | {
"file_path": "io_flip/api/tools/data_loader/test/src/character_folder_validator_test.dart",
"repo_id": "io_flip",
"token_count": 1793
} | 861 |
name: flop
description: The testing bot for the Flip I/O game.
version: 1.0.0+1
publish_to: none
environment:
sdk: ">=2.18.0 <3.0.0"
dependencies:
api_client:
path: ../packages/api_client
authentication_repository:
path: ../packages/authentication_repository
bloc: ^8.1.1
cloud_firestore: ^4.5.0
co... | io_flip/flop/pubspec.yaml/0 | {
"file_path": "io_flip/flop/pubspec.yaml",
"repo_id": "io_flip",
"token_count": 372
} | 862 |
import 'mocha';
import * as functionsTest from 'firebase-functions-test';
import * as sinon from 'sinon';
import * as admin from 'firebase-admin';
import {expect} from 'chai';
import {FeaturesList} from 'firebase-functions-test/lib/features';
describe('updateLeaderboard', () => {
let adminInitStub: sinon.SinonStub;
... | io_flip/functions/test/updateLeaderboard.test.ts/0 | {
"file_path": "io_flip/functions/test/updateLeaderboard.test.ts",
"repo_id": "io_flip",
"token_count": 1483
} | 863 |
export 'bloc/connection_bloc.dart';
export 'view/view.dart';
| io_flip/lib/connection/connection.dart/0 | {
"file_path": "io_flip/lib/connection/connection.dart",
"repo_id": "io_flip",
"token_count": 24
} | 864 |
part of 'game_bloc.dart';
abstract class GameEvent extends Equatable {
const GameEvent();
}
class MatchRequested extends GameEvent {
const MatchRequested(this.matchId, this.deck);
final String matchId;
final Deck? deck;
@override
List<Object?> get props => [matchId, deck];
}
class PlayerPlayed extends ... | io_flip/lib/game/bloc/game_event.dart/0 | {
"file_path": "io_flip/lib/game/bloc/game_event.dart",
"repo_id": "io_flip",
"token_count": 650
} | 865 |
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:io_flip/how_to_play/how_to_play.dart';
class HowToPlayDialog extends StatelessWidget {
const HowToPlayDialog({super.key});
@override
Widget build(BuildContext context) {
return BlocProvider(
create... | io_flip/lib/how_to_play/view/how_to_play_dialog.dart/0 | {
"file_path": "io_flip/lib/how_to_play/view/how_to_play_dialog.dart",
"repo_id": "io_flip",
"token_count": 149
} | 866 |
part of 'leaderboard_bloc.dart';
enum LeaderboardStateStatus {
initial,
loading,
loaded,
failed,
}
class LeaderboardState extends Equatable {
const LeaderboardState({
required this.status,
required this.leaderboard,
});
const LeaderboardState.initial()
: this(
status: Leaderboar... | io_flip/lib/leaderboard/bloc/leaderboard_state.dart/0 | {
"file_path": "io_flip/lib/leaderboard/bloc/leaderboard_state.dart",
"repo_id": "io_flip",
"token_count": 269
} | 867 |
import 'dart:async';
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:firebase_core/firebase_core.dart';
i... | io_flip/lib/main_production.dart/0 | {
"file_path": "io_flip/lib/main_production.dart",
"repo_id": "io_flip",
"token_count": 897
} | 868 |
import 'package:api_client/api_client.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:io_flip/prompt/prompt.dart';
class PromptPage extends StatelessWidget {
const PromptPage({super.key});
factory PromptPage.routeBuilder(_, __) {
return const Pro... | io_flip/lib/prompt/view/prompt_page.dart/0 | {
"file_path": "io_flip/lib/prompt/view/prompt_page.dart",
"repo_id": "io_flip",
"token_count": 239
} | 869 |
// 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.
/// An interface of persistence stores for settings.
///
/// Implementations can range from simple in-mem... | io_flip/lib/settings/persistence/settings_persistence.dart/0 | {
"file_path": "io_flip/lib/settings/persistence/settings_persistence.dart",
"repo_id": "io_flip",
"token_count": 175
} | 870 |
/// Client to access the api
library api_client;
export 'src/api_client.dart';
export 'src/resources/resources.dart';
| io_flip/packages/api_client/lib/api_client.dart/0 | {
"file_path": "io_flip/packages/api_client/lib/api_client.dart",
"repo_id": "io_flip",
"token_count": 38
} | 871 |
name: config_repository
description: Repository for a remote config.
version: 0.1.0+1
publish_to: none
environment:
sdk: ">=3.0.0 <4.0.0"
flutter: ">=3.10.0"
dependencies:
cloud_firestore: ^4.4.3
equatable: ^2.0.5
flutter:
sdk: flutter
game_domain:
path: ../../api/packages/game_domain
uuid: ^3.0... | io_flip/packages/config_repository/pubspec.yaml/0 | {
"file_path": "io_flip/packages/config_repository/pubspec.yaml",
"repo_id": "io_flip",
"token_count": 197
} | 872 |
import 'package:flutter/material.dart';
import 'package:gallery/story_scaffold.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
class FadingDotLoaderStory extends StatelessWidget {
const FadingDotLoaderStory({super.key});
@override
Widget build(BuildContext context) {
return const StoryScaffold(
ti... | io_flip/packages/io_flip_ui/gallery/lib/widgets/fading_dot_loader_story.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/gallery/lib/widgets/fading_dot_loader_story.dart",
"repo_id": "io_flip",
"token_count": 164
} | 873 |
import 'package:io_flip_ui/gen/assets.gen.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
/// {@template water_damage}
// ignore: comment_references
/// A widget that renders several [SpriteAnimation]s for the damages
/// of a card on another.
/// {@endtemplate}
class WaterDamage extends ElementalDamage {
/// {@... | io_flip/packages/io_flip_ui/lib/src/animations/damages/water_damage.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/lib/src/animations/damages/water_damage.dart",
"repo_id": "io_flip",
"token_count": 467
} | 874 |
import 'dart:math' as math;
import 'package:flutter/material.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
/// A controller used to run animations on an [AnimatedCard].
class AnimatedCardController {
_AnimatedCardState? _state;
/// Runs the given [animation] on the [AnimatedCard] associated with this
///... | io_flip/packages/io_flip_ui/lib/src/widgets/animated_card.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/lib/src/widgets/animated_card.dart",
"repo_id": "io_flip",
"token_count": 1316
} | 875 |
import 'dart:math' as math;
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
/// [IoFlipBottomBar] is a layout helper to position 3 widgets or groups of
/// widgets along a horizontal axis. It is a modified version of flutter's
/// [Navigati... | io_flip/packages/io_flip_ui/lib/src/widgets/io_flip_bottom_bar.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/lib/src/widgets/io_flip_bottom_bar.dart",
"repo_id": "io_flip",
"token_count": 1379
} | 876 |
import 'package:flutter/animation.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
void main() {
group('ThereAndBackAgain', () {
final tween = ThereAndBackAgain(Tween<double>(begin: 0, end: 1));
test("begin returns parent's beginning", () {
expect(tw... | io_flip/packages/io_flip_ui/test/src/animations/there_and_back_again_test.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/test/src/animations/there_and_back_again_test.dart",
"repo_id": "io_flip",
"token_count": 416
} | 877 |
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
void main() {
group('FlippedGameCard', () {
testWidgets(
'renders correctly',
(tester) async {
await tester.pumpWidget(const FlippedGameCard());
expec... | io_flip/packages/io_flip_ui/test/src/widgets/flipped_game_card_test.dart/0 | {
"file_path": "io_flip/packages/io_flip_ui/test/src/widgets/flipped_game_card_test.dart",
"repo_id": "io_flip",
"token_count": 191
} | 878 |
#!/bin/bash
export FB_APP_ID=top-dash-dev
export GAME_URL=http://localhost:8080/
export USE_EMULATOR=true
export ENCRYPTION_KEY=X9YTchZdcnyZTNBSBgzj29p7RMBAIubD
export ENCRYPTION_IV=FxC21ctRg9SgiXuZ
export INITIALS_BLACKLIST_ID=MdOoZMhusnJTcwfYE0nL
export PROMPT_WHITELIST_ID=MIsaP8zrRVhuR84MLEic
export FB_STORAGE_BUCK... | io_flip/scripts/start_local_api.sh/0 | {
"file_path": "io_flip/scripts/start_local_api.sh",
"repo_id": "io_flip",
"token_count": 222
} | 879 |
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/draft/draft.dart';
import 'package:io_flip_ui/io_flip_ui.dart';
import 'package:mocktail/mocktail.dart';
import '../../helpers/helpers... | io_flip/test/draft/widgets/deck_pack_test.dart/0 | {
"file_path": "io_flip/test/draft/widgets/deck_pack_test.dart",
"repo_id": "io_flip",
"token_count": 1640
} | 880 |
// ignore_for_file: prefer_const_constructors
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:game_domain/game_domain.dart';
import 'package:io_flip/how_to_play/how_to_play.dart';
void main() {
group('HowToPlayBloc', () {
group('NextPageRequested', () ... | io_flip/test/how_to_play/bloc/how_to_play_bloc_test.dart/0 | {
"file_path": "io_flip/test/how_to_play/bloc/how_to_play_bloc_test.dart",
"repo_id": "io_flip",
"token_count": 4102
} | 881 |
import 'package:flutter_test/flutter_test.dart';
import 'package:io_flip/leaderboard/leaderboard.dart';
import '../../helpers/helpers.dart';
void main() {
group('LeaderboardPlayers', () {
testWidgets('renders a list of players', (tester) async {
const players = [
LeaderboardPlayer(
index... | io_flip/test/leaderboard/widgets/leaderboard_players_test.dart/0 | {
"file_path": "io_flip/test/leaderboard/widgets/leaderboard_players_test.dart",
"repo_id": "io_flip",
"token_count": 357
} | 882 |
// ignore_for_file: prefer_const_constructors
import 'package:api_client/api_client.dart';
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:game_script_machine/game_script_machine.dart';
import 'package:io_flip/scripts/cubit/scripts_cubit.dart';
import 'packag... | io_flip/test/scripts/cubit/scripts_cubit_test.dart/0 | {
"file_path": "io_flip/test/scripts/cubit/scripts_cubit_test.dart",
"repo_id": "io_flip",
"token_count": 1169
} | 883 |
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:io_flip/terms_of_use/terms_of_use.dart';
import 'package:io_flip/utils/external_links.dart';
import 'package:mocktail/mockt... | io_flip/test/terms_of_use/view/terms_of_use_view_test.dart/0 | {
"file_path": "io_flip/test/terms_of_use/view/terms_of_use_view_test.dart",
"repo_id": "io_flip",
"token_count": 1786
} | 884 |
---
sidebar_position: 10
description: Learn how to configure privacy policy and terms of service in your Flutter news application.
---
# Privacy policy & terms of service
Your users access the terms of service and privacy policy page information from the `UserProfilePage` or the `LoginWithEmailForm`.
Replace the pla... | news_toolkit/docs/docs/flutter_development/privacy_policy.md/0 | {
"file_path": "news_toolkit/docs/docs/flutter_development/privacy_policy.md",
"repo_id": "news_toolkit",
"token_count": 272
} | 885 |
---
sidebar_position: 9
description: Learn how to upgrade your project to incorporate improvements in the toolkit.
---
# Upgrading your project
If you have generated a project using an older version of the Flutter News Template, you can upgrade your project to take advantage of any fixes and improvements.
:::caution... | news_toolkit/docs/docs/project_configuration/upgrading.md/0 | {
"file_path": "news_toolkit/docs/docs/project_configuration/upgrading.md",
"repo_id": "news_toolkit",
"token_count": 798
} | 886 |
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
part 'subscription.g.dart';
/// {@template subscription}
/// A news subscription object which contains
/// metadata about a subscription tier.
/// {@endtemplate}
@JsonSerializable(explicitToJson: true)
class Subscription... | news_toolkit/flutter_news_example/api/lib/src/data/models/subscription.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/lib/src/data/models/subscription.dart",
"repo_id": "news_toolkit",
"token_count": 664
} | 887 |
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'feed_response.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
FeedResponse _$FeedResponseFromJson(Map<String, dynamic> jso... | news_toolkit/flutter_news_example/api/lib/src/models/feed_response/feed_response.g.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/lib/src/models/feed_response/feed_response.g.dart",
"repo_id": "news_toolkit",
"token_count": 195
} | 888 |
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: cast_nullable_to_non_nullable, implicit_dynamic_parameter, lines_longer_than_80_chars, prefer_const_constructors, require_trailing_commas
part of 'article_introduction_block.dart';
// ***********************************************************************... | news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/article_introduction_block.g.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/article_introduction_block.g.dart",
"repo_id": "news_toolkit",
"token_count": 838
} | 889 |
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: cast_nullable_to_non_nullable, implicit_dynamic_parameter, lines_longer_than_80_chars, prefer_const_constructors, require_trailing_commas
part of 'newsletter_block.dart';
// **************************************************************************
// Jso... | news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/newsletter_block.g.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/newsletter_block.g.dart",
"repo_id": "news_toolkit",
"token_count": 307
} | 890 |
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: cast_nullable_to_non_nullable, implicit_dynamic_parameter, lines_longer_than_80_chars, prefer_const_constructors, require_trailing_commas
part of 'slide_block.dart';
// **************************************************************************
// JsonSeri... | news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/slide_block.g.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/slide_block.g.dart",
"repo_id": "news_toolkit",
"token_count": 536
} | 891 |
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: cast_nullable_to_non_nullable, implicit_dynamic_parameter, lines_longer_than_80_chars, prefer_const_constructors, require_trailing_commas
part of 'trending_story_block.dart';
// **************************************************************************
//... | news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/trending_story_block.g.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/trending_story_block.g.dart",
"repo_id": "news_toolkit",
"token_count": 395
} | 892 |
// ignore_for_file: prefer_const_constructors_in_immutables, prefer_const_constructors, lines_longer_than_80_chars
import 'package:news_blocks/news_blocks.dart';
import 'package:test/test.dart';
class CustomBlock extends NewsBlock {
CustomBlock({super.type = '__custom_block__'});
@override
Map<String, dynamic>... | news_toolkit/flutter_news_example/api/packages/news_blocks/test/src/news_block_test.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/test/src/news_block_test.dart",
"repo_id": "news_toolkit",
"token_count": 3160
} | 893 |
// ignore_for_file: prefer_const_constructors
import 'package:news_blocks/news_blocks.dart';
import 'package:test/test.dart';
void main() {
group('TextLeadParagraphBlock', () {
test('can be (de)serialized', () {
final block = TextLeadParagraphBlock(text: 'Text Lead Paragraph');
expect(TextLeadParag... | news_toolkit/flutter_news_example/api/packages/news_blocks/test/src/text_lead_paragraph_block_test.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/test/src/text_lead_paragraph_block_test.dart",
"repo_id": "news_toolkit",
"token_count": 139
} | 894 |
import 'dart:io';
import 'package:dart_frog/dart_frog.dart';
import 'package:flutter_news_example_api/api.dart';
Future<Response> onRequest(RequestContext context) async {
if (context.request.method == HttpMethod.post) return _onPostRequest(context);
if (context.request.method == HttpMethod.get) return _onGetRequ... | news_toolkit/flutter_news_example/api/routes/api/v1/subscriptions/index.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/routes/api/v1/subscriptions/index.dart",
"repo_id": "news_toolkit",
"token_count": 347
} | 895 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter_news_example_api/api.dart';
import 'package:news_blocks/news_blocks.dart';
import 'package:test/test.dart';
void main() {
group('Feed', () {
test('can be (de)serialized', () {
final sectionHeaderA = SectionHeaderBlock(title: 'sectionA')... | news_toolkit/flutter_news_example/api/test/src/data/models/feed_test.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/api/test/src/data/models/feed_test.dart",
"repo_id": "news_toolkit",
"token_count": 219
} | 896 |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>$(FLAVOR_APP_NAME)</string>
... | news_toolkit/flutter_news_example/ios/Runner/Info.plist/0 | {
"file_path": "news_toolkit/flutter_news_example/ios/Runner/Info.plist",
"repo_id": "news_toolkit",
"token_count": 1422
} | 897 |
export 'bloc/app_bloc.dart';
export 'routes/routes.dart';
export 'view/app.dart';
export 'widgets/widgets.dart';
| news_toolkit/flutter_news_example/lib/app/app.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/app/app.dart",
"repo_id": "news_toolkit",
"token_count": 50
} | 898 |
import 'package:app_ui/app_ui.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_news_example/ads/ads.dart';
import 'package:flutter_news_example/analytics/analytics.dart';
import 'package:flutter_news_example/article/article.dart';
import 'package:fl... | news_toolkit/flutter_news_example/lib/article/widgets/article_content.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/article/widgets/article_content.dart",
"repo_id": "news_toolkit",
"token_count": 2905
} | 899 |
part of 'feed_bloc.dart';
enum FeedStatus {
initial,
loading,
populated,
failure,
}
@JsonSerializable()
class FeedState extends Equatable {
const FeedState({
required this.status,
this.feed = const {},
this.hasMoreNews = const {},
});
const FeedState.initial()
: this(
status... | news_toolkit/flutter_news_example/lib/feed/bloc/feed_state.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/feed/bloc/feed_state.dart",
"repo_id": "news_toolkit",
"token_count": 400
} | 900 |
import 'dart:async';
import 'package:analytics_repository/analytics_repository.dart';
import 'package:bloc/bloc.dart';
import 'package:equatable/equatable.dart';
import 'package:form_inputs/form_inputs.dart';
import 'package:user_repository/user_repository.dart';
part 'login_event.dart';
part 'login_state.dart';
cla... | news_toolkit/flutter_news_example/lib/login/bloc/login_bloc.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/login/bloc/login_bloc.dart",
"repo_id": "news_toolkit",
"token_count": 1396
} | 901 |
export 'magic_link_prompt_page.dart';
export 'magic_link_prompt_view.dart';
| news_toolkit/flutter_news_example/lib/magic_link_prompt/view/view.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/magic_link_prompt/view/view.dart",
"repo_id": "news_toolkit",
"token_count": 30
} | 902 |
part of 'newsletter_bloc.dart';
abstract class NewsletterEvent extends Equatable {
const NewsletterEvent();
}
class NewsletterSubscribed extends NewsletterEvent {
const NewsletterSubscribed();
@override
List<Object> get props => [];
}
class EmailChanged extends NewsletterEvent {
const EmailChanged({requir... | news_toolkit/flutter_news_example/lib/newsletter/bloc/newsletter_event.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/newsletter/bloc/newsletter_event.dart",
"repo_id": "news_toolkit",
"token_count": 112
} | 903 |
import 'package:ads_consent_client/ads_consent_client.dart';
import 'package:app_ui/app_ui.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_news_example/onboarding/onboarding.dart';
import 'package:notifications_repository/notifications_repository.d... | news_toolkit/flutter_news_example/lib/onboarding/view/onboarding_page.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/onboarding/view/onboarding_page.dart",
"repo_id": "news_toolkit",
"token_count": 320
} | 904 |
import 'package:article_repository/article_repository.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_news_example/article/article.dart';
import 'package:flutter_news_example/slideshow/slideshow.dart';
import 'package:news_blocks/news_blocks.dart';... | news_toolkit/flutter_news_example/lib/slideshow/view/slideshow_page.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/slideshow/view/slideshow_page.dart",
"repo_id": "news_toolkit",
"token_count": 431
} | 905 |
export 'view/view.dart';
export 'widgets/widgets.dart';
| news_toolkit/flutter_news_example/lib/terms_of_service/terms_of_service.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/terms_of_service/terms_of_service.dart",
"repo_id": "news_toolkit",
"token_count": 22
} | 906 |
export 'user_profile_page.dart';
| news_toolkit/flutter_news_example/lib/user_profile/view/view.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/lib/user_profile/view/view.dart",
"repo_id": "news_toolkit",
"token_count": 12
} | 907 |
import 'package:analytics_repository/analytics_repository.dart';
/// {@template ntg_event}
/// An analytics event following News Tagging Guidelines event taxonomy.
/// https://newsinitiative.withgoogle.com/training/states/ntg/assets/ntg-playbook.pdf#page=245
/// {@endtemplate}
abstract class NTGEvent extends Analytics... | news_toolkit/flutter_news_example/packages/analytics_repository/lib/src/models/ntg_event.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/analytics_repository/lib/src/models/ntg_event.dart",
"repo_id": "news_toolkit",
"token_count": 2304
} | 908 |
<svg width="8" height="12" viewBox="0 0 8 12" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7.70492 1.41L6.29492 0L0.294922 6L6.29492 12L7.70492 10.59L3.12492 6L7.70492 1.41Z" fill="black" fill-opacity="0.9"/>
</svg>
| news_toolkit/flutter_news_example/packages/app_ui/assets/icons/back_icon.svg/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/app_ui/assets/icons/back_icon.svg",
"repo_id": "news_toolkit",
"token_count": 115
} | 909 |
import 'package:app_ui/app_ui.dart';
import 'package:flutter/material.dart';
class ShowAppModalPage extends StatelessWidget {
const ShowAppModalPage({super.key});
static Route<void> route() {
return MaterialPageRoute<void>(builder: (_) => const ShowAppModalPage());
}
@override
Widget build(BuildContext... | news_toolkit/flutter_news_example/packages/app_ui/gallery/lib/widgets/show_app_modal_page.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/app_ui/gallery/lib/widgets/show_app_modal_page.dart",
"repo_id": "news_toolkit",
"token_count": 878
} | 910 |
/// GENERATED CODE - DO NOT MODIFY BY HAND
/// *****************************************************
/// FlutterGen
/// *****************************************************
// coverage:ignore-file
// ignore_for_file: type=lint
// ignore_for_file: directives_ordering,unnecessary_import,implicit_dynamic_list_literal,d... | news_toolkit/flutter_news_example/packages/app_ui/lib/src/generated/assets.gen.dart/0 | {
"file_path": "news_toolkit/flutter_news_example/packages/app_ui/lib/src/generated/assets.gen.dart",
"repo_id": "news_toolkit",
"token_count": 2884
} | 911 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.