text stringlengths 6 13.6M | id stringlengths 13 176 | metadata dict | __index_level_0__ int64 0 1.69k |
|---|---|---|---|
// 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.
/// This file shims dart:ui in web-only scenarios, getting rid of the need to
/// suppress analyzer warnings.
// TODO(ditman): Remove this file once web-o... | plugins/packages/url_launcher/url_launcher_web/lib/src/shims/dart_ui.dart/0 | {
"file_path": "plugins/packages/url_launcher/url_launcher_web/lib/src/shims/dart_ui.dart",
"repo_id": "plugins",
"token_count": 141
} | 1,339 |
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def f... | plugins/packages/video_player/video_player/example/ios/Podfile/0 | {
"file_path": "plugins/packages/video_player/video_player/example/ios/Podfile",
"repo_id": "plugins",
"token_count": 449
} | 1,340 |
// 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.
// This file is used to extract code samples for the README.md file.
// Run update-excerpts if you modify this file.
// ignore_for_file: library_private_t... | plugins/packages/video_player/video_player/example/lib/basic.dart/0 | {
"file_path": "plugins/packages/video_player/video_player/example/lib/basic.dart",
"repo_id": "plugins",
"token_count": 842
} | 1,341 |
// 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_test/flutter_test.dart';
import 'package:video_player/src/closed_caption_file.dart';
import 'package:video_player/video_player.dart... | plugins/packages/video_player/video_player/test/web_vtt_test.dart/0 | {
"file_path": "plugins/packages/video_player/video_player/test/web_vtt_test.dart",
"repo_id": "plugins",
"token_count": 2691
} | 1,342 |
// 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.videoplayer;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.mock;
import static org.mockito.Moc... | plugins/packages/video_player/video_player_android/android/src/test/java/io/flutter/plugins/videoplayer/VideoPlayerTest.java/0 | {
"file_path": "plugins/packages/video_player/video_player_android/android/src/test/java/io/flutter/plugins/videoplayer/VideoPlayerTest.java",
"repo_id": "plugins",
"token_count": 1954
} | 1,343 |
// 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 (v2.0.1), do not edit directly.
// See also: https://pub.dev/packages/pigeon
#import <Foundation/Foundation.h>
@protocol Flutte... | plugins/packages/video_player/video_player_avfoundation/ios/Classes/messages.g.h/0 | {
"file_path": "plugins/packages/video_player/video_player_avfoundation/ios/Classes/messages.g.h",
"repo_id": "plugins",
"token_count": 1717
} | 1,344 |
name: video_player_platform_interface
description: A common platform interface for the video_player plugin.
repository: https://github.com/flutter/plugins/tree/main/packages/video_player/video_player_platform_interface
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+video... | plugins/packages/video_player/video_player_platform_interface/pubspec.yaml/0 | {
"file_path": "plugins/packages/video_player/video_player_platform_interface/pubspec.yaml",
"repo_id": "plugins",
"token_count": 251
} | 1,345 |
// 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 XCTest;
@import os.log;
@interface FLTWebViewUITests : XCTestCase
@property(nonatomic, strong) XCUIApplication *app;
@end
@implementation FLTWebV... | plugins/packages/webview_flutter/webview_flutter/example/ios/RunnerUITests/FLTWebViewUITests.m/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter/example/ios/RunnerUITests/FLTWebViewUITests.m",
"repo_id": "plugins",
"token_count": 1299
} | 1,346 |
// 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:typed_data';
import 'package:flutter/src/foundation/basic_types.dart';
import 'package:flutter/src/gestures/recognizer.dart';
import 'package... | plugins/packages/webview_flutter/webview_flutter/test/legacy/webview_flutter_test.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter/test/legacy/webview_flutter_test.dart",
"repo_id": "plugins",
"token_count": 15703
} | 1,347 |
rootProject.name = 'webview_flutter'
| plugins/packages/webview_flutter/webview_flutter_android/android/settings.gradle/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/android/settings.gradle",
"repo_id": "plugins",
"token_count": 13
} | 1,348 |
// 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.webviewflutter;
import android.os.Handler;
import io.flutter.plugins.webviewflutter.GeneratedAndroidWebView.JavaScriptChannelHo... | plugins/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/JavaScriptChannelHostApiImpl.java/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/JavaScriptChannelHostApiImpl.java",
"repo_id": "plugins",
"token_count": 824
} | 1,349 |
// 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.webviewflutter;
import static org.junit.Assert.assertNotNull;
import static org.mockito.ArgumentMatchers.anyBoolean;
import sta... | plugins/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/InputAwareWebViewTest.java/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/InputAwareWebViewTest.java",
"repo_id": "plugins",
"token_count": 459
} | 1,350 |
// 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 'android_webview.dart' as android_webview;
/// Handles constructing objects and calling static methods for the Android
/// WebView native library.
... | plugins/packages/webview_flutter/webview_flutter_android/lib/src/android_proxy.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/lib/src/android_proxy.dart",
"repo_id": "plugins",
"token_count": 1259
} | 1,351 |
// 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:pigeon/pigeon.dart';
@ConfigurePigeon(
PigeonOptions(
dartOut: 'lib/src/android_webview.g.dart',
dartTestOut: 'test/test_android... | plugins/packages/webview_flutter/webview_flutter_android/pigeons/android_webview.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_android/pigeons/android_webview.dart",
"repo_id": "plugins",
"token_count": 2807
} | 1,352 |
// 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 'web_resource_error_type.dart';
/// Error returned in `WebView.onWebResourceError` when a web resource loading error has occurred.
class WebResourc... | plugins/packages/webview_flutter/webview_flutter_platform_interface/lib/src/legacy/types/web_resource_error.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_platform_interface/lib/src/legacy/types/web_resource_error.dart",
"repo_id": "plugins",
"token_count": 682
} | 1,353 |
// 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';
/// Object specifying creation parameters for creating a [PlatformWebViewCookieManager].
///
/// Platform specific... | plugins/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/platform_webview_cookie_manager_creation_params.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/platform_webview_cookie_manager_creation_params.dart",
"repo_id": "plugins",
"token_count": 479
} | 1,354 |
// Mocks generated by Mockito 5.3.2 from annotations
// in webview_flutter_platform_interface/test/platform_webview_controller_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i4;
import 'package:mockito/mockito.dart' as _i1;
import ... | plugins/packages/webview_flutter/webview_flutter_platform_interface/test/platform_webview_controller_test.mocks.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_platform_interface/test/platform_webview_controller_test.mocks.dart",
"repo_id": "plugins",
"token_count": 1520
} | 1,355 |
// 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;
@import XCTest;
@import webview_flutter_wkwebview;
#import <OCMock/OCMock.h>
@interface FWFScrollViewHostApiTests : XCTestCase
@end
@im... | plugins/packages/webview_flutter/webview_flutter_wkwebview/example/ios/RunnerTests/FWFScrollViewHostApiTests.m/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/example/ios/RunnerTests/FWFScrollViewHostApiTests.m",
"repo_id": "plugins",
"token_count": 810
} | 1,356 |
// 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 "FWFObjectHostApi.h"
#import "FWFDataConverters.h"
@interface FWFObjectFlutterApiImpl ()
// InstanceManager must be weak to prevent a circular ref... | plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFObjectHostApi.m/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFObjectHostApi.m",
"repo_id": "plugins",
"token_count": 2371
} | 1,357 |
// 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:math';
import 'package:flutter/foundation.dart';
// TODO(a14n): remove this import once Flutter 3.1 or later reaches stable (including flutte... | plugins/packages/webview_flutter/webview_flutter_wkwebview/lib/src/ui_kit/ui_kit.dart/0 | {
"file_path": "plugins/packages/webview_flutter/webview_flutter_wkwebview/lib/src/ui_kit/ui_kit.dart",
"repo_id": "plugins",
"token_count": 1577
} | 1,358 |
This folder contains configuration files that are passed to commands in place
of plugin lists. They are primarily used by CI to opt specific packages out of
tests, but can also useful when running multi-plugin tests locally.
**Any entry added to a file in this directory should include a comment**.
Skipping tests or ch... | plugins/script/configs/README.md/0 | {
"file_path": "plugins/script/configs/README.md",
"repo_id": "plugins",
"token_count": 115
} | 1,359 |
# Contributing
_See also: [Flutter's code of conduct](https://github.com/flutter/flutter/blob/master/CODE_OF_CONDUCT.md)_
Want to contribute to the Flutter sample ecosystem? Great! First, read this
page (including the small print at the end).
## Is this the right place for your contribution?
This repo is used by me... | samples/CONTRIBUTING.md/0 | {
"file_path": "samples/CONTRIBUTING.md",
"repo_id": "samples",
"token_count": 1674
} | 1,360 |
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M3,13h8L11,3L3,3v10zM3,21h8v-6L3,15v6zM13,21h8L21,11h-8v10zM... | samples/add_to_app/android_view/android_view/app/src/main/res/drawable/ic_dashboard_black_24dp.xml/0 | {
"file_path": "samples/add_to_app/android_view/android_view/app/src/main/res/drawable/ic_dashboard_black_24dp.xml",
"repo_id": "samples",
"token_count": 181
} | 1,361 |
include: package:analysis_defaults/flutter.yaml
| samples/add_to_app/android_view/flutter_module_using_plugin/analysis_options.yaml/0 | {
"file_path": "samples/add_to_app/android_view/flutter_module_using_plugin/analysis_options.yaml",
"repo_id": "samples",
"token_count": 15
} | 1,362 |
// Copyright 2020 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package dev.flutter.example.books
import android.app.Activity
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os... | samples/add_to_app/books/android_books/app/src/main/java/dev/flutter/example/books/MainActivity.kt/0 | {
"file_path": "samples/add_to_app/books/android_books/app/src/main/java/dev/flutter/example/books/MainActivity.kt",
"repo_id": "samples",
"token_count": 3328
} | 1,363 |
// Copyright 2020 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:pigeon/pigeon.dart';
class Book {
String? title;
String? subtitle;
String? author;
String? summary;
String? publishDate;
int? pag... | samples/add_to_app/books/flutter_module_books/pigeon/schema.dart/0 | {
"file_path": "samples/add_to_app/books/flutter_module_books/pigeon/schema.dart",
"repo_id": "samples",
"token_count": 188
} | 1,364 |
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="17506" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="b8i-Fj-l... | samples/add_to_app/books/ios_books/IosBooks/Base.lproj/Main.storyboard/0 | {
"file_path": "samples/add_to_app/books/ios_books/IosBooks/Base.lproj/Main.storyboard",
"repo_id": "samples",
"token_count": 6080
} | 1,365 |
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:name=".MyApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/i... | samples/add_to_app/fullscreen/android_fullscreen/app/src/main/AndroidManifest.xml/0 | {
"file_path": "samples/add_to_app/fullscreen/android_fullscreen/app/src/main/AndroidManifest.xml",
"repo_id": "samples",
"token_count": 504
} | 1,366 |
include: package:analysis_defaults/flutter.yaml
| samples/add_to_app/fullscreen/flutter_module/analysis_options.yaml/0 | {
"file_path": "samples/add_to_app/fullscreen/flutter_module/analysis_options.yaml",
"repo_id": "samples",
"token_count": 15
} | 1,367 |
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-3... | samples/add_to_app/fullscreen/ios_fullscreen/IOSFullScreen/Base.lproj/Main.storyboard/0 | {
"file_path": "samples/add_to_app/fullscreen/ios_fullscreen/IOSFullScreen/Base.lproj/Main.storyboard",
"repo_id": "samples",
"token_count": 2022
} | 1,368 |
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Provide required visibility configuration for API level 30 and above -->
<queries>
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme... | samples/add_to_app/multiple_flutters/multiple_flutters_android/app/src/main/AndroidManifest.xml/0 | {
"file_path": "samples/add_to_app/multiple_flutters/multiple_flutters_android/app/src/main/AndroidManifest.xml",
"repo_id": "samples",
"token_count": 1012
} | 1,369 |
include ':app'
rootProject.name = "Multiple Flutters"
setBinding(new Binding([gradle: this])) // new
evaluate(new File( // new
settingsDir.parentFile, // new
'./multiple_flutte... | samples/add_to_app/multiple_flutters/multiple_flutters_android/settings.gradle/0 | {
"file_path": "samples/add_to_app/multiple_flutters/multiple_flutters_android/settings.gradle",
"repo_id": "samples",
"token_count": 239
} | 1,370 |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
... | samples/add_to_app/multiple_flutters/multiple_flutters_ios/MultipleFluttersIos/Info.plist/0 | {
"file_path": "samples/add_to_app/multiple_flutters/multiple_flutters_ios/MultipleFluttersIos/Info.plist",
"repo_id": "samples",
"token_count": 846
} | 1,371 |
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-3... | samples/add_to_app/plugin/ios_using_plugin/IOSUsingPlugin/Base.lproj/Main.storyboard/0 | {
"file_path": "samples/add_to_app/plugin/ios_using_plugin/IOSUsingPlugin/Base.lproj/Main.storyboard",
"repo_id": "samples",
"token_count": 2011
} | 1,372 |
include: package:analysis_defaults/flutter.yaml
| samples/add_to_app/prebuilt_module/flutter_module/analysis_options.yaml/0 | {
"file_path": "samples/add_to_app/prebuilt_module/flutter_module/analysis_options.yaml",
"repo_id": "samples",
"token_count": 15
} | 1,373 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import UIKit
import Flutter
class ViewController: UIViewController {
@IBOutlet weak var counterLabel: UILabel!
var methodChannel : FlutterMetho... | samples/add_to_app/prebuilt_module/ios_using_prebuilt_module/IOSUsingPrebuiltModule/ViewController.swift/0 | {
"file_path": "samples/add_to_app/prebuilt_module/ios_using_prebuilt_module/IOSUsingPrebuiltModule/ViewController.swift",
"repo_id": "samples",
"token_count": 879
} | 1,374 |
<!--
~ Copyright (C) 2021 The Android Open Source Project
~
~ 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 requ... | samples/android_splash_screen/android/app/src/main/res/drawable/splashscreen_icon.xml/0 | {
"file_path": "samples/android_splash_screen/android/app/src/main/res/drawable/splashscreen_icon.xml",
"repo_id": "samples",
"token_count": 2232
} | 1,375 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
// Refer to the AnimatedWidget docs here - https://api.flutter.dev/flutter/widgets/AnimatedWidget-class.html
// for e... | samples/animations/lib/src/basics/fade_transition.dart/0 | {
"file_path": "samples/animations/lib/src/basics/fade_transition.dart",
"repo_id": "samples",
"token_count": 890
} | 1,376 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
class RepeatingAnimationDemo extends StatefulWidget {
const RepeatingAnimationDemo({super.key});
static String ro... | samples/animations/lib/src/misc/repeating_animation.dart/0 | {
"file_path": "samples/animations/lib/src/misc/repeating_animation.dart",
"repo_id": "samples",
"token_count": 643
} | 1,377 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| samples/animations/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "samples/animations/macos/Runner/Configs/Release.xcconfig",
"repo_id": "samples",
"token_count": 32
} | 1,378 |
# Code Sharing
A full-stack Dart application using Flutter on the client and
[`shelf`](https://pub.dev/packages/shelf) on the server. The Flutter app
itself is still the counter app, but the actual number is stored on the server
and incremented over HTTP using transport data classes understood by both the
Flutter c... | samples/code_sharing/README.md/0 | {
"file_path": "samples/code_sharing/README.md",
"repo_id": "samples",
"token_count": 1531
} | 1,379 |
version: "3.7"
services:
server:
build:
context: .
ports:
- 8080:8080
environment:
SERVER_PORT: "8080"
SERVER_URL: "localhost"
SERVER_SCHEME: "http"
| samples/code_sharing/docker-compose.yml/0 | {
"file_path": "samples/code_sharing/docker-compose.yml",
"repo_id": "samples",
"token_count": 100
} | 1,380 |
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'models.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
_$IncrementImpl _$$IncrementImplFromJson(Map<String, dynamic> json)... | samples/code_sharing/shared/lib/src/models.g.dart/0 | {
"file_path": "samples/code_sharing/shared/lib/src/models.g.dart",
"repo_id": "samples",
"token_count": 249
} | 1,381 |
#import "GeneratedPluginRegistrant.h"
| samples/context_menus/ios/Runner/Runner-Bridging-Header.h/0 | {
"file_path": "samples/context_menus/ios/Runner/Runner-Bridging-Header.h",
"repo_id": "samples",
"token_count": 13
} | 1,382 |
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
import 'constants.dart';
import 'platform_selector.dart';
class ModifiedActionPage extends StatelessWidget {
ModifiedActionPage({
super.key,
required this.onChangedPlatform,
});
static const String route = 'modifie... | samples/context_menus/lib/modified_action_page.dart/0 | {
"file_path": "samples/context_menus/lib/modified_action_page.dart",
"repo_id": "samples",
"token_count": 1542
} | 1,383 |
import 'package:context_menus/custom_buttons_page.dart';
import 'package:context_menus/main.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
void mai... | samples/context_menus/test/custom_buttons_page_test.dart/0 | {
"file_path": "samples/context_menus/test/custom_buttons_page_test.dart",
"repo_id": "samples",
"token_count": 797
} | 1,384 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'search.dart';
// **************************************************************************
// BuiltValue... | samples/desktop_photo_search/fluent_ui/lib/src/model/search.g.dart/0 | {
"file_path": "samples/desktop_photo_search/fluent_ui/lib/src/model/search.g.dart",
"repo_id": "samples",
"token_count": 1760
} | 1,385 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'position.dart';
// **************************************************************************
// BuiltVal... | samples/desktop_photo_search/fluent_ui/lib/src/unsplash/position.g.dart/0 | {
"file_path": "samples/desktop_photo_search/fluent_ui/lib/src/unsplash/position.g.dart",
"repo_id": "samples",
"token_count": 1574
} | 1,386 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// TODO: Retrieve an API Access Key from https://unsplash.com/developers
const String unsplashAccessKey = '';
// The application name for the above API Acces... | samples/desktop_photo_search/fluent_ui/lib/unsplash_access_key.dart/0 | {
"file_path": "samples/desktop_photo_search/fluent_ui/lib/unsplash_access_key.dart",
"repo_id": "samples",
"token_count": 98
} | 1,387 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| samples/desktop_photo_search/fluent_ui/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "samples/desktop_photo_search/fluent_ui/macos/Runner/Configs/Release.xcconfig",
"repo_id": "samples",
"token_count": 32
} | 1,388 |
include: package:analysis_defaults/flutter.yaml
linter:
rules:
sort_pub_dependencies: true
| samples/desktop_photo_search/material/analysis_options.yaml/0 | {
"file_path": "samples/desktop_photo_search/material/analysis_options.yaml",
"repo_id": "samples",
"token_count": 36
} | 1,389 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'location.dart';
// **************************************************************************
// BuiltVal... | samples/desktop_photo_search/material/lib/src/unsplash/location.g.dart/0 | {
"file_path": "samples/desktop_photo_search/material/lib/src/unsplash/location.g.dart",
"repo_id": "samples",
"token_count": 1953
} | 1,390 |
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart' as url_launcher;
class Policy... | samples/desktop_photo_search/material/lib/src/widgets/policy_dialog.dart/0 | {
"file_path": "samples/desktop_photo_search/material/lib/src/widgets/policy_dialog.dart",
"repo_id": "samples",
"token_count": 1373
} | 1,391 |
# federated_plugin_example
Demonstrates how to use the federated_plugin plugin.
| samples/experimental/federated_plugin/federated_plugin/example/README.md/0 | {
"file_path": "samples/experimental/federated_plugin/federated_plugin/example/README.md",
"repo_id": "samples",
"token_count": 23
} | 1,392 |
include: package:analysis_defaults/flutter.yaml
| samples/experimental/federated_plugin/federated_plugin_macos/analysis_options.yaml/0 | {
"file_path": "samples/experimental/federated_plugin/federated_plugin_macos/analysis_options.yaml",
"repo_id": "samples",
"token_count": 15
} | 1,393 |
include: package:analysis_defaults/flutter.yaml
| samples/experimental/federated_plugin/federated_plugin_web/analysis_options.yaml/0 | {
"file_path": "samples/experimental/federated_plugin/federated_plugin_web/analysis_options.yaml",
"repo_id": "samples",
"token_count": 15
} | 1,394 |
// Copyright 2021 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:linting_tool/layout/adaptive.dart';
import 'package:linting_tool/model/rules_store.dart';
import 'pack... | samples/experimental/linting_tool/lib/pages/home_page.dart/0 | {
"file_path": "samples/experimental/linting_tool/lib/pages/home_page.dart",
"repo_id": "samples",
"token_count": 1070
} | 1,395 |
TODO: Add your license here.
| samples/experimental/pedometer/LICENSE/0 | {
"file_path": "samples/experimental/pedometer/LICENSE",
"repo_id": "samples",
"token_count": 10
} | 1,396 |
name: pedometer
description: A new Flutter FFI plugin project.
version: 0.0.1
publish_to: none
environment:
sdk: ^3.2.0
dependencies:
flutter:
sdk: flutter
plugin_platform_interface: ^2.0.2
jni: ^0.7.2
ffi: ^2.1.0
dev_dependencies:
ffigen: ^11.0.0
jnigen: ^0.7.0
flutter_test:
sdk: flutter
f... | samples/experimental/pedometer/pubspec.yaml/0 | {
"file_path": "samples/experimental/pedometer/pubspec.yaml",
"repo_id": "samples",
"token_count": 846
} | 1,397 |
# Type Jam
A simple typographically-themed puzzle app to explore creative use of variable fonts and shaders in Flutter.
| samples/experimental/varfont_shader_puzzle/README.md/0 | {
"file_path": "samples/experimental/varfont_shader_puzzle/README.md",
"repo_id": "samples",
"token_count": 28
} | 1,398 |
// Copyright 2023 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import '../components/components.dart';
import '../page_content/pages_flow.dart';
import '../styles.dart';
class Page... | samples/experimental/varfont_shader_puzzle/lib/page_content/page_narrative_post.dart/0 | {
"file_path": "samples/experimental/varfont_shader_puzzle/lib/page_content/page_narrative_post.dart",
"repo_id": "samples",
"token_count": 633
} | 1,399 |
// Copyright 2023 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#define PI 3.1415926538
uniform float uTime;
uniform vec2 uSize;
uniform float uDampener;
out vec4 fragColor;
uniform sampler2D uTexture;
void main()
{
... | samples/experimental/varfont_shader_puzzle/shaders/bw_split.frag/0 | {
"file_path": "samples/experimental/varfont_shader_puzzle/shaders/bw_split.frag",
"repo_id": "samples",
"token_count": 482
} | 1,400 |
// Copyright 2020, the Flutter project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:community_charts_flutter/community_charts_flutter.dart'
as charts;
import 'package:fl... | samples/experimental/web_dashboard/lib/src/widgets/category_chart.dart/0 | {
"file_path": "samples/experimental/web_dashboard/lib/src/widgets/category_chart.dart",
"repo_id": "samples",
"token_count": 1464
} | 1,401 |
# Flutter Maps Firestore
A Flutter sample app that shows the end product of the Cloud Next '19 talk
[Build Mobile Apps With Flutter and Google Maps](https://www.youtube.com/watch?v=RpQLFAFqMlw).
The live coding starts at about 17:40.
## Goals for this sample
* Showcase how to build an app that uses Google Maps with... | samples/flutter_maps_firestore/README.md/0 | {
"file_path": "samples/flutter_maps_firestore/README.md",
"repo_id": "samples",
"token_count": 689
} | 1,402 |
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.game_template">
<application
android:label="game_template"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
... | samples/game_template/android/app/src/main/AndroidManifest.xml/0 | {
"file_path": "samples/game_template/android/app/src/main/AndroidManifest.xml",
"repo_id": "samples",
"token_count": 1058
} | 1,403 |
// Copyright 2022, the Flutter project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
const Set<Song> songs = {
// Filenames with whitespace break package:audioplayers on iOS
// (as of Fe... | samples/game_template/lib/src/audio/songs.dart/0 | {
"file_path": "samples/game_template/lib/src/audio/songs.dart",
"repo_id": "samples",
"token_count": 236
} | 1,404 |
// Copyright 2022, the Flutter project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:shared_preferences/shared_preferences.dart';
import 'settings_persistence.dart';
/// An... | samples/game_template/lib/src/settings/persistence/local_storage_settings_persistence.dart/0 | {
"file_path": "samples/game_template/lib/src/settings/persistence/local_storage_settings_persistence.dart",
"repo_id": "samples",
"token_count": 564
} | 1,405 |
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
| samples/google_maps/android/gradle.properties/0 | {
"file_path": "samples/google_maps/android/gradle.properties",
"repo_id": "samples",
"token_count": 31
} | 1,406 |
package dev.flutter.infinite_list
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| samples/infinite_list/android/app/src/main/kotlin/dev/flutter/infinite_list/MainActivity.kt/0 | {
"file_path": "samples/infinite_list/android/app/src/main/kotlin/dev/flutter/infinite_list/MainActivity.kt",
"repo_id": "samples",
"token_count": 40
} | 1,407 |
// Copyright 2019-present the Flutter authors. All Rights Reserved.
//
// 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 ... | samples/isolate_example/lib/data_transfer_page.dart/0 | {
"file_path": "samples/isolate_example/lib/data_transfer_page.dart",
"repo_id": "samples",
"token_count": 3254
} | 1,408 |
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled.
version:
revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
channel: beta
project_type: app
# Tracks metadata for the flutter migrate command
... | samples/material_3_demo/.metadata/0 | {
"file_path": "samples/material_3_demo/.metadata",
"repo_id": "samples",
"token_count": 728
} | 1,409 |
// Copyright 2021 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/services.dart';
const rowDivider = SizedBox(width: 2... | samples/material_3_demo/lib/component_screen.dart/0 | {
"file_path": "samples/material_3_demo/lib/component_screen.dart",
"repo_id": "samples",
"token_count": 36204
} | 1,410 |
// Copyright 2021 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: avoid_types_on_closure_parameters
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package... | samples/material_3_demo/test/typography_screen_test.dart/0 | {
"file_path": "samples/material_3_demo/test/typography_screen_test.dart",
"repo_id": "samples",
"token_count": 1230
} | 1,411 |
// Copyright 2021, the Flutter project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'author.dart';
import 'book.dart';
final libraryInstance = Library()
..addBook(
title: 'L... | samples/navigation_and_routing/lib/src/data/library.dart/0 | {
"file_path": "samples/navigation_and_routing/lib/src/data/library.dart",
"repo_id": "samples",
"token_count": 655
} | 1,412 |
include: package:analysis_defaults/flutter.yaml
| samples/place_tracker/analysis_options.yaml/0 | {
"file_path": "samples/place_tracker/analysis_options.yaml",
"repo_id": "samples",
"token_count": 15
} | 1,413 |
{
"images" : [
{
"filename" : "eat_new_orleans.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
| samples/platform_channels/ios/Runner/Assets.xcassets/eat_new_orleans.imageset/Contents.json/0 | {
"file_path": "samples/platform_channels/ios/Runner/Assets.xcassets/eat_new_orleans.imageset/Contents.json",
"repo_id": "samples",
"token_count": 179
} | 1,414 |
// Copyright 2020 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:platform_channels/src/image_basic_message_channel.dart';
/// ... | samples/platform_channels/lib/src/platform_image_demo.dart/0 | {
"file_path": "samples/platform_channels/lib/src/platform_image_demo.dart",
"repo_id": "samples",
"token_count": 1311
} | 1,415 |
# Run with tooling from https://github.com/flutter/codelabs/tree/main/tooling/codelab_rebuild
name: Platform Design rebuild script
steps:
- name: Remove runner
rmdirs:
- android
- ios
- web
- name: Flutter recreate runner
flutter: create --platform android,ios,web --org dev.flutter .
- n... | samples/platform_design/codelab_rebuild.yaml/0 | {
"file_path": "samples/platform_design/codelab_rebuild.yaml",
"repo_id": "samples",
"token_count": 420
} | 1,416 |
name: platform_design
description: A project showcasing a Flutter app following different platform IA conventions.
version: 1.0.0+1
environment:
sdk: ^3.2.0
dependencies:
english_words: ^4.0.0
flutter_lorem: ^2.0.0
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
dev_dependencies:
analysis_defaults:
... | samples/platform_design/pubspec.yaml/0 | {
"file_path": "samples/platform_design/pubspec.yaml",
"repo_id": "samples",
"token_count": 162
} | 1,417 |
#include "Generated.xcconfig"
| samples/platform_view_swift/ios/Flutter/Release.xcconfig/0 | {
"file_path": "samples/platform_view_swift/ios/Flutter/Release.xcconfig",
"repo_id": "samples",
"token_count": 12
} | 1,418 |
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation... | samples/platform_view_swift/ios/Runner/PlatformViewController.xib/0 | {
"file_path": "samples/platform_view_swift/ios/Runner/PlatformViewController.xib",
"repo_id": "samples",
"token_count": 2516
} | 1,419 |
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"
| samples/simple_shader/macos/Runner/Configs/Release.xcconfig/0 | {
"file_path": "samples/simple_shader/macos/Runner/Configs/Release.xcconfig",
"repo_id": "samples",
"token_count": 32
} | 1,420 |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>Simplistic Calculator</strin... | samples/simplistic_calculator/ios/Runner/Info.plist/0 | {
"file_path": "samples/simplistic_calculator/ios/Runner/Info.plist",
"repo_id": "samples",
"token_count": 674
} | 1,421 |
// Copyright 2020 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
/// The [Favorites] class holds a list of favorite items saved by the user.
class Favorites extends ChangeNotifier {
... | samples/testing_app/lib/models/favorites.dart/0 | {
"file_path": "samples/testing_app/lib/models/favorites.dart",
"repo_id": "samples",
"token_count": 180
} | 1,422 |
include: package:analysis_defaults/flutter.yaml
| samples/veggieseasons/analysis_options.yaml/0 | {
"file_path": "samples/veggieseasons/analysis_options.yaml",
"repo_id": "samples",
"token_count": 15
} | 1,423 |
// Copyright 2018 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/cupertino.dart';
import 'package:flutter/services.dart';
import 'package:intl/intl.dart';
import 'package:provider/provider.dart';
imp... | samples/veggieseasons/lib/screens/list.dart/0 | {
"file_path": "samples/veggieseasons/lib/screens/list.dart",
"repo_id": "samples",
"token_count": 1691
} | 1,424 |
// Copyright 2021 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:js_interop';
@JS()
@staticInterop
external FlutterWebStartupAnalyzer get flutterWebStartupAnalyzer;
@JS()
@staticInterop
class FlutterWebStartu... | samples/web/_packages/web_startup_analyzer/lib/src/startup_analyzer.dart/0 | {
"file_path": "samples/web/_packages/web_startup_analyzer/lib/src/startup_analyzer.dart",
"repo_id": "samples",
"token_count": 199
} | 1,425 |
samples:
- name: Material 3
author: Flutter
screenshots:
- url: images/material_3_components.png
alt: Components tab of the Material 3 demo
- url: images/material_3_color.png
alt: Colors tab of the Material 3 demo
- url: images/material_3_typography.png
alt: Typograph... | samples/web/samples_index/lib/src/samples.yaml/0 | {
"file_path": "samples/web/samples_index/lib/src/samples.yaml",
"repo_id": "samples",
"token_count": 7131
} | 1,426 |
{
"name": "ng-flutter",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"prebuild": "pushd flutter && flutter clean && flutter build web && popd",
"start": "ng serve",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test"
},
"private": true,
"de... | samples/web_embedding/ng-flutter/package.json/0 | {
"file_path": "samples/web_embedding/ng-flutter/package.json",
"repo_id": "samples",
"token_count": 599
} | 1,427 |
title: Flutter
url: https://docs.flutter.dev
main-url: https://flutter.dev
email: flutter-dev@googlegroups.com
google_analytics_id: UA-67589403-1
google_site_verification: HFqxhSbf9YA_0rBglNLzDiWnrHiK_w4cqDh2YD2GEY4
google_tag_manager_id: GTM-ND4LWWZ
default_share_image: /assets/images/flutter-logo-sharing.png
githu... | website/_config.yml/0 | {
"file_path": "website/_config.yml",
"repo_id": "website",
"token_count": 2644
} | 1,428 |
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sod... | website/diagrams/ui/article-hero-image.svg/0 | {
"file_path": "website/diagrams/ui/article-hero-image.svg",
"repo_id": "website",
"token_count": 5969
} | 1,429 |
// 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 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart' show timeDilation;
class StaggerAnimation extends S... | website/examples/_animation/basic_staggered_animation/lib/main.dart/0 | {
"file_path": "website/examples/_animation/basic_staggered_animation/lib/main.dart",
"repo_id": "website",
"token_count": 2550
} | 1,430 |
// 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.
// A "radial transition" that slightly differs from the Material
// motion spec:
// - The circular *and* the rectangular clips change as t goes from
// ... | website/examples/_animation/radial_hero_animation_animate_rectclip/lib/main.dart/0 | {
"file_path": "website/examples/_animation/radial_hero_animation_animate_rectclip/lib/main.dart",
"repo_id": "website",
"token_count": 2814
} | 1,431 |
// Basic Flutter widget test.
// Learn more at https://docs.flutter.dev/testing/overview#widget-tests.
import 'package:animation/main.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
testWidgets('Codelab smoke test', (tester) async {
await tester.pump... | website/examples/animation/animate5/test/widget_test.dart/0 | {
"file_path": "website/examples/animation/animate5/test/widget_test.dart",
"repo_id": "website",
"token_count": 142
} | 1,432 |
// Copyright 2021 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: avoid_init_to_null
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
// #docregion MyApp
class MyApp extend... | website/examples/basics/lib/main.dart/0 | {
"file_path": "website/examples/basics/lib/main.dart",
"repo_id": "website",
"token_count": 387
} | 1,433 |
import 'package:flutter/material.dart';
// #docregion import
import 'package:flutter/physics.dart';
// #enddocregion import
void main() {
runApp(const MaterialApp(home: PhysicsCardDragDemo()));
}
class PhysicsCardDragDemo extends StatelessWidget {
const PhysicsCardDragDemo({super.key});
@override
Widget buil... | website/examples/cookbook/animation/physics_simulation/lib/main.dart/0 | {
"file_path": "website/examples/cookbook/animation/physics_simulation/lib/main.dart",
"repo_id": "website",
"token_count": 1210
} | 1,434 |
import 'package:flutter/material.dart';
class OrientationList1 extends StatelessWidget {
final String title;
const OrientationList1({super.key, required this.title});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text(title)),
body: OrientationBuilder(
... | website/examples/cookbook/design/orientation/lib/partials.dart/0 | {
"file_path": "website/examples/cookbook/design/orientation/lib/partials.dart",
"repo_id": "website",
"token_count": 516
} | 1,435 |
name: themes
description: Sample code for themes cookbook recipe.
environment:
sdk: ^3.3.0
dependencies:
flutter:
sdk: flutter
google_fonts: ^6.1.0
dev_dependencies:
example_utils:
path: ../../../example_utils
flutter:
uses-material-design: true
| website/examples/cookbook/design/themes/pubspec.yaml/0 | {
"file_path": "website/examples/cookbook/design/themes/pubspec.yaml",
"repo_id": "website",
"token_count": 102
} | 1,436 |
import 'package:flutter/material.dart';
@immutable
class ExpandableFab extends StatefulWidget {
const ExpandableFab({
super.key,
this.initialOpen,
required this.distance,
required this.children,
});
final bool? initialOpen;
final double distance;
final List<Widget> children;
@override
S... | website/examples/cookbook/effects/expandable_fab/lib/excerpt2.dart/0 | {
"file_path": "website/examples/cookbook/effects/expandable_fab/lib/excerpt2.dart",
"repo_id": "website",
"token_count": 1077
} | 1,437 |
import 'package:flutter/material.dart';
@immutable
class SetupFlow extends StatefulWidget {
static SetupFlowState of(BuildContext context) {
return context.findAncestorStateOfType<SetupFlowState>()!;
}
const SetupFlow({
super.key,
required this.setupPageRoute,
});
final String setupPageRoute;
... | website/examples/cookbook/effects/nested_nav/lib/prompt_user.dart/0 | {
"file_path": "website/examples/cookbook/effects/nested_nav/lib/prompt_user.dart",
"repo_id": "website",
"token_count": 1074
} | 1,438 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.