text
stringlengths
6
13.6M
id
stringlengths
13
176
metadata
dict
__index_level_0__
int64
0
1.69k
// 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:dual_screen/dual_screen.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter/sched...
gallery/lib/main.dart/0
{ "file_path": "gallery/lib/main.dart", "repo_id": "gallery", "token_count": 1309 }
871
// 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'; const cranePurple700 = Color(0xFF720D5D); const cranePurple800 = Color(0xFF5D1049); const cranePurple900 = Color(0xFF...
gallery/lib/studies/crane/colors.dart/0
{ "file_path": "gallery/lib/studies/crane/colors.dart", "repo_id": "gallery", "token_count": 210 }
872
// Copyright 2019 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:math' as math; import 'package:flutter/material.dart'; import 'package:gallery/data/gallery_options.dart'; import 'package:gallery/layout/lette...
gallery/lib/studies/rally/charts/pie_chart.dart/0
{ "file_path": "gallery/lib/studies/rally/charts/pie_chart.dart", "repo_id": "gallery", "token_count": 3241 }
873
// Copyright 2019 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/gallery_localizations.dart'; import 'package:gallery/layout/adaptive.dart'; impor...
gallery/lib/studies/shrine/supplemental/product_card.dart/0
{ "file_path": "gallery/lib/studies/shrine/supplemental/product_card.dart", "repo_id": "gallery", "token_count": 1980 }
874
// 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/material.dart'; import 'package:web_benchmarks/client.dart'; import 'gallery_automator.dart'; /// A recorder that measures frame ...
gallery/test_benchmarks/benchmarks/gallery_recorder.dart/0
{ "file_path": "gallery/test_benchmarks/benchmarks/gallery_recorder.dart", "repo_id": "gallery", "token_count": 560 }
875
<component name="ProjectRunConfigurationManager"> <configuration default="false" name="local" type="FlutterRunConfigurationType" factoryName="Flutter"> <option name="additionalArgs" value="--dart-define=ENCRYPTION_KEY=X9YTchZdcnyZTNBSBgzj29p7RMBAIubD --dart-define=ENCRYPTION_IV=FxC21ctRg9SgiXuZ --dart-define=RECA...
io_flip/.idea/runConfigurations/local.xml/0
{ "file_path": "io_flip/.idea/runConfigurations/local.xml", "repo_id": "io_flip", "token_count": 281 }
876
// ignore_for_file: avoid_print import 'dart:io'; import 'package:dart_frog/dart_frog.dart'; extension ApplicationJsonX on Map<String, String> { bool isContentTypeJson() { return this[HttpHeaders.contentTypeHeader] ?.startsWith(ContentType.json.value) ?? false; } } const methodsRequiring...
io_flip/api/headers/application_json_header.dart/0
{ "file_path": "io_flip/api/headers/application_json_header.dart", "repo_id": "io_flip", "token_count": 396 }
877
/// Access to Cards data source. library cards_repository; export 'src/cards_repository.dart';
io_flip/api/packages/cards_repository/lib/cards_repository.dart/0
{ "file_path": "io_flip/api/packages/cards_repository/lib/cards_repository.dart", "repo_id": "io_flip", "token_count": 31 }
878
/// Client used to access the game database library db_client; export 'src/db_client.dart';
io_flip/api/packages/db_client/lib/db_client.dart/0
{ "file_path": "io_flip/api/packages/db_client/lib/db_client.dart", "repo_id": "io_flip", "token_count": 28 }
879
/// A Very Good Project created by Very Good CLI. library firebase_cloud_storage; export 'src/firebase_cloud_storage.dart';
io_flip/api/packages/firebase_cloud_storage/lib/firebase_cloud_storage.dart/0
{ "file_path": "io_flip/api/packages/firebase_cloud_storage/lib/firebase_cloud_storage.dart", "repo_id": "io_flip", "token_count": 37 }
880
import 'package:equatable/equatable.dart'; import 'package:game_domain/game_domain.dart'; import 'package:json_annotation/json_annotation.dart'; part 'match.g.dart'; /// {@template match} /// A model that represents a match. /// {@endtemplate} @JsonSerializable(ignoreUnannotated: true, explicitToJson: true) class Mat...
io_flip/api/packages/game_domain/lib/src/models/match.dart/0
{ "file_path": "io_flip/api/packages/game_domain/lib/src/models/match.dart", "repo_id": "io_flip", "token_count": 459 }
881
// ignore_for_file: prefer_const_constructors import 'package:game_domain/src/models/card_description.dart'; import 'package:test/test.dart'; void main() { group('CardDescription', () { test('can instantiate', () { expect( CardDescription( character: '', characterClass: '', ...
io_flip/api/packages/game_domain/test/src/models/card_description_test.dart/0
{ "file_path": "io_flip/api/packages/game_domain/test/src/models/card_description_test.dart", "repo_id": "io_flip", "token_count": 2195 }
882
/// The default script, used when none is found in the firebase. const defaultGameLogic = ''' external fun rollDoubleValue fun rollCardRarity() -> bool { var chance = rollDoubleValue(); return chance >= 0.95; } fun rollCardPower(isRare: bool) -> int { const maxValue = 99; const minValue = 10; const gap = m...
io_flip/api/packages/game_script_machine/lib/src/default_script.dart/0
{ "file_path": "io_flip/api/packages/game_script_machine/lib/src/default_script.dart", "repo_id": "io_flip", "token_count": 770 }
883
/// A dart_frog middleware for checking JWT authorization. library jwt_middleware; export 'src/authenticated_user.dart'; export 'src/jwt_middleware.dart';
io_flip/api/packages/jwt_middleware/lib/jwt_middleware.dart/0
{ "file_path": "io_flip/api/packages/jwt_middleware/lib/jwt_middleware.dart", "repo_id": "io_flip", "token_count": 50 }
884
include: package:very_good_analysis/analysis_options.3.1.0.yaml
io_flip/api/packages/prompt_repository/analysis_options.yaml/0
{ "file_path": "io_flip/api/packages/prompt_repository/analysis_options.yaml", "repo_id": "io_flip", "token_count": 23 }
885
import 'dart:async'; import 'dart:io'; import 'package:collection/collection.dart'; import 'package:dart_frog/dart_frog.dart'; import 'package:game_domain/game_domain.dart'; import 'package:prompt_repository/prompt_repository.dart'; FutureOr<Response> onRequest(RequestContext context) async { if (context.request.me...
io_flip/api/routes/game/prompt/terms/index.dart/0
{ "file_path": "io_flip/api/routes/game/prompt/terms/index.dart", "repo_id": "io_flip", "token_count": 326 }
886
import 'dart:io'; import 'package:dart_frog/dart_frog.dart'; import 'package:game_domain/game_domain.dart'; import 'package:logging/logging.dart'; import 'package:match_repository/match_repository.dart'; import 'package:mocktail/mocktail.dart'; import 'package:test/test.dart'; import '../../../../../routes/game/match...
io_flip/api/test/routes/game/matches/[matchId]/index_test.dart/0
{ "file_path": "io_flip/api/test/routes/game/matches/[matchId]/index_test.dart", "repo_id": "io_flip", "token_count": 1268 }
887
// ignore_for_file: avoid_print import 'dart:io'; import 'package:data_loader/src/prompt_mapper.dart'; import 'package:db_client/db_client.dart'; import 'package:game_domain/game_domain.dart'; /// {@template check_missing_descriptions} /// Dart tool that feed descriptions into the Descriptions base /// {@endtemplate...
io_flip/api/tools/data_loader/lib/src/check_missing_descriptions_loader.dart/0
{ "file_path": "io_flip/api/tools/data_loader/lib/src/check_missing_descriptions_loader.dart", "repo_id": "io_flip", "token_count": 733 }
888
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <rect x="10.5" y="10" width="3" height="12" fill="white"/> <path d="M12 6C12.5667 6 13.0417 5.80833 13.425 5.425C13.8083 5.04167 14 4.56667 14 4C14 3.43333 13.8083 2.95833 13.425 2.575C13.0417 2.19167 12.5667 2 12 2C11.4333 ...
io_flip/assets/icons/info.svg/0
{ "file_path": "io_flip/assets/icons/info.svg", "repo_id": "io_flip", "token_count": 233 }
889
// ignore_for_file: avoid_web_libraries_in_flutter, avoid_print import 'dart:async'; import 'dart:math'; import 'package:api_client/api_client.dart'; import 'package:authentication_repository/authentication_repository.dart'; import 'package:bloc/bloc.dart'; import 'package:cloud_firestore/cloud_firestore.dart'; impor...
io_flip/flop/lib/flop/bloc/flop_bloc.dart/0
{ "file_path": "io_flip/flop/lib/flop/bloc/flop_bloc.dart", "repo_id": "io_flip", "token_count": 4558 }
890
<html> <meta charset="UTF-8"> <meta content="IE=Edge" http-equiv="X-UA-Compatible"> <!-- Favicon --> <link rel="icon" type="image/png" href="favicon.png" /> <script type="text/javascript"> window.addEventListener('load', function() { let botArea = document.getElementById('botArea'); let fiel...
io_flip/flop/web/squad.html/0
{ "file_path": "io_flip/flop/web/squad.html", "repo_id": "io_flip", "token_count": 647 }
891
export 'widgets/widgets.dart';
io_flip/lib/audio/audio.dart/0
{ "file_path": "io_flip/lib/audio/audio.dart", "repo_id": "io_flip", "token_count": 12 }
892
export 'bloc/draft_bloc.dart'; export 'views/views.dart'; export 'widgets/widgets.dart';
io_flip/lib/draft/draft.dart/0
{ "file_path": "io_flip/lib/draft/draft.dart", "repo_id": "io_flip", "token_count": 36 }
893
import 'dart:async'; import 'package:flutter/material.dart' hide Card, Element; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:game_domain/game_domain.dart'; import 'package:game_script_machine/game_script_machine.dart'; import 'package:io_flip/audio/audio_controller.dart'; import 'package:io_flip/ge...
io_flip/lib/game/widgets/clash_scene.dart/0
{ "file_path": "io_flip/lib/game/widgets/clash_scene.dart", "repo_id": "io_flip", "token_count": 5033 }
894
export 'arrow_widget.dart'; export 'circular_alignment_tween.dart'; export 'fade_animated_switcher.dart'; export 'how_to_play_styled_text.dart'; export 'suits_wheel.dart';
io_flip/lib/how_to_play/widgets/widgets.dart/0
{ "file_path": "io_flip/lib/how_to_play/widgets/widgets.dart", "repo_id": "io_flip", "token_count": 67 }
895
export 'bloc/leaderboard_bloc.dart'; export 'views/views.dart'; export 'widgets/widgets.dart';
io_flip/lib/leaderboard/leaderboard.dart/0
{ "file_path": "io_flip/lib/leaderboard/leaderboard.dart", "repo_id": "io_flip", "token_count": 37 }
896
import 'package:flutter/material.dart' hide Card; import 'package:flutter/services.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:game_domain/game_domain.dart'; import 'package:go_router/go_router.dart'; import 'package:io_flip/audio/audio.dart'; import 'package:io_flip/game/game.dart'; import ...
io_flip/lib/match_making/views/match_making_view.dart/0
{ "file_path": "io_flip/lib/match_making/views/match_making_view.dart", "repo_id": "io_flip", "token_count": 3933 }
897
import 'package:api_client/api_client.dart'; import 'package:bloc/bloc.dart'; import 'package:equatable/equatable.dart'; import 'package:game_script_machine/game_script_machine.dart'; part 'scripts_state.dart'; class ScriptsCubit extends Cubit<ScriptsState> { ScriptsCubit({ required this.scriptsResource, re...
io_flip/lib/scripts/cubit/scripts_cubit.dart/0
{ "file_path": "io_flip/lib/scripts/cubit/scripts_cubit.dart", "repo_id": "io_flip", "token_count": 470 }
898
import 'package:flutter/material.dart' hide Card; import 'package:game_domain/game_domain.dart'; import 'package:go_router/go_router.dart'; import 'package:io_flip/share/share.dart'; import 'package:io_flip_ui/io_flip_ui.dart'; typedef ShowShareDialog = Future<void> Function(Card card); class CardInspectorDialog exte...
io_flip/lib/share/views/card_inspector_dialog.dart/0
{ "file_path": "io_flip/lib/share/views/card_inspector_dialog.dart", "repo_id": "io_flip", "token_count": 2668 }
899
import 'package:flutter/widgets.dart'; typedef RouterNeglectCall = void Function(BuildContext, VoidCallback);
io_flip/lib/utils/router_neglect_call.dart/0
{ "file_path": "io_flip/lib/utils/router_neglect_call.dart", "repo_id": "io_flip", "token_count": 33 }
900
import 'dart:io'; import 'dart:typed_data'; import 'package:api_client/api_client.dart'; /// {@template share_resource} /// An api resource for the public sharing API. /// {@endtemplate} class ShareResource { /// {@macro share_resource} ShareResource({ required ApiClient apiClient, }) : _apiClient = apiClie...
io_flip/packages/api_client/lib/src/resources/share_resource.dart/0
{ "file_path": "io_flip/packages/api_client/lib/src/resources/share_resource.dart", "repo_id": "io_flip", "token_count": 982 }
901
name: authentication_repository description: Repository to manage authentication. version: 0.1.0+1 publish_to: none environment: sdk: ">=3.0.0 <4.0.0" flutter: ">=3.10.0" dependencies: equatable: ^2.0.5 firebase_auth: ^4.2.9 firebase_core: ^2.5.0 firebase_core_platform_interface: ^4.5.3 flutter: sdk...
io_flip/packages/authentication_repository/pubspec.yaml/0
{ "file_path": "io_flip/packages/authentication_repository/pubspec.yaml", "repo_id": "io_flip", "token_count": 207 }
902
import 'dart:async'; import 'dart:convert'; import 'package:api_client/api_client.dart'; import 'package:game_domain/game_domain.dart'; import 'package:web_socket_client/web_socket_client.dart'; /// {@template connection_repository} /// Repository to manage the connection state. /// {@endtemplate} class ConnectionRep...
io_flip/packages/connection_repository/lib/src/connection_repository.dart/0
{ "file_path": "io_flip/packages/connection_repository/lib/src/connection_repository.dart", "repo_id": "io_flip", "token_count": 692 }
903
<svg width="98" height="98" viewBox="0 0 98 98" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M61.77 24.62L91.58 86.89L86.58 90.89H76.14H14.1H6L43.72 11L48.72 7L53.51 30.72L61.77 24.62Z" fill="#202124" stroke="#202124" stroke-width="2" stroke-linejoin="round"/> <path d="M61.77 24.62L91.58 86.89H81.14H19.1H11...
io_flip/packages/io_flip_ui/assets/images/suits/card/earth.svg/0
{ "file_path": "io_flip/packages/io_flip_ui/assets/images/suits/card/earth.svg", "repo_id": "io_flip", "token_count": 203 }
904
import 'package:flutter/material.dart'; import 'package:gallery/story_scaffold.dart'; import 'package:io_flip_ui/io_flip_ui.dart'; class AppSpacingStory extends StatelessWidget { const AppSpacingStory({super.key}); @override Widget build(BuildContext context) { const spacingList = [ _SpacingItem(spaci...
io_flip/packages/io_flip_ui/gallery/lib/spacing/app_spacing_story.dart/0
{ "file_path": "io_flip/packages/io_flip_ui/gallery/lib/spacing/app_spacing_story.dart", "repo_id": "io_flip", "token_count": 1071 }
905
import 'package:flutter/material.dart'; import 'package:gallery/story_scaffold.dart'; import 'package:io_flip_ui/io_flip_ui.dart'; class ResponsiveLayoutStory extends StatelessWidget { const ResponsiveLayoutStory({super.key}); @override Widget build(BuildContext context) { return StoryScaffold( title:...
io_flip/packages/io_flip_ui/gallery/lib/widgets/responsive_layout_story.dart/0
{ "file_path": "io_flip/packages/io_flip_ui/gallery/lib/widgets/responsive_layout_story.dart", "repo_id": "io_flip", "token_count": 404 }
906
import 'package:flutter/animation.dart'; import 'package:flutter/rendering.dart'; /// {@template card_animation} /// Used to set the animation properties of an animated card. /// {@endtemplate} class CardAnimation { /// {@macro card_animation} const CardAnimation({ required this.animatable, required this.d...
io_flip/packages/io_flip_ui/lib/src/animations/card_animation.dart/0
{ "file_path": "io_flip/packages/io_flip_ui/lib/src/animations/card_animation.dart", "repo_id": "io_flip", "token_count": 211 }
907
import 'dart:ui'; /// Card sizes used in the I/O FLIP UI. abstract class IoFlipCardSizes { /// xxs card size static const Size xxs = Size(54, 72); /// xs card size static const Size xs = Size(103, 137); /// sm card size static const Size sm = Size(139, 185); /// md card size static const Size md = S...
io_flip/packages/io_flip_ui/lib/src/theme/io_flip_card_sizes.dart/0
{ "file_path": "io_flip/packages/io_flip_ui/lib/src/theme/io_flip_card_sizes.dart", "repo_id": "io_flip", "token_count": 179 }
908
export 'charge_back.dart'; export 'charge_front.dart'; export 'damage_receive.dart'; export 'damage_send.dart'; export 'victory_charge_back.dart'; export 'victory_charge_front.dart';
io_flip/packages/io_flip_ui/lib/src/widgets/damages/damages.dart/0
{ "file_path": "io_flip/packages/io_flip_ui/lib/src/widgets/damages/damages.dart", "repo_id": "io_flip", "token_count": 67 }
909
import 'package:flutter/widgets.dart'; /// Signature for callbacks that are to receive and return a value /// of the same type. typedef ValueUpdater<T> = T Function(T current); /// {@template simple_flow} /// A flow-builder like stepper widget that allows to build a flow of steps /// in a form. /// {@endtemplate} cla...
io_flip/packages/io_flip_ui/lib/src/widgets/simple_flow.dart/0
{ "file_path": "io_flip/packages/io_flip_ui/lib/src/widgets/simple_flow.dart", "repo_id": "io_flip", "token_count": 1002 }
910
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/charge_back_test.dart/0
{ "file_path": "io_flip/packages/io_flip_ui/test/src/widgets/damages/charge_back_test.dart", "repo_id": "io_flip", "token_count": 440 }
911
// ignore_for_file: prefer_const_constructors import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:io_flip_ui/io_flip_ui.dart'; void main() { group('IoFlipScaffold', () { testWidgets('renders correctly', (tester) async { await tester.pumpWidget( ...
io_flip/packages/io_flip_ui/test/src/widgets/io_flip_scaffold_test.dart/0
{ "file_path": "io_flip/packages/io_flip_ui/test/src/widgets/io_flip_scaffold_test.dart", "repo_id": "io_flip", "token_count": 259 }
912
name: match_maker_repository description: Repository for match making. 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...
io_flip/packages/match_maker_repository/pubspec.yaml/0
{ "file_path": "io_flip/packages/match_maker_repository/pubspec.yaml", "repo_id": "io_flip", "token_count": 198 }
913
import 'dart:async'; import 'package:bloc_test/bloc_test.dart'; import 'package:connection_repository/connection_repository.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:game_domain/game_domain.dart'; import 'package:io_flip/connection/connection.dart'; import 'package:mocktail/mocktail.dart'...
io_flip/test/connection/bloc/connection_bloc_test.dart/0
{ "file_path": "io_flip/test/connection/bloc/connection_bloc_test.dart", "repo_id": "io_flip", "token_count": 1869 }
914
// ignore_for_file: prefer_const_constructors import 'dart:async'; import 'package:api_client/api_client.dart'; import 'package:bloc_test/bloc_test.dart'; import 'package:flutter/material.dart' hide Card; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package...
io_flip/test/game/views/game_view_test.dart/0
{ "file_path": "io_flip/test/game/views/game_view_test.dart", "repo_id": "io_flip", "token_count": 16689 }
915
import 'package:api_client/api_client.dart'; import 'package:bloc_test/bloc_test.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:game_domain/game_domain.dart' as gd; import 'package:io_flip/leaderboard/leaderboard.dart'; import 'package:mocktail/mocktail.dart'; class _MockLeaderboardResource ex...
io_flip/test/leaderboard/bloc/leaderboard_bloc_test.dart/0
{ "file_path": "io_flip/test/leaderboard/bloc/leaderboard_bloc_test.dart", "repo_id": "io_flip", "token_count": 951 }
916
// 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_domain/game_domain.dart'; import 'package:io_flip/prompt/prompt.dart'; import 'package:mocktail/mocktail.dart'; cl...
io_flip/test/prompt/bloc/prompt_form_bloc_test.dart/0
{ "file_path": "io_flip/test/prompt/bloc/prompt_form_bloc_test.dart", "repo_id": "io_flip", "token_count": 844 }
917
import 'dart:typed_data'; import 'package:api_client/api_client.dart'; import 'package:bloc_test/bloc_test.dart'; import 'package:cross_file/cross_file.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:game_domain/game_domain.dart'; import 'package:io_flip/share/bloc/download_bloc.dart'; import '...
io_flip/test/share/bloc/download_bloc_test.dart/0
{ "file_path": "io_flip/test/share/bloc/download_bloc_test.dart", "repo_id": "io_flip", "token_count": 1652 }
918
{ "name": "I/O FLIP", "short_name": "I/O FLIP", "start_url": ".", "display": "standalone", "background_color": "#0175C2", "theme_color": "#0175C2", "description": "Google I/O FLIP game", "orientation": "portrait-primary", "prefer_related_applications": false, "icons": [ {...
io_flip/web/manifest.json/0
{ "file_path": "io_flip/web/manifest.json", "repo_id": "io_flip", "token_count": 310 }
919
{ "singleQuote": true }
news_toolkit/docs/.prettierrc/0
{ "file_path": "news_toolkit/docs/.prettierrc", "repo_id": "news_toolkit", "token_count": 11 }
920
{ "label": "Project Configuration", "position": 3, "link": { "title": "Project Configuration", "type": "generated-index", "description": "Setup your project so you can start development." } }
news_toolkit/docs/docs/project_configuration/_category_.json/0
{ "file_path": "news_toolkit/docs/docs/project_configuration/_category_.json", "repo_id": "news_toolkit", "token_count": 69 }
921
// @ts-check // Note: type annotations allow type checking and IDEs autocompletion /** @type {import('@docusaurus/types').Config} */ const config = { title: 'Flutter News Toolkit', tagline: 'A high-quality news app template powered by Flutter and Dart.', url: 'https://flutter.github.io', baseUrl: '/news_toolki...
news_toolkit/docs/docusaurus.config.js/0
{ "file_path": "news_toolkit/docs/docusaurus.config.js", "repo_id": "news_toolkit", "token_count": 1368 }
922
{ "project_info": { "project_number": "737894073936", "project_id": "news-template-644a1", "storage_bucket": "news-template-644a1.appspot.com" }, "client": [ { "client_info": { "mobilesdk_app_id": "1:737894073936:android:dce282f64abfa89eb03355", "android_client_info": { ...
news_toolkit/flutter_news_example/android/app/src/development/google-services.json/0
{ "file_path": "news_toolkit/flutter_news_example/android/app/src/development/google-services.json", "repo_id": "news_toolkit", "token_count": 972 }
923
<?xml version="1.0" encoding="utf-8"?> <resources> <string name="facebook_app_id">3068290313391198</string> <string name="facebook_client_token">7a51baf0a329829a55e6ab8ced3da73a</string> <string name="twitter_redirect_uri_scheme">google-news-template</string> <string name="flavor_deep_link_domain">googl...
news_toolkit/flutter_news_example/android/app/src/development/res/values/strings.xml/0
{ "file_path": "news_toolkit/flutter_news_example/android/app/src/development/res/values/strings.xml", "repo_id": "news_toolkit", "token_count": 181 }
924
import 'dart:math' as math; import 'package:collection/collection.dart'; import 'package:flutter_news_example_api/api.dart'; import 'package:flutter_news_example_api/src/data/models/models.dart'; import 'package:news_blocks/news_blocks.dart'; part 'static_news_data.dart'; /// {@template in_memory_news_data_source} /...
news_toolkit/flutter_news_example/api/lib/src/data/in_memory_news_data_source.dart/0
{ "file_path": "news_toolkit/flutter_news_example/api/lib/src/data/in_memory_news_data_source.dart", "repo_id": "news_toolkit", "token_count": 1410 }
925
import 'package:dart_frog/dart_frog.dart'; import 'package:flutter_news_example_api/api.dart'; final _newsDataSource = InMemoryNewsDataSource(); /// Provider a [NewsDataSource] to the current [RequestContext]. Middleware newsDataSourceProvider() { return (handler) { return handler.use(provider<NewsDataSource>((...
news_toolkit/flutter_news_example/api/lib/src/middleware/news_data_source_provider.dart/0
{ "file_path": "news_toolkit/flutter_news_example/api/lib/src/middleware/news_data_source_provider.dart", "repo_id": "news_toolkit", "token_count": 114 }
926
// GENERATED CODE - DO NOT MODIFY BY HAND part of 'relevant_search_response.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** RelevantSearchResponse _$RelevantSearchResponseFr...
news_toolkit/flutter_news_example/api/lib/src/models/relevant_search_response/relevant_search_response.g.dart/0
{ "file_path": "news_toolkit/flutter_news_example/api/lib/src/models/relevant_search_response/relevant_search_response.g.dart", "repo_id": "news_toolkit", "token_count": 253 }
927
import 'package:equatable/equatable.dart'; import 'package:json_annotation/json_annotation.dart'; import 'package:news_blocks/news_blocks.dart'; part 'divider_horizontal_block.g.dart'; /// {@template divider_horizontal_block} /// A block which represents a divider horizontal. /// https://www.figma.com/file/RajSN6YbRq...
news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/divider_horizontal_block.dart/0
{ "file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/divider_horizontal_block.dart", "repo_id": "news_toolkit", "token_count": 372 }
928
import 'package:json_annotation/json_annotation.dart'; import 'package:news_blocks/news_blocks.dart'; part 'post_large_block.g.dart'; /// {@template post_large_block} /// A block which represents a large post block. /// https://www.figma.com/file/RajSN6YbRqTuqvdKYtij3b/Google-News-Template-App-v3?node-id=391%3A18585 ...
news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/post_large_block.dart/0
{ "file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/post_large_block.dart", "repo_id": "news_toolkit", "token_count": 392 }
929
import 'package:equatable/equatable.dart'; import 'package:json_annotation/json_annotation.dart'; import 'package:news_blocks/news_blocks.dart'; part 'text_caption_block.g.dart'; /// The text color of [TextCaptionBlock]. enum TextCaptionColor { /// The normal text color. normal, /// The light text color. lig...
news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/text_caption_block.dart/0
{ "file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/lib/src/text_caption_block.dart", "repo_id": "news_toolkit", "token_count": 459 }
930
name: news_blocks description: Reusable News Blocks for the Flutter News Example Application version: 1.0.0+1 publish_to: none environment: sdk: ">=3.0.0 <4.0.0" dependencies: equatable: ^2.0.3 json_annotation: ^4.6.0 meta: ^1.7.0 dev_dependencies: build_runner: ^2.0.0 coverage: ^1.1.0 json_serializabl...
news_toolkit/flutter_news_example/api/packages/news_blocks/pubspec.yaml/0
{ "file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/pubspec.yaml", "repo_id": "news_toolkit", "token_count": 177 }
931
import 'package:news_blocks/news_blocks.dart'; import 'package:test/test.dart'; void main() { group('PostMediumBlock', () { test('can be (de)serialized', () { final block = PostMediumBlock( id: 'id', category: PostCategory.sports, author: 'author', publishedAt: DateTime(2022...
news_toolkit/flutter_news_example/api/packages/news_blocks/test/src/post_medium_block_test.dart/0
{ "file_path": "news_toolkit/flutter_news_example/api/packages/news_blocks/test/src/post_medium_block_test.dart", "repo_id": "news_toolkit", "token_count": 207 }
932
name: flutter_news_example_api description: A Flutter News Example server app built with the dart_frog package. version: 0.1.0+1 publish_to: none environment: sdk: ">=3.0.0 <4.0.0" dependencies: collection: ^1.16.0 dart_frog: ^1.1.0 equatable: ^2.0.5 http: ^1.0.0 json_annotation: ^4.6.0 news_blocks: ...
news_toolkit/flutter_news_example/api/pubspec.yaml/0
{ "file_path": "news_toolkit/flutter_news_example/api/pubspec.yaml", "repo_id": "news_toolkit", "token_count": 215 }
933
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:news_blocks/news_blocks.dart'; import 'package:test/test.dart'; import '../../../routes/api/v1/feed/index.dart' as route; class _MockFeed extends M...
news_toolkit/flutter_news_example/api/test/routes/feed/index_test.dart/0
{ "file_path": "news_toolkit/flutter_news_example/api/test/routes/feed/index_test.dart", "repo_id": "news_toolkit", "token_count": 1363 }
934
tags: presubmit-only:
news_toolkit/flutter_news_example/dart_test.yaml/0
{ "file_path": "news_toolkit/flutter_news_example/dart_test.yaml", "repo_id": "news_toolkit", "token_count": 11 }
935
import 'dart:async'; import 'package:bloc/bloc.dart'; import 'package:equatable/equatable.dart'; import 'package:google_mobile_ads/google_mobile_ads.dart' as ads; import 'package:news_blocks_ui/news_blocks_ui.dart'; import 'package:platform/platform.dart'; part 'full_screen_ads_event.dart'; part 'full_screen_ads_stat...
news_toolkit/flutter_news_example/lib/ads/bloc/full_screen_ads_bloc.dart/0
{ "file_path": "news_toolkit/flutter_news_example/lib/ads/bloc/full_screen_ads_bloc.dart", "repo_id": "news_toolkit", "token_count": 2940 }
936
export 'authenticated_user_listener.dart';
news_toolkit/flutter_news_example/lib/app/widgets/widgets.dart/0
{ "file_path": "news_toolkit/flutter_news_example/lib/app/widgets/widgets.dart", "repo_id": "news_toolkit", "token_count": 14 }
937
// GENERATED CODE - DO NOT MODIFY BY HAND part of 'categories_bloc.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** CategoriesState _$CategoriesStateFromJson(Map<String, dyna...
news_toolkit/flutter_news_example/lib/categories/bloc/categories_bloc.g.dart/0
{ "file_path": "news_toolkit/flutter_news_example/lib/categories/bloc/categories_bloc.g.dart", "repo_id": "news_toolkit", "token_count": 480 }
938
export 'category_feed.dart'; export 'category_feed_item.dart'; export 'category_feed_loader_item.dart';
news_toolkit/flutter_news_example/lib/feed/widgets/widgets.dart/0
{ "file_path": "news_toolkit/flutter_news_example/lib/feed/widgets/widgets.dart", "repo_id": "news_toolkit", "token_count": 36 }
939
import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_news_example/login/login.dart'; import 'package:user_repository/user_repository.dart'; class LoginModal extends StatelessWidget { const LoginModal({super.key}); static Route<void> route() => Mate...
news_toolkit/flutter_news_example/lib/login/view/login_modal.dart/0
{ "file_path": "news_toolkit/flutter_news_example/lib/login/view/login_modal.dart", "repo_id": "news_toolkit", "token_count": 228 }
940
import 'package:flutter/material.dart'; import 'package:flutter_news_example/l10n/l10n.dart'; @visibleForTesting class BottomNavBar extends StatelessWidget { const BottomNavBar({ required this.currentIndex, required this.onTap, super.key, }); final int currentIndex; final ValueSetter<int> onTap; ...
news_toolkit/flutter_news_example/lib/navigation/view/bottom_nav_bar.dart/0
{ "file_path": "news_toolkit/flutter_news_example/lib/navigation/view/bottom_nav_bar.dart", "repo_id": "news_toolkit", "token_count": 367 }
941
export 'bloc/notification_preferences_bloc.dart'; export 'view/view.dart'; export 'widgets/widgets.dart';
news_toolkit/flutter_news_example/lib/notification_preferences/notification_preferences.dart/0
{ "file_path": "news_toolkit/flutter_news_example/lib/notification_preferences/notification_preferences.dart", "repo_id": "news_toolkit", "token_count": 41 }
942
part of 'search_bloc.dart'; enum SearchStatus { initial, loading, populated, failure, } enum SearchType { popular, relevant, } class SearchState extends Equatable { const SearchState({ required this.articles, required this.topics, required this.status, required this.searchType, }); ...
news_toolkit/flutter_news_example/lib/search/bloc/search_state.dart/0
{ "file_path": "news_toolkit/flutter_news_example/lib/search/bloc/search_state.dart", "repo_id": "news_toolkit", "token_count": 397 }
943
export 'bloc/subscriptions_bloc.dart'; export 'view/purchase_subscription_dialog.dart';
news_toolkit/flutter_news_example/lib/subscriptions/dialog/dialog.dart/0
{ "file_path": "news_toolkit/flutter_news_example/lib/subscriptions/dialog/dialog.dart", "repo_id": "news_toolkit", "token_count": 33 }
944
import 'package:equatable/equatable.dart'; import 'package:flutter/material.dart'; import 'package:hydrated_bloc/hydrated_bloc.dart'; part 'theme_mode_event.dart'; /// Keeps track of and allows changing the application's [ThemeMode]. class ThemeModeBloc extends HydratedBloc<ThemeModeEvent, ThemeMode> { /// Create a...
news_toolkit/flutter_news_example/lib/theme_selector/bloc/theme_mode_bloc.dart/0
{ "file_path": "news_toolkit/flutter_news_example/lib/theme_selector/bloc/theme_mode_bloc.dart", "repo_id": "news_toolkit", "token_count": 225 }
945
export 'src/ads_consent_client.dart';
news_toolkit/flutter_news_example/packages/ads_consent_client/lib/ads_consent_client.dart/0
{ "file_path": "news_toolkit/flutter_news_example/packages/ads_consent_client/lib/ads_consent_client.dart", "repo_id": "news_toolkit", "token_count": 15 }
946
# gallery Gallery project to showcase app_ui
news_toolkit/flutter_news_example/packages/app_ui/gallery/README.md/0
{ "file_path": "news_toolkit/flutter_news_example/packages/app_ui/gallery/README.md", "repo_id": "news_toolkit", "token_count": 12 }
947
export 'spacing_page.dart';
news_toolkit/flutter_news_example/packages/app_ui/gallery/lib/spacing/spacing.dart/0
{ "file_path": "news_toolkit/flutter_news_example/packages/app_ui/gallery/lib/spacing/spacing.dart", "repo_id": "news_toolkit", "token_count": 11 }
948
export 'app_font_weight.dart'; export 'app_text_styles.dart';
news_toolkit/flutter_news_example/packages/app_ui/lib/src/typography/typography.dart/0
{ "file_path": "news_toolkit/flutter_news_example/packages/app_ui/lib/src/typography/typography.dart", "repo_id": "news_toolkit", "token_count": 24 }
949
// ignore_for_file: prefer_const_literals_to_create_immutables // ignore_for_file: prefer_const_constructors // ignore_for_file: avoid_redundant_argument_values import 'package:app_ui/app_ui.dart'; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import '../helpers/helpers.dart...
news_toolkit/flutter_news_example/packages/app_ui/test/src/widgets/app_button_test.dart/0
{ "file_path": "news_toolkit/flutter_news_example/packages/app_ui/test/src/widgets/app_button_test.dart", "repo_id": "news_toolkit", "token_count": 7605 }
950
import 'package:article_repository/article_repository.dart'; import 'package:mocktail/mocktail.dart'; import 'package:storage/storage.dart'; import 'package:test/test.dart'; class MockStorage extends Mock implements Storage {} void main() { group('ArticleStorage', () { late Storage storage; setUp(() { ...
news_toolkit/flutter_news_example/packages/article_repository/test/src/article_storage_test.dart/0
{ "file_path": "news_toolkit/flutter_news_example/packages/article_repository/test/src/article_storage_test.dart", "repo_id": "news_toolkit", "token_count": 2297 }
951
name: firebase_authentication_client description: A Firebase implementation of the authentication client interface version: 1.0.0+1 publish_to: none environment: sdk: ">=3.0.0 <4.0.0" dependencies: authentication_client: path: ../authentication_client firebase_auth: ^4.16.0 firebase_auth_platform_interfac...
news_toolkit/flutter_news_example/packages/authentication_client/firebase_authentication_client/pubspec.yaml/0
{ "file_path": "news_toolkit/flutter_news_example/packages/authentication_client/firebase_authentication_client/pubspec.yaml", "repo_id": "news_toolkit", "token_count": 296 }
952
include: package:very_good_analysis/analysis_options.5.1.0.yaml
news_toolkit/flutter_news_example/packages/email_launcher/analysis_options.yaml/0
{ "file_path": "news_toolkit/flutter_news_example/packages/email_launcher/analysis_options.yaml", "repo_id": "news_toolkit", "token_count": 23 }
953
include: package:very_good_analysis/analysis_options.5.1.0.yaml
news_toolkit/flutter_news_example/packages/in_app_purchase_repository/analysis_options.yaml/0
{ "file_path": "news_toolkit/flutter_news_example/packages/in_app_purchase_repository/analysis_options.yaml", "repo_id": "news_toolkit", "token_count": 23 }
954
import 'package:news_blocks/news_blocks.dart'; /// Signature of callbacks invoked when [BlockAction] is triggered. typedef BlockActionCallback = void Function(BlockAction action);
news_toolkit/flutter_news_example/packages/news_blocks_ui/lib/src/block_action_callback.dart/0
{ "file_path": "news_toolkit/flutter_news_example/packages/news_blocks_ui/lib/src/block_action_callback.dart", "repo_id": "news_toolkit", "token_count": 47 }
955
import 'package:app_ui/app_ui.dart'; import 'package:flutter/material.dart'; import 'package:news_blocks_ui/src/widgets/widgets.dart'; /// {@template post_medium_description_layout} /// A reusable post medium news block widget showing post description. /// {@endtemplate} class PostMediumDescriptionLayout extends State...
news_toolkit/flutter_news_example/packages/news_blocks_ui/lib/src/post_medium/post_medium_description_layout.dart/0
{ "file_path": "news_toolkit/flutter_news_example/packages/news_blocks_ui/lib/src/post_medium/post_medium_description_layout.dart", "repo_id": "news_toolkit", "token_count": 901 }
956
import 'package:app_ui/app_ui.dart'; import 'package:flutter/material.dart'; import 'package:news_blocks/news_blocks.dart'; /// {@template banner_ad_container} /// A reusable banner ad container widget. /// {@endtemplate} class BannerAdContainer extends StatelessWidget { /// {@macro banner_ad_container} const Bann...
news_toolkit/flutter_news_example/packages/news_blocks_ui/lib/src/widgets/banner_ad_container.dart/0
{ "file_path": "news_toolkit/flutter_news_example/packages/news_blocks_ui/lib/src/widgets/banner_ad_container.dart", "repo_id": "news_toolkit", "token_count": 433 }
957
export 'fake_video_player_platform.dart'; export 'path_provider.dart'; export 'pump_app.dart'; export 'pump_content_themed_app.dart'; export 'tolerant_comparator.dart';
news_toolkit/flutter_news_example/packages/news_blocks_ui/test/helpers/helpers.dart/0
{ "file_path": "news_toolkit/flutter_news_example/packages/news_blocks_ui/test/helpers/helpers.dart", "repo_id": "news_toolkit", "token_count": 65 }
958
// ignore_for_file: prefer_const_constructors import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:mocktail_image_network/mocktail_image_network.dart'; import 'package:news_blocks/news_blocks.dart'; import 'package:news_blocks_ui/news_blocks_ui.dart'; import '../hel...
news_toolkit/flutter_news_example/packages/news_blocks_ui/test/src/slideshow_test.dart/0
{ "file_path": "news_toolkit/flutter_news_example/packages/news_blocks_ui/test/src/slideshow_test.dart", "repo_id": "news_toolkit", "token_count": 3863 }
959
// ignore_for_file: unnecessary_const, prefer_const_constructors import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:news_blocks/news_blocks.dart'; import 'package:news_blocks_ui/news_blocks_ui.dart'; import '../helpers/helpers.dart'; void main() { group('TextCa...
news_toolkit/flutter_news_example/packages/news_blocks_ui/test/src/text_caption_test.dart/0
{ "file_path": "news_toolkit/flutter_news_example/packages/news_blocks_ui/test/src/text_caption_test.dart", "repo_id": "news_toolkit", "token_count": 1155 }
960
// ignore_for_file: prefer_const_constructors import 'package:flutter/widgets.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:news_blocks_ui/src/widgets/widgets.dart'; import '../../helpers/helpers.dart'; void main() { group('LockIcon', () { testWidgets('renders correctly', (tester) asyn...
news_toolkit/flutter_news_example/packages/news_blocks_ui/test/src/widgets/lock_icon_test.dart/0
{ "file_path": "news_toolkit/flutter_news_example/packages/news_blocks_ui/test/src/widgets/lock_icon_test.dart", "repo_id": "news_toolkit", "token_count": 163 }
961
include: package:very_good_analysis/analysis_options.5.1.0.yaml
news_toolkit/flutter_news_example/packages/news_repository/analysis_options.yaml/0
{ "file_path": "news_toolkit/flutter_news_example/packages/news_repository/analysis_options.yaml", "repo_id": "news_toolkit", "token_count": 23 }
962
/// {@template notification_exception} /// Exceptions from the notification client. /// {@endtemplate} abstract class NotificationException implements Exception { /// {@macro notification_exception} const NotificationException(this.error); /// The error which was caught. final Object error; } /// {@template s...
news_toolkit/flutter_news_example/packages/notifications_client/notifications_client/lib/src/notifications_client.dart/0
{ "file_path": "news_toolkit/flutter_news_example/packages/notifications_client/notifications_client/lib/src/notifications_client.dart", "repo_id": "news_toolkit", "token_count": 328 }
963
name: notifications_repository description: A repository that manages notification permissions and topic subscriptions. version: 1.0.0+1 publish_to: none environment: sdk: ">=3.0.0 <4.0.0" dependencies: equatable: ^2.0.3 flutter: sdk: flutter flutter_news_example_api: path: ../../api notifications_c...
news_toolkit/flutter_news_example/packages/notifications_repository/pubspec.yaml/0
{ "file_path": "news_toolkit/flutter_news_example/packages/notifications_repository/pubspec.yaml", "repo_id": "news_toolkit", "token_count": 227 }
964
// ignore_for_file: prefer_const_constructors import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:permission_client/permission_client.dart'; import 'package:permission_handler/permission_handler.dart'; void main() { final binding = TestWidgetsFlutterBinding.ensur...
news_toolkit/flutter_news_example/packages/permission_client/test/src/permission_client_test.dart/0
{ "file_path": "news_toolkit/flutter_news_example/packages/permission_client/test/src/permission_client_test.dart", "repo_id": "news_toolkit", "token_count": 1423 }
965
# persistent_storage Storage that saves data in the device's persistent memory.
news_toolkit/flutter_news_example/packages/storage/persistent_storage/README.md/0
{ "file_path": "news_toolkit/flutter_news_example/packages/storage/persistent_storage/README.md", "repo_id": "news_toolkit", "token_count": 18 }
966
/// {@template storage_exception} /// Exception thrown if a storage operation fails. /// {@endtemplate} class StorageException implements Exception { /// {@macro storage_exception} const StorageException(this.error); /// Error thrown during the storage operation. final Object error; } /// A Dart Storage Clien...
news_toolkit/flutter_news_example/packages/storage/storage/lib/storage.dart/0
{ "file_path": "news_toolkit/flutter_news_example/packages/storage/storage/lib/storage.dart", "repo_id": "news_toolkit", "token_count": 282 }
967
// ignore_for_file: prefer_const_constructors import 'dart:async'; import 'package:bloc_test/bloc_test.dart'; import 'package:fake_async/fake_async.dart'; import 'package:flutter_news_example/ads/ads.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:google_mobile_ads/google_mobile_ads.dart' as a...
news_toolkit/flutter_news_example/test/ads/bloc/full_screen_ads_bloc_test.dart/0
{ "file_path": "news_toolkit/flutter_news_example/test/ads/bloc/full_screen_ads_bloc_test.dart", "repo_id": "news_toolkit", "token_count": 12241 }
968
export 'fake_video_player_platform.dart';
news_toolkit/flutter_news_example/test/article/helpers/helpers.dart/0
{ "file_path": "news_toolkit/flutter_news_example/test/article/helpers/helpers.dart", "repo_id": "news_toolkit", "token_count": 14 }
969
// ignore_for_file: prefer_const_constructors import 'dart:async'; import 'package:bloc_test/bloc_test.dart'; import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart' hide Spacer; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_news_example/categories/categories.dart'; i...
news_toolkit/flutter_news_example/test/feed/view/feed_view_test.dart/0
{ "file_path": "news_toolkit/flutter_news_example/test/feed/view/feed_view_test.dart", "repo_id": "news_toolkit", "token_count": 4430 }
970