text stringlengths 6 1.82M | id stringlengths 12 200 | metadata dict | __index_level_0__ int64 0 784 |
|---|---|---|---|
// ignore_for_file: require_trailing_commas
// Copyright 2017, the Chromium project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/// A representation of a `FieldValue` that lives in the pl... | flutterfire/packages/cloud_firestore/cloud_firestore_platform_interface/lib/src/platform_interface/platform_interface_field_value.dart/0 | {
"file_path": "flutterfire/packages/cloud_firestore/cloud_firestore_platform_interface/lib/src/platform_interface/platform_interface_field_value.dart",
"repo_id": "flutterfire",
"token_count": 212
} | 500 |
# Objective of this script is to fix some files generated by Pigeon because Pigeon does not support Custom Codecs.
echo "Generate Pigeon Files."
(cd .. && dart run pigeon --input ./pigeons/messages.dart)
echo "Generation complete."
echo "First formatting."
melos format > /dev/null
echo "Formatting complete."
# # Fix ... | flutterfire/packages/cloud_firestore/cloud_firestore_platform_interface/pigeons/generate_pigeon.sh/0 | {
"file_path": "flutterfire/packages/cloud_firestore/cloud_firestore_platform_interface/pigeons/generate_pigeon.sh",
"repo_id": "flutterfire",
"token_count": 1493
} | 501 |
// ignore_for_file: require_trailing_commas
// Copyright 2017, the Chromium project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:js_interop';
import 'dart:typed_data';
import... | flutterfire/packages/cloud_firestore/cloud_firestore_web/lib/cloud_firestore_web.dart/0 | {
"file_path": "flutterfire/packages/cloud_firestore/cloud_firestore_web/lib/cloud_firestore_web.dart",
"repo_id": "flutterfire",
"token_count": 2360
} | 502 |
// ignore_for_file: require_trailing_commas
// Copyright 2017, the Chromium project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:cloud_firestore_platform_interface/cloud_fi... | flutterfire/packages/cloud_firestore/cloud_firestore_web/lib/src/write_batch_web.dart/0 | {
"file_path": "flutterfire/packages/cloud_firestore/cloud_firestore_web/lib/src/write_batch_web.dart",
"repo_id": "flutterfire",
"token_count": 522
} | 503 |
# cloud_functions_example
Demonstrates how to use the cloud_functions plugin.
## Function
This example assumes the existence of the following function:
```
import * as functions from 'firebase-functions';
export const repeat = functions.https.onCall((data, context) => {
return {
repeat_message: data.messag... | flutterfire/packages/cloud_functions/cloud_functions/example/README.md/0 | {
"file_path": "flutterfire/packages/cloud_functions/cloud_functions/example/README.md",
"repo_id": "flutterfire",
"token_count": 173
} | 504 |
platform :osx, '10.12'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def parse_KV_file(file, separator='=')
file_abs_path = File.expand_pat... | flutterfire/packages/cloud_functions/cloud_functions/example/macos/Podfile/0 | {
"file_path": "flutterfire/packages/cloud_functions/cloud_functions/example/macos/Podfile",
"repo_id": "flutterfire",
"token_count": 1063
} | 505 |
// ignore_for_file: require_trailing_commas
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:cloud_functions/cloud_functions.dart';
import 'package:cloud_functions_platform_interface/clou... | flutterfire/packages/cloud_functions/cloud_functions/test/firebase_functions_test.dart/0 | {
"file_path": "flutterfire/packages/cloud_functions/cloud_functions/test/firebase_functions_test.dart",
"repo_id": "flutterfire",
"token_count": 2825
} | 506 |
name: cloud_functions_platform_interface
description: A common platform interface for the cloud_functions plugin.
homepage: https://github.com/firebase/flutterfire/tree/master/packages/cloud_functions/cloud_functions_platform_interface
repository: https://github.com/firebase/flutterfire/tree/master/packages/cloud_funct... | flutterfire/packages/cloud_functions/cloud_functions_platform_interface/pubspec.yaml/0 | {
"file_path": "flutterfire/packages/cloud_functions/cloud_functions_platform_interface/pubspec.yaml",
"repo_id": "flutterfire",
"token_count": 295
} | 507 |
// ignore_for_file: require_trailing_commas
// Copyright 2020, the Chromium project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// ignore_for_file: avoid_unused_constructor_parameters, no... | flutterfire/packages/cloud_functions/cloud_functions_web/lib/interop/functions_interop.dart/0 | {
"file_path": "flutterfire/packages/cloud_functions/cloud_functions_web/lib/interop/functions_interop.dart",
"repo_id": "flutterfire",
"token_count": 763
} | 508 |
# firebase_analytics_example
Demonstrates how to use the firebase_analytics plugin.
## Getting Started
For help getting started with Flutter, view our online
[documentation](http://flutter.io/).
| flutterfire/packages/firebase_analytics/firebase_analytics/example/README.md/0 | {
"file_path": "flutterfire/packages/firebase_analytics/firebase_analytics/example/README.md",
"repo_id": "flutterfire",
"token_count": 56
} | 509 |
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewC... | flutterfire/packages/firebase_analytics/firebase_analytics/example/ios/Runner/Base.lproj/LaunchScreen.storyboard/0 | {
"file_path": "flutterfire/packages/firebase_analytics/firebase_analytics/example/ios/Runner/Base.lproj/LaunchScreen.storyboard",
"repo_id": "flutterfire",
"token_count": 768
} | 510 |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "FLTFirebaseAnalyticsPlugin.h"
#import <Firebase/Firebase.h>
#import <firebase_core/FLTFirebasePluginRegistry.h>
NSString *const kFLTFirebaseAn... | flutterfire/packages/firebase_analytics/firebase_analytics/ios/Classes/FLTFirebaseAnalyticsPlugin.m/0 | {
"file_path": "flutterfire/packages/firebase_analytics/firebase_analytics/ios/Classes/FLTFirebaseAnalyticsPlugin.m",
"repo_id": "flutterfire",
"token_count": 3063
} | 511 |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// Interface that defines the required attributes of an analytics Item.
/// https://firebase.google.com/docs/reference/android/com/google/firebase/analyt... | flutterfire/packages/firebase_analytics/firebase_analytics_platform_interface/lib/src/analytics_event_item.dart/0 | {
"file_path": "flutterfire/packages/firebase_analytics/firebase_analytics_platform_interface/lib/src/analytics_event_item.dart",
"repo_id": "flutterfire",
"token_count": 1795
} | 512 |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "FLTFirebaseAppCheckPlugin.h"
#import "FLTTokenRefreshStreamHandler.h"
#import <Firebase/Firebase.h>
#import <firebase_core/FLTFirebasePluginReg... | flutterfire/packages/firebase_app_check/firebase_app_check/macos/Classes/FLTFirebaseAppCheckPlugin.m/0 | {
"file_path": "flutterfire/packages/firebase_app_check/firebase_app_check/macos/Classes/FLTFirebaseAppCheckPlugin.m",
"repo_id": "flutterfire",
"token_count": 2834
} | 513 |
// ignore_for_file: require_trailing_commas
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:firebase_app_check_platform_interface/firebase_app_check_platform_interface.dart';
import 'pac... | flutterfire/packages/firebase_app_check/firebase_app_check_platform_interface/lib/src/platform_interface/platform_interface_firebase_app_check.dart/0 | {
"file_path": "flutterfire/packages/firebase_app_check/firebase_app_check_platform_interface/lib/src/platform_interface/platform_interface_firebase_app_check.dart",
"repo_id": "flutterfire",
"token_count": 1317
} | 514 |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:firebase_core/firebase_core.dart';
import 'package:meta/meta.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.da... | flutterfire/packages/firebase_app_installations/firebase_app_installations_platform_interface/lib/src/platform_interface/firebase_app_installations_platform_interface.dart/0 | {
"file_path": "flutterfire/packages/firebase_app_installations/firebase_app_installations_platform_interface/lib/src/platform_interface/firebase_app_installations_platform_interface.dart",
"repo_id": "flutterfire",
"token_count": 692
} | 515 |
[<img src="https://raw.githubusercontent.com/firebase/flutterfire/master/.github/images/flutter_favorite.png" width="200" />](https://flutter.dev/docs/development/packages-and-plugins/favorites)
# Firebase Auth for Flutter
[](https://pub.dev/packages/fireba... | flutterfire/packages/firebase_auth/firebase_auth/README.md/0 | {
"file_path": "flutterfire/packages/firebase_auth/firebase_auth/README.md",
"repo_id": "flutterfire",
"token_count": 408
} | 516 |
/*
* Copyright 2022, the Chromium project authors. Please see the AUTHORS file
* for details. All rights reserved. Use of this source code is governed by a
* BSD-style license that can be found in the LICENSE file.
*/
package io.flutter.plugins.firebase.auth;
import com.google.firebase.auth.FirebaseAuth;
import ... | flutterfire/packages/firebase_auth/firebase_auth/android/src/main/java/io/flutter/plugins/firebase/auth/IdTokenChannelStreamHandler.java/0 | {
"file_path": "flutterfire/packages/firebase_auth/firebase_auth/android/src/main/java/io/flutter/plugins/firebase/auth/IdTokenChannelStreamHandler.java",
"repo_id": "flutterfire",
"token_count": 683
} | 517 |
// Copyright 2023, the Chromium project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Autogenerated from Pigeon (v19.0.0), do not edit directly.
// See also: https://pub.dev/packages/pige... | flutterfire/packages/firebase_auth/firebase_auth/ios/Classes/firebase_auth_messages.g.m/0 | {
"file_path": "flutterfire/packages/firebase_auth/firebase_auth/ios/Classes/firebase_auth_messages.g.m",
"repo_id": "flutterfire",
"token_count": 55982
} | 518 |
// ignore_for_file: require_trailing_commas
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:firebase_core/firebase_core.dart';
import 'package:meta/meta.dart';
import 'auth_credential.da... | flutterfire/packages/firebase_auth/firebase_auth_platform_interface/lib/src/firebase_auth_exception.dart/0 | {
"file_path": "flutterfire/packages/firebase_auth/firebase_auth_platform_interface/lib/src/firebase_auth_exception.dart",
"repo_id": "flutterfire",
"token_count": 342
} | 519 |
// ignore_for_file: require_trailing_commas
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:collection/collection.dart';
import 'package:firebase_auth_platform_inte... | flutterfire/packages/firebase_auth/firebase_auth_platform_interface/lib/src/platform_interface/platform_interface_user.dart/0 | {
"file_path": "flutterfire/packages/firebase_auth/firebase_auth_platform_interface/lib/src/platform_interface/platform_interface_user.dart",
"repo_id": "flutterfire",
"token_count": 7268
} | 520 |
// ignore_for_file: require_trailing_commas
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:firebase_auth_platform_interface/src/pigeon/messages.pigeon.dart';
import 'package:meta/meta.d... | flutterfire/packages/firebase_auth/firebase_auth_platform_interface/lib/src/user_info.dart/0 | {
"file_path": "flutterfire/packages/firebase_auth/firebase_auth_platform_interface/lib/src/user_info.dart",
"repo_id": "flutterfire",
"token_count": 842
} | 521 |
// Copyright 2023, the Chromium project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Autogenerated from Pigeon (v19.0.0), do not edit directly.
// See also: https://pub.dev/packages/pige... | flutterfire/packages/firebase_auth/firebase_auth_platform_interface/test/pigeon/test_api.dart/0 | {
"file_path": "flutterfire/packages/firebase_auth/firebase_auth_platform_interface/test/pigeon/test_api.dart",
"repo_id": "flutterfire",
"token_count": 46571
} | 522 |
## 5.12.1
- **FIX**(web): fix some casting issue on Web JS Interop ([#12852](https://github.com/firebase/flutterfire/issues/12852)). ([4b56df1c](https://github.com/firebase/flutterfire/commit/4b56df1cc187d77ef22a82688a37f1c7aba4ed40))
## 5.12.0
- **FEAT**(auth): update Pigeon version to 19 ([#12828](https://github... | flutterfire/packages/firebase_auth/firebase_auth_web/CHANGELOG.md/0 | {
"file_path": "flutterfire/packages/firebase_auth/firebase_auth_web/CHANGELOG.md",
"repo_id": "flutterfire",
"token_count": 9281
} | 523 |
## 3.0.0
> Note: This release has breaking changes.
- **FEAT**: bump Firebase android SDK to `33.1.0` ([#12874](https://github.com/firebase/flutterfire/issues/12874)). ([f67914c4](https://github.com/firebase/flutterfire/commit/f67914c463d92e52e2594765baf7d53cd9235fb6))
- **FEAT**: bump Firebase iOS SDK to `10.27.0`... | flutterfire/packages/firebase_core/firebase_core/CHANGELOG.md/0 | {
"file_path": "flutterfire/packages/firebase_core/firebase_core/CHANGELOG.md",
"repo_id": "flutterfire",
"token_count": 14419
} | 524 |
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
| flutterfire/packages/firebase_core/firebase_core/example/android/gradle.properties/0 | {
"file_path": "flutterfire/packages/firebase_core/firebase_core/example/android/gradle.properties",
"repo_id": "flutterfire",
"token_count": 56
} | 525 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| flutterfire/packages/firebase_core/firebase_core/example/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "flutterfire/packages/firebase_core/firebase_core/example/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "flutterfire",
"token_count": 32
} | 526 |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "FLTFirebaseCorePlugin.h"
#import "FLTFirebasePluginRegistry.h"
#import "messages.g.h"
@implementation FLTFirebaseCorePlugin {
BOOL _coreInitia... | flutterfire/packages/firebase_core/firebase_core/ios/Classes/FLTFirebaseCorePlugin.m/0 | {
"file_path": "flutterfire/packages/firebase_core/firebase_core/ios/Classes/FLTFirebaseCorePlugin.m",
"repo_id": "flutterfire",
"token_count": 3314
} | 527 |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "FLTFirebasePlugin.h"
// Firebase default app name.
NSString *_Nonnull const kFIRDefaultAppNameIOS = @"__FIRAPP_DEFAULT";
NSString *_Nonnull cons... | flutterfire/packages/firebase_core/firebase_core/macos/Classes/FLTFirebasePlugin.m/0 | {
"file_path": "flutterfire/packages/firebase_core/firebase_core/macos/Classes/FLTFirebasePlugin.m",
"repo_id": "flutterfire",
"token_count": 842
} | 528 |
// Copyright 2023, the Chromium project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#ifndef PLUGIN_VERSION_CONFIG_H
#define PLUGIN_VERSION_CONFIG_H
namespace firebase_core_windows {
std... | flutterfire/packages/firebase_core/firebase_core/windows/plugin_version.h.in/0 | {
"file_path": "flutterfire/packages/firebase_core/firebase_core/windows/plugin_version.h.in",
"repo_id": "flutterfire",
"token_count": 141
} | 529 |
// ignore_for_file: require_trailing_commas
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: public_member_api_docs
import 'dart:js_interop';
import 'package:firebase_core_platform_... | flutterfire/packages/firebase_core/firebase_core_web/lib/src/interop/core.dart/0 | {
"file_path": "flutterfire/packages/firebase_core/firebase_core_web/lib/src/interop/core.dart",
"repo_id": "flutterfire",
"token_count": 715
} | 530 |
org.gradle.jvmargs=-Xmx1536M
| flutterfire/packages/firebase_crashlytics/firebase_crashlytics/android/gradle.properties/0 | {
"file_path": "flutterfire/packages/firebase_crashlytics/firebase_crashlytics/android/gradle.properties",
"repo_id": "flutterfire",
"token_count": 15
} | 531 |
org.gradle.jvmargs=-Xmx4G -XX:+HeapDumpOnOutOfMemoryError
android.useAndroidX=true
android.enableJetifier=true
| flutterfire/packages/firebase_crashlytics/firebase_crashlytics/example/android/gradle.properties/0 | {
"file_path": "flutterfire/packages/firebase_crashlytics/firebase_crashlytics/example/android/gradle.properties",
"repo_id": "flutterfire",
"token_count": 43
} | 532 |
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"
| flutterfire/packages/firebase_crashlytics/firebase_crashlytics/example/macos/Runner/Configs/Debug.xcconfig/0 | {
"file_path": "flutterfire/packages/firebase_crashlytics/firebase_crashlytics/example/macos/Runner/Configs/Debug.xcconfig",
"repo_id": "flutterfire",
"token_count": 32
} | 533 |
require 'xcodeproj'
require 'optparse'
# Dictionary to hold command line arguments
options_dict = {}
options_dict[:flutter_project] = false
options_dict[:additional_options] = ""
# Parse command line arguments into options_dict
OptionParser.new do |options|
options.banner = "Adds the Crashlytics upload-symbols to... | flutterfire/packages/firebase_crashlytics/firebase_crashlytics/macos/crashlytics_add_upload_symbols/0 | {
"file_path": "flutterfire/packages/firebase_crashlytics/firebase_crashlytics/macos/crashlytics_add_upload_symbols",
"repo_id": "flutterfire",
"token_count": 1574
} | 534 |
// ignore_for_file: require_trailing_commas
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart';
import 'package:fireb... | flutterfire/packages/firebase_crashlytics/firebase_crashlytics_platform_interface/test/mock.dart/0 | {
"file_path": "flutterfire/packages/firebase_crashlytics/firebase_crashlytics_platform_interface/test/mock.dart",
"repo_id": "flutterfire",
"token_count": 462
} | 535 |
package io.flutter.plugins.firebase.database.example
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity()
| flutterfire/packages/firebase_database/firebase_database/example/android/app/src/main/kotlin/io/flutter/plugins/firebase/database/example/MainActivity.kt/0 | {
"file_path": "flutterfire/packages/firebase_database/firebase_database/example/android/app/src/main/kotlin/io/flutter/plugins/firebase/database/example/MainActivity.kt",
"repo_id": "flutterfire",
"token_count": 41
} | 536 |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_database/firebase_database.dart';
import 'package:fireba... | flutterfire/packages/firebase_database/firebase_database/example/lib/main.dart/0 | {
"file_path": "flutterfire/packages/firebase_database/firebase_database/example/lib/main.dart",
"repo_id": "flutterfire",
"token_count": 2799
} | 537 |
// Copyright 2022, the Chromium project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
part of firebase_database;
/// A DataSnapshot contains data from a Firebase Database location.
/// Any... | flutterfire/packages/firebase_database/firebase_database/lib/src/data_snapshot.dart/0 | {
"file_path": "flutterfire/packages/firebase_database/firebase_database/lib/src/data_snapshot.dart",
"repo_id": "flutterfire",
"token_count": 512
} | 538 |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <firebase_core/FLTFirebasePluginRegistry.h>
#import "FLTFirebaseDatabaseObserveStreamHandler.h"
#import "FLTFirebaseDatabasePlugin.h"
#import "FL... | flutterfire/packages/firebase_database/firebase_database/macos/Classes/FLTFirebaseDatabasePlugin.m/0 | {
"file_path": "flutterfire/packages/firebase_database/firebase_database/macos/Classes/FLTFirebaseDatabasePlugin.m",
"repo_id": "flutterfire",
"token_count": 6300
} | 539 |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:firebase_database_platform_interface/firebase_database_platform_interface.dart';
import 'package:firebase_database_platform_interface/src/... | flutterfire/packages/firebase_database/firebase_database_platform_interface/lib/src/method_channel/method_channel_database_reference.dart/0 | {
"file_path": "flutterfire/packages/firebase_database/firebase_database_platform_interface/lib/src/method_channel/method_channel_database_reference.dart",
"repo_id": "flutterfire",
"token_count": 2009
} | 540 |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// The pending result of a [TransactionHandler].
class Transaction {
Transaction._(this.aborted, this.value);
/// The transaction was successful and... | flutterfire/packages/firebase_database/firebase_database_platform_interface/lib/src/transaction.dart/0 | {
"file_path": "flutterfire/packages/firebase_database/firebase_database_platform_interface/lib/src/transaction.dart",
"repo_id": "flutterfire",
"token_count": 179
} | 541 |
// Copyright 2017, the Chromium project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
part of firebase_database_web;
/// Web implementation for firebase [DatabaseReferencePlatform]
class D... | flutterfire/packages/firebase_database/firebase_database_web/lib/src/database_reference_web.dart/0 | {
"file_path": "flutterfire/packages/firebase_database/firebase_database_web/lib/src/database_reference_web.dart",
"repo_id": "flutterfire",
"token_count": 855
} | 542 |
rootProject.name = 'firebase_dynamic_links'
| flutterfire/packages/firebase_dynamic_links/firebase_dynamic_links/android/settings.gradle/0 | {
"file_path": "flutterfire/packages/firebase_dynamic_links/firebase_dynamic_links/android/settings.gradle",
"repo_id": "flutterfire",
"token_count": 15
} | 543 |
package io.flutter.plugins.firebase.dynamiclinksexample
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity()
| flutterfire/packages/firebase_dynamic_links/firebase_dynamic_links/example/android/app/src/main/kotlin/io/flutter/plugins/firebase/dynamiclinksexample/MainActivity.kt/0 | {
"file_path": "flutterfire/packages/firebase_dynamic_links/firebase_dynamic_links/example/android/app/src/main/kotlin/io/flutter/plugins/firebase/dynamiclinksexample/MainActivity.kt",
"repo_id": "flutterfire",
"token_count": 43
} | 544 |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Firebase/Firebase.h>
#import <Flutter/Flutter.h>
#import <firebase_core/FLTFirebasePlugin.h>
@interface FLTFirebaseDynamicLinksPlugin : FLTFireba... | flutterfire/packages/firebase_dynamic_links/firebase_dynamic_links/ios/Classes/FLTFirebaseDynamicLinksPlugin.h/0 | {
"file_path": "flutterfire/packages/firebase_dynamic_links/firebase_dynamic_links/ios/Classes/FLTFirebaseDynamicLinksPlugin.h",
"repo_id": "flutterfire",
"token_count": 213
} | 545 |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// The Dynamic Link iOS parameters.
class IOSParameters {
const IOSParameters({
this.appStoreId,
required this.bundleId,
this.customScheme,... | flutterfire/packages/firebase_dynamic_links/firebase_dynamic_links_platform_interface/lib/src/ios_parameters.dart/0 | {
"file_path": "flutterfire/packages/firebase_dynamic_links/firebase_dynamic_links_platform_interface/lib/src/ios_parameters.dart",
"repo_id": "flutterfire",
"token_count": 692
} | 546 |
// Copyright 2021, the Chromium project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:firebase_dynamic_links_platform_interface/firebase_dynamic_links_platform_interface.dar... | flutterfire/packages/firebase_dynamic_links/firebase_dynamic_links_platform_interface/test/dynamic_link_parameters_test.dart/0 | {
"file_path": "flutterfire/packages/firebase_dynamic_links/firebase_dynamic_links_platform_interface/test/dynamic_link_parameters_test.dart",
"repo_id": "flutterfire",
"token_count": 2815
} | 547 |
package io.flutter.plugins.firebase.tests
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity()
| flutterfire/packages/firebase_in_app_messaging/firebase_in_app_messaging/example/android/app/src/main/kotlin/io/flutter/plugins/firebase/tests/MainActivity.kt/0 | {
"file_path": "flutterfire/packages/firebase_in_app_messaging/firebase_in_app_messaging/example/android/app/src/main/kotlin/io/flutter/plugins/firebase/tests/MainActivity.kt",
"repo_id": "flutterfire",
"token_count": 39
} | 548 |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CLIENT_ID</key>
<string>406099696497-mcs94a53ttg7ru556uec2hejel40ej7u.apps.googleusercontent.com</string>
<key>REVERSED_CLIENT_ID</key>
<str... | flutterfire/packages/firebase_in_app_messaging/firebase_in_app_messaging/example/ios/Runner/GoogleService-Info.plist/0 | {
"file_path": "flutterfire/packages/firebase_in_app_messaging/firebase_in_app_messaging/example/ios/Runner/GoogleService-Info.plist",
"repo_id": "flutterfire",
"token_count": 677
} | 549 |
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.flutter.plugins.firebase.messaging">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STAT... | flutterfire/packages/firebase_messaging/firebase_messaging/android/src/main/AndroidManifest.xml/0 | {
"file_path": "flutterfire/packages/firebase_messaging/firebase_messaging/android/src/main/AndroidManifest.xml",
"repo_id": "flutterfire",
"token_count": 656
} | 550 |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <TargetConditionals.h>
#if TARGET_OS_OSX
#import <FlutterMacOS/FlutterMacOS.h>
#else
#import <Flutter/Flutter.h>
#endif
#import <Firebase/Firebas... | flutterfire/packages/firebase_messaging/firebase_messaging/macos/Classes/FLTFirebaseMessagingPlugin.h/0 | {
"file_path": "flutterfire/packages/firebase_messaging/firebase_messaging/macos/Classes/FLTFirebaseMessagingPlugin.h",
"repo_id": "flutterfire",
"token_count": 1113
} | 551 |
// ignore_for_file: require_trailing_commas
// Copyright 2020, the Chromium project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:firebase_messaging_platform_interface/fireb... | flutterfire/packages/firebase_messaging/firebase_messaging_platform_interface/lib/src/remote_message.dart/0 | {
"file_path": "flutterfire/packages/firebase_messaging/firebase_messaging_platform_interface/lib/src/remote_message.dart",
"repo_id": "flutterfire",
"token_count": 1288
} | 552 |
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.flutter.plugins.firebase.firebase_ml_model_downloader">
<application>
<service android:name="com.google.firebase.components.ComponentDiscoveryService">
<meta-data android:name="com.google.firebase.components:io.flutter.plugin... | flutterfire/packages/firebase_ml_model_downloader/firebase_ml_model_downloader/android/src/main/AndroidManifest.xml/0 | {
"file_path": "flutterfire/packages/firebase_ml_model_downloader/firebase_ml_model_downloader/android/src/main/AndroidManifest.xml",
"repo_id": "flutterfire",
"token_count": 178
} | 553 |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:io';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/services.dart';
import './utils/exception.dart';
import '..... | flutterfire/packages/firebase_ml_model_downloader/firebase_ml_model_downloader_platform_interface/lib/src/method_channel/method_channel_firebase_ml_model_downloader.dart/0 | {
"file_path": "flutterfire/packages/firebase_ml_model_downloader/firebase_ml_model_downloader_platform_interface/lib/src/method_channel/method_channel_firebase_ml_model_downloader.dart",
"repo_id": "flutterfire",
"token_count": 1148
} | 554 |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_performance/firebase_performance.dart';
import 'package:... | flutterfire/packages/firebase_performance/firebase_performance/example/lib/main.dart/0 | {
"file_path": "flutterfire/packages/firebase_performance/firebase_performance/example/lib/main.dart",
"repo_id": "flutterfire",
"token_count": 2565
} | 555 |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
part of firebase_performance;
/// The Firebase Performance API.
///
/// You can get an instance by calling [FirebasePerformance.instance].
class Firebase... | flutterfire/packages/firebase_performance/firebase_performance/lib/src/firebase_performance.dart/0 | {
"file_path": "flutterfire/packages/firebase_performance/firebase_performance/lib/src/firebase_performance.dart",
"repo_id": "flutterfire",
"token_count": 914
} | 556 |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_performance_platform_interface/firebase_performance_plat... | flutterfire/packages/firebase_performance/firebase_performance_platform_interface/lib/src/platform_interface/platform_interface_firebase_performance.dart/0 | {
"file_path": "flutterfire/packages/firebase_performance/firebase_performance_platform_interface/lib/src/platform_interface/platform_interface_firebase_performance.dart",
"repo_id": "flutterfire",
"token_count": 1092
} | 557 |
// Copyright 2022, the Chromium project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/services.dart';
import 'pack... | flutterfire/packages/firebase_performance/firebase_performance_web/lib/firebase_performance_web.dart/0 | {
"file_path": "flutterfire/packages/firebase_performance/firebase_performance_web/lib/firebase_performance_web.dart",
"repo_id": "flutterfire",
"token_count": 1024
} | 558 |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Firebase/Firebase.h>
#import <firebase_core/FLTFirebasePluginRegistry.h>
#import "FLTFirebaseRemoteConfigPlugin.h"
#import "FLTFirebaseRemoteCon... | flutterfire/packages/firebase_remote_config/firebase_remote_config/macos/Classes/FLTFirebaseRemoteConfigPlugin.m/0 | {
"file_path": "flutterfire/packages/firebase_remote_config/firebase_remote_config/macos/Classes/FLTFirebaseRemoteConfigPlugin.m",
"repo_id": "flutterfire",
"token_count": 4768
} | 559 |
// Copyright 2023, the Chromium project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/// Used by Remote Config real-time config update service, this class represents changes between the ne... | flutterfire/packages/firebase_remote_config/firebase_remote_config_platform_interface/lib/src/remote_config_update.dart/0 | {
"file_path": "flutterfire/packages/firebase_remote_config/firebase_remote_config_platform_interface/lib/src/remote_config_update.dart",
"repo_id": "flutterfire",
"token_count": 174
} | 560 |
## 12.0.0
> Note: This release has breaking changes.
- **BREAKING** **REFACTOR**: android plugins require `minSdk 21`, auth requires `minSdk 23` ahead of android BOM `>=33.0.0` ([#12873](https://github.com/firebase/flutterfire/issues/12873)). ([52accfc6](https://github.com/firebase/flutterfire/commit/52accfc6c39d636... | flutterfire/packages/firebase_storage/firebase_storage/CHANGELOG.md/0 | {
"file_path": "flutterfire/packages/firebase_storage/firebase_storage/CHANGELOG.md",
"repo_id": "flutterfire",
"token_count": 10568
} | 561 |
# firebase_storage_example
Demonstrates how to use the firebase_storage plugin.
## Getting Started
For help getting started with Flutter, view our online
[documentation](http://flutter.io/).
| flutterfire/packages/firebase_storage/firebase_storage/example/README.md/0 | {
"file_path": "flutterfire/packages/firebase_storage/firebase_storage/example/README.md",
"repo_id": "flutterfire",
"token_count": 54
} | 562 |
// ignore_for_file: require_trailing_commas
// Copyright 2020, the Chromium project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/// Returns a bucket from a given `gs://` URL.
String bucke... | flutterfire/packages/firebase_storage/firebase_storage/lib/src/utils.dart/0 | {
"file_path": "flutterfire/packages/firebase_storage/firebase_storage/lib/src/utils.dart",
"repo_id": "flutterfire",
"token_count": 1102
} | 563 |
// ignore_for_file: require_trailing_commas
// Copyright 2020, the Chromium project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:firebase_storage/src/utils.dart';
import 'p... | flutterfire/packages/firebase_storage/firebase_storage/test/utils_test.dart/0 | {
"file_path": "flutterfire/packages/firebase_storage/firebase_storage/test/utils_test.dart",
"repo_id": "flutterfire",
"token_count": 1356
} | 564 |
// ignore_for_file: require_trailing_commas
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// The options [FirebaseStoragePlatform.list] accepts.
class ListOptions {
/// Creates a new [ListOptions] ... | flutterfire/packages/firebase_storage/firebase_storage_platform_interface/lib/src/list_options.dart/0 | {
"file_path": "flutterfire/packages/firebase_storage/firebase_storage_platform_interface/lib/src/list_options.dart",
"repo_id": "flutterfire",
"token_count": 202
} | 565 |
# firebase_storage_web
The web implementation of `firebase_storage`.
## Getting Started
To get started with Firebase Storage, please [see the documentation](https://firebase.google.com/docs/storage/flutter/start)
To learn more about Firebase Storage, please visit the [Firebase website](https://firebase.google.com/p... | flutterfire/packages/firebase_storage/firebase_storage_web/README.md/0 | {
"file_path": "flutterfire/packages/firebase_storage/firebase_storage_web/README.md",
"repo_id": "flutterfire",
"token_count": 722
} | 566 |
// ignore_for_file: require_trailing_commas
// Copyright 2017, the Chromium project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// import 'package:flutter/services.dart';
import 'package:... | flutterfire/packages/firebase_storage/firebase_storage_web/test/metadata_cache_test.dart/0 | {
"file_path": "flutterfire/packages/firebase_storage/firebase_storage_web/test/metadata_cache_test.dart",
"repo_id": "flutterfire",
"token_count": 1003
} | 567 |
// Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | flutterfire/packages/firebase_vertexai/firebase_vertexai/lib/src/vertex_api.dart/0 | {
"file_path": "flutterfire/packages/firebase_vertexai/firebase_vertexai/lib/src/vertex_api.dart",
"repo_id": "flutterfire",
"token_count": 10362
} | 568 |
// Copyright 2020, the Chromium project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/founda... | flutterfire/tests/integration_test/firebase_auth/firebase_auth_user_e2e_test.dart/0 | {
"file_path": "flutterfire/tests/integration_test/firebase_auth/firebase_auth_user_e2e_test.dart",
"repo_id": "flutterfire",
"token_count": 17308
} | 569 |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_performance/firebase_performance.dart';
import 'package:flutter/foundation.dar... | flutterfire/tests/integration_test/firebase_performance/firebase_performance_e2e_test.dart/0 | {
"file_path": "flutterfire/tests/integration_test/firebase_performance/firebase_performance_e2e_test.dart",
"repo_id": "flutterfire",
"token_count": 3264
} | 570 |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:flutterfiretests.page.link</string>
</array>
</dict>
</plist>
| flutterfire/tests/ios/Runner/Runner.entitlements/0 | {
"file_path": "flutterfire/tests/ios/Runner/Runner.entitlements",
"repo_id": "flutterfire",
"token_count": 135
} | 571 |
# ignore_for_file sort_pub_dependencies
name: tests
description: A an app for FlutterFire testing (e2e).
publish_to: 'none'
version: 1.0.0+1
environment:
sdk: '>=2.18.0 <4.0.0'
dependencies:
cloud_functions: ^5.0.0
cloud_functions_platform_interface: ^5.5.29
cloud_functions_web: ^4.9.7
collection: ^1.15.0
... | flutterfire/tests/pubspec.yaml/0 | {
"file_path": "flutterfire/tests/pubspec.yaml",
"repo_id": "flutterfire",
"token_count": 787
} | 572 |
org.gradle.jvmargs=-Xmx1536M
android.enableR8=true
android.useAndroidX=true
android.enableJetifier=true
| google_nav_bar/example/android/gradle.properties/0 | {
"file_path": "google_nav_bar/example/android/gradle.properties",
"repo_id": "google_nav_bar",
"token_count": 39
} | 573 |
package com.example.graphic_example
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| graphic/example/android/app/src/main/kotlin/com/example/graphic_example/MainActivity.kt/0 | {
"file_path": "graphic/example/android/app/src/main/kotlin/com/example/graphic_example/MainActivity.kt",
"repo_id": "graphic",
"token_count": 39
} | 574 |
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:graphic/graphic.dart';
import 'package:graphic/src/graffiti/element/element.dart';
import '../data.dart';
class TriangleShape extends IntervalShape {
@override
List<MarkElement> drawGroupPrimitives(
List<Attributes> group,
CoordC... | graphic/example/lib/pages/polygon_custom.dart/0 | {
"file_path": "graphic/example/lib/pages/polygon_custom.dart",
"repo_id": "graphic",
"token_count": 18880
} | 575 |
/// Graphic provides a Flutter charting library for data visualization. it has a
/// chart widget, classes for specification, and some util classes and funtions
/// for customization.
///
/// To use this charting library, you only need to do one thing: to create a [Chart]
/// widget. This widget will evaluate and paint... | graphic/lib/graphic.dart/0 | {
"file_path": "graphic/lib/graphic.dart",
"repo_id": "graphic",
"token_count": 3297
} | 576 |
import 'package:graphic/src/chart/view.dart';
import 'package:graphic/src/common/dim.dart';
import 'package:graphic/src/graffiti/element/element.dart';
import 'package:graphic/src/graffiti/element/rect.dart';
import 'package:graphic/src/graffiti/scene.dart';
import 'package:graphic/src/util/collection.dart';
import 'pa... | graphic/lib/src/coord/rect.dart/0 | {
"file_path": "graphic/lib/src/coord/rect.dart",
"repo_id": "graphic",
"token_count": 2195
} | 577 |
import 'dart:ui';
import 'package:flutter/foundation.dart';
import 'package:flutter/painting.dart' as painting;
import 'package:graphic/src/util/collection.dart';
import 'package:path_drawing/path_drawing.dart';
import 'package:graphic/src/util/assert.dart';
import 'segment/segment.dart';
import 'group.dart';
import ... | graphic/lib/src/graffiti/element/element.dart/0 | {
"file_path": "graphic/lib/src/graffiti/element/element.dart",
"repo_id": "graphic",
"token_count": 5653
} | 578 |
import 'dart:ui';
import 'segment.dart';
import 'cubic.dart';
/// Converts a line to cubic bezier control points.
List<Offset> lineToCubicControls(Offset start, Offset end) =>
[Offset.lerp(start, end, 0.5)!, end];
/// A line segment like [Path.lineTo].
class LineSegment extends Segment {
/// Creates a line seg... | graphic/lib/src/graffiti/element/segment/line.dart/0 | {
"file_path": "graphic/lib/src/graffiti/element/segment/line.dart",
"repo_id": "graphic",
"token_count": 500
} | 579 |
import 'package:flutter/painting.dart';
import 'package:graphic/src/coord/rect.dart';
import 'package:graphic/src/graffiti/element/element.dart';
import 'package:graphic/src/graffiti/element/label.dart';
import 'package:graphic/src/graffiti/element/line.dart';
import 'axis.dart';
/// Renders horizontal axis.
List<Mar... | graphic/lib/src/guide/axis/horizontal.dart/0 | {
"file_path": "graphic/lib/src/guide/axis/horizontal.dart",
"repo_id": "graphic",
"token_count": 907
} | 580 |
import 'dart:ui';
import 'package:graphic/src/algebra/varset.dart';
import 'package:graphic/src/coord/coord.dart';
import 'package:graphic/src/dataflow/tuple.dart';
import 'package:graphic/src/scale/discrete.dart';
import 'package:graphic/src/scale/scale.dart';
import 'modifier.dart';
/// The specification of a dodg... | graphic/lib/src/mark/modifier/dodge.dart/0 | {
"file_path": "graphic/lib/src/mark/modifier/dodge.dart",
"repo_id": "graphic",
"token_count": 744
} | 581 |
import 'dart:math' as dart_math;
import '../linear.dart';
final _e10 = dart_math.sqrt(50);
final _e5 = dart_math.sqrt(10);
final _e2 = dart_math.sqrt(2);
num _tickIncrement(
num start,
num stop,
int count,
) {
final step = (stop - start) / dart_math.max(0, count);
final power = (dart_math.log(step) / dart_... | graphic/lib/src/scale/util/nice_range.dart/0 | {
"file_path": "graphic/lib/src/scale/util/nice_range.dart",
"repo_id": "graphic",
"token_count": 931
} | 582 |
import 'package:graphic/src/dataflow/tuple.dart';
import 'transform.dart';
/// The transform to get tuples that satisfy a certain predicate.
///
/// This may reduce the length of original value tuples.
///
/// See also:
/// - [Tuple], the original value tuple.
class Filter extends VariableTransform {
/// Creates a ... | graphic/lib/src/variable/transform/filter.dart/0 | {
"file_path": "graphic/lib/src/variable/transform/filter.dart",
"repo_id": "graphic",
"token_count": 267
} | 583 |
#import "GeneratedPluginRegistrant.h"
| hidden_drawer_menu/example/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "hidden_drawer_menu/example/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "hidden_drawer_menu",
"token_count": 13
} | 584 |
import 'package:flutter/material.dart';
import 'package:hidden_drawer_menu/controllers/simple_hidden_drawer_controller.dart';
import 'package:hidden_drawer_menu/menu/hidden_menu_item.dart';
import 'package:hidden_drawer_menu/model/item_hidden_menu.dart';
import 'package:hidden_drawer_menu/simple_hidden_drawer/animated_... | hidden_drawer_menu/lib/menu/hidden_menu.dart/0 | {
"file_path": "hidden_drawer_menu/lib/menu/hidden_menu.dart",
"repo_id": "hidden_drawer_menu",
"token_count": 1645
} | 585 |
#import "GeneratedPluginRegistrant.h"
| liquid_swipe_flutter/example/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "liquid_swipe_flutter/example/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "liquid_swipe_flutter",
"token_count": 13
} | 586 |
# Lottie Flutter examples
### Simple usage
```dart
import 'lib/examples/examples.dart';
```
| lottie-flutter/example/README.template.md/0 | {
"file_path": "lottie-flutter/example/README.template.md",
"repo_id": "lottie-flutter",
"token_count": 36
} | 587 |
import 'package:flutter/material.dart';
import 'package:lottie/lottie.dart';
/// This example show how to play the Lottie animation in various way:
/// - Start and stop the animation on event callback
/// - Play the animation forward and backward
/// - Loop between two specific frames
///
/// This works by creating an... | lottie-flutter/example/lib/examples/animation_full_control.dart/0 | {
"file_path": "lottie-flutter/example/lib/examples/animation_full_control.dart",
"repo_id": "lottie-flutter",
"token_count": 1593
} | 588 |
import 'package:flutter/material.dart';
import 'package:logging/logging.dart';
import 'package:lottie/lottie.dart';
import '../src/all_files.g.dart';
void main() async {
Logger.root
..level = Level.ALL
..onRecord.listen(print);
runApp(const App());
}
class App extends StatefulWidget {
const App({super.... | lottie-flutter/example/lib/examples/run_once.dart/0 | {
"file_path": "lottie-flutter/example/lib/examples/run_once.dart",
"repo_id": "lottie-flutter",
"token_count": 760
} | 589 |
import 'dart:io';
import 'package:shelf/shelf_io.dart';
import 'package:shelf_static/shelf_static.dart';
void main() async {
var server = await serve(
createStaticHandler('build/web'), InternetAddress.loopbackIPv4, 0);
print('Listen on http://${server.address.host}:${server.port}/index.html');
}
| lottie-flutter/example/tool/web_server.dart/0 | {
"file_path": "lottie-flutter/example/tool/web_server.dart",
"repo_id": "lottie-flutter",
"token_count": 109
} | 590 |
import 'dart:ui';
import 'package:vector_math/vector_math_64.dart';
import '../../l.dart';
import '../../lottie_drawable.dart';
import '../../lottie_property.dart';
import '../../model/content/drop_shadow_effect.dart';
import '../../model/content/gradient_color.dart';
import '../../model/content/gradient_fill.dart';
im... | lottie-flutter/lib/src/animation/content/gradient_fill_content.dart/0 | {
"file_path": "lottie-flutter/lib/src/animation/content/gradient_fill_content.dart",
"repo_id": "lottie-flutter",
"token_count": 3949
} | 591 |
import 'dart:ui';
import '../../utils/gamma_evaluator.dart';
import '../../value/keyframe.dart';
import 'keyframe_animation.dart';
class ColorKeyframeAnimation extends KeyframeAnimation<Color> {
ColorKeyframeAnimation(super.keyframes);
@override
Color getValue(Keyframe<Color> keyframe, double keyframeProgress) ... | lottie-flutter/lib/src/animation/keyframe/color_keyframe_animation.dart/0 | {
"file_path": "lottie-flutter/lib/src/animation/keyframe/color_keyframe_animation.dart",
"repo_id": "lottie-flutter",
"token_count": 387
} | 592 |
import 'package:flutter/foundation.dart';
@immutable
class FrameRate {
static const max = FrameRate._special(0);
static const composition = FrameRate._special(-1);
final double framesPerSecond;
const FrameRate(this.framesPerSecond) : assert(framesPerSecond > 0);
const FrameRate._special(this.framesPerSecon... | lottie-flutter/lib/src/frame_rate.dart/0 | {
"file_path": "lottie-flutter/lib/src/frame_rate.dart",
"repo_id": "lottie-flutter",
"token_count": 222
} | 593 |
import 'dart:ui';
import '../../animation/keyframe/split_dimension_path_keyframe_animation.dart';
import '../../value/keyframe.dart';
import 'animatable_double_value.dart';
import 'animatable_value.dart';
class AnimatableSplitDimensionPathValue
implements AnimatableValue<Offset, Offset> {
final AnimatableDoubleV... | lottie-flutter/lib/src/model/animatable/animatable_split_dimension_path_value.dart/0 | {
"file_path": "lottie-flutter/lib/src/model/animatable/animatable_split_dimension_path_value.dart",
"repo_id": "lottie-flutter",
"token_count": 323
} | 594 |
import '../../animation/content/content.dart';
import '../../animation/content/merge_paths_content.dart';
import '../../lottie_drawable.dart';
import '../layer/base_layer.dart';
import 'content_model.dart';
enum MergePathsMode { merge, add, substract, intersect, excludeIntersections }
class MergePaths implements Cont... | lottie-flutter/lib/src/model/content/merge_paths.dart/0 | {
"file_path": "lottie-flutter/lib/src/model/content/merge_paths.dart",
"repo_id": "lottie-flutter",
"token_count": 473
} | 595 |
import '../value/lottie_value_callback.dart';
import 'key_path.dart';
/// Any item that can be a part of a {@link KeyPath} should implement this.
abstract class KeyPathElement {
/// Called recursively during keypath resolution.
///
/// The overridden method should just call:
/// MiscUtils.resolveKeyPath... | lottie-flutter/lib/src/model/key_path_element.dart/0 | {
"file_path": "lottie-flutter/lib/src/model/key_path_element.dart",
"repo_id": "lottie-flutter",
"token_count": 447
} | 596 |
import 'dart:ui';
import '../../lottie.dart';
import '../model/animatable/animatable_point_value.dart';
import '../model/animatable/animatable_value.dart';
import '../model/content/circle_shape.dart';
import 'animatable_path_value_parser.dart';
import 'animatable_value_parser.dart';
import 'moshi/json_reader.dart';
cl... | lottie-flutter/lib/src/parser/circle_shape_parser.dart/0 | {
"file_path": "lottie-flutter/lib/src/parser/circle_shape_parser.dart",
"repo_id": "lottie-flutter",
"token_count": 603
} | 597 |
import '../composition.dart';
import '../lottie_image_asset.dart';
import '../model/font.dart';
import '../model/font_character.dart';
import '../model/layer/layer.dart';
import '../model/marker.dart';
import '../utils/misc.dart';
import 'font_character_parser.dart';
import 'font_parser.dart';
import 'layer_parser.dart... | lottie-flutter/lib/src/parser/lottie_composition_parser.dart/0 | {
"file_path": "lottie-flutter/lib/src/parser/lottie_composition_parser.dart",
"repo_id": "lottie-flutter",
"token_count": 3001
} | 598 |
import 'dart:ui';
import '../model/content/shape_data.dart';
import '../model/cubic_curve_data.dart';
import 'json_utils.dart';
import 'moshi/json_reader.dart';
final JsonReaderOptions _names = JsonReaderOptions.of(['c', 'v', 'i', 'o']);
ShapeData shapeDataParser(JsonReader reader) {
// Sometimes the points data is... | lottie-flutter/lib/src/parser/shape_data_parser.dart/0 | {
"file_path": "lottie-flutter/lib/src/parser/shape_data_parser.dart",
"repo_id": "lottie-flutter",
"token_count": 900
} | 599 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.