text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
export 'clear_stickers_button_layer.dart';
export 'clear_stickers_cancel_button.dart';
export 'clear_stickers_confirm_button.dart';
export 'clear_stickers_dialog.dart';
| photobooth/lib/stickers/widgets/clear_stickers/clear_stickers.dart/0 | {
"file_path": "photobooth/lib/stickers/widgets/clear_stickers/clear_stickers.dart",
"repo_id": "photobooth",
"token_count": 61
} | 1,071 |
name: analytics
description: A Flutter package which adds analytics support
environment:
sdk: ">=2.19.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
dev_dependencies:
flutter_test:
sdk: flutter
mocktail: ^0.3.0
very_good_analysis: ^4.0.0+1
| photobooth/packages/analytics/pubspec.yaml/0 | {
"file_path": "photobooth/packages/analytics/pubspec.yaml",
"repo_id": "photobooth",
"token_count": 108
} | 1,072 |
import 'package:camera_platform_interface/src/platform_interface/camera_platform.dart';
import 'package:flutter/foundation.dart';
class CameraOptions {
const CameraOptions({
AudioConstraints? audio,
VideoConstraints? video,
}) : audio = audio ?? const AudioConstraints(),
video = video ?? const Vid... | photobooth/packages/camera/camera_platform_interface/lib/src/types/camera_options.dart/0 | {
"file_path": "photobooth/packages/camera/camera_platform_interface/lib/src/types/camera_options.dart",
"repo_id": "photobooth",
"token_count": 804
} | 1,073 |
import 'dart:async';
import 'dart:convert';
import 'package:image_compositor/image_compositor.dart';
import 'package:image_compositor/src/image_loader.dart';
import 'package:image_compositor/src/offscreen_canvas.dart';
/// {@macro image_compositor}
class ImageCompositor {
/// {@macro image_compositor}
ImageCompos... | photobooth/packages/image_compositor/lib/src/web.dart/0 | {
"file_path": "photobooth/packages/image_compositor/lib/src/web.dart",
"repo_id": "photobooth",
"token_count": 2015
} | 1,074 |
export 'links_helper.dart';
export 'modal_helper.dart';
| photobooth/packages/photobooth_ui/lib/src/helpers/helpers.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/lib/src/helpers/helpers.dart",
"repo_id": "photobooth",
"token_count": 23
} | 1,075 |
import 'package:flutter/material.dart';
const _defaultFadeInDuration = Duration(seconds: 1);
/// {@template animated_fade_in}
/// Widget that applies a fade in transition to its child.
/// {@endtemplate}
class AnimatedFadeIn extends StatefulWidget {
/// {@macro animated_fade_in}
const AnimatedFadeIn({
require... | photobooth/packages/photobooth_ui/lib/src/widgets/animated_fade_in.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/lib/src/widgets/animated_fade_in.dart",
"repo_id": "photobooth",
"token_count": 375
} | 1,076 |
const transparentImage = <int>[
0x89,
0x50,
0x4E,
0x47,
0x0D,
0x0A,
0x1A,
0x0A,
0x00,
0x00,
0x00,
0x0D,
0x49,
0x48,
0x44,
0x52,
0x00,
0x00,
0x00,
0x01,
0x00,
0x00,
0x00,
0x01,
0x08,
0x06,
0x00,
0x00,
0x00,
0x1F,
0x15,
0xC4,
0x89,
0x00,
0x00,
0x00,
... | photobooth/packages/photobooth_ui/test/helpers/constants.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/test/helpers/constants.dart",
"repo_id": "photobooth",
"token_count": 409
} | 1,077 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:photobooth_ui/photobooth_ui.dart';
void main() {
group('AppPageView', () {
const footerKey = Key('footer');
const bodyKey = Key('body');
const background... | photobooth/packages/photobooth_ui/test/src/widgets/app_page_view_test.dart/0 | {
"file_path": "photobooth/packages/photobooth_ui/test/src/widgets/app_page_view_test.dart",
"repo_id": "photobooth",
"token_count": 1106
} | 1,078 |
import 'package:authentication_repository/authentication_repository.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_photobooth/app/app.dart';
import 'package:io_photobooth/landing/landing.dart';
import 'package:mocktail/mocktail.dart';
import 'package:p... | photobooth/test/app_test.dart/0 | {
"file_path": "photobooth/test/app_test.dart",
"repo_id": "photobooth",
"token_count": 779
} | 1,079 |
// ignore_for_file: prefer_const_constructors
import 'package:bloc_test/bloc_test.dart';
import 'package:camera/camera.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_photobooth/assets.g.dart';
import 'package:io_photobooth/photobooth/photobooth.dart';
... | photobooth/test/photobooth/widgets/stickers_layer_test.dart/0 | {
"file_path": "photobooth/test/photobooth/widgets/stickers_layer_test.dart",
"repo_id": "photobooth",
"token_count": 1101
} | 1,080 |
// ignore_for_file: prefer_const_constructors
import 'dart:typed_data';
import 'package:cross_file/cross_file.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:io_photobooth/photobooth/photobooth.dart';
import 'package:io_photobooth/share/share.dart';
import 'package:mocktail/mocktail.dart';
imp... | photobooth/test/share/widgets/twitter_button_test.dart/0 | {
"file_path": "photobooth/test/share/widgets/twitter_button_test.dart",
"repo_id": "photobooth",
"token_count": 794
} | 1,081 |
import 'package:flame/components.dart';
import 'package:pinball/select_character/select_character.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
/// {@template bonus_ball_spawning_behavior}
/// After a duration, spawns a bonus ball from the [DinoW... | pinball/lib/game/behaviors/bonus_ball_spawning_behavior.dart/0 | {
"file_path": "pinball/lib/game/behaviors/bonus_ball_spawning_behavior.dart",
"repo_id": "pinball",
"token_count": 414
} | 1,082 |
import 'package:flame/components.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:pinball/game/game.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
/// Increases the multiplier when a [Ball] is shot 5 times into the
/// [Spaceshi... | pinball/lib/game/components/android_acres/behaviors/ramp_multiplier_behavior.dart/0 | {
"file_path": "pinball/lib/game/components/android_acres/behaviors/ramp_multiplier_behavior.dart",
"repo_id": "pinball",
"token_count": 337
} | 1,083 |
import 'dart:async';
import 'package:flame/components.dart';
import 'package:flame/input.dart';
import 'package:flutter/material.dart';
import 'package:pinball/l10n/l10n.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
import 'package:pinball_ui/pin... | pinball/lib/game/components/backbox/displays/share_display.dart/0 | {
"file_path": "pinball/lib/game/components/backbox/displays/share_display.dart",
"repo_id": "pinball",
"token_count": 1946
} | 1,084 |
import 'package:flame/components.dart';
import 'package:pinball_components/pinball_components.dart' hide Assets;
/// {@template launcher}
/// Channel on the right side of the board containing the [LaunchRamp],
/// [Plunger], and [RocketSpriteComponent].
/// {@endtemplate}
class Launcher extends Component {
/// {@mac... | pinball/lib/game/components/launcher.dart/0 | {
"file_path": "pinball/lib/game/components/launcher.dart",
"repo_id": "pinball",
"token_count": 236
} | 1,085 |
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:pinball/game/game.dart';
import 'package:pinball/gen/gen.dart';
import 'package:pinball_ui/pinball_ui.dart';
/// {@template game_hud}
/// Overlay on the [PinballGame].
///
/// Displays the current [GameState.displa... | pinball/lib/game/view/widgets/game_hud.dart/0 | {
"file_path": "pinball/lib/game/view/widgets/game_hud.dart",
"repo_id": "pinball",
"token_count": 1584
} | 1,086 |
import 'package:authentication_repository/authentication_repository.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:leaderboard_repository/leaderboard_repository.dart';
import 'package:pinball/app/app.dart';
import 'package:pinball/bootstrap.dart';
import 'package:pinball_audio/pinball_audio.d... | pinball/lib/main.dart/0 | {
"file_path": "pinball/lib/main.dart",
"repo_id": "pinball",
"token_count": 376
} | 1,087 |
include: package:very_good_analysis/analysis_options.2.4.0.yaml | pinball/packages/authentication_repository/analysis_options.yaml/0 | {
"file_path": "pinball/packages/authentication_repository/analysis_options.yaml",
"repo_id": "pinball",
"token_count": 22
} | 1,088 |
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:leaderboard_repository/leaderboard_repository.dart';
/// {@template leaderboard_repository}
/// Repository to access leaderboard data in Firebase Cloud Firestore.
/// {@endtemplate}
class LeaderboardRepository {
/// {@macro leaderboard_repository... | pinball/packages/leaderboard_repository/lib/src/leaderboard_repository.dart/0 | {
"file_path": "pinball/packages/leaderboard_repository/lib/src/leaderboard_repository.dart",
"repo_id": "pinball",
"token_count": 1063
} | 1,089 |
import 'dart:async';
import 'package:flame/components.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flutter/material.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_components/src/components/android_bumper/behaviors/behaviors.dart';
import 'packag... | pinball/packages/pinball_components/lib/src/components/android_bumper/android_bumper.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/android_bumper/android_bumper.dart",
"repo_id": "pinball",
"token_count": 2010
} | 1,090 |
import 'package:flame/components.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
/// Scales the ball's body and sprite according to its position on the board.
class BallScalingBehavior extends Component with ParentIsA<Ball> {
@override
void upd... | pinball/packages/pinball_components/lib/src/components/ball/behaviors/ball_scaling_behavior.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/ball/behaviors/ball_scaling_behavior.dart",
"repo_id": "pinball",
"token_count": 339
} | 1,091 |
import 'package:flame/components.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
/// {@template chrome_dino_swivel_behavior}
/// Swivels the [ChromeDino] up and down periodically to match its anima... | pinball/packages/pinball_components/lib/src/components/chrome_dino/behaviors/chrome_dino_swiveling_behavior.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/chrome_dino/behaviors/chrome_dino_swiveling_behavior.dart",
"repo_id": "pinball",
"token_count": 968
} | 1,092 |
export 'flipper_jointing_behavior.dart';
export 'flipper_key_controlling_behavior.dart';
export 'flipper_moving_behavior.dart';
export 'flipper_noise_behavior.dart';
| pinball/packages/pinball_components/lib/src/components/flipper/behaviors/behaviors.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/flipper/behaviors/behaviors.dart",
"repo_id": "pinball",
"token_count": 58
} | 1,093 |
import 'package:flame/components.dart';
import 'package:pinball_components/pinball_components.dart';
export 'behaviors/behaviors.dart';
export 'cubit/google_word_cubit.dart';
/// {@template google_word}
/// Loads all [GoogleLetter]s to compose a [GoogleWord].
/// {@endtemplate}
class GoogleWord extends PositionCompon... | pinball/packages/pinball_components/lib/src/components/google_word/google_word.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/google_word/google_word.dart",
"repo_id": "pinball",
"token_count": 378
} | 1,094 |
part of 'multiball_cubit.dart';
enum MultiballLightState {
lit,
dimmed,
}
// Indicates if the blinking animation is running.
enum MultiballAnimationState {
idle,
blinking,
}
class MultiballState extends Equatable {
const MultiballState({
required this.lightState,
required this.animationState,
});... | pinball/packages/pinball_components/lib/src/components/multiball/cubit/multiball_state.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/multiball/cubit/multiball_state.dart",
"repo_id": "pinball",
"token_count": 317
} | 1,095 |
import 'package:flame/components.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
/// Scales a [ScoreComponent] according to its position on the board.
class ScoreComponentScalingBehavior extends Component
with ParentIsA<SpriteComponent> {
@ov... | pinball/packages/pinball_components/lib/src/components/score_component/behaviors/score_component_scaling_behavior.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/score_component/behaviors/score_component_scaling_behavior.dart",
"repo_id": "pinball",
"token_count": 264
} | 1,096 |
// ignore_for_file: comment_references
part of 'spaceship_ramp_cubit.dart';
class SpaceshipRampState extends Equatable {
const SpaceshipRampState({
required this.hits,
required this.lightState,
}) : assert(hits >= 0, "Hits can't be negative");
const SpaceshipRampState.initial()
: this(
... | pinball/packages/pinball_components/lib/src/components/spaceship_ramp/cubit/spaceship_ramp_state.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/components/spaceship_ramp/cubit/spaceship_ramp_state.dart",
"repo_id": "pinball",
"token_count": 414
} | 1,097 |
import 'package:intl/intl.dart';
final _numberFormat = NumberFormat('#,###');
/// Adds score related extensions to int
extension ScoreX on int {
/// Formats this number as a score value
String formatScore() {
return _numberFormat.format(this);
}
}
| pinball/packages/pinball_components/lib/src/extensions/score.dart/0 | {
"file_path": "pinball/packages/pinball_components/lib/src/extensions/score.dart",
"repo_id": "pinball",
"token_count": 81
} | 1,098 |
import 'dart:async';
import 'package:flame/extensions.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:sandbox/stories/ball/basic_ball_game.dart';
class AndroidBumperCowGame extends BallGame {
AndroidBumperCowGame()
: super(
imagesFileNames: [
Assets.im... | pinball/packages/pinball_components/sandbox/lib/stories/android_acres/android_bumper_cow_game.dart/0 | {
"file_path": "pinball/packages/pinball_components/sandbox/lib/stories/android_acres/android_bumper_cow_game.dart",
"repo_id": "pinball",
"token_count": 312
} | 1,099 |
import 'package:dashbook/dashbook.dart';
import 'package:sandbox/common/common.dart';
import 'package:sandbox/stories/boundaries/boundaries_game.dart';
void addBoundariesStories(Dashbook dashbook) {
dashbook.storiesOf('Boundaries').addGame(
title: 'Traced',
description: BoundariesGame.description,
... | pinball/packages/pinball_components/sandbox/lib/stories/boundaries/stories.dart/0 | {
"file_path": "pinball/packages/pinball_components/sandbox/lib/stories/boundaries/stories.dart",
"repo_id": "pinball",
"token_count": 136
} | 1,100 |
import 'dart:async';
import 'package:flame/input.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
import 'package:sandbox/stories/ball/basic_ball_game.dart';
class LaunchRampGame extends BallGame {
LaunchRampGame()
: super(
ballPr... | pinball/packages/pinball_components/sandbox/lib/stories/launch_ramp/launch_ramp_game.dart/0 | {
"file_path": "pinball/packages/pinball_components/sandbox/lib/stories/launch_ramp/launch_ramp_game.dart",
"repo_id": "pinball",
"token_count": 418
} | 1,101 |
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:pinball_components/pinball_components.dart';
void main() {
group(
'AndroidBumperCubit',
() {
blocTest<AndroidBumperCubit, AndroidBumperState>(
'onBallContacted emits dimmed',
buil... | pinball/packages/pinball_components/test/src/components/android_bumper/cubit/android_bumper_cubit_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/android_bumper/cubit/android_bumper_cubit_test.dart",
"repo_id": "pinball",
"token_count": 301
} | 1,102 |
import 'package:flame/extensions.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:pinball_components/pinball_components.dart';
void main() {
group('BoardDimensions', () {
test('has size', () {
expect(BoardDimensions.size, equals(Vector2(101.6, 143.8)));
});
test('has bounds'... | pinball/packages/pinball_components/test/src/components/board_dimensions_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/board_dimensions_test.dart",
"repo_id": "pinball",
"token_count": 237
} | 1,103 |
// ignore_for_file: cascade_invocations
import 'package:bloc_test/bloc_test.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
impor... | pinball/packages/pinball_components/test/src/components/dash_nest_bumper/behaviors/dash_bumper_ball_contact_behavior_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/dash_nest_bumper/behaviors/dash_bumper_ball_contact_behavior_test.dart",
"repo_id": "pinball",
"token_count": 814
} | 1,104 |
// ignore_for_file: cascade_invocations
import 'package:flame/components.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_components/src/components/google_rollover/behaviors/behavior... | pinball/packages/pinball_components/test/src/components/google_rollover/google_rollover_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/google_rollover/google_rollover_test.dart",
"repo_id": "pinball",
"token_count": 1044
} | 1,105 |
// ignore_for_file: prefer_const_constructors
import 'package:flutter_test/flutter_test.dart';
import 'package:pinball_components/src/pinball_components.dart';
void main() {
group('MultiballState', () {
test('supports value equality', () {
expect(
MultiballState(
animationState: Multibal... | pinball/packages/pinball_components/test/src/components/multiball/cubit/multiball_state_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/multiball/cubit/multiball_state_test.dart",
"repo_id": "pinball",
"token_count": 1011
} | 1,106 |
// ignore_for_file: cascade_invocations
import 'dart:async';
import 'package:bloc_test/bloc_test.dart';
import 'package:flame/components.dart';
import 'package:flame_bloc/flame_bloc.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flut... | pinball/packages/pinball_components/test/src/components/signpost/signpost_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/signpost/signpost_test.dart",
"repo_id": "pinball",
"token_count": 3321
} | 1,107 |
// ignore_for_file: cascade_invocations
import 'package:bloc_test/bloc_test.dart';
import 'package:flame/components.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:pinball_components/pinball_components.dart';
... | pinball/packages/pinball_components/test/src/components/sparky_bumper/sparky_bumper_test.dart/0 | {
"file_path": "pinball/packages/pinball_components/test/src/components/sparky_bumper/sparky_bumper_test.dart",
"repo_id": "pinball",
"token_count": 2119
} | 1,108 |
import 'dart:ui';
import 'package:collection/collection.dart' as collection;
import 'package:flame/components.dart';
import 'package:pinball_flame/src/canvas/canvas_wrapper.dart';
/// {@template z_canvas_component}
/// Draws [ZIndex] components after the all non-[ZIndex] components have been
/// drawn.
/// {@endtempl... | pinball/packages/pinball_flame/lib/src/canvas/z_canvas_component.dart/0 | {
"file_path": "pinball/packages/pinball_flame/lib/src/canvas/z_canvas_component.dart",
"repo_id": "pinball",
"token_count": 794
} | 1,109 |
// ignore_for_file: cascade_invocations
import 'dart:async';
import 'dart:typed_data';
import 'dart:ui';
import 'package:flame/components.dart';
import 'package:flame/game.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:pinball_flame/src/canvas/canv... | pinball/packages/pinball_flame/test/src/canvas/canvas_component_test.dart/0 | {
"file_path": "pinball/packages/pinball_flame/test/src/canvas/canvas_component_test.dart",
"repo_id": "pinball",
"token_count": 1236
} | 1,110 |
name: pinball_theme
description: Package containing themes for pinball game.
version: 1.0.0+1
publish_to: none
environment:
sdk: ">=2.16.0 <3.0.0"
dependencies:
equatable: ^2.0.3
flutter:
sdk: flutter
dev_dependencies:
flutter_test:
sdk: flutter
very_good_analysis: ^2.4.0
flutter:
generate: true... | pinball/packages/pinball_theme/pubspec.yaml/0 | {
"file_path": "pinball/packages/pinball_theme/pubspec.yaml",
"repo_id": "pinball",
"token_count": 252
} | 1,111 |
import 'package:flutter/material.dart';
import 'package:pinball_ui/gen/gen.dart';
import 'package:pinball_ui/pinball_ui.dart';
/// Enum with all possible directions of a [PinballDpadButton].
enum PinballDpadDirection {
/// Up
up,
/// Down
down,
/// Left
left,
/// Right
right,
}
extension _PinballDp... | pinball/packages/pinball_ui/lib/src/widgets/pinball_dpad_button.dart/0 | {
"file_path": "pinball/packages/pinball_ui/lib/src/widgets/pinball_dpad_button.dart",
"repo_id": "pinball",
"token_count": 637
} | 1,112 |
# platform_helper
[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]
[![License: MIT][license_badge]][license_link]
Platform helper for Pinball application.
[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg
[license_link]: https://opensource.org/licenses/MIT
[very_good... | pinball/packages/platform_helper/README.md/0 | {
"file_path": "pinball/packages/platform_helper/README.md",
"repo_id": "pinball",
"token_count": 166
} | 1,113 |
name: pinball
description: Google I/O 2022 Pinball game built with Flutter and Firebase
version: 1.0.0+1
publish_to: none
environment:
sdk: ">=2.16.0 <3.0.0"
flutter: 2.10.5
dependencies:
authentication_repository:
path: packages/authentication_repository
bloc: ^8.0.2
cloud_firestore: ^3.1.10
equatabl... | pinball/pubspec.yaml/0 | {
"file_path": "pinball/pubspec.yaml",
"repo_id": "pinball",
"token_count": 671
} | 1,114 |
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:pinball/game/game.dart';
void main() {
group('GameBloc', () {
test('initial state has 3 rounds and empty score', () {
final gameBloc = GameBloc();
expect(gameBloc.state.roundScore, equals(0));
... | pinball/test/game/bloc/game_bloc_test.dart/0 | {
"file_path": "pinball/test/game/bloc/game_bloc_test.dart",
"repo_id": "pinball",
"token_count": 5063
} | 1,115 |
// ignore_for_file: cascade_invocations
import 'package:flame/components.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:pinball/game/components/backbox/displ... | pinball/test/game/components/backbox/displays/initials_submission_failure_display_test.dart/0 | {
"file_path": "pinball/test/game/components/backbox/displays/initials_submission_failure_display_test.dart",
"repo_id": "pinball",
"token_count": 844
} | 1,116 |
// ignore_for_file: cascade_invocations
import 'package:flame_bloc/flame_bloc.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flame_test/flame_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:pinball/game/behaviors/behaviors... | pinball/test/game/components/google_gallery/google_gallery_test.dart/0 | {
"file_path": "pinball/test/game/components/google_gallery/google_gallery_test.dart",
"repo_id": "pinball",
"token_count": 1666
} | 1,117 |
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:pinball/game/game.dart';
import 'package:pinball_ui/pinball_ui.dart';
import '../../../helpers/helpers.dart';
class _MockGameBloc... | pinball/test/game/view/widgets/round_count_display_test.dart/0 | {
"file_path": "pinball/test/game/view/widgets/round_count_display_test.dart",
"repo_id": "pinball",
"token_count": 1426
} | 1,118 |
#!/bin/bash
# Copyright 2013 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.
device=com.apple.CoreSimulator.SimDeviceType.iPhone-13
os=com.apple.CoreSimulator.SimRuntime.iOS-16-0
xcrun simctl list
xcrun simctl create Flutt... | plugins/.ci/scripts/create_simulator.sh/0 | {
"file_path": "plugins/.ci/scripts/create_simulator.sh",
"repo_id": "plugins",
"token_count": 117
} | 1,119 |
name: camera
description: A Flutter plugin for controlling the camera. Supports previewing
the camera feed, capturing images and video, and streaming image buffers to
Dart.
repository: https://github.com/flutter/plugins/tree/main/packages/camera/camera
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3... | plugins/packages/camera/camera/pubspec.yaml/0 | {
"file_path": "plugins/packages/camera/camera/pubspec.yaml",
"repo_id": "plugins",
"token_count": 419
} | 1,120 |
// Copyright 2013 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 io.flutter.plugins.camera.features.exposurelock;
import android.hardware.camera2.CaptureRequest;
import io.flutter.plugins.camera.CameraProperties... | plugins/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/exposurelock/ExposureLockFeature.java/0 | {
"file_path": "plugins/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/exposurelock/ExposureLockFeature.java",
"repo_id": "plugins",
"token_count": 416
} | 1,121 |
// Copyright 2013 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 io.flutter.plugins.camera.media;
import android.media.CamcorderProfile;
import android.media.EncoderProfiles;
import android.media.MediaRecorder;
... | plugins/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/media/MediaRecorderBuilder.java/0 | {
"file_path": "plugins/packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/media/MediaRecorderBuilder.java",
"repo_id": "plugins",
"token_count": 1448
} | 1,122 |
// Copyright 2013 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 io.flutter.plugins.camera;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.any;
import static org.mockito.Mockito.a... | plugins/packages/camera/camera_android/android/src/test/java/io/flutter/plugins/camera/CameraUtilsTest.java/0 | {
"file_path": "plugins/packages/camera/camera_android/android/src/test/java/io/flutter/plugins/camera/CameraUtilsTest.java",
"repo_id": "plugins",
"token_count": 1475
} | 1,123 |
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.flutter.plugins.camerax">
<uses-feature android:name="android.hardware.camera.any" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permissio... | plugins/packages/camera/camera_android_camerax/android/src/main/AndroidManifest.xml/0 | {
"file_path": "plugins/packages/camera/camera_android_camerax/android/src/main/AndroidManifest.xml",
"repo_id": "plugins",
"token_count": 151
} | 1,124 |
// Copyright 2013 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 io.flutter.plugins.camerax;
import androidx.annotation.NonNull;
import io.flutter.plugin.common.BinaryMessenger;
import io.flutter.plugins.camerax... | plugins/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/SystemServicesFlutterApiImpl.java/0 | {
"file_path": "plugins/packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/SystemServicesFlutterApiImpl.java",
"repo_id": "plugins",
"token_count": 265
} | 1,125 |
// Copyright 2013 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 camera_avfoundation;
@import camera_avfoundation.Test;
@import XCTest;
@import AVFoundation;
#import <OCMock/OCMock.h>
#import "MockFLTThreadSafeFl... | plugins/packages/camera/camera_avfoundation/example/ios/RunnerTests/AvailableCamerasTest.m/0 | {
"file_path": "plugins/packages/camera/camera_avfoundation/example/ios/RunnerTests/AvailableCamerasTest.m",
"repo_id": "plugins",
"token_count": 1872
} | 1,126 |
// Copyright 2013 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.
#ifndef MockFLTThreadSafeFlutterResult_h
#define MockFLTThreadSafeFlutterResult_h
/**
* Extends FLTThreadSafeFlutterResult to give tests the ability to w... | plugins/packages/camera/camera_avfoundation/example/ios/RunnerTests/MockFLTThreadSafeFlutterResult.h/0 | {
"file_path": "plugins/packages/camera/camera_avfoundation/example/ios/RunnerTests/MockFLTThreadSafeFlutterResult.h",
"repo_id": "plugins",
"token_count": 258
} | 1,127 |
// Copyright 2013 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 <Flutter/Flutter.h>
NS_ASSUME_NONNULL_BEGIN
/**
* A thread safe wrapper for FlutterMethodChannel that can be called from any thread, by dispatch... | plugins/packages/camera/camera_avfoundation/ios/Classes/FLTThreadSafeMethodChannel.h/0 | {
"file_path": "plugins/packages/camera/camera_avfoundation/ios/Classes/FLTThreadSafeMethodChannel.h",
"repo_id": "plugins",
"token_count": 237
} | 1,128 |
// Copyright 2013 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.
/// The possible focus modes that can be set for a camera.
enum FocusMode {
/// Automatically determine focus settings.
auto,
/// Lock the currently... | plugins/packages/camera/camera_platform_interface/lib/src/types/focus_mode.dart/0 | {
"file_path": "plugins/packages/camera/camera_platform_interface/lib/src/types/focus_mode.dart",
"repo_id": "plugins",
"token_count": 272
} | 1,129 |
## NEXT
* Updates minimum Flutter version to 3.0.
## 0.2.1+4
* Updates code for stricter lint checks.
## 0.2.1+3
* Updates to latest camera platform interface but fails if user attempts to use streaming with recording (since streaming is currently unsupported on Windows).
## 0.2.1+2
* Updates code for `no_leadin... | plugins/packages/camera/camera_windows/CHANGELOG.md/0 | {
"file_path": "plugins/packages/camera/camera_windows/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 412
} | 1,130 |
// Copyright 2013 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.
#include "camera.h"
namespace camera_windows {
using flutter::EncodableList;
using flutter::EncodableMap;
using flutter::EncodableValue;
// Camera channe... | plugins/packages/camera/camera_windows/windows/camera.cpp/0 | {
"file_path": "plugins/packages/camera/camera_windows/windows/camera.cpp",
"repo_id": "plugins",
"token_count": 3686
} | 1,131 |
// Copyright 2013 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.
#include "preview_handler.h"
#include <mfapi.h>
#include <mfcaptureengine.h>
#include <cassert>
#include "capture_engine_listener.h"
#include "string_ut... | plugins/packages/camera/camera_windows/windows/preview_handler.cpp/0 | {
"file_path": "plugins/packages/camera/camera_windows/windows/preview_handler.cpp",
"repo_id": "plugins",
"token_count": 1659
} | 1,132 |
name: file_selector_ios
description: iOS implementation of the file_selector plugin.
repository: https://github.com/flutter/plugins/tree/main/packages/file_selector/file_selector_ios
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+file_selector%22
version: 0.5.0+2
enviro... | plugins/packages/file_selector/file_selector_ios/pubspec.yaml/0 | {
"file_path": "plugins/packages/file_selector/file_selector_ios/pubspec.yaml",
"repo_id": "plugins",
"token_count": 316
} | 1,133 |
## NEXT
* Updates minimum Flutter version to 3.0.
## 2.4.0
* Adds `getDirectoryPaths` method to the interface.
## 2.3.0
* Replaces `macUTIs` with `uniformTypeIdentifiers`. `macUTIs` is available as an alias, but will be deprecated in a future release.
## 2.2.0
* Makes `XTypeGroup`'s constructor constant.
## 2.1... | plugins/packages/file_selector/file_selector_platform_interface/CHANGELOG.md/0 | {
"file_path": "plugins/packages/file_selector/file_selector_platform_interface/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 423
} | 1,134 |
// Copyright 2013 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_selector_platform_interface/file_selector_platform_interface.dart';
import 'src/messages.g.dart';
/// An implementation of [FileSele... | plugins/packages/file_selector/file_selector_windows/lib/file_selector_windows.dart/0 | {
"file_path": "plugins/packages/file_selector/file_selector_windows/lib/file_selector_windows.dart",
"repo_id": "plugins",
"token_count": 1203
} | 1,135 |
// Copyright 2013 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.
// Autogenerated from Pigeon (v3.2.5), do not edit directly.
// See also: https://pub.dev/packages/pigeon
#undef _HAS_EXCEPTIONS
#include "messages.g.h"
... | plugins/packages/file_selector/file_selector_windows/windows/messages.g.cpp/0 | {
"file_path": "plugins/packages/file_selector/file_selector_windows/windows/messages.g.cpp",
"repo_id": "plugins",
"token_count": 4724
} | 1,136 |
name: flutter_plugin_android_lifecycle
description: Flutter plugin for accessing an Android Lifecycle within other plugins.
repository: https://github.com/flutter/plugins/tree/main/packages/flutter_plugin_android_lifecycle
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+f... | plugins/packages/flutter_plugin_android_lifecycle/pubspec.yaml/0 | {
"file_path": "plugins/packages/flutter_plugin_android_lifecycle/pubspec.yaml",
"repo_id": "plugins",
"token_count": 270
} | 1,137 |
// Copyright 2013 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/services.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:google_maps... | plugins/packages/google_maps_flutter/google_maps_flutter/test/polygon_updates_test.dart/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter/test/polygon_updates_test.dart",
"repo_id": "plugins",
"token_count": 6006
} | 1,138 |
// Copyright 2013 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 io.flutter.plugins.googlemaps;
import android.Manifest;
import android.annotation.SuppressLint;
import android.content.Context;
import android.con... | plugins/packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/GoogleMapController.java/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/GoogleMapController.java",
"repo_id": "plugins",
"token_count": 11801
} | 1,139 |
// Copyright 2013 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:flutter_test/flutter_test.dart';
import 'package:google_maps_flutter_platform_interface/google_maps... | plugins/packages/google_maps_flutter/google_maps_flutter_platform_interface/test/types/map_configuration_test.dart/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_platform_interface/test/types/map_configuration_test.dart",
"repo_id": "plugins",
"token_count": 4925
} | 1,140 |
// Mocks generated by Mockito 5.3.2 from annotations
// in google_maps_flutter_web_integration_tests/integration_test/google_maps_controller_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:google_maps/google_maps.dart' as _i2;
import 'packag... | plugins/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_controller_test.mocks.dart/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_controller_test.mocks.dart",
"repo_id": "plugins",
"token_count": 5464
} | 1,141 |
// Copyright 2013 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.
part of google_maps_flutter_web;
/// The `CircleController` class wraps a [gmaps.Circle] and its `onTap` behavior.
class CircleController {
/// Creates ... | plugins/packages/google_maps_flutter/google_maps_flutter_web/lib/src/circle.dart/0 | {
"file_path": "plugins/packages/google_maps_flutter/google_maps_flutter_web/lib/src/circle.dart",
"repo_id": "plugins",
"token_count": 516
} | 1,142 |
// Copyright 2013 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 io.flutter.plugins.googlesigninexample;
import static org.junit.Assert.assertTrue;
import androidx.test.core.app.ActivityScenario;
import io.flut... | plugins/packages/google_sign_in/google_sign_in_android/example/android/app/src/androidTest/java/io/flutter/plugins/googlesigninexample/GoogleSignInTest.java/0 | {
"file_path": "plugins/packages/google_sign_in/google_sign_in_android/example/android/app/src/androidTest/java/io/flutter/plugins/googlesigninexample/GoogleSignInTest.java",
"repo_id": "plugins",
"token_count": 247
} | 1,143 |
## NEXT
* Updates minimum Flutter version to 3.0.
## 2.3.0
* Adopts `plugin_platform_interface`. As a result, `isMock` is deprecated in
favor of the now-standard `MockPlatformInterfaceMixin`.
## 2.2.0
* Adds support for the `serverClientId` parameter.
## 2.1.3
* Enables mocking models by changing overridden op... | plugins/packages/google_sign_in/google_sign_in_platform_interface/CHANGELOG.md/0 | {
"file_path": "plugins/packages/google_sign_in/google_sign_in_platform_interface/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 478
} | 1,144 |
// Copyright 2013 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/services.dart' show PlatformException;
import 'package:flutter_test/flutter_test.dart';
import 'package:google_sign_in_platform_int... | plugins/packages/google_sign_in/google_sign_in_web/example/integration_test/google_sign_in_web_test.dart/0 | {
"file_path": "plugins/packages/google_sign_in/google_sign_in_web/example/integration_test/google_sign_in_web_test.dart",
"repo_id": "plugins",
"token_count": 2677
} | 1,145 |
## 0.8.5+6
* Updates minimum Flutter version to 3.0.
* Fixes names of picked files to match original filenames where possible.
## 0.8.5+5
* Updates code for stricter lint checks.
## 0.8.5+4
* Fixes null cast exception when restoring a cancelled selection.
## 0.8.5+3
* Updates minimum Flutter version to 2.10.
* B... | plugins/packages/image_picker/image_picker_android/CHANGELOG.md/0 | {
"file_path": "plugins/packages/image_picker/image_picker_android/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 298
} | 1,146 |
// Copyright 2013 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 io.flutter.plugins.imagepicker;
import static io.flutter.plugins.imagepicker.ImagePickerCache.MAP_KEY_IMAGE_QUALITY;
import static io.flutter.plug... | plugins/packages/image_picker/image_picker_android/android/src/test/java/io/flutter/plugins/imagepicker/ImagePickerCacheTest.java/0 | {
"file_path": "plugins/packages/image_picker/image_picker_android/android/src/test/java/io/flutter/plugins/imagepicker/ImagePickerCacheTest.java",
"repo_id": "plugins",
"token_count": 1921
} | 1,147 |
// Copyright 2013 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:html' as html;
import 'package:flutter/foundation.dart' show visibleForTesting;
import 'package:flutter_web_plugins/flut... | plugins/packages/image_picker/image_picker_for_web/lib/image_picker_for_web.dart/0 | {
"file_path": "plugins/packages/image_picker/image_picker_for_web/lib/image_picker_for_web.dart",
"repo_id": "plugins",
"token_count": 4272
} | 1,148 |
// Copyright 2013 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 "ImagePickerTestImages.h"
@implementation ImagePickerTestImages
+ (NSData *)JPGTestData {
NSBundle *bundle = [NSBundle bundleForClass:self];
... | plugins/packages/image_picker/image_picker_ios/example/ios/RunnerTests/ImagePickerTestImages.m/0 | {
"file_path": "plugins/packages/image_picker/image_picker_ios/example/ios/RunnerTests/ImagePickerTestImages.m",
"repo_id": "plugins",
"token_count": 5112
} | 1,149 |
// Copyright 2013 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.
// Autogenerated from Pigeon (v3.0.3), do not edit directly.
// See also: https://pub.dev/packages/pigeon
// ignore_for_file: public_member_api_docs, non_co... | plugins/packages/image_picker/image_picker_ios/test/test_api.g.dart/0 | {
"file_path": "plugins/packages/image_picker/image_picker_ios/test/test_api.g.dart",
"repo_id": "plugins",
"token_count": 2436
} | 1,150 |
org.gradle.jvmargs=-Xmx4G
android.enableR8=true
android.useAndroidX=true
android.enableJetifier=true
| plugins/packages/in_app_purchase/in_app_purchase_android/example/android/gradle.properties/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_android/example/android/gradle.properties",
"repo_id": "plugins",
"token_count": 38
} | 1,151 |
// Copyright 2013 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/foundation.dart';
import 'package:json_annotation/json_annotation.dart';
import 'billing_client_wrapper.dart';
// WARNING: Change... | plugins/packages/in_app_purchase/in_app_purchase_android/lib/src/billing_client_wrappers/sku_details_wrapper.dart/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_android/lib/src/billing_client_wrappers/sku_details_wrapper.dart",
"repo_id": "plugins",
"token_count": 2846
} | 1,152 |
// Copyright 2013 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/services.dart';
import 'package:flutter/widgets.dart' as widgets;
import 'package:flutter_test/flutter_test.dart';
import 'package:... | plugins/packages/in_app_purchase/in_app_purchase_android/test/in_app_purchase_android_platform_addition_test.dart/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_android/test/in_app_purchase_android_platform_addition_test.dart",
"repo_id": "plugins",
"token_count": 3376
} | 1,153 |
// Copyright 2013 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 '../errors/in_app_purchase_error.dart';
import 'purchase_status.dart';
import 'purchase_verification_data.dart';
/// Represents the transaction det... | plugins/packages/in_app_purchase/in_app_purchase_platform_interface/lib/src/types/purchase_details.dart/0 | {
"file_path": "plugins/packages/in_app_purchase/in_app_purchase_platform_interface/lib/src/types/purchase_details.dart",
"repo_id": "plugins",
"token_count": 486
} | 1,154 |
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
# Run `pod lib lint ios_platform_images.podspec' to validate before publishing.
#
Pod::Spec.new do |s|
s.name = 'ios_platform_images'
s.version = '0.0.1'
s.summary = 'Flutter iOS Platform Images'
... | plugins/packages/ios_platform_images/ios/ios_platform_images.podspec/0 | {
"file_path": "plugins/packages/ios_platform_images/ios/ios_platform_images.podspec",
"repo_id": "plugins",
"token_count": 474
} | 1,155 |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="24dp"
android:paddingRight="24dp"
android:gravity="center_vertical"
android:orientation="vertical">
<TextView
android:id=... | plugins/packages/local_auth/local_auth_android/android/src/main/res/layout/go_to_setting.xml/0 | {
"file_path": "plugins/packages/local_auth/local_auth_android/android/src/main/res/layout/go_to_setting.xml",
"repo_id": "plugins",
"token_count": 394
} | 1,156 |
## NEXT
* Updates minimum Flutter version to 3.0.
## 1.0.6
* Removes unused `intl` dependency.
## 1.0.5
* Updates imports for `prefer_relative_imports`.
* Updates minimum Flutter version to 2.10.
## 1.0.4
* Updates references to the obsolete master branch.
* Removes unnecessary imports.
## 1.0.3
* Fixes regres... | plugins/packages/local_auth/local_auth_platform_interface/CHANGELOG.md/0 | {
"file_path": "plugins/packages/local_auth/local_auth_platform_interface/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 205
} | 1,157 |
name: path_provider
description: Flutter plugin for getting commonly used locations on host platform file systems, such as the temp and app data directories.
repository: https://github.com/flutter/plugins/tree/main/packages/path_provider/path_provider
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissu... | plugins/packages/path_provider/path_provider/pubspec.yaml/0 | {
"file_path": "plugins/packages/path_provider/path_provider/pubspec.yaml",
"repo_id": "plugins",
"token_count": 482
} | 1,158 |
// Copyright 2013 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.
// Autogenerated from Pigeon (v3.2.0), do not edit directly.
// See also: https://pub.dev/packages/pigeon
// ignore_for_file: public_member_api_docs, non_co... | plugins/packages/path_provider/path_provider_android/lib/messages.g.dart/0 | {
"file_path": "plugins/packages/path_provider/path_provider_android/lib/messages.g.dart",
"repo_id": "plugins",
"token_count": 2711
} | 1,159 |
// Copyright 2013 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:flutter/services.dart';
import 'package:path_provider_linux/path_provider_linux.dart';
void main()... | plugins/packages/path_provider/path_provider_linux/example/lib/main.dart/0 | {
"file_path": "plugins/packages/path_provider/path_provider_linux/example/lib/main.dart",
"repo_id": "plugins",
"token_count": 1013
} | 1,160 |
// Copyright 2013 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 io.flutter.plugins.quickactions;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.... | plugins/packages/quick_actions/quick_actions_android/android/src/main/java/io/flutter/plugins/quickactions/MethodCallHandlerImpl.java/0 | {
"file_path": "plugins/packages/quick_actions/quick_actions_android/android/src/main/java/io/flutter/plugins/quickactions/MethodCallHandlerImpl.java",
"repo_id": "plugins",
"token_count": 2482
} | 1,161 |
// Copyright 2013 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 UIKit
/// A parser that parses an array of raw shortcut items.
protocol ShortcutItemParser {
/// Parses an array of raw shortcut items into an a... | plugins/packages/quick_actions/quick_actions_ios/ios/Classes/ShortcutItemParser.swift/0 | {
"file_path": "plugins/packages/quick_actions/quick_actions_ios/ios/Classes/ShortcutItemParser.swift",
"repo_id": "plugins",
"token_count": 465
} | 1,162 |
name: quick_actions_platform_interface
description: A common platform interface for the quick_actions plugin.
repository: https://github.com/flutter/plugins/tree/main/packages/quick_actions/quick_actions_platform_interface
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+q... | plugins/packages/quick_actions/quick_actions_platform_interface/pubspec.yaml/0 | {
"file_path": "plugins/packages/quick_actions/quick_actions_platform_interface/pubspec.yaml",
"repo_id": "plugins",
"token_count": 262
} | 1,163 |
// Copyright 2013 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 io.flutter.plugins.sharedpreferences;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Handler;
import ... | plugins/packages/shared_preferences/shared_preferences_android/android/src/main/java/io/flutter/plugins/sharedpreferences/MethodCallHandlerImpl.java/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences_android/android/src/main/java/io/flutter/plugins/sharedpreferences/MethodCallHandlerImpl.java",
"repo_id": "plugins",
"token_count": 3450
} | 1,164 |
## NEXT
* Updates minimum Flutter version to 3.0.
## 2.0.4
* Fixes library_private_types_in_public_api, sort_child_properties_last and use_key_in_widget_constructors
lint warnings.
## 2.0.3
* Fixes newly enabled analyzer options.
* Removes dependency on `meta`.
## 2.0.2
* Add `implements` to pubspec.
## 2.0.1... | plugins/packages/shared_preferences/shared_preferences_web/CHANGELOG.md/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences_web/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 519
} | 1,165 |
## NEXT
* Updates minimum Flutter version to 3.0.
## 2.1.3
* Updates code for stricter lint checks.
## 2.1.2
* Updates code for stricter lint checks.
* Updates code for `no_leading_underscores_for_local_identifiers` lint.
* Updates minimum Flutter version to 2.10.
## 2.1.1
* Fixes library_private_types_in_public... | plugins/packages/shared_preferences/shared_preferences_windows/CHANGELOG.md/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences_windows/CHANGELOG.md",
"repo_id": "plugins",
"token_count": 474
} | 1,166 |
// Copyright 2013 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_test/flutter_test.dart';
import 'package:path/path.dart' as path;
import 'package:path_provider_... | plugins/packages/shared_preferences/shared_preferences_windows/test/shared_preferences_windows_test.dart/0 | {
"file_path": "plugins/packages/shared_preferences/shared_preferences_windows/test/shared_preferences_windows_test.dart",
"repo_id": "plugins",
"token_count": 1129
} | 1,167 |
// Copyright 2013 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/services.dart';
import 'package:url_launcher_platform_interface/link.dart';
import 'package:url_launcher_plat... | plugins/packages/url_launcher/url_launcher_android/lib/url_launcher_android.dart/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_android/lib/url_launcher_android.dart",
"repo_id": "plugins",
"token_count": 1014
} | 1,168 |
// Copyright 2013 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 <SafariServices/SafariServices.h>
#import "FLTURLLauncherPlugin.h"
@interface FLTURLLaunchSession : NSObject <SFSafariViewControllerDelegate>
@p... | plugins/packages/url_launcher/url_launcher_ios/ios/Classes/FLTURLLauncherPlugin.m/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_ios/ios/Classes/FLTURLLauncherPlugin.m",
"repo_id": "plugins",
"token_count": 1988
} | 1,169 |
// Copyright 2013 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/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:url_launcher_linux/url_launcher_linux.dart';
impor... | plugins/packages/url_launcher/url_launcher_linux/test/url_launcher_linux_test.dart/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_linux/test/url_launcher_linux_test.dart",
"repo_id": "plugins",
"token_count": 1962
} | 1,170 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.