code
stringlengths
8
3.25M
repository
stringlengths
15
175
metadata
stringlengths
66
249
import '../../ingredient.dart'; class Mayonnaise extends Ingredient { Mayonnaise() { name = 'Mayonnaise'; allergens = ['Egg']; } }
flutter-design-patterns/lib/design_patterns/builder/ingredients/sauces/mayonnaise.dart/0
{'file_path': 'flutter-design-patterns/lib/design_patterns/builder/ingredients/sauces/mayonnaise.dart', 'repo_id': 'flutter-design-patterns', 'token_count': 58}
abstract interface class Command { void execute(); String getTitle(); void undo(); }
flutter-design-patterns/lib/design_patterns/command/command.dart/0
{'file_path': 'flutter-design-patterns/lib/design_patterns/command/command.dart', 'repo_id': 'flutter-design-patterns', 'token_count': 25}
import '../pizza_decorator.dart'; class Mozzarella extends PizzaDecorator { const Mozzarella(super.pizza); @override String getDescription() => '${pizza.getDescription()}\n- Mozzarella'; @override double getPrice() => pizza.getPrice() + 0.5; }
flutter-design-patterns/lib/design_patterns/decorator/pizza_toppings/mozzarella.dart/0
{'file_path': 'flutter-design-patterns/lib/design_patterns/decorator/pizza_toppings/mozzarella.dart', 'repo_id': 'flutter-design-patterns', 'token_count': 89}
import '../apis/apis.dart'; import '../smart_home_state.dart'; import 'gaming_facade.dart'; class SmartHomeFacade { const SmartHomeFacade({ this.gamingFacade = const GamingFacade(), this.tvApi = const TvApi(), this.audioApi = const AudioApi(), this.netflixApi = const NetflixApi(), this.smartHomeApi = const SmartHomeApi(), }); final GamingFacade gamingFacade; final TvApi tvApi; final AudioApi audioApi; final NetflixApi netflixApi; final SmartHomeApi smartHomeApi; void startMovie(SmartHomeState smartHomeState, String movieTitle) { smartHomeState.lightsOn = smartHomeApi.turnLightsOff(); smartHomeState.tvOn = tvApi.turnOn(); smartHomeState.audioSystemOn = audioApi.turnSpeakersOn(); smartHomeState.netflixConnected = netflixApi.connect(); netflixApi.play(movieTitle); } void stopMovie(SmartHomeState smartHomeState) { smartHomeState.netflixConnected = netflixApi.disconnect(); smartHomeState.tvOn = tvApi.turnOff(); smartHomeState.audioSystemOn = audioApi.turnSpeakersOff(); smartHomeState.lightsOn = smartHomeApi.turnLightsOn(); } void startGaming(SmartHomeState smartHomeState) { smartHomeState.lightsOn = smartHomeApi.turnLightsOff(); smartHomeState.tvOn = tvApi.turnOn(); gamingFacade.startGaming(smartHomeState); } void stopGaming(SmartHomeState smartHomeState) { gamingFacade.stopGaming(smartHomeState); smartHomeState.tvOn = tvApi.turnOff(); smartHomeState.lightsOn = smartHomeApi.turnLightsOn(); } void startStreaming(SmartHomeState smartHomeState) { smartHomeState.lightsOn = smartHomeApi.turnLightsOn(); smartHomeState.tvOn = tvApi.turnOn(); gamingFacade.startStreaming(smartHomeState); } void stopStreaming(SmartHomeState smartHomeState) { gamingFacade.stopStreaming(smartHomeState); smartHomeState.tvOn = tvApi.turnOff(); smartHomeState.lightsOn = smartHomeApi.turnLightsOn(); } }
flutter-design-patterns/lib/design_patterns/facade/facades/smart_home_facade.dart/0
{'file_path': 'flutter-design-patterns/lib/design_patterns/facade/facades/smart_home_facade.dart', 'repo_id': 'flutter-design-patterns', 'token_count': 689}
import '../../expression_context.dart'; import '../../iexpression.dart'; class Add implements IExpression { const Add(this.leftExpression, this.rightExpression); final IExpression leftExpression; final IExpression rightExpression; @override int interpret(ExpressionContext context) { final left = leftExpression.interpret(context); final right = rightExpression.interpret(context); final result = left + right; context.addSolutionStep('+', left, right, result); return result; } }
flutter-design-patterns/lib/design_patterns/interpreter/expressions/nonterminal/add.dart/0
{'file_path': 'flutter-design-patterns/lib/design_patterns/interpreter/expressions/nonterminal/add.dart', 'repo_id': 'flutter-design-patterns', 'token_count': 157}
import '../notification_hub.dart'; import '../team_member.dart'; class TeamNotificationHub implements NotificationHub { TeamNotificationHub({ List<TeamMember>? members, }) { members?.forEach(register); } final _teamMembers = <TeamMember>[]; @override List<TeamMember> getTeamMembers() => _teamMembers; @override void register(TeamMember member) { member.notificationHub = this; _teamMembers.add(member); } @override void send(TeamMember sender, String message) { final filteredMembers = _teamMembers.where((m) => m != sender); for (final member in filteredMembers) { member.receive(sender.toString(), message); } } @override void sendTo<T extends TeamMember>(TeamMember sender, String message) { final filteredMembers = _teamMembers.where((m) => m != sender).whereType<T>(); for (final member in filteredMembers) { member.receive(sender.toString(), message); } } }
flutter-design-patterns/lib/design_patterns/mediator/notification_hub/team_notification_hub.dart/0
{'file_path': 'flutter-design-patterns/lib/design_patterns/mediator/notification_hub/team_notification_hub.dart', 'repo_id': 'flutter-design-patterns', 'token_count': 327}
enum StockChangeDirection { falling, growing, }
flutter-design-patterns/lib/design_patterns/observer/stock_change_direction.dart/0
{'file_path': 'flutter-design-patterns/lib/design_patterns/observer/stock_change_direction.dart', 'repo_id': 'flutter-design-patterns', 'token_count': 17}
import 'customer/customer_details.dart'; import 'icustomer_details_service.dart'; class CustomerDetailsServiceProxy implements ICustomerDetailsService { CustomerDetailsServiceProxy(this.service); final ICustomerDetailsService service; final Map<String, CustomerDetails> customerDetailsCache = {}; @override Future<CustomerDetails> getCustomerDetails(String id) async { if (customerDetailsCache.containsKey(id)) return customerDetailsCache[id]!; final customerDetails = await service.getCustomerDetails(id); customerDetailsCache[id] = customerDetails; return customerDetails; } }
flutter-design-patterns/lib/design_patterns/proxy/customer_details_service_proxy.dart/0
{'file_path': 'flutter-design-patterns/lib/design_patterns/proxy/customer_details_service_proxy.dart', 'repo_id': 'flutter-design-patterns', 'token_count': 170}
import 'order/order.dart'; abstract interface class IShippingCostsStrategy { late String label; double calculate(Order order); }
flutter-design-patterns/lib/design_patterns/strategy/ishipping_costs_strategy.dart/0
{'file_path': 'flutter-design-patterns/lib/design_patterns/strategy/ishipping_costs_strategy.dart', 'repo_id': 'flutter-design-patterns', 'token_count': 39}
import 'package:flutter/material.dart'; import '../../constants/constants.dart'; import '../../helpers/file_size_converter.dart'; import 'ifile.dart'; import 'ivisitor.dart'; class Directory extends StatelessWidget implements IFile { final String title; final int level; final bool isInitiallyExpanded; final List<IFile> _files = []; List<IFile> get files => _files; Directory({ required this.title, required this.level, this.isInitiallyExpanded = false, }); void addFile(IFile file) => _files.add(file); @override int getSize() { var sum = 0; for (final file in _files) { sum += file.getSize(); } return sum; } @override Widget render(BuildContext context) { return Theme( data: ThemeData( colorScheme: ColorScheme.fromSwatch().copyWith(primary: Colors.black), ), child: Padding( padding: const EdgeInsets.only(left: LayoutConstants.paddingS), child: ExpansionTile( leading: const Icon(Icons.folder), title: Text('$title (${FileSizeConverter.bytesToString(getSize())})'), initiallyExpanded: isInitiallyExpanded, children: _files.map((IFile file) => file.render(context)).toList(), ), ), ); } @override Widget build(BuildContext context) => render(context); @override String accept(IVisitor visitor) => visitor.visitDirectory(this); }
flutter-design-patterns/lib/design_patterns/visitor/directory.dart/0
{'file_path': 'flutter-design-patterns/lib/design_patterns/visitor/directory.dart', 'repo_id': 'flutter-design-patterns', 'token_count': 535}
extension ListExtension<T> on List<T> { List<T> addBetween(T separator) { if (length <= 1) { return toList(); } final newItems = <T>[]; for (int i = 0; i < length - 1; i++) { newItems.add(this[i]); newItems.add(separator); } newItems.add(this[length - 1]); return newItems; } }
flutter-design-patterns/lib/helpers/list_extension.dart/0
{'file_path': 'flutter-design-patterns/lib/helpers/list_extension.dart', 'repo_id': 'flutter-design-patterns', 'token_count': 149}
import 'package:flutter/widgets.dart'; import 'package:go_router/go_router.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; import 'pages/pages.dart'; part 'router.g.dart'; @riverpod GoRouter router(_) => GoRouter( routes: $appRoutes, redirect: (context, state) => state.location.isEmpty ? const MainMenuRoute().location : null, ); @TypedGoRoute<MainMenuRoute>( path: '/', routes: [ TypedGoRoute<DesignPatternDetailsRoute>(path: 'pattern/:id'), ], ) @immutable class MainMenuRoute extends GoRouteData { const MainMenuRoute(); @override Widget build(_, __) => const MainMenuPage(); } @immutable class DesignPatternDetailsRoute extends GoRouteData { const DesignPatternDetailsRoute(this.id); final String id; @override Widget build(_, __) => DesignPatternDetailsPage(id: id); }
flutter-design-patterns/lib/navigation/router.dart/0
{'file_path': 'flutter-design-patterns/lib/navigation/router.dart', 'repo_id': 'flutter-design-patterns', 'token_count': 304}
import 'package:faker/faker.dart'; import 'package:flutter/material.dart'; import '../../../constants/constants.dart'; import '../../../design_patterns/chain_of_responsibility/chain_of_responsibility.dart'; import '../../platform_specific/platform_button.dart'; import 'log_messages_column.dart'; class ChainOfResponsibilityExample extends StatefulWidget { const ChainOfResponsibilityExample(); @override _ChainOfResponsibilityExampleState createState() => _ChainOfResponsibilityExampleState(); } class _ChainOfResponsibilityExampleState extends State<ChainOfResponsibilityExample> { final logBloc = LogBloc(); late final LoggerBase logger; @override void initState() { super.initState(); logger = DebugLogger( logBloc, nextLogger: InfoLogger( logBloc, nextLogger: ErrorLogger(logBloc), ), ); } @override void dispose() { logBloc.dispose(); super.dispose(); } String get randomLog => faker.lorem.sentence(); @override Widget build(BuildContext context) { return ScrollConfiguration( behavior: const ScrollBehavior(), child: SingleChildScrollView( padding: const EdgeInsets.symmetric( horizontal: LayoutConstants.paddingL, ), child: Column( children: <Widget>[ PlatformButton( materialColor: Colors.black, materialTextColor: Colors.white, onPressed: () => logger.logDebug(randomLog), text: 'Log debug', ), PlatformButton( materialColor: Colors.black, materialTextColor: Colors.white, onPressed: () => logger.logInfo(randomLog), text: 'Log info', ), PlatformButton( materialColor: Colors.black, materialTextColor: Colors.white, onPressed: () => logger.logError(randomLog), text: 'Log error', ), const Divider(), Row( children: <Widget>[ Expanded( child: StreamBuilder<List<LogMessage>>( initialData: const [], stream: logBloc.outLogStream, builder: (context, snapshot) => LogMessagesColumn(logMessages: snapshot.data!), ), ), ], ), ], ), ), ); } }
flutter-design-patterns/lib/widgets/design_patterns/chain_of_responsibility/chain_of_responsibility_example.dart/0
{'file_path': 'flutter-design-patterns/lib/widgets/design_patterns/chain_of_responsibility/chain_of_responsibility_example.dart', 'repo_id': 'flutter-design-patterns', 'token_count': 1155}
export 'abstract_factory/abstract_factory_example.dart'; export 'adapter/adapter_example.dart'; export 'bridge/bridge_example.dart'; export 'builder/builder_example.dart'; export 'chain_of_responsibility/chain_of_responsibility_example.dart'; export 'command/command_example.dart'; export 'composite/composite_example.dart'; export 'decorator/decorator_example.dart'; export 'facade/facade_example.dart'; export 'factory_method/factory_method_example.dart'; export 'flyweight/flyweight_example.dart'; export 'interpreter/interpreter_example.dart'; export 'iterator/iterator_example.dart'; export 'mediator/mediator_example.dart'; export 'memento/memento_example.dart'; export 'observer/observer_example.dart'; export 'prototype/prototype_example.dart'; export 'proxy/proxy_example.dart'; export 'singleton/singleton_example.dart'; export 'state/state_example.dart'; export 'strategy/strategy_example.dart'; export 'template_method/template_method_example.dart'; export 'visitor/visitor_example.dart';
flutter-design-patterns/lib/widgets/design_patterns/design_patterns.dart/0
{'file_path': 'flutter-design-patterns/lib/widgets/design_patterns/design_patterns.dart', 'repo_id': 'flutter-design-patterns', 'token_count': 336}
import 'package:flutter/material.dart'; import '../../../constants/constants.dart'; import '../../../design_patterns/memento/memento.dart'; import '../../platform_specific/platform_button.dart'; import 'shape_container.dart'; class MementoExample extends StatefulWidget { const MementoExample(); @override _MementoExampleState createState() => _MementoExampleState(); } class _MementoExampleState extends State<MementoExample> { final _commandHistory = CommandHistory(); final _originator = Originator(); void _randomiseProperties() { final command = RandomisePropertiesCommand(_originator); _executeCommand(command); } void _executeCommand(ICommand command) => setState(() { command.execute(); _commandHistory.add(command); }); void _undo() => setState(() => _commandHistory.undo()); @override Widget build(BuildContext context) { return ScrollConfiguration( behavior: const ScrollBehavior(), child: SingleChildScrollView( padding: const EdgeInsets.symmetric( horizontal: LayoutConstants.paddingL, ), child: Column( children: <Widget>[ ShapeContainer( shape: _originator.state, ), const SizedBox(height: LayoutConstants.spaceM), PlatformButton( materialColor: Colors.black, materialTextColor: Colors.white, onPressed: _randomiseProperties, text: 'Randomise properties', ), const Divider(), PlatformButton( materialColor: Colors.black, materialTextColor: Colors.white, onPressed: _commandHistory.isEmpty ? null : _undo, text: 'Undo', ), const SizedBox(height: LayoutConstants.spaceM), ], ), ), ); } }
flutter-design-patterns/lib/widgets/design_patterns/memento/memento_example.dart/0
{'file_path': 'flutter-design-patterns/lib/widgets/design_patterns/memento/memento_example.dart', 'repo_id': 'flutter-design-patterns', 'token_count': 785}
import 'dart:io'; import 'package:flutter/cupertino.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import '../../../../../constants/constants.dart'; class OrderButton extends StatelessWidget { final IconData iconData; final String title; final VoidCallback onPressed; const OrderButton({ required this.iconData, required this.title, required this.onPressed, }); @override Widget build(BuildContext context) { final child = Row( mainAxisSize: MainAxisSize.min, children: <Widget>[ Icon( iconData, color: Colors.white, ), const SizedBox(width: LayoutConstants.spaceXS), Text(title), ], ); return Padding( padding: const EdgeInsets.all(4.0), child: kIsWeb || Platform.isAndroid ? MaterialButton( color: Colors.black, textColor: Colors.white, disabledColor: Colors.grey, disabledTextColor: Colors.white, onPressed: onPressed, child: child, ) : CupertinoButton( color: Colors.black, onPressed: onPressed, child: child, ), ); } }
flutter-design-patterns/lib/widgets/design_patterns/strategy/order/order_buttons/order_button.dart/0
{'file_path': 'flutter-design-patterns/lib/widgets/design_patterns/strategy/order/order_buttons/order_button.dart', 'repo_id': 'flutter-design-patterns', 'token_count': 581}
import 'dart:io'; import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; import '../../navigation/router.dart'; class PlatformBackButton extends StatelessWidget { const PlatformBackButton({ required this.color, }); final Color color; @override Widget build(BuildContext context) { final icon = Platform.isAndroid ? Icons.arrow_back : Icons.arrow_back_ios_new; return IconButton( icon: Icon(icon), color: color, splashRadius: 20.0, onPressed: () { context.canPop() ? context.pop() : const MainMenuRoute().go(context); }, ); } }
flutter-design-patterns/lib/widgets/platform_specific/platform_back_button.dart/0
{'file_path': 'flutter-design-patterns/lib/widgets/platform_specific/platform_back_button.dart', 'repo_id': 'flutter-design-patterns', 'token_count': 246}
import 'package:flutter/material.dart'; class AnimatedBuilderExample extends StatefulWidget { const AnimatedBuilderExample({Key? key}) : super(key: key); @override _AnimatedBuilderExampleState createState() => _AnimatedBuilderExampleState(); } class _AnimatedBuilderExampleState extends State<AnimatedBuilderExample> with SingleTickerProviderStateMixin { late final AnimationController _controller; @override void initState() { _controller = AnimationController( duration: const Duration(milliseconds: 500), vsync: this, )..repeat(reverse: true); super.initState(); } @override void dispose() { _controller.dispose(); super.dispose(); } @override Widget build(BuildContext context) { return AnimatedBuilder( animation: _controller, builder: (BuildContext context, Widget? child) { return Container( height: 100, decoration: BoxDecoration( gradient: LinearGradient( colors: [Colors.deepPurple, Colors.redAccent.shade400], stops: [0, _controller.value], ), ), ); }, ); } }
flutter-festival-session/lib/ui/explicit_animations/widgets/animated_builder_example.dart/0
{'file_path': 'flutter-festival-session/lib/ui/explicit_animations/widgets/animated_builder_example.dart', 'repo_id': 'flutter-festival-session', 'token_count': 435}
include: package:lints/recommended.yaml linter: rules: - directives_ordering - unawaited_futures
flutter-intellij/tool/plugin/analysis_options.yaml/0
{'file_path': 'flutter-intellij/tool/plugin/analysis_options.yaml', 'repo_id': 'flutter-intellij', 'token_count': 41}
import 'package:flutter/material.dart'; import 'package:flutter_theme_switcher/presentation/styles/app_colors.dart'; import 'package:flutter_theme_switcher/services/storage/storage_service.dart'; class ThemeProvider with ChangeNotifier { final StorageService storageService; ThemeProvider(this.storageService) { selectedPrimaryColor = storageService.get(StorageKeys.primaryColor) == null ? AppColors.primary : Color(storageService.get(StorageKeys.primaryColor)); selectedThemeMode = storageService.get(StorageKeys.themeMode) == null ? ThemeMode.system : ThemeMode.values.byName(storageService.get(StorageKeys.themeMode)); } late Color selectedPrimaryColor; setSelectedPrimaryColor(Color _color) { selectedPrimaryColor = _color; storageService.set(StorageKeys.primaryColor, _color.value); notifyListeners(); } late ThemeMode selectedThemeMode; setSelectedThemeMode(ThemeMode _mode) { selectedThemeMode = _mode; storageService.set(StorageKeys.themeMode, _mode.name); notifyListeners(); } }
flutter-theme-switcher/lib/presentation/providers/theme_provider.dart/0
{'file_path': 'flutter-theme-switcher/lib/presentation/providers/theme_provider.dart', 'repo_id': 'flutter-theme-switcher', 'token_count': 344}
import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_theme_switcher/presentation/models/app_theme.dart'; import 'package:flutter_theme_switcher/presentation/providers/theme_provider.dart'; import 'package:flutter_theme_switcher/presentation/settings/widgets/theme_option.dart'; import 'package:flutter_theme_switcher/presentation/settings/widgets/theme_switcher.dart'; import 'package:flutter_theme_switcher/presentation/styles/app_colors.dart'; import 'package:flutter_theme_switcher/presentation/styles/app_themes.dart'; import 'package:flutter_theme_switcher/services/storage/storage_service.dart'; import 'package:get_it/get_it.dart'; import 'package:mocktail/mocktail.dart'; import '../../mocks.dart'; import '../../pump_app.dart'; void main() { late ThemeProvider themeProvider; late StorageService storageService; ThemeMode _defaultThemeMode = ThemeMode.light; setUp(() { GetIt.I.registerSingleton<StorageService>(MockStorageService()); storageService = GetIt.I<StorageService>(); when(() => storageService.get(StorageKeys.primaryColor)) .thenReturn(AppColors.primary.value); when(() => storageService.get(StorageKeys.themeMode)) .thenReturn(_defaultThemeMode.name); themeProvider = ThemeProvider(storageService); }); testWidgets( 'All app theme options are rendered', (WidgetTester tester) async { await tester.pumpApp( const Material(child: ThemeSwitcher()), themeProvider: themeProvider, ); await tester.pumpAndSettle(); expect( find.byType(ThemeOption), findsNWidgets(AppThemes.appThemeOptions.length), ); for (AppTheme appTheme in AppThemes.appThemeOptions) { expect( find.byKey(Key('__${appTheme.mode.name}_theme_option__')), findsOneWidget, ); } }, ); testWidgets( 'Tapping on theme option changes selectedThemeMode in provider', (WidgetTester tester) async { expect(themeProvider.selectedThemeMode, equals(_defaultThemeMode)); await tester.pumpApp( const Material(child: ThemeSwitcher()), themeProvider: themeProvider, ); await tester.pumpAndSettle(); const Key darkThemeOptionKey = Key('__dark_theme_option__'); final darkThemeOptionFinder = find.byKey(darkThemeOptionKey); expect(darkThemeOptionFinder, findsOneWidget); await tester.tap(darkThemeOptionFinder); await tester.pumpAndSettle(); expect(themeProvider.selectedThemeMode, equals(ThemeMode.dark)); }, ); tearDown(() async { await GetIt.I.reset(); }); }
flutter-theme-switcher/test/settings/widgets/theme_switcher_test.dart/0
{'file_path': 'flutter-theme-switcher/test/settings/widgets/theme_switcher_test.dart', 'repo_id': 'flutter-theme-switcher', 'token_count': 983}
import 'package:flutter/material.dart'; extension OffsetExtension on Offset { Offset clamp(Offset lowerLimit, Offset upperLimit) { return Offset( dx.clamp(lowerLimit.dx, upperLimit.dx), dy.clamp(lowerLimit.dy, upperLimit.dy), ); } Offset ceil() { return Offset(dx.ceilToDouble(), dy.ceilToDouble()); } Offset floor() { return Offset(dx.floorToDouble(), dy.floorToDouble()); } Offset round() { return Offset(dx.roundToDouble(), dy.roundToDouble()); } Offset floorOrCeil(Offset delta, {double tolerance = 0}) { final dTolerance = Offset( delta.dx.abs() / delta.dx * tolerance, delta.dy.abs() / delta.dy * tolerance, ); return Offset( delta.dx < dTolerance.dx ? dx.floorToDouble() : dx.ceilToDouble(), delta.dy < dTolerance.dy ? dy.floorToDouble() : dy.ceilToDouble(), ); } }
flutter-world-of-shaders/examples/interactive_gallery/lib/utils/offset_extension.dart/0
{'file_path': 'flutter-world-of-shaders/examples/interactive_gallery/lib/utils/offset_extension.dart', 'repo_id': 'flutter-world-of-shaders', 'token_count': 345}
name: flutter_world_of_shaders packages: - packages/* - examples/*
flutter-world-of-shaders/melos.yaml/0
{'file_path': 'flutter-world-of-shaders/melos.yaml', 'repo_id': 'flutter-world-of-shaders', 'token_count': 25}
name: flutter_world_of_shaders description: Shader examples with Flutter environment: sdk: '>=2.19.4 <3.0.0' dev_dependencies: melos: ^3.0.1
flutter-world-of-shaders/pubspec.yaml/0
{'file_path': 'flutter-world-of-shaders/pubspec.yaml', 'repo_id': 'flutter-world-of-shaders', 'token_count': 62}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // See also packages/flutter_goldens/test/flutter_goldens_test.dart import 'dart:typed_data'; import 'package:file/file.dart'; import 'package:file/memory.dart'; import 'package:flutter_goldens/flutter_goldens.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:platform/platform.dart'; // 1x1 colored pixel const List<int> _kFailPngBytes = <int>[ 137, 80, 78, 71, 13, 10, 26, 10, 0, 0, 0, 13, 73, 72, 68, 82, 0, 0, 0, 1, 0, 0, 0, 1, 8, 6, 0, 0, 0, 31, 21, 196, 137, 0, 0, 0, 13, 73, 68, 65, 84, 120, 1, 99, 249, 207, 240, 255, 63, 0, 7, 18, 3, 2, 164, 147, 160, 197, 0, 0, 0, 0, 73, 69, 78, 68, 174, 66, 96, 130, ]; void main() { final MemoryFileSystem fs = MemoryFileSystem(); final Directory basedir = fs.directory('flutter/test/library/') ..createSync(recursive: true); final FakeSkiaGoldClient fakeSkiaClient = FakeSkiaGoldClient() ..expectationForTestValues['flutter.new_golden_test.1'] = ''; final FlutterLocalFileComparator comparator = FlutterLocalFileComparator( basedir.uri, fakeSkiaClient, fs: fs, platform: FakePlatform( environment: <String, String>{'FLUTTER_ROOT': '/flutter'}, operatingSystem: 'macos' ), ); test('Local passes non-existent baseline for new test, null expectation', () async { expect( await comparator.compare( Uint8List.fromList(_kFailPngBytes), Uri.parse('flutter.new_golden_test.1.png'), ), isTrue, ); }); test('Local passes non-existent baseline for new test, empty expectation', () async { expect( await comparator.compare( Uint8List.fromList(_kFailPngBytes), Uri.parse('flutter.new_golden_test.2.png'), ), isTrue, ); }); } // See also packages/flutter_goldens/test/flutter_goldens_test.dart class FakeSkiaGoldClient extends Fake implements SkiaGoldClient { Map<String, String> expectationForTestValues = <String, String>{}; Object? getExpectationForTestThrowable; @override Future<String> getExpectationForTest(String testName) async { if (getExpectationForTestThrowable != null) { throw getExpectationForTestThrowable!; } return expectationForTestValues[testName] ?? ''; } Map<String, List<int>> imageBytesValues = <String, List<int>>{}; @override Future<List<int>> getImageBytes(String imageHash) async => imageBytesValues[imageHash]!; Map<String, String> cleanTestNameValues = <String, String>{}; @override String cleanTestName(String fileName) => cleanTestNameValues[fileName] ?? ''; }
flutter/dev/automated_tests/flutter_test/flutter_gold_test.dart/0
{'file_path': 'flutter/dev/automated_tests/flutter_test/flutter_gold_test.dart', 'repo_id': 'flutter', 'token_count': 1010}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/material.dart'; class PictureCacheComplexityScoringPage extends StatelessWidget { const PictureCacheComplexityScoringPage({super.key}); static const List<String> kTabNames = <String>['1', '2']; @override Widget build(BuildContext context) { return DefaultTabController( length: kTabNames.length, // This is the number of tabs. child: Scaffold( appBar: AppBar( title: const Text('Picture Cache Complexity Scoring'), // pinned: true, // expandedHeight: 50.0, // forceElevated: innerBoxIsScrolled, bottom: TabBar( tabs: kTabNames.map((String name) => Tab(text: name)).toList(), ), ), body: TabBarView( key: const Key('tabbar_view_complexity'), // this key is used by the driver test children: kTabNames.map((String name) { return _buildComplexityScoringWidgets(name); }).toList(), ), ), ); } // For now we just test a single case where the widget being cached is actually // relatively cheap to rasterise, and so should not be in the cache. // // Eventually we can extend this to add new test cases based on the tab name. Widget _buildComplexityScoringWidgets(String name) { return Column(children: <Widget>[ Slider(value: 50, label: 'Slider 1', onChanged: (double _) {}, max: 100, divisions: 10,), Slider(value: 50, label: 'Slider 2', onChanged: (double _) {}, max: 100, divisions: 10,), Slider(value: 50, label: 'Slider 3', onChanged: (double _) {}, max: 100, divisions: 10,), ]); } }
flutter/dev/benchmarks/macrobenchmarks/lib/src/picture_cache_complexity_scoring.dart/0
{'file_path': 'flutter/dev/benchmarks/macrobenchmarks/lib/src/picture_cache_complexity_scoring.dart', 'repo_id': 'flutter', 'token_count': 675}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:developer'; import '../common.dart'; const int _kNumIterations = 10000; void main() { assert(false, "Don't run benchmarks in debug mode! Use 'flutter run --release'."); final BenchmarkResultPrinter printer = BenchmarkResultPrinter(); final Stopwatch watch = Stopwatch(); watch.start(); for (int i = 0; i < _kNumIterations; i += 1) { Timeline.startSync('foo'); Timeline.finishSync(); } watch.stop(); printer.addResult( description: 'timeline events without arguments', value: watch.elapsedMicroseconds.toDouble() / _kNumIterations, unit: 'us per iteration', name: 'timeline_without_arguments', ); watch.reset(); watch.start(); for (int i = 0; i < _kNumIterations; i += 1) { Timeline.startSync('foo', arguments: <String, dynamic>{ 'int': 1234, 'double': 0.3, 'list': <int>[1, 2, 3, 4], 'map': <String, dynamic>{'map': true}, 'bool': false, }); Timeline.finishSync(); } watch.stop(); printer.addResult( description: 'timeline events with arguments', value: watch.elapsedMicroseconds.toDouble() / _kNumIterations, unit: 'us per iteration', name: 'timeline_with_arguments', ); printer.printToStdout(); }
flutter/dev/benchmarks/microbenchmarks/lib/foundation/timeline_bench.dart/0
{'file_path': 'flutter/dev/benchmarks/microbenchmarks/lib/foundation/timeline_bench.dart', 'repo_id': 'flutter', 'token_count': 502}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'package:flutter_driver/flutter_driver.dart'; import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; void main() { group('scrolling performance test', () { late FlutterDriver driver; setUpAll(() async { driver = await FlutterDriver.connect(); }); tearDownAll(() async { driver.close(); }); test('measure', () async { final Timeline timeline = await driver.traceAction(() async { // Find the scrollable stock list final SerializableFinder stockList = find.byValueKey('stock-list'); expect(stockList, isNotNull); // Scroll down for (int i = 0; i < 5; i++) { await driver.scroll(stockList, 0.0, -300.0, const Duration(milliseconds: 300)); await Future<void>.delayed(const Duration(milliseconds: 500)); } // Scroll up for (int i = 0; i < 5; i++) { await driver.scroll(stockList, 0.0, 300.0, const Duration(milliseconds: 300)); await Future<void>.delayed(const Duration(milliseconds: 500)); } }); final TimelineSummary summary = TimelineSummary.summarize(timeline); await summary.writeTimelineToFile('stocks_scroll_perf', pretty: true); }, timeout: Timeout.none); }); }
flutter/dev/benchmarks/test_apps/stocks/test_driver/scroll_perf_test.dart/0
{'file_path': 'flutter/dev/benchmarks/test_apps/stocks/test_driver/scroll_perf_test.dart', 'repo_id': 'flutter', 'token_count': 544}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // The reduced test set tag is missing. This should fail analysis. @Tags(<String>['some-other-tag']) library; import 'package:test/test.dart'; import 'golden_class.dart'; void main() { matchesGoldenFile('missing_tag.png'); }
flutter/dev/bots/test/analyze-test-input/root/packages/foo/golden_missing_tag.dart/0
{'file_path': 'flutter/dev/bots/test/analyze-test-input/root/packages/foo/golden_missing_tag.dart', 'repo_id': 'flutter', 'token_count': 120}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:args/args.dart'; import 'package:args/command_runner.dart'; import 'package:file/file.dart'; import './git.dart'; import './globals.dart' show releaseCandidateBranchRegex; import './repository.dart'; import './stdio.dart'; import './version.dart'; const String kRemote = 'remote'; class CandidatesCommand extends Command<void> { CandidatesCommand({ required this.flutterRoot, required this.checkouts, }) : git = Git(checkouts.processManager), stdio = checkouts.stdio { argParser.addOption( kRemote, help: 'Which remote name to query for branches.', defaultsTo: 'upstream', ); } final Checkouts checkouts; final Directory flutterRoot; final Git git; final Stdio stdio; @override String get name => 'candidates'; @override String get description => 'List release candidates.'; @override Future<void> run() async { final ArgResults results = argResults!; await git.run( <String>['fetch', results[kRemote] as String], 'Fetch from remote ${results[kRemote]}', workingDirectory: flutterRoot.path, ); final FrameworkRepository framework = HostFrameworkRepository( checkouts: checkouts, name: 'framework-for-candidates', upstreamPath: flutterRoot.path, ); final Version currentVersion = await framework.flutterVersion(); stdio.printStatus('currentVersion = $currentVersion'); final List<String> branches = (await git.getOutput( <String>[ 'branch', '--no-color', '--remotes', '--list', '${results[kRemote]}/*', ], 'List all remote branches', workingDirectory: flutterRoot.path, )).split('\n'); // Pattern for extracting only the branch name via sub-group 1 final RegExp remotePattern = RegExp('${results[kRemote]}\\/(.*)'); for (final String branchName in branches) { final RegExpMatch? candidateMatch = releaseCandidateBranchRegex.firstMatch(branchName); if (candidateMatch == null) { continue; } final int currentX = currentVersion.x; final int currentY = currentVersion.y; final int currentZ = currentVersion.z; final int currentM = currentVersion.m ?? 0; final int x = int.parse(candidateMatch.group(1)!); final int y = int.parse(candidateMatch.group(2)!); final int m = int.parse(candidateMatch.group(3)!); final RegExpMatch? match = remotePattern.firstMatch(branchName); // If this is not the correct remote if (match == null) { continue; } if (x < currentVersion.x) { continue; } if (x == currentVersion.x && y < currentVersion.y) { continue; } if (x == currentX && y == currentY && currentZ == 0 && m <= currentM) { continue; } stdio.printStatus(match.group(1)!); } } }
flutter/dev/conductor/core/lib/src/candidates.dart/0
{'file_path': 'flutter/dev/conductor/core/lib/src/candidates.dart', 'repo_id': 'flutter', 'token_count': 1133}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'dart:convert'; import 'dart:io' as io; import 'package:file/file.dart'; import 'package:meta/meta.dart'; import 'package:platform/platform.dart'; import 'package:process/process.dart'; import './git.dart'; import './globals.dart'; import './stdio.dart'; import './version.dart'; /// Allowed git remote names. enum RemoteName { upstream, mirror, } class Remote { const Remote({ required RemoteName name, required this.url, }) : _name = name, assert(url != ''); factory Remote.mirror(String url) { return Remote( name: RemoteName.mirror, url: url, ); } factory Remote.upstream(String url) { return Remote( name: RemoteName.upstream, url: url, ); } final RemoteName _name; /// The name of the remote. String get name { switch (_name) { case RemoteName.upstream: return 'upstream'; case RemoteName.mirror: return 'mirror'; } } /// The URL of the remote. final String url; } /// A source code repository. abstract class Repository { Repository({ required this.name, required this.upstreamRemote, required this.processManager, required this.stdio, required this.platform, required this.fileSystem, required this.parentDirectory, required this.requiredLocalBranches, this.initialRef, this.localUpstream = false, this.previousCheckoutLocation, this.mirrorRemote, }) : git = Git(processManager), assert(upstreamRemote.url.isNotEmpty); final String name; final Remote upstreamRemote; /// Branches that must exist locally in this [Repository]. /// /// If this [Repository] is used as a local upstream for another, the /// downstream may try to fetch these branches, and git will fail if they do /// not exist. final List<String> requiredLocalBranches; /// Remote for user's mirror. /// /// This value can be null, in which case attempting to access it will lead to /// a [ConductorException]. final Remote? mirrorRemote; /// The initial ref (branch or commit name) to check out. final String? initialRef; final Git git; final ProcessManager processManager; final Stdio stdio; final Platform platform; final FileSystem fileSystem; final Directory parentDirectory; /// If the repository will be used as an upstream for a test repo. final bool localUpstream; Directory? _checkoutDirectory; String? previousCheckoutLocation; /// Directory for the repository checkout. /// /// Since cloning a repository takes a long time, we do not ensure it is /// cloned on the filesystem until this getter is accessed. Future<Directory> get checkoutDirectory async { if (_checkoutDirectory != null) { return _checkoutDirectory!; } if (previousCheckoutLocation != null) { _checkoutDirectory = fileSystem.directory(previousCheckoutLocation); if (!_checkoutDirectory!.existsSync()) { throw ConductorException( 'Provided previousCheckoutLocation $previousCheckoutLocation does not exist on disk!'); } if (initialRef != null) { assert(initialRef != ''); await git.run( <String>['fetch', upstreamRemote.name], 'Fetch ${upstreamRemote.name} to ensure we have latest refs', workingDirectory: _checkoutDirectory!.path, ); // Note: if [initialRef] is a remote ref the checkout will be left in a // detached HEAD state. await git.run( <String>['checkout', initialRef!], 'Checking out initialRef $initialRef', workingDirectory: _checkoutDirectory!.path, ); } return _checkoutDirectory!; } _checkoutDirectory = parentDirectory.childDirectory(name); await lazilyInitialize(_checkoutDirectory!); return _checkoutDirectory!; } /// RegExp pattern to parse the output of git ls-remote. /// /// Git output looks like: /// /// 35185330c6af3a435f615ee8ac2fed8b8bb7d9d4 refs/heads/95159-squash /// 6f60a1e7b2f3d2c2460c9dc20fe54d0e9654b131 refs/heads/add-debug-trace /// c1436c42c0f3f98808ae767e390c3407787f1a67 refs/heads/add-recipe-field /// 4d44dca340603e25d4918c6ef070821181202e69 refs/heads/add-release-channel /// /// We are interested in capturing what comes after 'refs/heads/'. static final RegExp _lsRemotePattern = RegExp(r'.*\s+refs\/heads\/([^\s]+)$'); /// Parse git ls-remote --heads and return branch names. Future<List<String>> listRemoteBranches(String remote) async { final String output = await git.getOutput( <String>['ls-remote', '--heads', remote], 'get remote branches', workingDirectory: (await checkoutDirectory).path, ); final List<String> remoteBranches = <String>[]; for (final String line in output.split('\n')) { final RegExpMatch? match = _lsRemotePattern.firstMatch(line); if (match != null) { remoteBranches.add(match.group(1)!); } } return remoteBranches; } /// Ensure the repository is cloned to disk and initialized with proper state. Future<void> lazilyInitialize(Directory checkoutDirectory) async { if (checkoutDirectory.existsSync()) { stdio.printTrace('Deleting $name from ${checkoutDirectory.path}...'); checkoutDirectory.deleteSync(recursive: true); } stdio.printTrace( 'Cloning $name from ${upstreamRemote.url} to ${checkoutDirectory.path}...', ); await git.run( <String>[ 'clone', '--origin', upstreamRemote.name, '--', upstreamRemote.url, checkoutDirectory.path, ], 'Cloning $name repo', workingDirectory: parentDirectory.path, ); if (mirrorRemote != null) { await git.run( <String>['remote', 'add', mirrorRemote!.name, mirrorRemote!.url], 'Adding remote ${mirrorRemote!.url} as ${mirrorRemote!.name}', workingDirectory: checkoutDirectory.path, ); await git.run( <String>['fetch', mirrorRemote!.name], 'Fetching git remote ${mirrorRemote!.name}', workingDirectory: checkoutDirectory.path, ); } if (localUpstream) { // These branches must exist locally for the repo that depends on it // to fetch and push to. for (final String channel in requiredLocalBranches) { await git.run( <String>['checkout', channel, '--'], 'check out branch $channel locally', workingDirectory: checkoutDirectory.path, ); } } if (initialRef != null) { await git.run( <String>['checkout', initialRef!], 'Checking out initialRef $initialRef', workingDirectory: checkoutDirectory.path, ); } final String revision = await reverseParse('HEAD'); stdio.printTrace( 'Repository $name is checked out at revision "$revision".', ); } /// The URL of the remote named [remoteName]. Future<String> remoteUrl(String remoteName) async { return git.getOutput( <String>['remote', 'get-url', remoteName], 'verify the URL of the $remoteName remote', workingDirectory: (await checkoutDirectory).path, ); } /// Verify the repository's git checkout is clean. Future<bool> gitCheckoutClean() async { final String output = await git.getOutput( <String>['status', '--porcelain'], 'check that the git checkout is clean', workingDirectory: (await checkoutDirectory).path, ); return output == ''; } /// Return the revision for the branch point between two refs. Future<String> branchPoint(String firstRef, String secondRef) async { return (await git.getOutput( <String>['merge-base', firstRef, secondRef], 'determine the merge base between $firstRef and $secondRef', workingDirectory: (await checkoutDirectory).path, )).trim(); } /// Fetch all branches and associated commits and tags from [remoteName]. Future<void> fetch(String remoteName) async { await git.run( <String>['fetch', remoteName, '--tags'], 'fetch $remoteName --tags', workingDirectory: (await checkoutDirectory).path, ); } /// Create (and checkout) a new branch based on the current HEAD. /// /// Runs `git checkout -b $branchName`. Future<void> newBranch(String branchName) async { await git.run( <String>['checkout', '-b', branchName], 'create & checkout new branch $branchName', workingDirectory: (await checkoutDirectory).path, ); } /// Check out the given ref. Future<void> checkout(String ref) async { await git.run( <String>['checkout', ref], 'checkout ref', workingDirectory: (await checkoutDirectory).path, ); } /// Obtain the version tag at the tip of a release branch. Future<String> getFullTag( String remoteName, String branchName, { bool exact = true, }) async { // includes both stable (e.g. 1.2.3) and dev tags (e.g. 1.2.3-4.5.pre) const String glob = '*.*.*'; // describe the latest dev release final String ref = 'refs/remotes/$remoteName/$branchName'; return git.getOutput( <String>[ 'describe', '--match', glob, if (exact) '--exact-match', '--tags', ref, ], 'obtain last released version number', workingDirectory: (await checkoutDirectory).path, ); } /// Tag [commit] and push the tag to the remote. Future<void> tag(String commit, String tagName, String remote) async { assert(commit.isNotEmpty); assert(tagName.isNotEmpty); assert(remote.isNotEmpty); stdio.printStatus('About to tag commit $commit as $tagName...'); await git.run( <String>['tag', tagName, commit], 'tag the commit with the version label', workingDirectory: (await checkoutDirectory).path, ); stdio.printStatus('Tagging successful.'); stdio.printStatus('About to push $tagName to remote $remote...'); await git.run( <String>['push', remote, tagName], 'publish the tag to the repo', workingDirectory: (await checkoutDirectory).path, ); stdio.printStatus('Tag push successful.'); } /// List commits in reverse chronological order. Future<List<String>> revList(List<String> args) async { return (await git.getOutput(<String>['rev-list', ...args], 'rev-list with args ${args.join(' ')}', workingDirectory: (await checkoutDirectory).path)) .trim() .split('\n'); } /// Look up the commit for [ref]. Future<String> reverseParse(String ref) async { final String revisionHash = await git.getOutput( <String>['rev-parse', ref], 'look up the commit for the ref $ref', workingDirectory: (await checkoutDirectory).path, ); assert(revisionHash.isNotEmpty); return revisionHash; } /// Determines if one ref is an ancestor for another. Future<bool> isAncestor(String possibleAncestor, String possibleDescendant) async { final int exitcode = await git.run( <String>[ 'merge-base', '--is-ancestor', possibleDescendant, possibleAncestor, ], 'verify $possibleAncestor is a direct ancestor of $possibleDescendant.', allowNonZeroExitCode: true, workingDirectory: (await checkoutDirectory).path, ); return exitcode == 0; } /// Determines if a given commit has a tag. Future<bool> isCommitTagged(String commit) async { final int exitcode = await git.run( <String>['describe', '--exact-match', '--tags', commit], 'verify $commit is already tagged', allowNonZeroExitCode: true, workingDirectory: (await checkoutDirectory).path, ); return exitcode == 0; } /// Determines if a commit will cherry-pick to current HEAD without conflict. Future<bool> canCherryPick(String commit) async { assert( await gitCheckoutClean(), 'cannot cherry-pick because git checkout ${(await checkoutDirectory).path} is not clean', ); final int exitcode = await git.run( <String>['cherry-pick', '--no-commit', commit], 'attempt to cherry-pick $commit without committing', allowNonZeroExitCode: true, workingDirectory: (await checkoutDirectory).path, ); final bool result = exitcode == 0; if (result == false) { stdio.printError(await git.getOutput( <String>['diff'], 'get diff of failed cherry-pick', workingDirectory: (await checkoutDirectory).path, )); } await reset('HEAD'); return result; } /// Cherry-pick a [commit] to the current HEAD. /// /// This method will throw a [GitException] if the command fails. Future<void> cherryPick(String commit) async { assert( await gitCheckoutClean(), 'cannot cherry-pick because git checkout ${(await checkoutDirectory).path} is not clean', ); await git.run( <String>['cherry-pick', commit], 'cherry-pick $commit', workingDirectory: (await checkoutDirectory).path, ); } /// Resets repository HEAD to [ref]. Future<void> reset(String ref) async { await git.run( <String>['reset', ref, '--hard'], 'reset to $ref', workingDirectory: (await checkoutDirectory).path, ); } /// Push [commit] to the release channel [branch]. Future<void> pushRef({ required String fromRef, required String remote, required String toRef, bool force = false, bool dryRun = false, }) async { final List<String> args = <String>[ 'push', if (force) '--force', remote, '$fromRef:$toRef', ]; final String command = <String>[ 'git', ...args, ].join(' '); if (dryRun) { stdio.printStatus('About to execute command: `$command`'); } else { await git.run( args, 'update the release branch with the commit', workingDirectory: (await checkoutDirectory).path, ); stdio.printStatus('Executed command: `$command`'); } } Future<String> commit( String message, { bool addFirst = false, String? author, }) async { final bool hasChanges = (await git.getOutput( <String>['status', '--porcelain'], 'check for uncommitted changes', workingDirectory: (await checkoutDirectory).path, )).trim().isNotEmpty; if (!hasChanges) { throw ConductorException( 'Tried to commit with message $message but no changes were present'); } if (addFirst) { await git.run( <String>['add', '--all'], 'add all changes to the index', workingDirectory: (await checkoutDirectory).path, ); } String? authorArg; if (author != null) { if (author.contains('"')) { throw FormatException( 'Commit author cannot contain character \'"\', received $author', ); } // verify [author] matches git author convention, e.g. "Jane Doe <jane.doe@email.com>" if (!RegExp(r'.+<.*>').hasMatch(author)) { throw FormatException( 'Commit author appears malformed: "$author"', ); } authorArg = '--author="$author"'; } await git.run( <String>[ 'commit', '--message', message, if (authorArg != null) authorArg, ], 'commit changes', workingDirectory: (await checkoutDirectory).path, ); return reverseParse('HEAD'); } /// Create an empty commit and return the revision. @visibleForTesting Future<String> authorEmptyCommit([String message = 'An empty commit']) async { await git.run( <String>[ '-c', 'user.name=Conductor', '-c', 'user.email=conductor@flutter.dev', 'commit', '--allow-empty', '-m', "'$message'", ], 'create an empty commit', workingDirectory: (await checkoutDirectory).path, ); return reverseParse('HEAD'); } /// Create a new clone of the current repository. /// /// The returned repository will inherit all properties from this one, except /// for the upstream, which will be the path to this repository on disk. /// /// This method is for testing purposes. @visibleForTesting Future<Repository> cloneRepository(String cloneName); } class FrameworkRepository extends Repository { FrameworkRepository( this.checkouts, { super.name = 'framework', super.upstreamRemote = const Remote( name: RemoteName.upstream, url: FrameworkRepository.defaultUpstream), super.localUpstream, super.previousCheckoutLocation, String super.initialRef = FrameworkRepository.defaultBranch, super.mirrorRemote, List<String>? additionalRequiredLocalBranches, }) : super( fileSystem: checkouts.fileSystem, parentDirectory: checkouts.directory, platform: checkouts.platform, processManager: checkouts.processManager, stdio: checkouts.stdio, requiredLocalBranches: <String>[ ...?additionalRequiredLocalBranches, ...kReleaseChannels, ], ); /// A [FrameworkRepository] with the host conductor's repo set as upstream. /// /// This is useful when testing a commit that has not been merged upstream /// yet. factory FrameworkRepository.localRepoAsUpstream( Checkouts checkouts, { String name = 'framework', String? previousCheckoutLocation, String initialRef = FrameworkRepository.defaultBranch, required String upstreamPath, }) { return FrameworkRepository( checkouts, name: name, upstreamRemote: Remote( name: RemoteName.upstream, url: 'file://$upstreamPath/', ), previousCheckoutLocation: previousCheckoutLocation, initialRef: initialRef, ); } final Checkouts checkouts; static const String defaultUpstream = 'git@github.com:flutter/flutter.git'; static const String defaultBranch = 'master'; Future<String> get cacheDirectory async { return fileSystem.path.join( (await checkoutDirectory).path, 'bin', 'cache', ); } @override Future<FrameworkRepository> cloneRepository(String? cloneName) async { assert(localUpstream); cloneName ??= 'clone-of-$name'; return FrameworkRepository( checkouts, name: cloneName, upstreamRemote: Remote( name: RemoteName.upstream, url: 'file://${(await checkoutDirectory).path}/'), ); } Future<void> _ensureToolReady() async { final File toolsStamp = fileSystem .directory(await cacheDirectory) .childFile('flutter_tools.stamp'); if (toolsStamp.existsSync()) { final String toolsStampHash = toolsStamp.readAsStringSync().trim(); final String repoHeadHash = await reverseParse('HEAD'); if (toolsStampHash == repoHeadHash) { return; } } stdio.printTrace('Building tool...'); // Build tool await processManager.run(<String>[ fileSystem.path.join((await checkoutDirectory).path, 'bin', 'flutter'), 'help', ]); } Future<io.ProcessResult> runFlutter(List<String> args) async { await _ensureToolReady(); return processManager.run(<String>[ fileSystem.path.join((await checkoutDirectory).path, 'bin', 'flutter'), ...args, ]); } Future<io.Process> streamFlutter( List<String> args, { void Function(String)? stdoutCallback, void Function(String)? stderrCallback, }) async { await _ensureToolReady(); final io.Process process = await processManager.start(<String>[ fileSystem.path.join((await checkoutDirectory).path, 'bin', 'flutter'), ...args, ]); process .stdout .transform(utf8.decoder) .transform(const LineSplitter()) .listen(stdoutCallback ?? stdio.printTrace); process .stderr .transform(utf8.decoder) .transform(const LineSplitter()) .listen(stderrCallback ?? stdio.printError); return process; } @override Future<void> checkout(String ref) async { await super.checkout(ref); // The tool will overwrite old cached artifacts, but not delete unused // artifacts from a previous version. Thus, delete the entire cache and // re-populate. final Directory cache = fileSystem.directory(await cacheDirectory); if (cache.existsSync()) { stdio.printTrace('Deleting cache...'); cache.deleteSync(recursive: true); } await _ensureToolReady(); } Future<Version> flutterVersion() async { // Check version final io.ProcessResult result = await runFlutter(<String>['--version', '--machine']); final Map<String, dynamic> versionJson = jsonDecode( stdoutToString(result.stdout), ) as Map<String, dynamic>; return Version.fromString(versionJson['frameworkVersion'] as String); } /// Create a release candidate branch version file. /// /// This file allows for easily traversing what candidadate branch was used /// from a release channel. /// /// Returns [true] if the version file was updated and a commit is needed. Future<bool> updateCandidateBranchVersion( String branch, { @visibleForTesting File? versionFile, }) async { assert(branch.isNotEmpty); versionFile ??= (await checkoutDirectory) .childDirectory('bin') .childDirectory('internal') .childFile('release-candidate-branch.version'); if (versionFile.existsSync()) { final String oldCandidateBranch = versionFile.readAsStringSync(); if (oldCandidateBranch.trim() == branch.trim()) { stdio.printTrace( 'Tried to update the candidate branch but version file is already up to date at: $branch', ); return false; } } stdio.printStatus('Create ${versionFile.path} containing $branch'); versionFile.writeAsStringSync( // Version files have trailing newlines '${branch.trim()}\n', flush: true, ); return true; } /// Update this framework's engine version file. /// /// Returns [true] if the version file was updated and a commit is needed. Future<bool> updateEngineRevision( String newEngine, { @visibleForTesting File? engineVersionFile, }) async { assert(newEngine.isNotEmpty); engineVersionFile ??= (await checkoutDirectory) .childDirectory('bin') .childDirectory('internal') .childFile('engine.version'); assert(engineVersionFile.existsSync()); final String oldEngine = engineVersionFile.readAsStringSync(); if (oldEngine.trim() == newEngine.trim()) { stdio.printTrace( 'Tried to update the engine revision but version file is already up to date at: $newEngine', ); return false; } stdio.printStatus('Updating engine revision from $oldEngine to $newEngine'); engineVersionFile.writeAsStringSync( // Version files have trailing newlines '${newEngine.trim()}\n', flush: true, ); return true; } } /// A wrapper around the host repository that is executing the conductor. /// /// [Repository] methods that mutate the underlying repository will throw a /// [ConductorException]. class HostFrameworkRepository extends FrameworkRepository { HostFrameworkRepository({ required Checkouts checkouts, String name = 'host-framework', required String upstreamPath, }) : super( checkouts, name: name, upstreamRemote: Remote( name: RemoteName.upstream, url: 'file://$upstreamPath/', ), localUpstream: false, ) { _checkoutDirectory = checkouts.fileSystem.directory(upstreamPath); } @override Future<Directory> get checkoutDirectory async => _checkoutDirectory!; @override Future<void> newBranch(String branchName) async { throw ConductorException( 'newBranch not implemented for the host repository'); } @override Future<void> checkout(String ref) async { throw ConductorException( 'checkout not implemented for the host repository'); } @override Future<String> cherryPick(String commit) async { throw ConductorException( 'cherryPick not implemented for the host repository'); } @override Future<String> reset(String ref) async { throw ConductorException('reset not implemented for the host repository'); } @override Future<void> tag(String commit, String tagName, String remote) async { throw ConductorException('tag not implemented for the host repository'); } void updateChannel( String commit, String remote, String branch, { bool force = false, bool dryRun = false, }) { throw ConductorException( 'updateChannel not implemented for the host repository'); } @override Future<String> authorEmptyCommit([String message = 'An empty commit']) async { throw ConductorException( 'authorEmptyCommit not implemented for the host repository', ); } } class EngineRepository extends Repository { EngineRepository( this.checkouts, { super.name = 'engine', String super.initialRef = EngineRepository.defaultBranch, super.upstreamRemote = const Remote( name: RemoteName.upstream, url: EngineRepository.defaultUpstream), super.localUpstream, super.previousCheckoutLocation, super.mirrorRemote, List<String>? additionalRequiredLocalBranches, }) : super( fileSystem: checkouts.fileSystem, parentDirectory: checkouts.directory, platform: checkouts.platform, processManager: checkouts.processManager, stdio: checkouts.stdio, requiredLocalBranches: additionalRequiredLocalBranches ?? const <String>[], ); final Checkouts checkouts; static const String defaultUpstream = 'git@github.com:flutter/engine.git'; static const String defaultBranch = 'main'; /// Update the `dart_revision` entry in the DEPS file. Future<void> updateDartRevision( String newRevision, { @visibleForTesting File? depsFile, }) async { assert(newRevision.length == 40); depsFile ??= (await checkoutDirectory).childFile('DEPS'); final String fileContent = depsFile.readAsStringSync(); final RegExp dartPattern = RegExp("[ ]+'dart_revision': '([a-z0-9]{40})',"); final Iterable<RegExpMatch> allMatches = dartPattern.allMatches(fileContent); if (allMatches.length != 1) { throw ConductorException( 'Unexpected content in the DEPS file at ${depsFile.path}\n' 'Expected to find pattern ${dartPattern.pattern} 1 times, but got ' '${allMatches.length}.'); } final String updatedFileContent = fileContent.replaceFirst( dartPattern, " 'dart_revision': '$newRevision',", ); depsFile.writeAsStringSync(updatedFileContent, flush: true); } @override Future<Repository> cloneRepository(String? cloneName) async { assert(localUpstream); cloneName ??= 'clone-of-$name'; return EngineRepository( checkouts, name: cloneName, upstreamRemote: Remote( name: RemoteName.upstream, url: 'file://${(await checkoutDirectory).path}/'), ); } } /// An enum of all the repositories that the Conductor supports. enum RepositoryType { framework, engine, } class Checkouts { Checkouts({ required this.fileSystem, required this.platform, required this.processManager, required this.stdio, required Directory parentDirectory, String directoryName = 'flutter_conductor_checkouts', }) : directory = parentDirectory.childDirectory(directoryName) { if (!directory.existsSync()) { directory.createSync(recursive: true); } } final Directory directory; final FileSystem fileSystem; final Platform platform; final ProcessManager processManager; final Stdio stdio; }
flutter/dev/conductor/core/lib/src/repository.dart/0
{'file_path': 'flutter/dev/conductor/core/lib/src/repository.dart', 'repo_id': 'flutter', 'token_count': 10289}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter_devicelab/framework/framework.dart'; import 'package:flutter_devicelab/tasks/plugin_tests.dart'; Future<void> main() async { await task(combine(<TaskFunction>[ PluginTest('apk', <String>['-a', 'java', '--platforms=android']).call, PluginTest('apk', <String>['-a', 'kotlin', '--platforms=android']).call, // These create the plugins using the new v2 plugin templates but create the // apps using the old v1 embedding app templates to make sure new plugins // are by default backward compatible. PluginTest('apk', <String>['-a', 'java', '--platforms=android'], pluginCreateEnvironment: <String, String>{'ENABLE_ANDROID_EMBEDDING_V2': 'true'}).call, PluginTest('apk', <String>['-a', 'kotlin', '--platforms=android'], pluginCreateEnvironment: <String, String>{'ENABLE_ANDROID_EMBEDDING_V2': 'true'}).call, // Test that Dart-only plugins are supported. PluginTest('apk', <String>['--platforms=android'], dartOnlyPlugin: true).call, // Test that FFI plugins are supported. PluginTest('apk', <String>['--platforms=android'], template: 'plugin_ffi').call, ])); }
flutter/dev/devicelab/bin/tasks/plugin_test.dart/0
{'file_path': 'flutter/dev/devicelab/bin/tasks/plugin_test.dart', 'repo_id': 'flutter', 'token_count': 454}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/material.dart'; import 'sections.dart'; const double kSectionIndicatorWidth = 32.0; // The card for a single section. Displays the section's gradient and background image. class SectionCard extends StatelessWidget { const SectionCard({ super.key, required this.section }); final Section section; @override Widget build(BuildContext context) { return Semantics( label: section.title, button: true, child: DecoratedBox( decoration: BoxDecoration( gradient: LinearGradient( colors: <Color>[ section.leftColor!, section.rightColor!, ], ), ), child: Image.asset( section.backgroundAsset!, package: section.backgroundAssetPackage, color: const Color.fromRGBO(255, 255, 255, 0.075), colorBlendMode: BlendMode.modulate, fit: BoxFit.cover, ), ), ); } } // The title is rendered with two overlapping text widgets that are vertically // offset a little. It's supposed to look sort-of 3D. class SectionTitle extends StatelessWidget { const SectionTitle({ super.key, required this.section, required this.scale, required this.opacity, }) : assert(opacity >= 0.0 && opacity <= 1.0); final Section section; final double scale; final double opacity; static const TextStyle sectionTitleStyle = TextStyle( fontFamily: 'Raleway', inherit: false, fontSize: 24.0, fontWeight: FontWeight.w500, color: Colors.white, textBaseline: TextBaseline.alphabetic, ); static final TextStyle sectionTitleShadowStyle = sectionTitleStyle.copyWith( color: const Color(0x19000000), ); @override Widget build(BuildContext context) { return IgnorePointer( child: Opacity( opacity: opacity, child: Transform( transform: Matrix4.identity()..scale(scale), alignment: Alignment.center, child: Stack( children: <Widget>[ Positioned( top: 4.0, child: Text(section.title!, style: sectionTitleShadowStyle), ), Text(section.title!, style: sectionTitleStyle), ], ), ), ), ); } } // Small horizontal bar that indicates the selected section. class SectionIndicator extends StatelessWidget { const SectionIndicator({ super.key, this.opacity = 1.0 }); final double opacity; @override Widget build(BuildContext context) { return IgnorePointer( child: Container( width: kSectionIndicatorWidth, height: 3.0, color: Colors.white.withOpacity(opacity), ), ); } } // Display a single SectionDetail. class SectionDetailView extends StatelessWidget { SectionDetailView({ super.key, required this.detail }) : assert(detail.imageAsset != null), assert((detail.imageAsset ?? detail.title) != null); final SectionDetail detail; @override Widget build(BuildContext context) { final Widget image = DecoratedBox( decoration: BoxDecoration( borderRadius: BorderRadius.circular(6.0), image: DecorationImage( image: AssetImage( detail.imageAsset!, package: detail.imageAssetPackage, ), fit: BoxFit.cover, ), ), ); Widget item; if (detail.title == null && detail.subtitle == null) { item = Container( height: 240.0, padding: const EdgeInsets.all(16.0), child: SafeArea( top: false, bottom: false, child: image, ), ); } else { item = ListTile( title: Text(detail.title!), subtitle: Text(detail.subtitle!), leading: SizedBox(width: 32.0, height: 32.0, child: image), ); } return DecoratedBox( decoration: BoxDecoration(color: Colors.grey.shade200), child: item, ); } }
flutter/dev/integration_tests/flutter_gallery/lib/demo/animation/widgets.dart/0
{'file_path': 'flutter/dev/integration_tests/flutter_gallery/lib/demo/animation/widgets.dart', 'repo_id': 'flutter', 'token_count': 1677}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/cupertino.dart'; import '../../gallery/demo.dart'; class CupertinoSwitchDemo extends StatefulWidget { const CupertinoSwitchDemo({super.key}); static const String routeName = '/cupertino/switch'; @override State<CupertinoSwitchDemo> createState() => _CupertinoSwitchDemoState(); } class _CupertinoSwitchDemoState extends State<CupertinoSwitchDemo> { bool _switchValue = false; @override Widget build(BuildContext context) { return CupertinoPageScaffold( navigationBar: CupertinoNavigationBar( middle: const Text('Switch'), // We're specifying a back label here because the previous page is a // Material page. CupertinoPageRoutes could auto-populate these back // labels. previousPageTitle: 'Cupertino', trailing: CupertinoDemoDocumentationButton(CupertinoSwitchDemo.routeName), ), child: DefaultTextStyle( style: CupertinoTheme.of(context).textTheme.textStyle, child: SafeArea( child: Center( child: Column( mainAxisAlignment: MainAxisAlignment.spaceAround, children: <Widget>[ Semantics( container: true, child: Column( children: <Widget>[ CupertinoSwitch( value: _switchValue, onChanged: (bool value) { setState(() { _switchValue = value; }); }, ), Text( "Enabled - ${_switchValue ? "On" : "Off"}" ), ], ), ), Semantics( container: true, child: const Column( children: <Widget>[ CupertinoSwitch( value: true, onChanged: null, ), Text( 'Disabled - On' ), ], ), ), Semantics( container: true, child: const Column( children: <Widget>[ CupertinoSwitch( value: false, onChanged: null, ), Text( 'Disabled - Off' ), ], ), ), ], ), ), ), ), ); } }
flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_switch_demo.dart/0
{'file_path': 'flutter/dev/integration_tests/flutter_gallery/lib/demo/cupertino/cupertino_switch_demo.dart', 'repo_id': 'flutter', 'token_count': 1662}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/material.dart'; import '../../gallery/demo.dart'; class ElevationDemo extends StatefulWidget { const ElevationDemo({super.key}); static const String routeName = '/material/elevation'; @override State<StatefulWidget> createState() => _ElevationDemoState(); } class _ElevationDemoState extends State<ElevationDemo> { bool _showElevation = true; List<Widget> buildCards() { const List<double> elevations = <double>[ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 8.0, 16.0, 24.0, ]; return elevations.map<Widget>((double elevation) { return Center( child: Card( margin: const EdgeInsets.all(20.0), elevation: _showElevation ? elevation : 0.0, child: SizedBox( height: 100.0, width: 100.0, child: Center( child: Text('${elevation.toStringAsFixed(0)} pt'), ), ), ), ); }).toList(); } @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text('Elevation'), actions: <Widget>[ MaterialDemoDocumentationButton(ElevationDemo.routeName), IconButton( tooltip: 'Toggle elevation', icon: const Icon(Icons.sentiment_very_satisfied), onPressed: () { setState(() => _showElevation = !_showElevation); }, ), ], ), body: Scrollbar( child: ListView( primary: true, children: buildCards(), ), ), ); } }
flutter/dev/integration_tests/flutter_gallery/lib/demo/material/elevation_demo.dart/0
{'file_path': 'flutter/dev/integration_tests/flutter_gallery/lib/demo/material/elevation_demo.dart', 'repo_id': 'flutter', 'token_count': 848}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/material.dart'; import 'colors.dart'; class LoginPage extends StatefulWidget { const LoginPage({super.key}); @override State<LoginPage> createState() => _LoginPageState(); } class _LoginPageState extends State<LoginPage> { final TextEditingController _usernameController = TextEditingController(); final TextEditingController _passwordController = TextEditingController(); static const ShapeDecoration _decoration = ShapeDecoration( shape: BeveledRectangleBorder( side: BorderSide(color: kShrineBrown900, width: 0.5), borderRadius: BorderRadius.all(Radius.circular(7.0)), ), ); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( elevation: 0.0, backgroundColor: Colors.white, leading: IconButton( icon: const BackButtonIcon(), tooltip: MaterialLocalizations.of(context).backButtonTooltip, onPressed: () { // The login screen is immediately displayed on top of the Shrine // home screen using onGenerateRoute and so rootNavigator must be // set to true in order to get out of Shrine completely. Navigator.of(context, rootNavigator: true).pop(); }, ), ), body: SafeArea( child: ListView( padding: const EdgeInsets.symmetric(horizontal: 24.0), children: <Widget>[ const SizedBox(height: 80.0), Column( children: <Widget>[ Image.asset('packages/shrine_images/diamond.png'), const SizedBox(height: 16.0), Text( 'SHRINE', style: Theme.of(context).textTheme.headlineSmall, ), ], ), const SizedBox(height: 120.0), PrimaryColorOverride( color: kShrineBrown900, child: Container( decoration: _decoration, child: TextField( controller: _usernameController, decoration: const InputDecoration( labelText: 'Username', ), ), ), ), const SizedBox(height: 12.0), PrimaryColorOverride( color: kShrineBrown900, child: Container( decoration: _decoration, child: TextField( controller: _passwordController, decoration: const InputDecoration( labelText: 'Password', ), ), ), ), const SizedBox(height: 12.0), OverflowBar( spacing: 8, alignment: MainAxisAlignment.end, children: <Widget>[ TextButton( style: TextButton.styleFrom( shape: const BeveledRectangleBorder( borderRadius: BorderRadius.all(Radius.circular(7.0)), ), ), onPressed: () { // The login screen is immediately displayed on top of // the Shrine home screen using onGenerateRoute and so // rootNavigator must be set to true in order to get out // of Shrine completely. Navigator.of(context, rootNavigator: true).pop(); }, child: const Text('CANCEL'), ), ElevatedButton( style: ElevatedButton.styleFrom( elevation: 8.0, shape: const BeveledRectangleBorder( borderRadius: BorderRadius.all(Radius.circular(7.0)), ), ), onPressed: () { Navigator.pop(context); }, child: const Text('NEXT'), ), ], ), ], ), ), ); } } class PrimaryColorOverride extends StatelessWidget { const PrimaryColorOverride({super.key, this.color, this.child}); final Color? color; final Widget? child; @override Widget build(BuildContext context) { return Theme( data: Theme.of(context).copyWith(primaryColor: color), child: child!, ); } }
flutter/dev/integration_tests/flutter_gallery/lib/demo/shrine/login.dart/0
{'file_path': 'flutter/dev/integration_tests/flutter_gallery/lib/demo/shrine/login.dart', 'repo_id': 'flutter', 'token_count': 2307}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/material.dart'; import 'package:url_launcher/url_launcher.dart'; typedef UpdateUrlFetcher = Future<String?> Function(); class Updater extends StatefulWidget { const Updater({ required this.updateUrlFetcher, this.child, super.key }); final UpdateUrlFetcher updateUrlFetcher; final Widget? child; @override State createState() => UpdaterState(); } class UpdaterState extends State<Updater> { @override void initState() { super.initState(); _checkForUpdates(); } static DateTime? _lastUpdateCheck; Future<void> _checkForUpdates() async { // Only prompt once a day if (_lastUpdateCheck != null && DateTime.now().difference(_lastUpdateCheck!) < const Duration(days: 1)) { return; // We already checked for updates recently } _lastUpdateCheck = DateTime.now(); final String? updateUrl = await widget.updateUrlFetcher(); if (mounted) { final bool? wantsUpdate = await showDialog<bool>(context: context, builder: _buildDialog); if (wantsUpdate != null && updateUrl != null && wantsUpdate) { launchUrl(Uri.parse(updateUrl)); } } } Widget _buildDialog(BuildContext context) { final ThemeData theme = Theme.of(context); final TextStyle dialogTextStyle = theme.textTheme.titleMedium!.copyWith(color: theme.textTheme.bodySmall!.color); return AlertDialog( title: const Text('Update Flutter Gallery?'), content: Text('A newer version is available.', style: dialogTextStyle), actions: <Widget>[ TextButton( child: const Text('NO THANKS'), onPressed: () { Navigator.pop(context, false); }, ), TextButton( child: const Text('UPDATE'), onPressed: () { Navigator.pop(context, true); }, ), ], ); } @override Widget build(BuildContext context) => widget.child!; }
flutter/dev/integration_tests/flutter_gallery/lib/gallery/updater.dart/0
{'file_path': 'flutter/dev/integration_tests/flutter_gallery/lib/gallery/updater.dart', 'repo_id': 'flutter', 'token_count': 779}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter_driver/flutter_driver.dart'; import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; void main() { group('channel suite', () { late FlutterDriver driver; setUpAll(() async { driver = await FlutterDriver.connect(printCommunication: true); }); test('step through', () async { final SerializableFinder stepButton = find.byValueKey('step'); final SerializableFinder statusField = find.byValueKey('status'); int step = 0; while (await driver.getText(statusField) == 'ok') { await driver.tap(stepButton); step++; } final String status = await driver.getText(statusField); if (status != 'complete') { fail('Failed at step $step with status $status'); } }, timeout: Timeout.none); tearDownAll(() async { driver.close(); }); }); }
flutter/dev/integration_tests/platform_interaction/test_driver/main_test.dart/0
{'file_path': 'flutter/dev/integration_tests/platform_interaction/test_driver/main_test.dart', 'repo_id': 'flutter', 'token_count': 370}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/material.dart'; import 'package:flutter_driver/driver_extension.dart'; void main() { enableFlutterDriverExtension(); runApp(MaterialApp( home: Material( child: Builder( builder: (BuildContext context) { return TextButton( child: const Text( 'flutter drive lib/xxx.dart', textDirection: TextDirection.ltr, ), onPressed: () { Navigator.push<Object?>( context, MaterialPageRoute<Object?>( builder: (BuildContext context) { return const Material( child: Center( child: Text( 'navigated here', textDirection: TextDirection.ltr, ), ), ); }, ), ); }, ); }, ), ), )); }
flutter/dev/integration_tests/ui/lib/main.dart/0
{'file_path': 'flutter/dev/integration_tests/ui/lib/main.dart', 'repo_id': 'flutter', 'token_count': 647}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter_driver/flutter_driver.dart'; import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; bool _isNumeric(String s) { return double.tryParse(s) != null; } // Connect and disconnect from the empty app. void main() { group('FrameNumber', () { late FlutterDriver driver; setUpAll(() async { driver = await FlutterDriver.connect(); }); tearDownAll(() async { await driver.close(); }); test('minFrameNumber is numeric', () async { final SerializableFinder minFrameNumberFinder = find.byValueKey('minFrameNumber'); await driver.waitFor( minFrameNumberFinder, timeout: const Duration(seconds: 5), ); final String minFrameNumber = await driver.getText(minFrameNumberFinder); // TODO(iskakaushik): enable the stronger check of _minFrameNumber == '1', // once this is fixed. https://github.com/flutter/flutter/issues/86487 expect(_isNumeric(minFrameNumber), true); }, timeout: Timeout.none); }); }
flutter/dev/integration_tests/ui/test_driver/frame_number_test.dart/0
{'file_path': 'flutter/dev/integration_tests/ui/test_driver/frame_number_test.dart', 'repo_id': 'flutter', 'token_count': 419}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // @dart = 2.12 import 'dart:html' as html; // Verify that web applications can be run in sound mode. void main() { const bool isWeak = <int?>[] is List<int>; String output; if (isWeak) { output = '--- TEST FAILED ---'; } else { output = '--- TEST SUCCEEDED ---'; } print(output); html.HttpRequest.request( '/test-result', method: 'POST', sendData: output, ); }
flutter/dev/integration_tests/web/lib/sound_mode.dart/0
{'file_path': 'flutter/dev/integration_tests/web/lib/sound_mode.dart', 'repo_id': 'flutter', 'token_count': 197}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:io'; import 'logical_key_data.dart'; import 'physical_key_data.dart'; String _injectDictionary(String template, Map<String, String> dictionary) { String result = template; for (final String key in dictionary.keys) { result = result.replaceAll('@@@$key@@@', dictionary[key] ?? '@@@$key@@@'); } return result; } /// Generates a file based on the information in the key data structure given to /// it. /// /// [BaseCodeGenerator] finds tokens in the template file that has the form of /// `@@@TOKEN@@@`, and replace them by looking up the key `TOKEN` from the map /// returned by [mappings]. /// /// Subclasses must implement [templatePath] and [mappings]. abstract class BaseCodeGenerator { /// Create a code generator while providing [keyData] to be used in [mappings]. BaseCodeGenerator(this.keyData, this.logicalData); /// Absolute path to the template file that this file is generated on. String get templatePath; /// A mapping from tokens to be replaced in the template to the result string. Map<String, String> mappings(); /// Substitutes the various platform specific maps into the template file for /// keyboard_maps.g.dart. String generate() { final String template = File(templatePath).readAsStringSync(); return _injectDictionary(template, mappings()); } /// The database of keys loaded from disk. final PhysicalKeyData keyData; final LogicalKeyData logicalData; } /// A code generator which also defines platform-based behavior. abstract class PlatformCodeGenerator extends BaseCodeGenerator { PlatformCodeGenerator(super.keyData, super.logicalData); /// Absolute path to the output file. /// /// How this value will be used is based on the callee. String outputPath(String platform); static String engineRoot = ''; }
flutter/dev/tools/gen_keycodes/lib/base_code_gen.dart/0
{'file_path': 'flutter/dev/tools/gen_keycodes/lib/base_code_gen.dart', 'repo_id': 'flutter', 'token_count': 548}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:convert'; import 'dart:io'; import 'package:gen_keycodes/android_code_gen.dart'; import 'package:gen_keycodes/base_code_gen.dart'; import 'package:gen_keycodes/gtk_code_gen.dart'; import 'package:gen_keycodes/ios_code_gen.dart'; import 'package:gen_keycodes/logical_key_data.dart'; import 'package:gen_keycodes/macos_code_gen.dart'; import 'package:gen_keycodes/physical_key_data.dart'; import 'package:gen_keycodes/utils.dart'; import 'package:gen_keycodes/web_code_gen.dart'; import 'package:gen_keycodes/windows_code_gen.dart'; import 'package:path/path.dart' as path; import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; String readDataFile(String fileName) { return File(path.join(dataRoot, fileName)).readAsStringSync(); } final PhysicalKeyData physicalData = PhysicalKeyData.fromJson( json.decode(readDataFile('physical_key_data.g.json')) as Map<String, dynamic>); final LogicalKeyData logicalData = LogicalKeyData.fromJson( json.decode(readDataFile('logical_key_data.g.json')) as Map<String, dynamic>); final Map<String, bool> keyGoals = parseMapOfBool( readDataFile('layout_goals.json')); void main() { setUp(() { testDataRoot = path.canonicalize(path.join(Directory.current.absolute.path, 'data')); }); tearDown((){ testDataRoot = null; }); void checkCommonOutput(String output) { expect(output, contains(RegExp('Copyright 201[34]'))); expect(output, contains('DO NOT EDIT')); expect(output, contains(RegExp(r'\b[kK]eyA\b'))); expect(output, contains(RegExp(r'\b[Dd]igit1\b'))); expect(output, contains(RegExp(r'\b[Ff]1\b'))); expect(output, contains(RegExp(r'\b[Nn]umpad1\b'))); expect(output, contains(RegExp(r'\b[Ss]hiftLeft\b'))); } test('Generate Keycodes for Android', () { const String platform = 'android'; final PlatformCodeGenerator codeGenerator = AndroidCodeGenerator( physicalData, logicalData, ); final String output = codeGenerator.generate(); expect(codeGenerator.outputPath(platform), endsWith('KeyboardMap.java')); expect(output, contains('class KeyboardMap')); expect(output, contains('scanCodeToPhysical')); expect(output, contains('keyCodeToLogical')); checkCommonOutput(output); }); test('Generate Keycodes for macOS', () { const String platform = 'macos'; final PlatformCodeGenerator codeGenerator = MacOSCodeGenerator( physicalData, logicalData, keyGoals, ); final String output = codeGenerator.generate(); expect(codeGenerator.outputPath(platform), endsWith('KeyCodeMap.g.mm')); expect(output, contains('kValueMask')); expect(output, contains('keyCodeToPhysicalKey')); expect(output, contains('keyCodeToLogicalKey')); expect(output, contains('keyCodeToModifierFlag')); expect(output, contains('modifierFlagToKeyCode')); expect(output, contains('kCapsLockPhysicalKey')); expect(output, contains('kCapsLockLogicalKey')); checkCommonOutput(output); }); test('Generate Keycodes for iOS', () { const String platform = 'ios'; final PlatformCodeGenerator codeGenerator = IOSCodeGenerator( physicalData, logicalData, ); final String output = codeGenerator.generate(); expect(codeGenerator.outputPath(platform), endsWith('KeyCodeMap.g.mm')); expect(output, contains('kValueMask')); expect(output, contains('keyCodeToPhysicalKey')); expect(output, contains('keyCodeToLogicalKey')); expect(output, contains('keyCodeToModifierFlag')); expect(output, contains('modifierFlagToKeyCode')); expect(output, contains('functionKeyCodes')); expect(output, contains('kCapsLockPhysicalKey')); expect(output, contains('kCapsLockLogicalKey')); checkCommonOutput(output); }); test('Generate Keycodes for Windows', () { const String platform = 'windows'; final PlatformCodeGenerator codeGenerator = WindowsCodeGenerator( physicalData, logicalData, readDataFile(path.join(dataRoot, 'windows_scancode_logical_map.json')), ); final String output = codeGenerator.generate(); expect(codeGenerator.outputPath(platform), endsWith('flutter_key_map.g.cc')); expect(output, contains('KeyboardKeyEmbedderHandler::windowsToPhysicalMap_')); expect(output, contains('KeyboardKeyEmbedderHandler::windowsToLogicalMap_')); expect(output, contains('KeyboardKeyEmbedderHandler::scanCodeToLogicalMap_')); checkCommonOutput(output); }); test('Generate Keycodes for Linux', () { const String platform = 'gtk'; final PlatformCodeGenerator codeGenerator = GtkCodeGenerator( physicalData, logicalData, readDataFile(path.join(dataRoot, 'gtk_modifier_bit_mapping.json')), readDataFile(path.join(dataRoot, 'gtk_lock_bit_mapping.json')), keyGoals, ); final String output = codeGenerator.generate(); expect(codeGenerator.outputPath(platform), endsWith('key_mapping.g.cc')); expect(output, contains('initialize_modifier_bit_to_checked_keys')); expect(output, contains('initialize_lock_bit_to_checked_keys')); checkCommonOutput(output); }); test('Generate Keycodes for Web', () { const String platform = 'web'; final PlatformCodeGenerator codeGenerator = WebCodeGenerator( physicalData, logicalData, readDataFile(path.join(dataRoot, 'web_logical_location_mapping.json')), ); final String output = codeGenerator.generate(); expect(codeGenerator.outputPath(platform), endsWith('key_map.g.dart')); expect(output, contains('kWebToLogicalKey')); expect(output, contains('kWebToPhysicalKey')); expect(output, contains('kWebLogicalLocationMap')); checkCommonOutput(output); }); test('LogicalKeyData', () async { final List<LogicalKeyEntry> entries = logicalData.entries.toList(); // Regression tests for https://github.com/flutter/flutter/pull/87098 expect( entries.indexWhere((LogicalKeyEntry entry) => entry.name == 'ShiftLeft'), isNot(-1)); expect( entries.indexWhere((LogicalKeyEntry entry) => entry.webNames.contains('ShiftLeft')), -1); // 'Shift' maps to both 'ShiftLeft' and 'ShiftRight', and should be resolved // by other ways. expect( entries.indexWhere((LogicalKeyEntry entry) => entry.webNames.contains('Shift')), -1); // Printable keys must not be added with Web key of their names. expect( entries.indexWhere((LogicalKeyEntry entry) => entry.webNames.contains('Slash')), -1); }); }
flutter/dev/tools/gen_keycodes/test/gen_keycodes_test.dart/0
{'file_path': 'flutter/dev/tools/gen_keycodes/test/gen_keycodes_test.dart', 'repo_id': 'flutter', 'token_count': 2366}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:test/test.dart'; import '../update_icons.dart'; Map<String, String> codepointsA = <String, String>{ 'airplane': '111', 'boat': '222', }; Map<String, String> codepointsB = <String, String>{ 'airplane': '333', }; Map<String, String> codepointsC = <String, String>{ 'airplane': '111', 'train': '444', }; void main() { group('safety checks', () { test('superset', () { expect(testIsSuperset(codepointsA, codepointsA), true); expect(testIsSuperset(codepointsA, codepointsB), true); expect(testIsSuperset(codepointsB, codepointsA), false); }); test('stability', () { expect(testIsStable(codepointsA, codepointsA), true); expect(testIsStable(codepointsA, codepointsB), false); expect(testIsStable(codepointsB, codepointsA), false); expect(testIsStable(codepointsA, codepointsC), true); expect(testIsStable(codepointsC, codepointsA), true); }); }); test('no double underscores', () { expect(Icon.generateFlutterId('abc__123'), 'abc_123'); }); test('usage string is correct', () { expect( Icon(const MapEntry<String, String>('abc', '')).usage, 'Icon(Icons.abc),', ); }); test('usage string is correct with replacement', () { expect( Icon(const MapEntry<String, String>('123', '')).usage, 'Icon(Icons.onetwothree),', ); expect( Icon(const MapEntry<String, String>('123_rounded', '')).usage, 'Icon(Icons.onetwothree_rounded),', ); }); }
flutter/dev/tools/test/update_icons_test.dart/0
{'file_path': 'flutter/dev/tools/test/update_icons_test.dart', 'repo_id': 'flutter', 'token_count': 668}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flutter code sample for [Curve2D]. import 'package:flutter/material.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { const MyApp({super.key}); static const String _title = 'Flutter Code Sample'; @override Widget build(BuildContext context) { return const MaterialApp( title: _title, home: MyStatelessWidget(), ); } } // This is the path that the child will follow. It's a CatmullRomSpline so // that the coordinates can be specified that it must pass through. If the // tension is set to 1.0, it will linearly interpolate between those points, // instead of interpolating smoothly. final CatmullRomSpline path = CatmullRomSpline( const <Offset>[ Offset(0.05, 0.75), Offset(0.18, 0.23), Offset(0.32, 0.04), Offset(0.73, 0.5), Offset(0.42, 0.74), Offset(0.73, 0.01), Offset(0.93, 0.93), Offset(0.05, 0.75), ], startHandle: const Offset(0.93, 0.93), endHandle: const Offset(0.18, 0.23), ); class FollowCurve2D extends StatefulWidget { const FollowCurve2D({ super.key, required this.path, this.curve = Curves.easeInOut, required this.child, this.duration = const Duration(seconds: 1), }); final Curve2D path; final Curve curve; final Duration duration; final Widget child; @override State<FollowCurve2D> createState() => _FollowCurve2DState(); } class _FollowCurve2DState extends State<FollowCurve2D> with TickerProviderStateMixin { // The animation controller for this animation. late AnimationController controller; // The animation that will be used to apply the widget's animation curve. late Animation<double> animation; @override void initState() { super.initState(); controller = AnimationController(duration: widget.duration, vsync: this); animation = CurvedAnimation(parent: controller, curve: widget.curve); // Have the controller repeat indefinitely. If you want it to "bounce" back // and forth, set the reverse parameter to true. controller.repeat(); controller.addListener(() => setState(() {})); } @override void dispose() { // Always have to dispose of animation controllers when done. controller.dispose(); super.dispose(); } @override Widget build(BuildContext context) { // Scale the path values to match the -1.0 to 1.0 domain of the Alignment widget. final Offset position = widget.path.transform(animation.value) * 2.0 - const Offset(1.0, 1.0); return Align( alignment: Alignment(position.dx, position.dy), child: widget.child, ); } } class MyStatelessWidget extends StatelessWidget { const MyStatelessWidget({super.key}); @override Widget build(BuildContext context) { return Container( color: Colors.white, alignment: Alignment.center, child: FollowCurve2D( path: path, duration: const Duration(seconds: 3), child: CircleAvatar( backgroundColor: Colors.yellow, child: DefaultTextStyle( style: Theme.of(context).textTheme.titleLarge!, child: const Text('B'), // Buzz, buzz! ), ), ), ); } }
flutter/examples/api/lib/animation/curves/curve2_d.0.dart/0
{'file_path': 'flutter/examples/api/lib/animation/curves/curve2_d.0.dart', 'repo_id': 'flutter', 'token_count': 1196}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flutter code sample for [CupertinoPicker]. import 'package:flutter/cupertino.dart'; const double _kItemExtent = 32.0; const List<String> _fruitNames = <String>[ 'Apple', 'Mango', 'Banana', 'Orange', 'Pineapple', 'Strawberry', ]; void main() => runApp(const CupertinoPickerApp()); class CupertinoPickerApp extends StatelessWidget { const CupertinoPickerApp({super.key}); @override Widget build(BuildContext context) { return const CupertinoApp( theme: CupertinoThemeData(brightness: Brightness.light), home: CupertinoPickerExample(), ); } } class CupertinoPickerExample extends StatefulWidget { const CupertinoPickerExample({super.key}); @override State<CupertinoPickerExample> createState() => _CupertinoPickerExampleState(); } class _CupertinoPickerExampleState extends State<CupertinoPickerExample> { int _selectedFruit = 0; // This shows a CupertinoModalPopup with a reasonable fixed height which hosts CupertinoPicker. void _showDialog(Widget child) { showCupertinoModalPopup<void>( context: context, builder: (BuildContext context) => Container( height: 216, padding: const EdgeInsets.only(top: 6.0), // The Bottom margin is provided to align the popup above the system navigation bar. margin: EdgeInsets.only( bottom: MediaQuery.of(context).viewInsets.bottom, ), // Provide a background color for the popup. color: CupertinoColors.systemBackground.resolveFrom(context), // Use a SafeArea widget to avoid system overlaps. child: SafeArea( top: false, child: child, ), ), ); } @override Widget build(BuildContext context) { return CupertinoPageScaffold( navigationBar: const CupertinoNavigationBar( middle: Text('CupertinoPicker Sample'), ), child: DefaultTextStyle( style: TextStyle( color: CupertinoColors.label.resolveFrom(context), fontSize: 22.0, ), child: Center( child: Row( mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[ const Text('Selected fruit: '), CupertinoButton( padding: EdgeInsets.zero, // Display a CupertinoPicker with list of fruits. onPressed: () => _showDialog( CupertinoPicker( magnification: 1.22, squeeze: 1.2, useMagnifier: true, itemExtent: _kItemExtent, // This sets the initial item. scrollController: FixedExtentScrollController( initialItem: _selectedFruit, ), // This is called when selected item is changed. onSelectedItemChanged: (int selectedItem) { setState(() { _selectedFruit = selectedItem; }); }, children: List<Widget>.generate(_fruitNames.length, (int index) { return Center(child: Text(_fruitNames[index])); }), ), ), // This displays the selected fruit name. child: Text( _fruitNames[_selectedFruit], style: const TextStyle( fontSize: 22.0, ), ), ), ], ), ), ), ); } }
flutter/examples/api/lib/cupertino/picker/cupertino_picker.0.dart/0
{'file_path': 'flutter/examples/api/lib/cupertino/picker/cupertino_picker.0.dart', 'repo_id': 'flutter', 'token_count': 1758}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flutter code sample for [PointerSignalResolver]. import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { const MyApp({super.key}); static const String _title = 'Flutter Code Sample'; @override Widget build(BuildContext context) { return const MaterialApp( title: _title, home: MyStatefulWidget(), ); } } class ColorChanger extends StatefulWidget { const ColorChanger({ super.key, required this.initialColor, required this.useResolver, this.child, }); final HSVColor initialColor; final bool useResolver; final Widget? child; @override State<ColorChanger> createState() => _ColorChangerState(); } class _ColorChangerState extends State<ColorChanger> { late HSVColor color; void rotateColor() { setState(() { color = color.withHue((color.hue + 3) % 360.0); }); } @override void initState() { super.initState(); color = widget.initialColor; } @override Widget build(BuildContext context) { return DecoratedBox( decoration: BoxDecoration( border: const Border.fromBorderSide(BorderSide()), color: color.toColor(), ), child: Listener( onPointerSignal: (PointerSignalEvent event) { if (widget.useResolver) { GestureBinding.instance.pointerSignalResolver.register(event, (PointerSignalEvent event) { rotateColor(); }); } else { rotateColor(); } }, child: Stack( fit: StackFit.expand, children: <Widget>[ const AbsorbPointer(), if (widget.child != null) widget.child!, ], ), ), ); } } class MyStatefulWidget extends StatefulWidget { const MyStatefulWidget({super.key}); @override State<MyStatefulWidget> createState() => _MyStatefulWidgetState(); } class _MyStatefulWidgetState extends State<MyStatefulWidget> { bool useResolver = false; @override Widget build(BuildContext context) { return Material( child: Stack( fit: StackFit.expand, children: <Widget>[ ColorChanger( initialColor: const HSVColor.fromAHSV(0.2, 120.0, 1, 1), useResolver: useResolver, child: FractionallySizedBox( widthFactor: 0.5, heightFactor: 0.5, child: ColorChanger( initialColor: const HSVColor.fromAHSV(1, 60.0, 1, 1), useResolver: useResolver, ), ), ), Align( alignment: Alignment.topLeft, child: Row( children: <Widget>[ Switch( value: useResolver, onChanged: (bool value) { setState(() { useResolver = value; }); }, ), const Text( 'Use the PointerSignalResolver?', style: TextStyle(fontWeight: FontWeight.bold), ), ], ), ), ], ), ); } }
flutter/examples/api/lib/gestures/pointer_signal_resolver/pointer_signal_resolver.0.dart/0
{'file_path': 'flutter/examples/api/lib/gestures/pointer_signal_resolver/pointer_signal_resolver.0.dart', 'repo_id': 'flutter', 'token_count': 1602}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flutter code sample for [BottomAppBar]. import 'package:flutter/material.dart'; void main() { runApp(const BottomAppBarDemo()); } class BottomAppBarDemo extends StatefulWidget { const BottomAppBarDemo({super.key}); @override State createState() => _BottomAppBarDemoState(); } class _BottomAppBarDemoState extends State<BottomAppBarDemo> { bool _showFab = true; bool _showNotch = true; FloatingActionButtonLocation _fabLocation = FloatingActionButtonLocation.endDocked; void _onShowNotchChanged(bool value) { setState(() { _showNotch = value; }); } void _onShowFabChanged(bool value) { setState(() { _showFab = value; }); } void _onFabLocationChanged(FloatingActionButtonLocation? value) { setState(() { _fabLocation = value ?? FloatingActionButtonLocation.endDocked; }); } @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( appBar: AppBar( automaticallyImplyLeading: false, title: const Text('Bottom App Bar Demo'), ), body: ListView( padding: const EdgeInsets.only(bottom: 88), children: <Widget>[ SwitchListTile( title: const Text( 'Floating Action Button', ), value: _showFab, onChanged: _onShowFabChanged, ), SwitchListTile( title: const Text('Notch'), value: _showNotch, onChanged: _onShowNotchChanged, ), const Padding( padding: EdgeInsets.all(16), child: Text('Floating action button position'), ), RadioListTile<FloatingActionButtonLocation>( title: const Text('Docked - End'), value: FloatingActionButtonLocation.endDocked, groupValue: _fabLocation, onChanged: _onFabLocationChanged, ), RadioListTile<FloatingActionButtonLocation>( title: const Text('Docked - Center'), value: FloatingActionButtonLocation.centerDocked, groupValue: _fabLocation, onChanged: _onFabLocationChanged, ), RadioListTile<FloatingActionButtonLocation>( title: const Text('Floating - End'), value: FloatingActionButtonLocation.endFloat, groupValue: _fabLocation, onChanged: _onFabLocationChanged, ), RadioListTile<FloatingActionButtonLocation>( title: const Text('Floating - Center'), value: FloatingActionButtonLocation.centerFloat, groupValue: _fabLocation, onChanged: _onFabLocationChanged, ), ], ), floatingActionButton: _showFab ? FloatingActionButton( onPressed: () {}, tooltip: 'Create', child: const Icon(Icons.add), ) : null, floatingActionButtonLocation: _fabLocation, bottomNavigationBar: _DemoBottomAppBar( fabLocation: _fabLocation, shape: _showNotch ? const CircularNotchedRectangle() : null, ), ), ); } } class _DemoBottomAppBar extends StatelessWidget { const _DemoBottomAppBar({ this.fabLocation = FloatingActionButtonLocation.endDocked, this.shape = const CircularNotchedRectangle(), }); final FloatingActionButtonLocation fabLocation; final NotchedShape? shape; static final List<FloatingActionButtonLocation> centerLocations = <FloatingActionButtonLocation>[ FloatingActionButtonLocation.centerDocked, FloatingActionButtonLocation.centerFloat, ]; @override Widget build(BuildContext context) { return BottomAppBar( shape: shape, color: Colors.blue, child: IconTheme( data: IconThemeData(color: Theme.of(context).colorScheme.onPrimary), child: Row( children: <Widget>[ IconButton( tooltip: 'Open navigation menu', icon: const Icon(Icons.menu), onPressed: () {}, ), if (centerLocations.contains(fabLocation)) const Spacer(), IconButton( tooltip: 'Search', icon: const Icon(Icons.search), onPressed: () {}, ), IconButton( tooltip: 'Favorite', icon: const Icon(Icons.favorite), onPressed: () {}, ), ], ), ), ); } }
flutter/examples/api/lib/material/bottom_app_bar/bottom_app_bar.1.dart/0
{'file_path': 'flutter/examples/api/lib/material/bottom_app_bar/bottom_app_bar.1.dart', 'repo_id': 'flutter', 'token_count': 2155}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flutter code sample for custom labeled checkbox. import 'package:flutter/material.dart'; void main() => runApp(const LabeledCheckboxApp()); class LabeledCheckboxApp extends StatelessWidget { const LabeledCheckboxApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( theme: ThemeData(useMaterial3: true), home: const LabeledCheckboxExample(), ); } } class LabeledCheckbox extends StatelessWidget { const LabeledCheckbox({ super.key, required this.label, required this.padding, required this.value, required this.onChanged, }); final String label; final EdgeInsets padding; final bool value; final ValueChanged<bool> onChanged; @override Widget build(BuildContext context) { return InkWell( onTap: () { onChanged(!value); }, child: Padding( padding: padding, child: Row( children: <Widget>[ Expanded(child: Text(label)), Checkbox( value: value, onChanged: (bool? newValue) { onChanged(newValue!); }, ), ], ), ), ); } } class LabeledCheckboxExample extends StatefulWidget { const LabeledCheckboxExample({super.key}); @override State<LabeledCheckboxExample> createState() => _LabeledCheckboxExampleState(); } class _LabeledCheckboxExampleState extends State<LabeledCheckboxExample> { bool _isSelected = false; @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: const Text('Custom Labeled Checkbox Sample')), body: Center( child: LabeledCheckbox( label: 'This is the label text', padding: const EdgeInsets.symmetric(horizontal: 20.0), value: _isSelected, onChanged: (bool newValue) { setState(() { _isSelected = newValue; }); }, ), ), ); } }
flutter/examples/api/lib/material/checkbox_list_tile/custom_labeled_checkbox.1.dart/0
{'file_path': 'flutter/examples/api/lib/material/checkbox_list_tile/custom_labeled_checkbox.1.dart', 'repo_id': 'flutter', 'token_count': 879}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flutter code sample for [FlexibleSpaceBar]. import 'package:flutter/material.dart'; void main() => runApp(const MaterialApp(home: MyApp())); class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return Scaffold( body: CustomScrollView( physics: const BouncingScrollPhysics( parent: AlwaysScrollableScrollPhysics()), slivers: <Widget>[ SliverAppBar( stretch: true, onStretchTrigger: () { // Function callback for stretch return Future<void>.value(); }, expandedHeight: 300.0, flexibleSpace: FlexibleSpaceBar( stretchModes: const <StretchMode>[ StretchMode.zoomBackground, StretchMode.blurBackground, StretchMode.fadeTitle, ], centerTitle: true, title: const Text('Flight Report'), background: Stack( fit: StackFit.expand, children: <Widget>[ Image.network( 'https://flutter.github.io/assets-for-api-docs/assets/widgets/owl-2.jpg', fit: BoxFit.cover, ), const DecoratedBox( decoration: BoxDecoration( gradient: LinearGradient( begin: Alignment(0.0, 0.5), end: Alignment.center, colors: <Color>[ Color(0x60000000), Color(0x00000000), ], ), ), ), ], ), ), ), SliverList( delegate: SliverChildListDelegate( const <Widget>[ ListTile( leading: Icon(Icons.wb_sunny), title: Text('Sunday'), subtitle: Text('sunny, h: 80, l: 65'), ), ListTile( leading: Icon(Icons.wb_sunny), title: Text('Monday'), subtitle: Text('sunny, h: 80, l: 65'), ), // ListTiles++ ], ), ), ], ), ); } }
flutter/examples/api/lib/material/flexible_space_bar/flexible_space_bar.0.dart/0
{'file_path': 'flutter/examples/api/lib/material/flexible_space_bar/flexible_space_bar.0.dart', 'repo_id': 'flutter', 'token_count': 1437}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flutter code sample for [ListTile]. import 'package:flutter/material.dart'; void main() => runApp(const ListTileApp()); class ListTileApp extends StatelessWidget { const ListTileApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( theme: ThemeData(colorSchemeSeed: const Color(0xff6750a4), useMaterial3: true), home: const ListTileExample(), ); } } class ListTileExample extends StatefulWidget { const ListTileExample({super.key}); @override State<ListTileExample> createState() => _ListTileExampleState(); } class _ListTileExampleState extends State<ListTileExample> { bool _selected = false; bool _enabled = true; @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: const Text('ListTile Sample')), body: Center( child: ListTile( enabled: _enabled, selected: _selected, onTap: () { setState(() { // This is called when the user toggles the switch. _selected = !_selected; }); }, // This sets text color and icon color to red when list tile is disabled and // green when list tile is selected, otherwise sets it to black. iconColor: MaterialStateColor.resolveWith((Set<MaterialState> states) { if (states.contains(MaterialState.disabled)) { return Colors.red; } if (states.contains(MaterialState.selected)) { return Colors.green; } return Colors.black; }), // This sets text color and icon color to red when list tile is disabled and // green when list tile is selected, otherwise sets it to black. textColor: MaterialStateColor.resolveWith((Set<MaterialState> states) { if (states.contains(MaterialState.disabled)) { return Colors.red; } if (states.contains(MaterialState.selected)) { return Colors.green; } return Colors.black; }), leading: const Icon(Icons.person), title: const Text('Headline'), subtitle: Text('Enabled: $_enabled, Selected: $_selected'), trailing: Switch( onChanged: (bool? value) { // This is called when the user toggles the switch. setState(() { _enabled = value!; }); }, value: _enabled, ), ), ), ); } }
flutter/examples/api/lib/material/list_tile/list_tile.3.dart/0
{'file_path': 'flutter/examples/api/lib/material/list_tile/list_tile.3.dart', 'repo_id': 'flutter', 'token_count': 1155}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flutter code sample for [NavigationDrawer] . // Builds an adaptive navigation widget layout. When the screen width is less than // 450, A [NavigationBar] will be displayed. Otherwise, a [NavigationRail] will be // displayed on the left side, and also a button to open the [NavigationDrawer]. // All of these navigation widgets are built from an indentical list of data. import 'package:flutter/material.dart'; class ExampleDestination { const ExampleDestination(this.label, this.icon, this.selectedIcon); final String label; final Widget icon; final Widget selectedIcon; } const List<ExampleDestination> destinations = <ExampleDestination>[ ExampleDestination('page 0', Icon(Icons.widgets_outlined), Icon(Icons.widgets)), ExampleDestination('page 1', Icon(Icons.format_paint_outlined), Icon(Icons.format_paint)), ExampleDestination('page 2', Icon(Icons.text_snippet_outlined), Icon(Icons.text_snippet)), ExampleDestination('page 3', Icon(Icons.invert_colors_on_outlined), Icon(Icons.opacity)), ]; void main() { runApp( MaterialApp( title: 'NavigationDrawer Example', debugShowCheckedModeBanner: false, theme: ThemeData(useMaterial3: true), home: const NavigationDrawerExample(), ), ); } class NavigationDrawerExample extends StatefulWidget { const NavigationDrawerExample({super.key}); @override State<NavigationDrawerExample> createState() => _NavigationDrawerExampleState(); } class _NavigationDrawerExampleState extends State<NavigationDrawerExample> { final GlobalKey<ScaffoldState> scaffoldKey = GlobalKey<ScaffoldState>(); int screenIndex = 0; late bool showNavigationDrawer; void handleScreenChanged(int selectedScreen) { setState(() { screenIndex = selectedScreen; }); } void openDrawer() { scaffoldKey.currentState!.openEndDrawer(); } Widget buildBottomBarScaffold(){ return Scaffold( body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: <Widget>[ Text('Page Index = $screenIndex'), ], ), ), bottomNavigationBar: NavigationBar( selectedIndex: screenIndex, onDestinationSelected: (int index) { setState(() { screenIndex = index; }); }, destinations: destinations .map((ExampleDestination destination) { return NavigationDestination( label: destination.label, icon: destination.icon, selectedIcon: destination.selectedIcon, tooltip: destination.label, ); }) .toList(), ), ); } Widget buildDrawerScaffold(BuildContext context){ return Scaffold( key: scaffoldKey, body: SafeArea( bottom: false, top: false, child: Row( children: <Widget>[ Padding( padding: const EdgeInsets.symmetric(horizontal: 5), child: NavigationRail( minWidth: 50, destinations: destinations .map((ExampleDestination destination) { return NavigationRailDestination( label: Text(destination.label), icon: destination.icon, selectedIcon: destination.selectedIcon, ); }) .toList(), selectedIndex: screenIndex, useIndicator: true, onDestinationSelected: (int index) { setState(() { screenIndex = index; }); }, ), ), const VerticalDivider(thickness: 1, width: 1), Expanded( child: Column( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: <Widget>[ Text('Page Index = $screenIndex'), ElevatedButton( onPressed: openDrawer, child: const Text('Open Drawer'), ), ], ), ), ], ), ), endDrawer: NavigationDrawer( onDestinationSelected: handleScreenChanged, selectedIndex: screenIndex, children: <Widget>[ Padding( padding: const EdgeInsets.fromLTRB(28, 16, 16, 10), child: Text( 'Header', style: Theme.of(context).textTheme.titleSmall, ), ), ...destinations .map((ExampleDestination destination) { return NavigationDrawerDestination( label: Text(destination.label), icon: destination.icon, selectedIcon: destination.selectedIcon, ); }), const Padding( padding: EdgeInsets.fromLTRB(28, 16, 28, 10), child: Divider(), ), ], ), ); } @override void didChangeDependencies() { super.didChangeDependencies(); showNavigationDrawer = MediaQuery.of(context).size.width >= 450; } @override Widget build(BuildContext context) { return showNavigationDrawer ? buildDrawerScaffold(context) : buildBottomBarScaffold(); } }
flutter/examples/api/lib/material/navigation_drawer/navigation_drawer.0.dart/0
{'file_path': 'flutter/examples/api/lib/material/navigation_drawer/navigation_drawer.0.dart', 'repo_id': 'flutter', 'token_count': 2475}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flutter code sample for [RadioListTile]. import 'package:flutter/material.dart'; void main() => runApp(const RadioListTileApp()); class RadioListTileApp extends StatelessWidget { const RadioListTileApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( theme: ThemeData(useMaterial3: true), home: Scaffold( appBar: AppBar(title: const Text('RadioListTile Sample')), body: const RadioListTileExample(), ), ); } } enum SingingCharacter { lafayette, jefferson } class RadioListTileExample extends StatefulWidget { const RadioListTileExample({super.key}); @override State<RadioListTileExample> createState() => _RadioListTileExampleState(); } class _RadioListTileExampleState extends State<RadioListTileExample> { SingingCharacter? _character = SingingCharacter.lafayette; @override Widget build(BuildContext context) { return Column( children: <Widget>[ RadioListTile<SingingCharacter>( title: const Text('Lafayette'), value: SingingCharacter.lafayette, groupValue: _character, onChanged: (SingingCharacter? value) { setState(() { _character = value; }); }, ), RadioListTile<SingingCharacter>( title: const Text('Thomas Jefferson'), value: SingingCharacter.jefferson, groupValue: _character, onChanged: (SingingCharacter? value) { setState(() { _character = value; }); }, ), ], ); } }
flutter/examples/api/lib/material/radio_list_tile/radio_list_tile.0.dart/0
{'file_path': 'flutter/examples/api/lib/material/radio_list_tile/radio_list_tile.0.dart', 'repo_id': 'flutter', 'token_count': 691}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flutter code sample for [Scaffold.of]. import 'package:flutter/material.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { const MyApp({super.key}); static const String _title = 'Flutter Code Sample'; @override Widget build(BuildContext context) { return const MaterialApp( title: _title, home: MyStatelessWidget(), ); } } class MyStatelessWidget extends StatelessWidget { const MyStatelessWidget({super.key}); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: const Text('Demo')), body: Builder( // Create an inner BuildContext so that the onPressed methods // can refer to the Scaffold with Scaffold.of(). builder: (BuildContext context) { return Center( child: ElevatedButton( child: const Text('SHOW BOTTOM SHEET'), onPressed: () { Scaffold.of(context).showBottomSheet<void>( (BuildContext context) { return Container( alignment: Alignment.center, height: 200, color: Colors.amber, child: Center( child: Column( mainAxisSize: MainAxisSize.min, children: <Widget>[ const Text('BottomSheet'), ElevatedButton( child: const Text('Close BottomSheet'), onPressed: () { Navigator.pop(context); }, ), ], ), ), ); }, ); }, ), ); }, ), ); } }
flutter/examples/api/lib/material/scaffold/scaffold.of.1.dart/0
{'file_path': 'flutter/examples/api/lib/material/scaffold/scaffold.of.1.dart', 'repo_id': 'flutter', 'token_count': 1117}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flutter code sample for [Slider]. import 'package:flutter/material.dart'; void main() => runApp(const SliderApp()); class SliderApp extends StatelessWidget { const SliderApp({super.key}); @override Widget build(BuildContext context) { return const MaterialApp( home: SliderExample(), ); } } class SliderExample extends StatefulWidget { const SliderExample({super.key}); @override State<SliderExample> createState() => _SliderExampleState(); } class _SliderExampleState extends State<SliderExample> { double _currentSliderValue = 20; @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: const Text('Slider')), body: Slider( value: _currentSliderValue, max: 100, divisions: 5, label: _currentSliderValue.round().toString(), onChanged: (double value) { setState(() { _currentSliderValue = value; }); }, ), ); } }
flutter/examples/api/lib/material/slider/slider.0.dart/0
{'file_path': 'flutter/examples/api/lib/material/slider/slider.0.dart', 'repo_id': 'flutter', 'token_count': 430}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flutter code sample for [TabController]. import 'package:flutter/material.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { const MyApp({super.key}); static const String _title = 'Flutter Code Sample'; @override Widget build(BuildContext context) { return const MaterialApp( title: _title, home: MyStatelessWidget(), ); } } const List<Tab> tabs = <Tab>[ Tab(text: 'Zeroth'), Tab(text: 'First'), Tab(text: 'Second'), ]; class MyStatelessWidget extends StatelessWidget { const MyStatelessWidget({super.key}); @override Widget build(BuildContext context) { return DefaultTabController( length: tabs.length, // The Builder widget is used to have a different BuildContext to access // closest DefaultTabController. child: Builder(builder: (BuildContext context) { final TabController tabController = DefaultTabController.of(context); tabController.addListener(() { if (!tabController.indexIsChanging) { // Your code goes here. // To get index of current tab use tabController.index } }); return Scaffold( appBar: AppBar( bottom: const TabBar( tabs: tabs, ), ), body: TabBarView( children: tabs.map((Tab tab) { return Center( child: Text( '${tab.text!} Tab', style: Theme.of(context).textTheme.headlineSmall, ), ); }).toList(), ), ); }), ); } }
flutter/examples/api/lib/material/tab_controller/tab_controller.1.dart/0
{'file_path': 'flutter/examples/api/lib/material/tab_controller/tab_controller.1.dart', 'repo_id': 'flutter', 'token_count': 758}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flutter code sample for [LinearGradient]. import 'package:flutter/material.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return const MaterialApp(home: MoodyGradient()); } } class MoodyGradient extends StatelessWidget { const MoodyGradient({super.key}); @override Widget build(BuildContext context) { return Material( child: Container( decoration: const BoxDecoration( gradient: LinearGradient( begin: Alignment.topLeft, end: Alignment(0.8, 1), colors: <Color>[ Color(0xff1f005c), Color(0xff5b0060), Color(0xff870160), Color(0xffac255e), Color(0xffca485c), Color(0xffe16b5c), Color(0xfff39060), Color(0xffffb56b), ], // Gradient from https://learnui.design/tools/gradient-generator.html tileMode: TileMode.mirror, ), ), child: const Center( child: Text( 'From Night to Day', style: TextStyle(fontSize: 24, color: Colors.white), ), ), ), ); } }
flutter/examples/api/lib/painting/gradient/linear_gradient.0.dart/0
{'file_path': 'flutter/examples/api/lib/painting/gradient/linear_gradient.0.dart', 'repo_id': 'flutter', 'token_count': 648}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flutter code sample for [AnimatedSwitcher]. import 'package:flutter/material.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { const MyApp({super.key}); static const String _title = 'Flutter Code Sample'; @override Widget build(BuildContext context) { return const MaterialApp( title: _title, home: MyStatefulWidget(), ); } } class MyStatefulWidget extends StatefulWidget { const MyStatefulWidget({super.key}); @override State<MyStatefulWidget> createState() => _MyStatefulWidgetState(); } class _MyStatefulWidgetState extends State<MyStatefulWidget> { int _count = 0; @override Widget build(BuildContext context) { return ColoredBox( color: Colors.white, child: Column( mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[ AnimatedSwitcher( duration: const Duration(milliseconds: 500), transitionBuilder: (Widget child, Animation<double> animation) { return ScaleTransition(scale: animation, child: child); }, child: Text( '$_count', // This key causes the AnimatedSwitcher to interpret this as a "new" // child each time the count changes, so that it will begin its animation // when the count changes. key: ValueKey<int>(_count), style: Theme.of(context).textTheme.headlineMedium, ), ), ElevatedButton( child: const Text('Increment'), onPressed: () { setState(() { _count += 1; }); }, ), ], ), ); } }
flutter/examples/api/lib/widgets/animated_switcher/animated_switcher.0.dart/0
{'file_path': 'flutter/examples/api/lib/widgets/animated_switcher/animated_switcher.0.dart', 'repo_id': 'flutter', 'token_count': 785}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flutter code sample for [Expanded]. import 'package:flutter/material.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { const MyApp({super.key}); static const String _title = 'Flutter Code Sample'; @override Widget build(BuildContext context) { return const MaterialApp( title: _title, home: MyStatelessWidget(), ); } } class MyStatelessWidget extends StatelessWidget { const MyStatelessWidget({super.key}); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text('Expanded Column Sample'), ), body: Center( child: Column( children: <Widget>[ Container( color: Colors.blue, height: 100, width: 100, ), Expanded( child: Container( color: Colors.amber, width: 100, ), ), Container( color: Colors.blue, height: 100, width: 100, ), ], ), ), ); } }
flutter/examples/api/lib/widgets/basic/expanded.0.dart/0
{'file_path': 'flutter/examples/api/lib/widgets/basic/expanded.0.dart', 'repo_id': 'flutter', 'token_count': 602}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flutter code sample for [Draggable]. import 'package:flutter/material.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { const MyApp({super.key}); static const String _title = 'Flutter Code Sample'; @override Widget build(BuildContext context) { return MaterialApp( title: _title, home: Scaffold( appBar: AppBar(title: const Text(_title)), body: const MyStatefulWidget(), ), ); } } class MyStatefulWidget extends StatefulWidget { const MyStatefulWidget({super.key}); @override State<MyStatefulWidget> createState() => _MyStatefulWidgetState(); } class _MyStatefulWidgetState extends State<MyStatefulWidget> { int acceptedData = 0; @override Widget build(BuildContext context) { return Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: <Widget>[ Draggable<int>( // Data is the value this Draggable stores. data: 10, feedback: Container( color: Colors.deepOrange, height: 100, width: 100, child: const Icon(Icons.directions_run), ), childWhenDragging: Container( height: 100.0, width: 100.0, color: Colors.pinkAccent, child: const Center( child: Text('Child When Dragging'), ), ), child: Container( height: 100.0, width: 100.0, color: Colors.lightGreenAccent, child: const Center( child: Text('Draggable'), ), ), ), DragTarget<int>( builder: ( BuildContext context, List<dynamic> accepted, List<dynamic> rejected, ) { return Container( height: 100.0, width: 100.0, color: Colors.cyan, child: Center( child: Text('Value is updated to: $acceptedData'), ), ); }, onAccept: (int data) { setState(() { acceptedData += data; }); }, ), ], ); } }
flutter/examples/api/lib/widgets/drag_target/draggable.0.dart/0
{'file_path': 'flutter/examples/api/lib/widgets/drag_target/draggable.0.dart', 'repo_id': 'flutter', 'token_count': 1139}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flutter code sample for [InheritedNotifier]. import 'dart:math' as math; import 'package:flutter/material.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { const MyApp({super.key}); static const String _title = 'Flutter Code Sample'; @override Widget build(BuildContext context) { return const MaterialApp( title: _title, home: MyStatefulWidget(), ); } } class SpinModel extends InheritedNotifier<AnimationController> { const SpinModel({ super.key, super.notifier, required super.child, }); static double of(BuildContext context) { return context .dependOnInheritedWidgetOfExactType<SpinModel>()! .notifier! .value; } } class Spinner extends StatelessWidget { const Spinner({super.key}); @override Widget build(BuildContext context) { return Transform.rotate( angle: SpinModel.of(context) * 2.0 * math.pi, child: Container( width: 100, height: 100, color: Colors.green, child: const Center( child: Text('Whee!'), ), ), ); } } class MyStatefulWidget extends StatefulWidget { const MyStatefulWidget({super.key}); @override State<MyStatefulWidget> createState() => _MyStatefulWidgetState(); } /// [AnimationController]s can be created with `vsync: this` because of /// [TickerProviderStateMixin]. class _MyStatefulWidgetState extends State<MyStatefulWidget> with TickerProviderStateMixin { late AnimationController _controller; @override void initState() { super.initState(); _controller = AnimationController( duration: const Duration(seconds: 10), vsync: this, )..repeat(); } @override void dispose() { _controller.dispose(); super.dispose(); } @override Widget build(BuildContext context) { return SpinModel( notifier: _controller, child: const Row( mainAxisAlignment: MainAxisAlignment.spaceAround, children: <Widget>[ Spinner(), Spinner(), Spinner(), ], ), ); } }
flutter/examples/api/lib/widgets/inherited_notifier/inherited_notifier.0.dart/0
{'file_path': 'flutter/examples/api/lib/widgets/inherited_notifier/inherited_notifier.0.dart', 'repo_id': 'flutter', 'token_count': 850}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flutter code sample for [RestorableRouteFuture]. import 'package:flutter/material.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( restorationScopeId: 'app', home: Scaffold( appBar: AppBar(title: const Text('RestorableRouteFuture Example')), body: const MyHome(), ), ); } } class MyHome extends StatefulWidget { const MyHome({super.key}); @override State<MyHome> createState() => _MyHomeState(); } class _MyHomeState extends State<MyHome> with RestorationMixin { final RestorableInt _lastCount = RestorableInt(0); late RestorableRouteFuture<int> _counterRoute; @override String get restorationId => 'home'; @override void initState() { super.initState(); _counterRoute = RestorableRouteFuture<int>( onPresent: (NavigatorState navigator, Object? arguments) { // Defines what route should be shown (and how it should be added // to the navigator) when `RestorableRouteFuture.present` is called. return navigator.restorablePush( _counterRouteBuilder, arguments: arguments, ); }, onComplete: (int count) { // Defines what should happen with the return value when the route // completes. setState(() { _lastCount.value = count; }); }); } @override void restoreState(RestorationBucket? oldBucket, bool initialRestore) { // Register the `RestorableRouteFuture` with the state restoration framework. registerForRestoration(_counterRoute, 'route'); registerForRestoration(_lastCount, 'count'); } @override void dispose() { super.dispose(); _lastCount.dispose(); _counterRoute.dispose(); } // A static `RestorableRouteBuilder` that can re-create the route during // state restoration. @pragma('vm:entry-point') static Route<int> _counterRouteBuilder( BuildContext context, Object? arguments) { return MaterialPageRoute<int>( builder: (BuildContext context) => MyCounter( title: arguments!.toString(), ), ); } @override Widget build(BuildContext context) { return Center( child: Column( mainAxisSize: MainAxisSize.min, children: <Widget>[ Text('Last count: ${_lastCount.value}'), ElevatedButton( onPressed: () { // Show the route defined by the `RestorableRouteFuture`. _counterRoute.present('Awesome Counter'); }, child: const Text('Open Counter'), ), ], ), ); } } // Widget for the route pushed by the `RestorableRouteFuture`. class MyCounter extends StatefulWidget { const MyCounter({super.key, required this.title}); final String title; @override State<MyCounter> createState() => _MyCounterState(); } class _MyCounterState extends State<MyCounter> with RestorationMixin { final RestorableInt _count = RestorableInt(0); @override String get restorationId => 'counter'; @override void restoreState(RestorationBucket? oldBucket, bool initialRestore) { registerForRestoration(_count, 'count'); } @override void dispose() { super.dispose(); _count.dispose(); } @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text(widget.title), leading: BackButton( onPressed: () { // Return the current count of the counter from this route. Navigator.of(context).pop(_count.value); }, ), ), body: Center( child: Text('Count: ${_count.value}'), ), floatingActionButton: FloatingActionButton( child: const Icon(Icons.add), onPressed: () { setState(() { _count.value++; }); }, ), ); } }
flutter/examples/api/lib/widgets/navigator/restorable_route_future.0.dart/0
{'file_path': 'flutter/examples/api/lib/widgets/navigator/restorable_route_future.0.dart', 'repo_id': 'flutter', 'token_count': 1539}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flutter code sample for [showGeneralDialog]. import 'package:flutter/material.dart'; void main() => runApp(const GeneralDialogApp()); class GeneralDialogApp extends StatelessWidget { const GeneralDialogApp({super.key}); @override Widget build(BuildContext context) { return const MaterialApp( restorationScopeId: 'app', home: GeneralDialogExample(), ); } } class GeneralDialogExample extends StatelessWidget { const GeneralDialogExample({super.key}); @override Widget build(BuildContext context) { return Scaffold( body: Center( child: OutlinedButton( onPressed: () { /// This shows an alert dialog. Navigator.of(context).restorablePush(_dialogBuilder); }, child: const Text('Open Dialog'), ), ), ); } @pragma('vm:entry-point') static Route<Object?> _dialogBuilder( BuildContext context, Object? arguments) { return RawDialogRoute<void>( pageBuilder: ( BuildContext context, Animation<double> animation, Animation<double> secondaryAnimation, ) { return const AlertDialog(title: Text('Alert!')); }, ); } }
flutter/examples/api/lib/widgets/routes/show_general_dialog.0.dart/0
{'file_path': 'flutter/examples/api/lib/widgets/routes/show_general_dialog.0.dart', 'repo_id': 'flutter', 'token_count': 500}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flutter code sample for [SingleChildScrollView]. import 'package:flutter/material.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { const MyApp({super.key}); static const String _title = 'Flutter Code Sample'; @override Widget build(BuildContext context) { return const MaterialApp( title: _title, home: MyStatelessWidget(), ); } } class MyStatelessWidget extends StatelessWidget { const MyStatelessWidget({super.key}); @override Widget build(BuildContext context) { return DefaultTextStyle( style: Theme.of(context).textTheme.bodyMedium!, child: LayoutBuilder( builder: (BuildContext context, BoxConstraints viewportConstraints) { return SingleChildScrollView( child: ConstrainedBox( constraints: BoxConstraints( minHeight: viewportConstraints.maxHeight, ), child: Column( mainAxisSize: MainAxisSize.min, mainAxisAlignment: MainAxisAlignment.spaceAround, children: <Widget>[ Container( // A fixed-height child. color: const Color(0xffeeee00), // Yellow height: 120.0, alignment: Alignment.center, child: const Text('Fixed Height Content'), ), Container( // Another fixed-height child. color: const Color(0xff008000), // Green height: 120.0, alignment: Alignment.center, child: const Text('Fixed Height Content'), ), ], ), ), ); }, ), ); } }
flutter/examples/api/lib/widgets/single_child_scroll_view/single_child_scroll_view.0.dart/0
{'file_path': 'flutter/examples/api/lib/widgets/single_child_scroll_view/single_child_scroll_view.0.dart', 'repo_id': 'flutter', 'token_count': 921}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flutter code sample for [FadeTransition]. import 'package:flutter/material.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { const MyApp({super.key}); static const String _title = 'Flutter Code Sample'; @override Widget build(BuildContext context) { return const MaterialApp( title: _title, home: MyStatefulWidget(), ); } } class MyStatefulWidget extends StatefulWidget { const MyStatefulWidget({super.key}); @override State<MyStatefulWidget> createState() => _MyStatefulWidgetState(); } /// [AnimationController]s can be created with `vsync: this` because of /// [TickerProviderStateMixin]. class _MyStatefulWidgetState extends State<MyStatefulWidget> with TickerProviderStateMixin { late final AnimationController _controller = AnimationController( duration: const Duration(seconds: 2), vsync: this, )..repeat(reverse: true); late final Animation<double> _animation = CurvedAnimation( parent: _controller, curve: Curves.easeIn, ); @override void dispose() { _controller.dispose(); super.dispose(); } @override Widget build(BuildContext context) { return ColoredBox( color: Colors.white, child: FadeTransition( opacity: _animation, child: const Padding(padding: EdgeInsets.all(8), child: FlutterLogo()), ), ); } }
flutter/examples/api/lib/widgets/transitions/fade_transition.0.dart/0
{'file_path': 'flutter/examples/api/lib/widgets/transitions/fade_transition.0.dart', 'repo_id': 'flutter', 'token_count': 515}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'goldens_io.dart' if (dart.library.html) 'goldens_web.dart' as flutter_goldens; Future<void> testExecutable(FutureOr<void> Function() testMain) { // Enable golden file testing using Skia Gold. return flutter_goldens.testExecutable(testMain, namePrefix: 'api'); }
flutter/examples/api/test/flutter_test_config.dart/0
{'file_path': 'flutter/examples/api/test/flutter_test_config.dart', 'repo_id': 'flutter', 'token_count': 146}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/material.dart'; import 'package:flutter_api_samples/material/navigation_bar/navigation_bar.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Navigation bar updates destination on tap', (WidgetTester tester) async { await tester.pumpWidget( const example.NavigationBarApp(), ); final NavigationBar navigationBarWidget = tester.firstWidget(find.byType(NavigationBar)); /// NavigationDestinations must be rendered expect(find.text('Explore'), findsOneWidget); expect(find.text('Commute'), findsOneWidget); expect(find.text('Saved'), findsOneWidget); /// initial index must be zero expect(navigationBarWidget.selectedIndex, 0); /// switch to second tab await tester.tap(find.text('Commute')); await tester.pumpAndSettle(); expect(find.text('Page 2'), findsOneWidget); /// switch to third tab await tester.tap(find.text('Saved')); await tester.pumpAndSettle(); expect(find.text('Page 3'), findsOneWidget); }); }
flutter/examples/api/test/material/navigation_bar/navigation_bar.0_test.dart/0
{'file_path': 'flutter/examples/api/test/material/navigation_bar/navigation_bar.0_test.dart', 'repo_id': 'flutter', 'token_count': 411}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/material.dart'; import 'package:flutter_api_samples/material/refresh_indicator/refresh_indicator.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Trigger RefreshIndicator - Pull from top', (WidgetTester tester) async { await tester.pumpWidget( const example.MyApp(), ); await tester.fling(find.text('Item 1'), const Offset(0.0, 300.0), 1000.0); await tester.pump(); await tester.pump(const Duration(seconds: 1)); await tester.pump(const Duration(seconds: 1)); expect(tester.getCenter(find.byType(RefreshProgressIndicator)).dy, lessThan(300.0)); await tester.pumpAndSettle(); // Advance pending time }); testWidgets('Trigger RefreshIndicator - Button', (WidgetTester tester) async { await tester.pumpWidget( const example.MyApp(), ); await tester.tap(find.byType(FloatingActionButton)); await tester.pump(); await tester.pump(const Duration(seconds: 1)); await tester.pump(const Duration(seconds: 1)); expect(tester.getCenter(find.byType(RefreshProgressIndicator)).dy, lessThan(300.0)); await tester.pumpAndSettle(); // Advance pending time }); }
flutter/examples/api/test/material/refresh_indicator/refresh_indicator.0_test.dart/0
{'file_path': 'flutter/examples/api/test/material/refresh_indicator/refresh_indicator.0_test.dart', 'repo_id': 'flutter', 'token_count': 478}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter_api_samples/widgets/app/widgets_app.widgets_app.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('WidgetsApp test', (WidgetTester tester) async { await tester.pumpWidget( const example.MyApp(), ); expect(find.text('Hello World'), findsOneWidget); }); }
flutter/examples/api/test/widgets/app/widgets_app.widgets_app.0_test.dart/0
{'file_path': 'flutter/examples/api/test/widgets/app/widgets_app.widgets_app.0_test.dart', 'repo_id': 'flutter', 'token_count': 175}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This example shows how to show the text 'Hello, world.' using the underlying // render tree. import 'package:flutter/rendering.dart'; void main() { // We use RenderingFlutterBinding to attach the render tree to the window. RenderingFlutterBinding( // The root of our render tree is a RenderPositionedBox, which centers its // child both vertically and horizontally. root: RenderPositionedBox( // We use a RenderParagraph to display the text 'Hello, world.' without // any explicit styling. child: RenderParagraph( const TextSpan(text: 'Hello, world.'), // The text is in English so we specify the text direction as // left-to-right. If the text had been in Hebrew or Arabic, we would // have specified right-to-left. The Flutter framework does not assume a // particular text direction. textDirection: TextDirection.ltr, ), ), ).scheduleFrame(); }
flutter/examples/layers/rendering/hello_world.dart/0
{'file_path': 'flutter/examples/layers/rendering/hello_world.dart', 'repo_id': 'flutter', 'token_count': 351}
# Copyright 2014 The Flutter Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # For details regarding the *Flutter Fix* feature, see # https://flutter.dev/docs/development/tools/flutter-fix # Please add new fixes to the top of the file, separated by one blank line # from other fixes. In a comment, include a link to the PR where the change # requiring the fix was made. # Every fix must be tested. See the flutter/packages/flutter/test_fixes/README.md # file for instructions on testing these data driven fixes. # For documentation about this file format, see # https://dart.dev/go/data-driven-fixes. # * Fixes in this file are for ListWheelScrollView from the Widgets library. * # For fixes to # * Actions: fix_actions.yaml # * BuildContext: fix_build_context.yaml # * Element: fix_element.yaml # * Widgets (general): fix_widgets.yaml version: 1 transforms: # Changes made in https://flutter.dev/docs/release/breaking-changes/clip-behavior - title: "Migrate to 'clipBehavior'" date: 2020-08-20 element: uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ] constructor: 'useDelegate' inClass: 'ListWheelScrollView' oneOf: - if: "clipToSize == 'true'" changes: - kind: 'addParameter' index: 13 name: 'clipBehavior' style: optional_named argumentValue: expression: 'Clip.hardEdge' requiredIf: "clipToSize == 'true'" - kind: 'removeParameter' name: 'clipToSize' - if: "clipToSize == 'false'" changes: - kind: 'addParameter' index: 13 name: 'clipBehavior' style: optional_named argumentValue: expression: 'Clip.none' requiredIf: "clipToSize == 'false'" - kind: 'removeParameter' name: 'clipToSize' variables: clipToSize: kind: 'fragment' value: 'arguments[clipToSize]' # Changes made in https://flutter.dev/docs/release/breaking-changes/clip-behavior - title: "Migrate to 'clipBehavior'" date: 2020-08-20 element: uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ] field: 'clipToSize' inClass: 'ListWheelScrollView' changes: - kind: 'rename' newName: 'clipBehavior' # Changes made in https://flutter.dev/docs/release/breaking-changes/clip-behavior - title: "Migrate to 'clipBehavior'" date: 2020-08-20 element: uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ] constructor: '' inClass: 'ListWheelScrollView' oneOf: - if: "clipToSize == 'true'" changes: - kind: 'addParameter' index: 13 name: 'clipBehavior' style: optional_named argumentValue: expression: 'Clip.hardEdge' requiredIf: "clipToSize == 'true'" - kind: 'removeParameter' name: 'clipToSize' - if: "clipToSize == 'false'" changes: - kind: 'addParameter' index: 13 name: 'clipBehavior' style: optional_named argumentValue: expression: 'Clip.none' requiredIf: "clipToSize == 'false'" - kind: 'removeParameter' name: 'clipToSize' variables: clipToSize: kind: 'fragment' value: 'arguments[clipToSize]' # Before adding a new fix: read instructions at the top of this file.
flutter/packages/flutter/lib/fix_data/fix_widgets/fix_list_wheel_scroll_view.yaml/0
{'file_path': 'flutter/packages/flutter/lib/fix_data/fix_widgets/fix_list_wheel_scroll_view.yaml', 'repo_id': 'flutter', 'token_count': 1483}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // TODO(ianh): These should be on the Set and List classes themselves. /// Compares two sets for element-by-element equality. /// /// Returns true if the sets are both null, or if they are both non-null, have /// the same length, and contain the same members. Returns false otherwise. /// Order is not compared. /// /// If the elements are maps, lists, sets, or other collections/composite objects, /// then the contents of those elements are not compared element by element unless their /// equality operators ([Object.==]) do so. /// For checking deep equality, consider using [DeepCollectionEquality] class. /// /// See also: /// /// * [listEquals], which does something similar for lists. /// * [mapEquals], which does something similar for maps. bool setEquals<T>(Set<T>? a, Set<T>? b) { if (a == null) { return b == null; } if (b == null || a.length != b.length) { return false; } if (identical(a, b)) { return true; } for (final T value in a) { if (!b.contains(value)) { return false; } } return true; } /// Compares two lists for element-by-element equality. /// /// Returns true if the lists are both null, or if they are both non-null, have /// the same length, and contain the same members in the same order. Returns /// false otherwise. /// /// If the elements are maps, lists, sets, or other collections/composite objects, /// then the contents of those elements are not compared element by element unless their /// equality operators ([Object.==]) do so. /// For checking deep equality, consider using [DeepCollectionEquality] class. /// /// See also: /// /// * [setEquals], which does something similar for sets. /// * [mapEquals], which does something similar for maps. bool listEquals<T>(List<T>? a, List<T>? b) { if (a == null) { return b == null; } if (b == null || a.length != b.length) { return false; } if (identical(a, b)) { return true; } for (int index = 0; index < a.length; index += 1) { if (a[index] != b[index]) { return false; } } return true; } /// Compares two maps for element-by-element equality. /// /// Returns true if the maps are both null, or if they are both non-null, have /// the same length, and contain the same keys associated with the same values. /// Returns false otherwise. /// /// If the elements are maps, lists, sets, or other collections/composite objects, /// then the contents of those elements are not compared element by element unless their /// equality operators ([Object.==]) do so. /// For checking deep equality, consider using [DeepCollectionEquality] class. /// /// See also: /// /// * [setEquals], which does something similar for sets. /// * [listEquals], which does something similar for lists. bool mapEquals<T, U>(Map<T, U>? a, Map<T, U>? b) { if (a == null) { return b == null; } if (b == null || a.length != b.length) { return false; } if (identical(a, b)) { return true; } for (final T key in a.keys) { if (!b.containsKey(key) || b[key] != a[key]) { return false; } } return true; } /// Returns the position of `value` in the `sortedList`, if it exists. /// /// Returns `-1` if the `value` is not in the list. Requires the list items /// to implement [Comparable] and the `sortedList` to already be ordered. int binarySearch<T extends Comparable<Object>>(List<T> sortedList, T value) { int min = 0; int max = sortedList.length; while (min < max) { final int mid = min + ((max - min) >> 1); final T element = sortedList[mid]; final int comp = element.compareTo(value); if (comp == 0) { return mid; } if (comp < 0) { min = mid + 1; } else { max = mid; } } return -1; } /// Limit below which merge sort defaults to insertion sort. const int _kMergeSortLimit = 32; /// Sorts a list between `start` (inclusive) and `end` (exclusive) using the /// merge sort algorithm. /// /// If `compare` is omitted, this defaults to calling [Comparable.compareTo] on /// the objects. If any object is not [Comparable], this throws a [TypeError] /// (The stack trace may call it `_CastError` or `_TypeError`, but to catch it, /// use [TypeError]). /// /// Merge-sorting works by splitting the job into two parts, sorting each /// recursively, and then merging the two sorted parts. /// /// This takes on the order of `n * log(n)` comparisons and moves to sort `n` /// elements, but requires extra space of about the same size as the list being /// sorted. /// /// This merge sort is stable: Equal elements end up in the same order as they /// started in. /// /// For small lists (less than 32 elements), [mergeSort] automatically uses an /// insertion sort instead, as that is more efficient for small lists. The /// insertion sort is also stable. void mergeSort<T>( List<T> list, { int start = 0, int? end, int Function(T, T)? compare, }) { end ??= list.length; compare ??= _defaultCompare<T>(); final int length = end - start; if (length < 2) { return; } if (length < _kMergeSortLimit) { _insertionSort<T>(list, compare: compare, start: start, end: end); return; } // Special case the first split instead of directly calling _mergeSort, // because the _mergeSort requires its target to be different from its source, // and it requires extra space of the same size as the list to sort. This // split allows us to have only half as much extra space, and it ends up in // the original place. final int middle = start + ((end - start) >> 1); final int firstLength = middle - start; final int secondLength = end - middle; // secondLength is always the same as firstLength, or one greater. final List<T> scratchSpace = List<T>.filled(secondLength, list[start]); _mergeSort<T>(list, compare, middle, end, scratchSpace, 0); final int firstTarget = end - firstLength; _mergeSort<T>(list, compare, start, middle, list, firstTarget); _merge<T>(compare, list, firstTarget, end, scratchSpace, 0, secondLength, list, start); } /// Returns a [Comparator] that asserts that its first argument is comparable. Comparator<T> _defaultCompare<T>() { // If we specify Comparable<T> here, it fails if the type is an int, because // int isn't a subtype of comparable. Leaving out the type implicitly converts // it to a num, which is a comparable. return (T value1, T value2) => (value1 as Comparable<dynamic>).compareTo(value2); } /// Sort a list between `start` (inclusive) and `end` (exclusive) using /// insertion sort. /// /// If `compare` is omitted, this defaults to calling [Comparable.compareTo] on /// the objects. If any object is not [Comparable], this throws a [TypeError] /// (The stack trace may call it `_CastError` or `_TypeError`, but to catch it, /// use [TypeError]). /// /// Insertion sort is a simple sorting algorithm. For `n` elements it does on /// the order of `n * log(n)` comparisons but up to `n` squared moves. The /// sorting is performed in-place, without using extra memory. /// /// For short lists the many moves have less impact than the simple algorithm, /// and it is often the favored sorting algorithm for short lists. /// /// This insertion sort is stable: Equal elements end up in the same order as /// they started in. void _insertionSort<T>( List<T> list, { int Function(T, T)? compare, int start = 0, int? end, }) { // If the same method could have both positional and named optional // parameters, this should be (list, [start, end], {compare}). compare ??= _defaultCompare<T>(); end ??= list.length; for (int pos = start + 1; pos < end; pos++) { int min = start; int max = pos; final T element = list[pos]; while (min < max) { final int mid = min + ((max - min) >> 1); final int comparison = compare(element, list[mid]); if (comparison < 0) { max = mid; } else { min = mid + 1; } } list.setRange(min + 1, pos + 1, list, min); list[min] = element; } } /// Performs an insertion sort into a potentially different list than the one /// containing the original values. /// /// It will work in-place as well. void _movingInsertionSort<T>( List<T> list, int Function(T, T) compare, int start, int end, List<T> target, int targetOffset, ) { final int length = end - start; if (length == 0) { return; } target[targetOffset] = list[start]; for (int i = 1; i < length; i++) { final T element = list[start + i]; int min = targetOffset; int max = targetOffset + i; while (min < max) { final int mid = min + ((max - min) >> 1); if (compare(element, target[mid]) < 0) { max = mid; } else { min = mid + 1; } } target.setRange(min + 1, targetOffset + i + 1, target, min); target[min] = element; } } /// Sorts `list` from `start` to `end` into `target` at `targetOffset`. /// /// The `target` list must be able to contain the range from `start` to `end` /// after `targetOffset`. /// /// Allows target to be the same list as `list`, as long as it's not overlapping /// the `start..end` range. void _mergeSort<T>( List<T> list, int Function(T, T) compare, int start, int end, List<T> target, int targetOffset, ) { final int length = end - start; if (length < _kMergeSortLimit) { _movingInsertionSort<T>(list, compare, start, end, target, targetOffset); return; } final int middle = start + (length >> 1); final int firstLength = middle - start; final int secondLength = end - middle; // Here secondLength >= firstLength (differs by at most one). final int targetMiddle = targetOffset + firstLength; // Sort the second half into the end of the target area. _mergeSort<T>(list, compare, middle, end, target, targetMiddle); // Sort the first half into the end of the source area. _mergeSort<T>(list, compare, start, middle, list, middle); // Merge the two parts into the target area. _merge<T>( compare, list, middle, middle + firstLength, target, targetMiddle, targetMiddle + secondLength, target, targetOffset, ); } /// Merges two lists into a target list. /// /// One of the input lists may be positioned at the end of the target list. /// /// For equal object, elements from `firstList` are always preferred. This /// allows the merge to be stable if the first list contains elements that /// started out earlier than the ones in `secondList`. void _merge<T>( int Function(T, T) compare, List<T> firstList, int firstStart, int firstEnd, List<T> secondList, int secondStart, int secondEnd, List<T> target, int targetOffset, ) { // No empty lists reaches here. assert(firstStart < firstEnd); assert(secondStart < secondEnd); int cursor1 = firstStart; int cursor2 = secondStart; T firstElement = firstList[cursor1++]; T secondElement = secondList[cursor2++]; while (true) { if (compare(firstElement, secondElement) <= 0) { target[targetOffset++] = firstElement; if (cursor1 == firstEnd) { // Flushing second list after loop. break; } firstElement = firstList[cursor1++]; } else { target[targetOffset++] = secondElement; if (cursor2 != secondEnd) { secondElement = secondList[cursor2++]; continue; } // Second list empties first. Flushing first list here. target[targetOffset++] = firstElement; target.setRange(targetOffset, targetOffset + (firstEnd - cursor1), firstList, cursor1); return; } } // First list empties first. Reached by break above. target[targetOffset++] = secondElement; target.setRange(targetOffset, targetOffset + (secondEnd - cursor2), secondList, cursor2); }
flutter/packages/flutter/lib/src/foundation/collections.dart/0
{'file_path': 'flutter/packages/flutter/lib/src/foundation/collections.dart', 'repo_id': 'flutter', 'token_count': 3877}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // AUTOGENERATED FILE DO NOT EDIT! // This file was generated by vitool. part of material_animated_icons; // ignore: use_string_in_part_of_directives const _AnimatedIconData _$search_ellipsis = _AnimatedIconData( Size(96.0, 96.0), <_PathFrames>[ _PathFrames( opacities: <double>[ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ], commands: <_PathCommand>[ _PathMoveTo( <Offset>[ Offset(56.63275314854877, 53.416307677358), Offset(56.63275314854877, 53.416307677358), Offset(56.63275314854877, 53.416307677358), Offset(56.63275314854877, 53.416307677358), Offset(56.63275314854877, 53.416307677358), Offset(56.63275314854877, 53.416307677358), Offset(56.63275314854877, 53.416307677358), Offset(56.63275314854877, 53.416307677358), Offset(56.63275314854877, 53.416307677358), Offset(56.63275314854877, 53.416307677358), Offset(57.069606004928445, 53.86609044856987), Offset(59.09460654800288, 55.971023159415935), Offset(60.89239811736094, 57.88133187802052), Offset(62.39435194501161, 59.538230172598404), Offset(63.48463970399173, 60.8425011369294), Offset(63.932061433030945, 61.59610215538352), Offset(63.07663991080549, 61.23370607747795), Offset(59.89718017699878, 58.88057174806894), Offset(61.21880612019878, 60.239014522068935), Offset(61.09896916359878, 60.11473915976894), Offset(60.97913220709878, 59.99046379736894), Offset(60.85929525059878, 59.866188435068935), Offset(60.73945829409878, 59.74191307276894), Offset(60.61962133759878, 59.61763771046894), Offset(60.49978438099878, 59.49336234816894), Offset(60.37994742449878, 59.36908698586894), Offset(60.26011046799878, 59.24481162346894), Offset(60.140273511498776, 59.12053626116894), Offset(60.02043655499878, 58.99626089886894), Offset(59.90059959839878, 58.871985536568936), Offset(59.78076264189878, 58.74771017426894), Offset(59.66092568539878, 58.62343481186894), Offset(59.54108872889878, 58.499159449568936), Offset(59.42125177229878, 58.37488408726894), Offset(59.30141481579878, 58.250608724968934), Offset(59.18157785929878, 58.12633336266894), Offset(59.06174090279878, 58.00205800026894), Offset(58.94190394629878, 57.877782637968934), Offset(58.822066989698776, 57.75350727566894), Offset(58.70223003319878, 57.62923191336894), Offset(58.58239307669878, 57.504956551068936), Offset(58.46255612019878, 57.38068118876894), Offset(58.34271916359878, 57.25640582636894), Offset(58.22288220709878, 57.132130464068936), Offset(58.10304525059878, 57.00785510176894), Offset(57.98320829409878, 56.883579739468935), Offset(57.86337133759878, 56.75930437716894), Offset(57.74353438099878, 56.63502901476894), Offset(57.62369742449878, 56.510753652468935), ], ), _PathCubicTo( <Offset>[ Offset(60.57565945470678, 48.849785482535665), Offset(60.57565945470678, 48.849785482535665), Offset(60.57565945470678, 48.849785482535665), Offset(60.57565945470678, 48.849785482535665), Offset(60.57565945470678, 48.849785482535665), Offset(60.57565945470678, 48.849785482535665), Offset(60.57565945470678, 48.849785482535665), Offset(60.57565945470678, 48.849785482535665), Offset(60.57565945470678, 48.849785482535665), Offset(60.57565945470678, 48.849785482535665), Offset(61.01177894139154, 49.30041761427725), Offset(63.01014446522872, 51.43619797836744), Offset(64.73600505254888, 53.42981438943695), Offset(66.10705023046606, 55.238326039262105), Offset(66.98436034991653, 56.78925950135372), Offset(67.09064385091588, 57.93795367416795), Offset(65.63435166794956, 58.2714628487421), Offset(61.39070529296772, 57.15082849245442), Offset(62.71233123616772, 58.50927126645442), Offset(62.592494279567724, 58.38499590415442), Offset(62.47265732306772, 58.260720541754424), Offset(62.35282036656772, 58.13644517945442), Offset(62.232983410067725, 58.01216981715442), Offset(62.11314645356772, 57.887894454854425), Offset(61.993309496967726, 57.76361909255442), Offset(61.87347254046772, 57.639343730254424), Offset(61.75363558396772, 57.515068367854425), Offset(61.63379862746772, 57.39079300555442), Offset(61.513961670967724, 57.266517643254424), Offset(61.39412471436772, 57.14224228095442), Offset(61.274287757867725, 57.01796691865442), Offset(61.15445080136772, 56.893691556254424), Offset(61.03461384486772, 56.76941619395442), Offset(60.914776888267724, 56.64514083165442), Offset(60.79493993176772, 56.52086546935442), Offset(60.67510297526772, 56.39659010705442), Offset(60.555266018767725, 56.27231474465442), Offset(60.43542906226772, 56.14803938235442), Offset(60.31559210566772, 56.02376402005442), Offset(60.195755149167724, 55.899488657754425), Offset(60.07591819266772, 55.77521329545442), Offset(59.95608123616772, 55.650937933154424), Offset(59.83624427956772, 55.526662570754425), Offset(59.71640732306772, 55.40238720845442), Offset(59.596570366567725, 55.278111846154424), Offset(59.47673341006772, 55.15383648385442), Offset(59.35689645356772, 55.02956112155442), Offset(59.237059496967724, 54.905285759154424), Offset(59.11722254046772, 54.78101039685442), ], <Offset>[ Offset(62.94942712071989, 42.915335621700216), Offset(62.94942712071989, 42.915335621700216), Offset(62.94942712071989, 42.915335621700216), Offset(62.94942712071989, 42.915335621700216), Offset(62.94942712071989, 42.915335621700216), Offset(62.94942712071989, 42.915335621700216), Offset(62.94942712071989, 42.915335621700216), Offset(62.94942712071989, 42.915335621700216), Offset(62.94942712071989, 42.915335621700216), Offset(62.94942712071989, 42.915335621700216), Offset(63.38510509316773, 43.36707154474344), Offset(65.36743540273916, 45.5429401518535), Offset(67.04999102004787, 47.644819547939385), Offset(68.34222460676555, 49.6503611948963), Offset(69.09131472932955, 51.52184630725002), Offset(68.99222107132888, 53.18398603334939), Offset(67.17418370976294, 54.42186283224286), Offset(62.28985971191208, 54.90293081789554), Offset(63.61148565511208, 56.261373591895534), Offset(63.49164869851208, 56.13709822959554), Offset(63.37181174201208, 56.01282286719554), Offset(63.251974785512076, 55.88854750489554), Offset(63.13213782901208, 55.764272142595544), Offset(63.01230087251208, 55.63999678029555), Offset(62.89246391591208, 55.515721417995536), Offset(62.77262695941208, 55.39144605569554), Offset(62.65279000291208, 55.26717069329554), Offset(62.532953046412075, 55.14289533099554), Offset(62.41311608991208, 55.018619968695546), Offset(62.293279133312076, 54.894344606395535), Offset(62.17344217681208, 54.77006924409554), Offset(62.05360522031208, 54.64579388169554), Offset(61.93376826381208, 54.52151851939554), Offset(61.81393130721208, 54.397243157095545), Offset(61.69409435071208, 54.272967794795534), Offset(61.574257394212076, 54.14869243249554), Offset(61.45442043771208, 54.02441707009554), Offset(61.33458348121208, 53.90014170779554), Offset(61.214746524612075, 53.775866345495544), Offset(61.09490956811208, 53.65159098319555), Offset(60.97507261161208, 53.527315620895536), Offset(60.855235655112075, 53.40304025859554), Offset(60.73539869851208, 53.27876489619554), Offset(60.615561742012076, 53.15448953389554), Offset(60.49572478551208, 53.030214171595546), Offset(60.37588782901208, 52.905938809295534), Offset(60.25605087251208, 52.78166344699554), Offset(60.13621391591208, 52.65738808459554), Offset(60.01637695941208, 52.53311272229554), ], <Offset>[ Offset(62.94942712071989, 36.41758712071989), Offset(62.94942712071989, 36.41758712071989), Offset(62.94942712071989, 36.41758712071989), Offset(62.94942712071989, 36.41758712071989), Offset(62.94942712071989, 36.41758712071989), Offset(62.94942712071989, 36.41758712071989), Offset(62.94942712071989, 36.41758712071989), Offset(62.94942712071989, 36.41758712071989), Offset(62.94942712071989, 36.41758712071989), Offset(62.94942712071989, 36.41758712071989), Offset(63.38510509316773, 36.87053160705772), Offset(65.36743540273916, 39.09029363766916), Offset(67.04999102004787, 41.31071235333787), Offset(68.34222460676555, 43.531986106645554), Offset(69.09131472932955, 45.754449667519545), Offset(68.99222107132888, 47.97877125586888), Offset(67.17418370976294, 50.206858354462945), Offset(62.28985971191208, 52.44166244631208), Offset(63.61148565511208, 53.800105220312076), Offset(63.49164869851208, 53.67582985801208), Offset(63.37181174201208, 53.55155449561208), Offset(63.251974785512076, 53.42727913331208), Offset(63.13213782901208, 53.30300377101208), Offset(63.01230087251208, 53.17872840871208), Offset(62.89246391591208, 53.05445304641208), Offset(62.77262695941208, 52.93017768411208), Offset(62.65279000291208, 52.80590232171208), Offset(62.532953046412075, 52.68162695941208), Offset(62.41311608991208, 52.55735159711208), Offset(62.293279133312076, 52.43307623481208), Offset(62.17344217681208, 52.30880087251208), Offset(62.05360522031208, 52.18452551011208), Offset(61.93376826381208, 52.06025014781208), Offset(61.81393130721208, 51.93597478551208), Offset(61.69409435071208, 51.811699423212076), Offset(61.574257394212076, 51.68742406091208), Offset(61.45442043771208, 51.56314869851208), Offset(61.33458348121208, 51.438873336212076), Offset(61.214746524612075, 51.31459797391208), Offset(61.09490956811208, 51.19032261161208), Offset(60.97507261161208, 51.06604724931208), Offset(60.855235655112075, 50.94177188701208), Offset(60.73539869851208, 50.81749652461208), Offset(60.615561742012076, 50.69322116231208), Offset(60.49572478551208, 50.56894580001208), Offset(60.37588782901208, 50.44467043771208), Offset(60.25605087251208, 50.32039507541208), Offset(60.13621391591208, 50.19611971301208), Offset(60.01637695941208, 50.07184435071208), ], ), _PathCubicTo( <Offset>[ Offset(62.94942712071989, 21.97373945470677), Offset(62.94942712071989, 21.97373945470677), Offset(62.94942712071989, 21.97373945470677), Offset(62.94942712071989, 21.97373945470677), Offset(62.94942712071989, 21.97373945470677), Offset(62.94942712071989, 21.97373945470677), Offset(62.94942712071989, 21.97373945470677), Offset(62.94942712071989, 21.97373945470677), Offset(62.94942712071989, 21.97373945470677), Offset(62.94942712071989, 21.97373945470677), Offset(63.38510509316773, 22.429370456861527), Offset(65.36743540273916, 24.74670319561872), Offset(67.04999102004787, 27.230623010818878), Offset(68.34222460676555, 29.931447747106052), Offset(69.09131472932955, 32.934101437486525), Offset(68.99222107132888, 36.408097305735886), Offset(67.17418370976294, 40.83732326404956), Offset(62.28985971191208, 46.97050802736772), Offset(63.61148565511208, 48.32895080136772), Offset(63.49164869851208, 48.20467543906772), Offset(63.37181174201208, 48.08040007666772), Offset(63.251974785512076, 47.95612471436772), Offset(63.13213782901208, 47.83184935206772), Offset(63.01230087251208, 47.707573989767724), Offset(62.89246391591208, 47.58329862746772), Offset(62.77262695941208, 47.45902326516772), Offset(62.65279000291208, 47.334747902767724), Offset(62.532953046412075, 47.21047254046772), Offset(62.41311608991208, 47.08619717816772), Offset(62.293279133312076, 46.96192181586772), Offset(62.17344217681208, 46.83764645356772), Offset(62.05360522031208, 46.71337109116772), Offset(61.93376826381208, 46.58909572886772), Offset(61.81393130721208, 46.46482036656772), Offset(61.69409435071208, 46.34054500426772), Offset(61.574257394212076, 46.21626964196772), Offset(61.45442043771208, 46.09199427956772), Offset(61.33458348121208, 45.96771891726772), Offset(61.214746524612075, 45.84344355496772), Offset(61.09490956811208, 45.71916819266772), Offset(60.97507261161208, 45.59489283036772), Offset(60.855235655112075, 45.47061746806772), Offset(60.73539869851208, 45.34634210566772), Offset(60.615561742012076, 45.22206674336772), Offset(60.49572478551208, 45.09779138106772), Offset(60.37588782901208, 44.97351601876772), Offset(60.25605087251208, 44.84924065646772), Offset(60.13621391591208, 44.72496529406772), Offset(60.01637695941208, 44.60068993176772), ], <Offset>[ Offset(51.241465482535666, 10.265747120719887), Offset(51.241465482535666, 10.265747120719887), Offset(51.241465482535666, 10.265747120719887), Offset(51.241465482535666, 10.265747120719887), Offset(51.241465482535666, 10.265747120719887), Offset(51.241465482535666, 10.265747120719887), Offset(51.241465482535666, 10.265747120719887), Offset(51.241465482535666, 10.265747120719887), Offset(51.241465482535666, 10.265747120719887), Offset(51.241465482535666, 10.265747120719887), Offset(51.67932110354725, 10.723555777147723), Offset(53.74074073435744, 13.11997804449917), Offset(55.636886306106945, 15.817488374127876), Offset(57.3178365729021, 18.90703080962556), Offset(58.69933686192372, 22.542096324509547), Offset(59.61321003018795, 27.02906167480888), Offset(59.5793821068421, 33.242501749162955), Offset(57.855025758054424, 42.53566244631208), Offset(59.17665170125442, 43.89410522031208), Offset(59.056814744654424, 43.76982985801208), Offset(58.93697778815442, 43.64555449561208), Offset(58.81714083165442, 43.52127913331208), Offset(58.697303875154425, 43.39700377101208), Offset(58.57746691865442, 43.272728408712084), Offset(58.457629962054426, 43.14845304641208), Offset(58.337793005554424, 43.02417768411208), Offset(58.21795604905442, 42.899902321712084), Offset(58.09811909255442, 42.77562695941208), Offset(57.978282136054425, 42.65135159711208), Offset(57.85844517945442, 42.52707623481208), Offset(57.738608222954426, 42.40280087251208), Offset(57.618771266454424, 42.27852551011208), Offset(57.49893430995442, 42.15425014781208), Offset(57.379097353354425, 42.02997478551208), Offset(57.25926039685442, 41.90569942321208), Offset(57.13942344035442, 41.78142406091208), Offset(57.019586483854425, 41.65714869851208), Offset(56.89974952735442, 41.53287333621208), Offset(56.77991257075442, 41.40859797391208), Offset(56.660075614254424, 41.28432261161208), Offset(56.54023865775442, 41.16004724931208), Offset(56.42040170125442, 41.03577188701208), Offset(56.30056474465442, 40.91149652461208), Offset(56.18072778815442, 40.78722116231208), Offset(56.060890831654426, 40.66294580001208), Offset(55.941053875154424, 40.53867043771208), Offset(55.82121691865442, 40.41439507541208), Offset(55.701379962054425, 40.29011971301208), Offset(55.58154300555442, 40.16584435071208), ], <Offset>[ Offset(36.79758712071989, 10.265747120719887), Offset(36.79758712071989, 10.265747120719887), Offset(36.79758712071989, 10.265747120719887), Offset(36.79758712071989, 10.265747120719887), Offset(36.79758712071989, 10.265747120719887), Offset(36.79758712071989, 10.265747120719887), Offset(36.79758712071989, 10.265747120719887), Offset(36.79758712071989, 10.265747120719887), Offset(36.79758712071989, 10.265747120719887), Offset(36.79758712071989, 10.265747120719887), Offset(37.238129263257726, 10.723555777147723), Offset(39.39711980956916, 13.11997804449917), Offset(41.55676704083787, 15.817488374127876), Offset(43.717269309745554, 18.90703080962556), Offset(45.878961386319546, 22.542096324509547), Offset(48.04251149026888, 27.02906167480888), Offset(50.209827104462946, 33.242501749162955), Offset(52.38385971191208, 42.53566244631208), Offset(53.70548565511208, 43.89410522031208), Offset(53.58564869851208, 43.76982985801208), Offset(53.46581174201208, 43.64555449561208), Offset(53.34597478551208, 43.52127913331208), Offset(53.22613782901208, 43.39700377101208), Offset(53.10630087251208, 43.272728408712084), Offset(52.98646391591208, 43.14845304641208), Offset(52.86662695941208, 43.02417768411208), Offset(52.74679000291208, 42.899902321712084), Offset(52.626953046412076, 42.77562695941208), Offset(52.50711608991208, 42.65135159711208), Offset(52.38727913331208, 42.52707623481208), Offset(52.26744217681208, 42.40280087251208), Offset(52.14760522031208, 42.27852551011208), Offset(52.02776826381208, 42.15425014781208), Offset(51.90793130721208, 42.02997478551208), Offset(51.78809435071208, 41.90569942321208), Offset(51.66825739421208, 41.78142406091208), Offset(51.54842043771208, 41.65714869851208), Offset(51.42858348121208, 41.53287333621208), Offset(51.308746524612076, 41.40859797391208), Offset(51.18890956811208, 41.28432261161208), Offset(51.06907261161208, 41.16004724931208), Offset(50.949235655112076, 41.03577188701208), Offset(50.82939869851208, 40.91149652461208), Offset(50.70956174201208, 40.78722116231208), Offset(50.58972478551208, 40.66294580001208), Offset(50.46988782901208, 40.53867043771208), Offset(50.35005087251208, 40.41439507541208), Offset(50.23021391591208, 40.29011971301208), Offset(50.11037695941208, 40.16584435071208), ], ), _PathCubicTo( <Offset>[ Offset(22.353739454706773, 10.265747120719887), Offset(22.353739454706773, 10.265747120719887), Offset(22.353739454706773, 10.265747120719887), Offset(22.353739454706773, 10.265747120719887), Offset(22.353739454706773, 10.265747120719887), Offset(22.353739454706773, 10.265747120719887), Offset(22.353739454706773, 10.265747120719887), Offset(22.353739454706773, 10.265747120719887), Offset(22.353739454706773, 10.265747120719887), Offset(22.353739454706773, 10.265747120719887), Offset(22.79696811306153, 10.723555777147723), Offset(25.05352936751872, 13.11997804449917), Offset(27.476677698318877, 15.817488374127876), Offset(30.11673095020605, 18.90703080962556), Offset(33.058613156286526, 22.542096324509547), Offset(36.47183754013589, 27.02906167480888), Offset(40.84029201404956, 33.242501749162955), Offset(46.91270529296772, 42.53566244631208), Offset(48.23433123616772, 43.89410522031208), Offset(48.11449427956772, 43.76982985801208), Offset(47.99465732306772, 43.64555449561208), Offset(47.87482036656772, 43.52127913331208), Offset(47.75498341006772, 43.39700377101208), Offset(47.63514645356772, 43.272728408712084), Offset(47.515309496967724, 43.14845304641208), Offset(47.39547254046772, 43.02417768411208), Offset(47.27563558396772, 42.899902321712084), Offset(47.15579862746772, 42.77562695941208), Offset(47.03596167096772, 42.65135159711208), Offset(46.91612471436772, 42.52707623481208), Offset(46.796287757867724, 42.40280087251208), Offset(46.67645080136772, 42.27852551011208), Offset(46.55661384486772, 42.15425014781208), Offset(46.43677688826772, 42.02997478551208), Offset(46.31693993176772, 41.90569942321208), Offset(46.19710297526772, 41.78142406091208), Offset(46.07726601876772, 41.65714869851208), Offset(45.95742906226772, 41.53287333621208), Offset(45.83759210566772, 41.40859797391208), Offset(45.71775514916772, 41.28432261161208), Offset(45.59791819266772, 41.16004724931208), Offset(45.47808123616772, 41.03577188701208), Offset(45.35824427956772, 40.91149652461208), Offset(45.23840732306772, 40.78722116231208), Offset(45.118570366567724, 40.66294580001208), Offset(44.99873341006772, 40.53867043771208), Offset(44.87889645356772, 40.41439507541208), Offset(44.75905949696772, 40.29011971301208), Offset(44.63922254046772, 40.16584435071208), ], <Offset>[ Offset(10.64574712071989, 21.973739454706777), Offset(10.64574712071989, 21.973739454706777), Offset(10.64574712071989, 21.973739454706777), Offset(10.64574712071989, 21.973739454706777), Offset(10.64574712071989, 21.973739454706777), Offset(10.64574712071989, 21.973739454706777), Offset(10.64574712071989, 21.973739454706777), Offset(10.64574712071989, 21.973739454706777), Offset(10.64574712071989, 21.973739454706777), Offset(10.64574712071989, 21.973739454706777), Offset(11.091153433347728, 22.429370456861534), Offset(13.42680421639917, 24.74670319561873), Offset(16.063543061627875, 27.230623010818885), Offset(19.09231401272556, 29.93144774710606), Offset(22.666608043309548, 32.93410143748653), Offset(27.09280190920888, 36.40809730573589), Offset(33.24547049916295, 40.83732326404956), Offset(42.47785971191208, 46.97050802736772), Offset(43.79948565511208, 48.32895080136772), Offset(43.67964869851208, 48.20467543906772), Offset(43.55981174201208, 48.08040007666772), Offset(43.43997478551208, 47.95612471436772), Offset(43.32013782901208, 47.83184935206772), Offset(43.20030087251208, 47.707573989767724), Offset(43.080463915912084, 47.58329862746772), Offset(42.96062695941208, 47.45902326516772), Offset(42.84079000291208, 47.334747902767724), Offset(42.72095304641208, 47.21047254046772), Offset(42.60111608991208, 47.08619717816772), Offset(42.48127913331208, 46.96192181586772), Offset(42.36144217681208, 46.83764645356772), Offset(42.24160522031208, 46.71337109116772), Offset(42.12176826381208, 46.58909572886772), Offset(42.00193130721208, 46.46482036656772), Offset(41.88209435071208, 46.34054500426772), Offset(41.76225739421208, 46.21626964196772), Offset(41.64242043771208, 46.09199427956772), Offset(41.52258348121208, 45.96771891726772), Offset(41.40274652461208, 45.84344355496772), Offset(41.28290956811208, 45.71916819266772), Offset(41.16307261161208, 45.59489283036772), Offset(41.04323565511208, 45.47061746806772), Offset(40.92339869851208, 45.34634210566772), Offset(40.80356174201208, 45.22206674336772), Offset(40.683724785512084, 45.09779138106772), Offset(40.56388782901208, 44.97351601876772), Offset(40.44405087251208, 44.84924065646772), Offset(40.32421391591208, 44.72496529406772), Offset(40.20437695941208, 44.60068993176772), ], <Offset>[ Offset(10.64574712071989, 36.41758712071989), Offset(10.64574712071989, 36.41758712071989), Offset(10.64574712071989, 36.41758712071989), Offset(10.64574712071989, 36.41758712071989), Offset(10.64574712071989, 36.41758712071989), Offset(10.64574712071989, 36.41758712071989), Offset(10.64574712071989, 36.41758712071989), Offset(10.64574712071989, 36.41758712071989), Offset(10.64574712071989, 36.41758712071989), Offset(10.64574712071989, 36.41758712071989), Offset(11.091153433347728, 36.87053160705773), Offset(13.42680421639917, 39.09029363766917), Offset(16.063543061627875, 41.31071235333788), Offset(19.09231401272556, 43.53198610664556), Offset(22.666608043309548, 45.75444966751955), Offset(27.09280190920888, 47.97877125586888), Offset(33.24547049916295, 50.20685835446295), Offset(42.47785971191208, 52.44166244631208), Offset(43.79948565511208, 53.800105220312076), Offset(43.67964869851208, 53.67582985801208), Offset(43.55981174201208, 53.55155449561208), Offset(43.43997478551208, 53.42727913331208), Offset(43.32013782901208, 53.30300377101208), Offset(43.20030087251208, 53.17872840871208), Offset(43.080463915912084, 53.05445304641208), Offset(42.96062695941208, 52.93017768411208), Offset(42.84079000291208, 52.80590232171208), Offset(42.72095304641208, 52.68162695941208), Offset(42.60111608991208, 52.55735159711208), Offset(42.48127913331208, 52.43307623481208), Offset(42.36144217681208, 52.30880087251208), Offset(42.24160522031208, 52.18452551011208), Offset(42.12176826381208, 52.06025014781208), Offset(42.00193130721208, 51.93597478551208), Offset(41.88209435071208, 51.811699423212076), Offset(41.76225739421208, 51.68742406091208), Offset(41.64242043771208, 51.56314869851208), Offset(41.52258348121208, 51.438873336212076), Offset(41.40274652461208, 51.31459797391208), Offset(41.28290956811208, 51.19032261161208), Offset(41.16307261161208, 51.06604724931208), Offset(41.04323565511208, 50.94177188701208), Offset(40.92339869851208, 50.81749652461208), Offset(40.80356174201208, 50.69322116231208), Offset(40.683724785512084, 50.56894580001208), Offset(40.56388782901208, 50.44467043771208), Offset(40.44405087251208, 50.32039507541208), Offset(40.32421391591208, 50.19611971301208), Offset(40.20437695941208, 50.07184435071208), ], ), _PathCubicTo( <Offset>[ Offset(10.64574712071989, 50.861465482535664), Offset(10.64574712071989, 50.861465482535664), Offset(10.64574712071989, 50.861465482535664), Offset(10.64574712071989, 50.861465482535664), Offset(10.64574712071989, 50.861465482535664), Offset(10.64574712071989, 50.861465482535664), Offset(10.64574712071989, 50.861465482535664), Offset(10.64574712071989, 50.861465482535664), Offset(10.64574712071989, 50.861465482535664), Offset(10.64574712071989, 50.861465482535664), Offset(11.091153433347728, 51.311723447347255), Offset(13.42680421639917, 53.433914562457446), Offset(16.063543061627875, 55.39083161860695), Offset(19.09231401272556, 57.13255336980211), Offset(22.666608043309548, 58.574825143123725), Offset(27.09280190920888, 59.54946979578796), Offset(33.24547049916295, 59.5764133568421), Offset(42.47785971191208, 57.91282849245442), Offset(43.79948565511208, 59.27127126645442), Offset(43.67964869851208, 59.14699590415442), Offset(43.55981174201208, 59.022720541754424), Offset(43.43997478551208, 58.89844517945442), Offset(43.32013782901208, 58.77416981715442), Offset(43.20030087251208, 58.649894454854426), Offset(43.080463915912084, 58.52561909255442), Offset(42.96062695941208, 58.401343730254425), Offset(42.84079000291208, 58.277068367854426), Offset(42.72095304641208, 58.15279300555442), Offset(42.60111608991208, 58.028517643254425), Offset(42.48127913331208, 57.90424228095442), Offset(42.36144217681208, 57.779966918654424), Offset(42.24160522031208, 57.655691556254425), Offset(42.12176826381208, 57.53141619395442), Offset(42.00193130721208, 57.407140831654424), Offset(41.88209435071208, 57.28286546935442), Offset(41.76225739421208, 57.15859010705442), Offset(41.64242043771208, 57.034314744654424), Offset(41.52258348121208, 56.91003938235442), Offset(41.40274652461208, 56.78576402005442), Offset(41.28290956811208, 56.661488657754425), Offset(41.16307261161208, 56.53721329545442), Offset(41.04323565511208, 56.412937933154424), Offset(40.92339869851208, 56.288662570754425), Offset(40.80356174201208, 56.16438720845442), Offset(40.683724785512084, 56.040111846154424), Offset(40.56388782901208, 55.91583648385442), Offset(40.44405087251208, 55.79156112155442), Offset(40.32421391591208, 55.667285759154424), Offset(40.20437695941208, 55.54301039685442), ], <Offset>[ Offset(22.35373945470678, 62.569427120719894), Offset(22.35373945470678, 62.569427120719894), Offset(22.35373945470678, 62.569427120719894), Offset(22.35373945470678, 62.569427120719894), Offset(22.35373945470678, 62.569427120719894), Offset(22.35373945470678, 62.569427120719894), Offset(22.35373945470678, 62.569427120719894), Offset(22.35373945470678, 62.569427120719894), Offset(22.35373945470678, 62.569427120719894), Offset(22.35373945470678, 62.569427120719894), Offset(22.79696811306154, 63.01750743696773), Offset(25.053529367518728, 65.06060923083916), Offset(27.476677698318884, 66.80393633254788), Offset(30.11673095020606, 68.15694140366556), Offset(33.05861315628653, 68.96680301052955), Offset(36.471837540135894, 68.92848083692888), Offset(40.84029201404956, 67.17121495976295), Offset(46.91270529296772, 62.347662446312086), Offset(48.23433123616772, 63.70610522031208), Offset(48.11449427956772, 63.581829858012085), Offset(47.99465732306772, 63.45755449561209), Offset(47.87482036656772, 63.33327913331208), Offset(47.75498341006772, 63.209003771012085), Offset(47.63514645356772, 63.08472840871209), Offset(47.515309496967724, 62.960453046412084), Offset(47.39547254046772, 62.83617768411209), Offset(47.27563558396772, 62.71190232171209), Offset(47.15579862746772, 62.587626959412084), Offset(47.03596167096772, 62.46335159711209), Offset(46.91612471436772, 62.33907623481208), Offset(46.796287757867724, 62.214800872512086), Offset(46.67645080136772, 62.09052551011209), Offset(46.55661384486772, 61.96625014781208), Offset(46.43677688826772, 61.841974785512086), Offset(46.31693993176772, 61.71769942321208), Offset(46.19710297526772, 61.593424060912085), Offset(46.07726601876772, 61.469148698512086), Offset(45.95742906226772, 61.34487333621208), Offset(45.83759210566772, 61.220597973912085), Offset(45.71775514916772, 61.09632261161209), Offset(45.59791819266772, 60.972047249312084), Offset(45.47808123616772, 60.84777188701209), Offset(45.35824427956772, 60.72349652461209), Offset(45.23840732306772, 60.599221162312084), Offset(45.118570366567724, 60.47494580001209), Offset(44.99873341006772, 60.35067043771208), Offset(44.87889645356772, 60.226395075412086), Offset(44.75905949696772, 60.10211971301209), Offset(44.63922254046772, 59.97784435071208), ], <Offset>[ Offset(36.79758712071989, 62.569427120719894), Offset(36.79758712071989, 62.569427120719894), Offset(36.79758712071989, 62.569427120719894), Offset(36.79758712071989, 62.569427120719894), Offset(36.79758712071989, 62.569427120719894), Offset(36.79758712071989, 62.569427120719894), Offset(36.79758712071989, 62.569427120719894), Offset(36.79758712071989, 62.569427120719894), Offset(36.79758712071989, 62.569427120719894), Offset(36.79758712071989, 62.569427120719894), Offset(37.23812926325773, 63.01750743696773), Offset(39.39711980956917, 65.06060923083916), Offset(41.556767040837876, 66.80393633254788), Offset(43.71726930974556, 68.15694140366556), Offset(45.878961386319546, 68.96680301052955), Offset(48.04251149026888, 68.92848083692888), Offset(50.20982710446295, 67.17121495976295), Offset(52.38385971191208, 62.347662446312086), Offset(53.70548565511208, 63.70610522031208), Offset(53.58564869851208, 63.581829858012085), Offset(53.46581174201208, 63.45755449561209), Offset(53.34597478551208, 63.33327913331208), Offset(53.22613782901208, 63.209003771012085), Offset(53.10630087251208, 63.08472840871209), Offset(52.98646391591208, 62.960453046412084), Offset(52.86662695941208, 62.83617768411209), Offset(52.74679000291208, 62.71190232171209), Offset(52.626953046412076, 62.587626959412084), Offset(52.50711608991208, 62.46335159711209), Offset(52.38727913331208, 62.33907623481208), Offset(52.26744217681208, 62.214800872512086), Offset(52.14760522031208, 62.09052551011209), Offset(52.02776826381208, 61.96625014781208), Offset(51.90793130721208, 61.841974785512086), Offset(51.78809435071208, 61.71769942321208), Offset(51.66825739421208, 61.593424060912085), Offset(51.54842043771208, 61.469148698512086), Offset(51.42858348121208, 61.34487333621208), Offset(51.308746524612076, 61.220597973912085), Offset(51.18890956811208, 61.09632261161209), Offset(51.06907261161208, 60.972047249312084), Offset(50.949235655112076, 60.84777188701209), Offset(50.82939869851208, 60.72349652461209), Offset(50.70956174201208, 60.599221162312084), Offset(50.58972478551208, 60.47494580001209), Offset(50.46988782901208, 60.35067043771208), Offset(50.35005087251208, 60.226395075412086), Offset(50.23021391591208, 60.10211971301209), Offset(50.11037695941208, 59.97784435071208), ], ), _PathCubicTo( <Offset>[ Offset(43.295335621700225, 62.569427120719894), Offset(43.295335621700225, 62.569427120719894), Offset(43.295335621700225, 62.569427120719894), Offset(43.295335621700225, 62.569427120719894), Offset(43.295335621700225, 62.569427120719894), Offset(43.295335621700225, 62.569427120719894), Offset(43.295335621700225, 62.569427120719894), Offset(43.295335621700225, 62.569427120719894), Offset(43.295335621700225, 62.569427120719894), Offset(43.295335621700225, 62.569427120719894), Offset(43.73466920094344, 63.01750743696773), Offset(45.84976632375351, 65.06060923083916), Offset(47.89087423543939, 66.80393633254788), Offset(49.835644397996305, 68.15694140366556), Offset(51.646358026050024, 68.96680301052955), Offset(53.24772626774939, 68.92848083692888), Offset(54.42483158224287, 67.17121495976295), Offset(54.845128083495545, 62.347662446312086), Offset(56.16675402669554, 63.70610522031208), Offset(56.046917070095546, 63.581829858012085), Offset(55.927080113595544, 63.45755449561209), Offset(55.80724315709554, 63.33327913331208), Offset(55.68740620059555, 63.209003771012085), Offset(55.567569244095544, 63.08472840871209), Offset(55.44773228749555, 62.960453046412084), Offset(55.327895330995545, 62.83617768411209), Offset(55.20805837449554, 62.71190232171209), Offset(55.08822141799554, 62.587626959412084), Offset(54.968384461495546, 62.46335159711209), Offset(54.84854750489554, 62.33907623481208), Offset(54.72871054839555, 62.214800872512086), Offset(54.608873591895545, 62.09052551011209), Offset(54.48903663539554, 61.96625014781208), Offset(54.369199678795546, 61.841974785512086), Offset(54.249362722295544, 61.71769942321208), Offset(54.12952576579554, 61.593424060912085), Offset(54.00968880929555, 61.469148698512086), Offset(53.889851852795545, 61.34487333621208), Offset(53.77001489619554, 61.220597973912085), Offset(53.650177939695546, 61.09632261161209), Offset(53.53034098319554, 60.972047249312084), Offset(53.41050402669554, 60.84777188701209), Offset(53.290667070095544, 60.72349652461209), Offset(53.17083011359554, 60.599221162312084), Offset(53.05099315709555, 60.47494580001209), Offset(52.931156200595545, 60.35067043771208), Offset(52.81131924409554, 60.226395075412086), Offset(52.691482287495546, 60.10211971301209), Offset(52.571645330995544, 59.97784435071208), ], <Offset>[ Offset(49.22978548253567, 60.19565945470678), Offset(49.22978548253567, 60.19565945470678), Offset(49.22978548253567, 60.19565945470678), Offset(49.22978548253567, 60.19565945470678), Offset(49.22978548253567, 60.19565945470678), Offset(49.22978548253567, 60.19565945470678), Offset(49.22978548253567, 60.19565945470678), Offset(49.22978548253567, 60.19565945470678), Offset(49.22978548253567, 60.19565945470678), Offset(49.22978548253567, 60.19565945470678), Offset(49.668015270477255, 60.644181285191536), Offset(51.743024150267445, 62.70331829332873), Offset(53.67586907693695, 64.48995036504888), Offset(55.423609242362105, 65.92176702736606), Offset(56.91377122015372, 66.85984863111653), Offset(58.00169390856796, 67.0269036165159), Offset(58.274431598742105, 65.63138291794957), Offset(57.093025758054424, 61.44850802736772), Offset(58.41465170125442, 62.80695080136772), Offset(58.294814744654424, 62.68267543906772), Offset(58.17497778815442, 62.55840007666772), Offset(58.05514083165442, 62.43412471436772), Offset(57.935303875154425, 62.30984935206772), Offset(57.81546691865442, 62.185573989767725), Offset(57.695629962054426, 62.06129862746772), Offset(57.575793005554424, 61.937023265167724), Offset(57.45595604905442, 61.812747902767725), Offset(57.33611909255442, 61.68847254046772), Offset(57.216282136054424, 61.564197178167724), Offset(57.09644517945442, 61.43992181586772), Offset(56.976608222954425, 61.31564645356772), Offset(56.85677126645442, 61.191371091167724), Offset(56.73693430995442, 61.06709572886772), Offset(56.617097353354424, 60.94282036656772), Offset(56.49726039685442, 60.81854500426772), Offset(56.37742344035442, 60.69426964196772), Offset(56.257586483854425, 60.56999427956772), Offset(56.13774952735442, 60.44571891726772), Offset(56.01791257075442, 60.32144355496772), Offset(55.898075614254424, 60.197168192667725), Offset(55.77823865775442, 60.07289283036772), Offset(55.65840170125442, 59.948617468067724), Offset(55.53856474465442, 59.824342105667725), Offset(55.41872778815442, 59.70006674336772), Offset(55.298890831654425, 59.575791381067724), Offset(55.17905387515442, 59.45151601876772), Offset(55.05921691865442, 59.32724065646772), Offset(54.939379962054424, 59.202965294067724), Offset(54.81954300555442, 59.07868993176772), ], <Offset>[ Offset(53.796307677358, 56.272889593871334), Offset(53.796307677358, 56.272889593871334), Offset(53.796307677358, 56.272889593871334), Offset(53.796307677358, 56.272889593871334), Offset(53.796307677358, 56.272889593871334), Offset(53.796307677358, 56.272889593871334), Offset(53.796307677358, 56.272889593871334), Offset(53.796307677358, 56.272889593871334), Offset(53.796307677358, 56.272889593871334), Offset(53.796307677358, 56.272889593871334), Offset(54.233688104769875, 56.72214104872773), Offset(56.27784933131594, 58.80777705090479), Offset(58.127386565520524, 60.66597275272132), Offset(59.7235133756984, 62.22802951354025), Offset(60.96701285572941, 63.37800107878284), Offset(61.65984238978352, 63.88445209731733), Offset(61.23667482747795, 63.08673340955032), Offset(58.822769013668946, 59.962610352808845), Offset(60.14439495686894, 61.32105312680884), Offset(60.02455800026895, 61.196777764508845), Offset(59.904721043768944, 61.072502402108846), Offset(59.78488408726894, 60.94822703980884), Offset(59.66504713076895, 60.823951677508845), Offset(59.545210174268945, 60.69967631520885), Offset(59.42537321766895, 60.57540095290884), Offset(59.305536261168946, 60.45112559060885), Offset(59.185699304668944, 60.32685022820885), Offset(59.06586234816894, 60.20257486590884), Offset(58.94602539166895, 60.07829950360885), Offset(58.82618843506894, 59.95402414130884), Offset(58.70635147856895, 59.829748779008845), Offset(58.586514522068946, 59.70547341660885), Offset(58.46667756556894, 59.58119805430884), Offset(58.34684060896895, 59.456922692008845), Offset(58.227003652468944, 59.33264732970884), Offset(58.10716669596894, 59.208371967408844), Offset(57.98732973946895, 59.084096605008845), Offset(57.867492782968945, 58.95982124270884), Offset(57.74765582636894, 58.835545880408844), Offset(57.627818869868946, 58.71127051810885), Offset(57.507981913368944, 58.58699515580884), Offset(57.38814495686894, 58.462719793508846), Offset(57.268308000268945, 58.33844443110885), Offset(57.14847104376894, 58.21416906880884), Offset(57.02863408726895, 58.089893706508846), Offset(56.908797130768946, 57.96561834420884), Offset(56.788960174268944, 57.841342981908845), Offset(56.66912321766895, 57.717067619508846), Offset(56.549286261168945, 57.59279225720884), ], ), _PathCubicTo( <Offset>[ Offset(53.796307677358, 56.272889593871334), Offset(53.796307677358, 56.272889593871334), Offset(53.796307677358, 56.272889593871334), Offset(53.796307677358, 56.272889593871334), Offset(53.796307677358, 56.272889593871334), Offset(53.796307677358, 56.272889593871334), Offset(53.796307677358, 56.272889593871334), Offset(53.796307677358, 56.272889593871334), Offset(53.796307677358, 56.272889593871334), Offset(53.796307677358, 56.272889593871334), Offset(54.233688104769875, 56.72214104872773), Offset(56.27784933131594, 58.80777705090479), Offset(58.127386565520524, 60.66597275272132), Offset(59.7235133756984, 62.22802951354025), Offset(60.96701285572941, 63.37800107878284), Offset(61.65984238978352, 63.88445209731733), Offset(61.23667482747795, 63.08673340955032), Offset(58.822769013668946, 59.962610352808845), Offset(60.14439495686894, 61.32105312680884), Offset(60.02455800026895, 61.196777764508845), Offset(59.904721043768944, 61.072502402108846), Offset(59.78488408726894, 60.94822703980884), Offset(59.66504713076895, 60.823951677508845), Offset(59.545210174268945, 60.69967631520885), Offset(59.42537321766895, 60.57540095290884), Offset(59.305536261168946, 60.45112559060885), Offset(59.185699304668944, 60.32685022820885), Offset(59.06586234816894, 60.20257486590884), Offset(58.94602539166895, 60.07829950360885), Offset(58.82618843506894, 59.95402414130884), Offset(58.70635147856895, 59.829748779008845), Offset(58.586514522068946, 59.70547341660885), Offset(58.46667756556894, 59.58119805430884), Offset(58.34684060896895, 59.456922692008845), Offset(58.227003652468944, 59.33264732970884), Offset(58.10716669596894, 59.208371967408844), Offset(57.98732973946895, 59.084096605008845), Offset(57.867492782968945, 58.95982124270884), Offset(57.74765582636894, 58.835545880408844), Offset(57.627818869868946, 58.71127051810885), Offset(57.507981913368944, 58.58699515580884), Offset(57.38814495686894, 58.462719793508846), Offset(57.268308000268945, 58.33844443110885), Offset(57.14847104376894, 58.21416906880884), Offset(57.02863408726895, 58.089893706508846), Offset(56.908797130768946, 57.96561834420884), Offset(56.788960174268944, 57.841342981908845), Offset(56.66912321766895, 57.717067619508846), Offset(56.549286261168945, 57.59279225720884), ], <Offset>[ Offset(56.63275314854878, 53.416307677358), Offset(56.63275314854878, 53.416307677358), Offset(56.63275314854878, 53.416307677358), Offset(56.63275314854878, 53.416307677358), Offset(56.63275314854878, 53.416307677358), Offset(56.63275314854878, 53.416307677358), Offset(56.63275314854878, 53.416307677358), Offset(56.63275314854878, 53.416307677358), Offset(56.63275314854878, 53.416307677358), Offset(56.63275314854878, 53.416307677358), Offset(57.069606004928445, 53.86609044856987), Offset(59.094606548002886, 55.97102315941594), Offset(60.89239811736094, 57.881331878020525), Offset(62.39435194501161, 59.538230172598404), Offset(63.48463970399174, 60.8425011369294), Offset(63.932061433030945, 61.59610215538352), Offset(63.07663991080549, 61.23370607747795), Offset(59.89718017699878, 58.880571748068945), Offset(61.21880612019878, 60.23901452206894), Offset(61.09896916359878, 60.114739159768945), Offset(60.97913220709878, 59.990463797368946), Offset(60.85929525059878, 59.86618843506894), Offset(60.73945829409878, 59.741913072768945), Offset(60.61962133759878, 59.61763771046895), Offset(60.49978438099878, 59.493362348168944), Offset(60.37994742449878, 59.36908698586895), Offset(60.26011046799878, 59.24481162346895), Offset(60.140273511498776, 59.120536261168944), Offset(60.02043655499878, 58.99626089886895), Offset(59.90059959839878, 58.87198553656894), Offset(59.78076264189878, 58.747710174268946), Offset(59.66092568539878, 58.62343481186895), Offset(59.54108872889878, 58.49915944956894), Offset(59.42125177229878, 58.374884087268946), Offset(59.30141481579878, 58.25060872496894), Offset(59.18157785929878, 58.126333362668944), Offset(59.06174090279878, 58.002058000268946), Offset(58.94190394629878, 57.87778263796894), Offset(58.822066989698776, 57.753507275668944), Offset(58.70223003319878, 57.62923191336895), Offset(58.58239307669878, 57.50495655106894), Offset(58.46255612019878, 57.380681188768946), Offset(58.34271916359878, 57.25640582636895), Offset(58.22288220709878, 57.13213046406894), Offset(58.10304525059878, 57.007855101768946), Offset(57.98320829409878, 56.88357973946894), Offset(57.86337133759878, 56.759304377168945), Offset(57.74353438099878, 56.635029014768946), Offset(57.62369742449878, 56.51075365246894), ], <Offset>[ Offset(56.63275314854878, 53.416307677358), Offset(56.63275314854878, 53.416307677358), Offset(56.63275314854878, 53.416307677358), Offset(56.63275314854878, 53.416307677358), Offset(56.63275314854878, 53.416307677358), Offset(56.63275314854878, 53.416307677358), Offset(56.63275314854878, 53.416307677358), Offset(56.63275314854878, 53.416307677358), Offset(56.63275314854878, 53.416307677358), Offset(56.63275314854878, 53.416307677358), Offset(57.069606004928445, 53.86609044856987), Offset(59.094606548002886, 55.97102315941594), Offset(60.89239811736094, 57.881331878020525), Offset(62.39435194501161, 59.538230172598404), Offset(63.48463970399174, 60.8425011369294), Offset(63.932061433030945, 61.59610215538352), Offset(63.07663991080549, 61.23370607747795), Offset(59.89718017699878, 58.880571748068945), Offset(61.21880612019878, 60.23901452206894), Offset(61.09896916359878, 60.114739159768945), Offset(60.97913220709878, 59.990463797368946), Offset(60.85929525059878, 59.86618843506894), Offset(60.73945829409878, 59.741913072768945), Offset(60.61962133759878, 59.61763771046895), Offset(60.49978438099878, 59.493362348168944), Offset(60.37994742449878, 59.36908698586895), Offset(60.26011046799878, 59.24481162346895), Offset(60.140273511498776, 59.120536261168944), Offset(60.02043655499878, 58.99626089886895), Offset(59.90059959839878, 58.87198553656894), Offset(59.78076264189878, 58.747710174268946), Offset(59.66092568539878, 58.62343481186895), Offset(59.54108872889878, 58.49915944956894), Offset(59.42125177229878, 58.374884087268946), Offset(59.30141481579878, 58.25060872496894), Offset(59.18157785929878, 58.126333362668944), Offset(59.06174090279878, 58.002058000268946), Offset(58.94190394629878, 57.87778263796894), Offset(58.822066989698776, 57.753507275668944), Offset(58.70223003319878, 57.62923191336895), Offset(58.58239307669878, 57.50495655106894), Offset(58.46255612019878, 57.380681188768946), Offset(58.34271916359878, 57.25640582636895), Offset(58.22288220709878, 57.13213046406894), Offset(58.10304525059878, 57.007855101768946), Offset(57.98320829409878, 56.88357973946894), Offset(57.86337133759878, 56.759304377168945), Offset(57.74353438099878, 56.635029014768946), Offset(57.62369742449878, 56.51075365246894), ], ), _PathClose( ), _PathMoveTo( <Offset>[ Offset(36.79758712071989, 54.522707120719886), Offset(36.79758712071989, 54.522707120719886), Offset(36.79758712071989, 54.522707120719886), Offset(36.79758712071989, 54.522707120719886), Offset(36.79758712071989, 54.522707120719886), Offset(36.79758712071989, 54.522707120719886), Offset(36.79758712071989, 54.522707120719886), Offset(36.79758712071989, 54.522707120719886), Offset(36.79758712071989, 54.522707120719886), Offset(36.79758712071989, 54.522707120719886), Offset(37.238129263257726, 54.34772049679427), Offset(39.39711980956916, 53.40971455122347), Offset(41.55676704083787, 52.38323260637452), Offset(43.717269309745554, 51.34517214659979), Offset(45.878961386319546, 50.4025549847652), Offset(48.04251149026888, 49.72174872023579), Offset(50.209827104462946, 50.28103042236462), Offset(52.38385971191208, 52.48497375612058), Offset(53.70548565511208, 53.84341653012058), Offset(53.58564869851208, 53.71914116782058), Offset(53.46581174201208, 53.59486580542058), Offset(53.34597478551208, 53.47059044312058), Offset(53.22613782901208, 53.34631508082058), Offset(53.10630087251208, 53.222039718520584), Offset(52.98646391591208, 53.09776435622058), Offset(52.86662695941208, 52.97348899392058), Offset(52.74679000291208, 52.849213631520584), Offset(52.626953046412076, 52.72493826922058), Offset(52.50711608991208, 52.60066290692058), Offset(52.38727913331208, 52.47638754462058), Offset(52.26744217681208, 52.35211218232058), Offset(52.14760522031208, 52.22783681992058), Offset(52.02776826381208, 52.10356145762058), Offset(51.90793130721208, 51.97928609532058), Offset(51.78809435071208, 51.85501073302058), Offset(51.66825739421208, 51.73073537072058), Offset(51.54842043771208, 51.60646000832058), Offset(51.42858348121208, 51.48218464602058), Offset(51.308746524612076, 51.35790928372058), Offset(51.18890956811208, 51.233633921420584), Offset(51.06907261161208, 51.10935855912058), Offset(50.949235655112076, 50.98508319682058), Offset(50.82939869851208, 50.860807834420584), Offset(50.70956174201208, 50.73653247212058), Offset(50.58972478551208, 50.61225710982058), Offset(50.46988782901208, 50.48798174752058), Offset(50.35005087251208, 50.36370638522058), Offset(50.23021391591208, 50.23943102282058), Offset(50.11037695941208, 50.11515566052058), ], ), _PathCubicTo( <Offset>[ Offset(26.79953506506211, 54.522707120719886), Offset(26.79953506506211, 54.522707120719886), Offset(26.79953506506211, 54.522707120719886), Offset(26.79953506506211, 54.522707120719886), Offset(26.79953506506211, 54.522707120719886), Offset(26.79953506506211, 54.522707120719886), Offset(26.79953506506211, 54.522707120719886), Offset(26.79953506506211, 54.522707120719886), Offset(26.79953506506211, 54.522707120719886), Offset(26.79953506506211, 54.522707120719886), Offset(27.586834836005405, 54.34772049679427), Offset(31.489615606172315, 53.40971455122347), Offset(35.442274116666454, 52.38323260637452), Offset(39.402653738040314, 51.34517214659979), Offset(43.31217425963652, 50.4025549847652), Offset(47.08000098098459, 49.72174872023579), Offset(50.16886819340391, 50.28103042236462), Offset(52.35994256713666, 52.48497375612058), Offset(53.68156851033666, 53.84341653012058), Offset(53.561731553736664, 53.71914116782058), Offset(53.44189459723666, 53.59486580542058), Offset(53.32205764073666, 53.47059044312058), Offset(53.202220684236664, 53.34631508082058), Offset(53.08238372773666, 53.222039718520584), Offset(52.962546771136665, 53.09776435622058), Offset(52.84270981463666, 52.97348899392058), Offset(52.72287285813666, 52.849213631520584), Offset(52.60303590163666, 52.72493826922058), Offset(52.483198945136664, 52.60066290692058), Offset(52.36336198853666, 52.47638754462058), Offset(52.243525032036665, 52.35211218232058), Offset(52.12368807553666, 52.22783681992058), Offset(52.00385111903666, 52.10356145762058), Offset(51.884014162436664, 51.97928609532058), Offset(51.76417720593666, 51.85501073302058), Offset(51.64434024943666, 51.73073537072058), Offset(51.524503292936664, 51.60646000832058), Offset(51.40466633643666, 51.48218464602058), Offset(51.28482937983666, 51.35790928372058), Offset(51.16499242333666, 51.233633921420584), Offset(51.04515546683666, 51.10935855912058), Offset(50.92531851033666, 50.98508319682058), Offset(50.80548155373666, 50.860807834420584), Offset(50.68564459723666, 50.73653247212058), Offset(50.565807640736665, 50.61225710982058), Offset(50.44597068423666, 50.48798174752058), Offset(50.32613372773666, 50.36370638522058), Offset(50.206296771136664, 50.23943102282058), Offset(50.08645981463666, 50.11515566052058), ], <Offset>[ Offset(18.692467120719886, 46.41563917637766), Offset(18.692467120719886, 46.41563917637766), Offset(18.692467120719886, 46.41563917637766), Offset(18.692467120719886, 46.41563917637766), Offset(18.692467120719886, 46.41563917637766), Offset(18.692467120719886, 46.41563917637766), Offset(18.692467120719886, 46.41563917637766), Offset(18.692467120719886, 46.41563917637766), Offset(18.692467120719886, 46.41563917637766), Offset(18.692467120719886, 46.41563917637766), Offset(19.76094037350107, 46.52182603428993), Offset(25.077698896014848, 46.99779784106601), Offset(30.48424678780122, 47.42520527750929), Offset(35.90408326978374, 47.84660167834321), Offset(41.23085606905603, 48.32123679418471), Offset(46.299534025885855, 48.94128176514349), Offset(50.13565503655109, 50.247817265511806), Offset(52.34054840209764, 52.46557959108156), Offset(53.662174345297636, 53.824022365081554), Offset(53.54233738869764, 53.69974700278156), Offset(53.42250043219764, 53.57547164038156), Offset(53.302663475697635, 53.451196278081554), Offset(53.18282651919764, 53.32692091578156), Offset(53.06298956269764, 53.20264555348156), Offset(52.94315260609764, 53.078370191181556), Offset(52.82331564959764, 52.95409482888156), Offset(52.70347869309764, 52.82981946648156), Offset(52.583641736597635, 52.705544104181556), Offset(52.46380478009764, 52.58126874188156), Offset(52.343967823497636, 52.456993379581554), Offset(52.22413086699764, 52.33271801728156), Offset(52.10429391049764, 52.20844265488156), Offset(51.984456953997636, 52.084167292581554), Offset(51.86461999739764, 51.95989193028156), Offset(51.74478304089764, 51.83561656798155), Offset(51.624946084397635, 51.711341205681556), Offset(51.50510912789764, 51.58706584328156), Offset(51.38527217139764, 51.46279048098155), Offset(51.265435214797634, 51.338515118681556), Offset(51.14559825829764, 51.21423975638156), Offset(51.02576130179764, 51.089964394081555), Offset(50.905924345297635, 50.96568903178156), Offset(50.78608738869764, 50.84141366938156), Offset(50.666250432197636, 50.717138307081555), Offset(50.54641347569764, 50.59286294478156), Offset(50.42657651919764, 50.468587582481554), Offset(50.306739562697636, 50.34431222018156), Offset(50.18690260609764, 50.22003685778156), Offset(50.06706564959764, 50.095761495481554), ], <Offset>[ Offset(18.692467120719886, 36.41758712071989), Offset(18.692467120719886, 36.41758712071989), Offset(18.692467120719886, 36.41758712071989), Offset(18.692467120719886, 36.41758712071989), Offset(18.692467120719886, 36.41758712071989), Offset(18.692467120719886, 36.41758712071989), Offset(18.692467120719886, 36.41758712071989), Offset(18.692467120719886, 36.41758712071989), Offset(18.692467120719886, 36.41758712071989), Offset(18.692467120719886, 36.41758712071989), Offset(19.76094037350107, 36.87053160703761), Offset(25.077698896014848, 39.09029363766916), Offset(30.48424678780122, 41.31071235333787), Offset(35.90408326978374, 43.53198610663798), Offset(41.23085606905603, 45.75444966750169), Offset(46.299534025885855, 47.97877125585276), Offset(50.13565503655109, 50.20685835445277), Offset(52.34054840209764, 52.44166244630614), Offset(53.662174345297636, 53.800105220306136), Offset(53.54233738869764, 53.67582985800614), Offset(53.42250043219764, 53.55155449560614), Offset(53.302663475697635, 53.427279133306136), Offset(53.18282651919764, 53.30300377100614), Offset(53.06298956269764, 53.17872840870614), Offset(52.94315260609764, 53.05445304640614), Offset(52.82331564959764, 52.93017768410614), Offset(52.70347869309764, 52.80590232170614), Offset(52.583641736597635, 52.68162695940614), Offset(52.46380478009764, 52.55735159710614), Offset(52.343967823497636, 52.43307623480614), Offset(52.22413086699764, 52.30880087250614), Offset(52.10429391049764, 52.18452551010614), Offset(51.984456953997636, 52.06025014780614), Offset(51.86461999739764, 51.93597478550614), Offset(51.74478304089764, 51.811699423206136), Offset(51.624946084397635, 51.68742406090614), Offset(51.50510912789764, 51.56314869850614), Offset(51.38527217139764, 51.438873336206136), Offset(51.265435214797634, 51.31459797390614), Offset(51.14559825829764, 51.19032261160614), Offset(51.02576130179764, 51.06604724930614), Offset(50.905924345297635, 50.94177188700614), Offset(50.78608738869764, 50.81749652460614), Offset(50.666250432197636, 50.69322116230614), Offset(50.54641347569764, 50.56894580000614), Offset(50.42657651919764, 50.44467043770614), Offset(50.306739562697636, 50.32039507540614), Offset(50.18690260609764, 50.19611971300614), Offset(50.06706564959764, 50.07184435070614), ], ), _PathCubicTo( <Offset>[ Offset(18.692467120719886, 26.419565760864774), Offset(18.692467120719886, 26.419565760864774), Offset(18.692467120719886, 26.419565760864774), Offset(18.692467120719886, 26.419565760864774), Offset(18.692467120719886, 26.419565760864774), Offset(18.692467120719886, 26.419565760864774), Offset(18.692467120719886, 26.419565760864774), Offset(18.692467120719886, 26.419565760864774), Offset(18.692467120719886, 26.419565760864774), Offset(18.692467120719886, 26.419565760864774), Offset(19.76094037350107, 27.219266804248566), Offset(25.077698896014848, 31.18281367228795), Offset(30.48424678780122, 35.1962381308779), Offset(35.90408326978374, 39.21738368206378), Offset(41.23085606905603, 43.187670298244306), Offset(46.299534025885855, 47.016263564148105), Offset(50.13565503655109, 50.165899443393734), Offset(52.34054840209764, 52.417745301530715), Offset(53.662174345297636, 53.77618807553071), Offset(53.54233738869764, 53.651912713230715), Offset(53.42250043219764, 53.527637350830716), Offset(53.302663475697635, 53.40336198853072), Offset(53.18282651919764, 53.27908662623072), Offset(53.06298956269764, 53.154811263930725), Offset(52.94315260609764, 53.030535901630714), Offset(52.82331564959764, 52.90626053933072), Offset(52.70347869309764, 52.78198517693072), Offset(52.583641736597635, 52.65770981463072), Offset(52.46380478009764, 52.533434452330724), Offset(52.343967823497636, 52.40915909003071), Offset(52.22413086699764, 52.284883727730715), Offset(52.10429391049764, 52.16060836533072), Offset(51.984456953997636, 52.03633300303072), Offset(51.86461999739764, 51.91205764073072), Offset(51.74478304089764, 51.78778227843071), Offset(51.624946084397635, 51.663506916130714), Offset(51.50510912789764, 51.539231553730716), Offset(51.38527217139764, 51.41495619143072), Offset(51.265435214797634, 51.29068082913072), Offset(51.14559825829764, 51.166405466830724), Offset(51.02576130179764, 51.04213010453071), Offset(50.905924345297635, 50.917854742230716), Offset(50.78608738869764, 50.79357937983072), Offset(50.666250432197636, 50.66930401753072), Offset(50.54641347569764, 50.54502865523072), Offset(50.42657651919764, 50.42075329293071), Offset(50.306739562697636, 50.296477930630715), Offset(50.18690260609764, 50.172202568230716), Offset(50.06706564959764, 50.04792720593072), ], <Offset>[ Offset(26.79953506506211, 18.312467120719884), Offset(26.79953506506211, 18.312467120719884), Offset(26.79953506506211, 18.312467120719884), Offset(26.79953506506211, 18.312467120719884), Offset(26.79953506506211, 18.312467120719884), Offset(26.79953506506211, 18.312467120719884), Offset(26.79953506506211, 18.312467120719884), Offset(26.79953506506211, 18.312467120719884), Offset(26.79953506506211, 18.312467120719884), Offset(26.79953506506211, 18.312467120719884), Offset(27.58683483600541, 19.393342717280955), Offset(31.489615606172315, 24.77087272411485), Offset(35.442274116666454, 30.23819210030122), Offset(39.40265373804032, 35.71880006667617), Offset(43.31217425963652, 41.106344350238174), Offset(47.08000098097815, 46.23579379146974), Offset(50.16886819340391, 50.13268628654091), Offset(52.35994256713666, 52.3983511364917), Offset(53.68156851033666, 53.756793910491695), Offset(53.561731553736664, 53.6325185481917), Offset(53.44189459723666, 53.5082431857917), Offset(53.32205764073666, 53.38396782349169), Offset(53.202220684236664, 53.25969246119169), Offset(53.08238372773666, 53.13541709889169), Offset(52.962546771136665, 53.011141736591696), Offset(52.84270981463666, 52.8868663742917), Offset(52.72287285813666, 52.7625910118917), Offset(52.60303590163666, 52.63831564959169), Offset(52.483198945136664, 52.51404028729169), Offset(52.36336198853666, 52.389764924991695), Offset(52.243525032036665, 52.2654895626917), Offset(52.12368807553666, 52.1412142002917), Offset(52.00385111903666, 52.01693883799169), Offset(51.884014162436664, 51.89266347569169), Offset(51.76417720593666, 51.768388113391694), Offset(51.64434024943666, 51.6441127510917), Offset(51.524503292936664, 51.5198373886917), Offset(51.40466633643666, 51.39556202639169), Offset(51.28482937983666, 51.27128666409169), Offset(51.16499242333666, 51.14701130179169), Offset(51.04515546683666, 51.022735939491696), Offset(50.92531851033666, 50.8984605771917), Offset(50.80548155373666, 50.7741852147917), Offset(50.68564459723666, 50.64990985249169), Offset(50.565807640736665, 50.52563449019169), Offset(50.44597068423666, 50.401359127891695), Offset(50.32613372773666, 50.2770837655917), Offset(50.206296771136664, 50.1528084031917), Offset(50.08645981463666, 50.02853304089169), ], <Offset>[ Offset(36.79758712071989, 18.312467120719884), Offset(36.79758712071989, 18.312467120719884), Offset(36.79758712071989, 18.312467120719884), Offset(36.79758712071989, 18.312467120719884), Offset(36.79758712071989, 18.312467120719884), Offset(36.79758712071989, 18.312467120719884), Offset(36.79758712071989, 18.312467120719884), Offset(36.79758712071989, 18.312467120719884), Offset(36.79758712071989, 18.312467120719884), Offset(36.79758712071989, 18.312467120719884), Offset(37.238129263257726, 19.393342717280955), Offset(39.39711980956916, 24.77087272411485), Offset(41.55676704083787, 30.23819210030122), Offset(43.717269309745554, 35.71880006667617), Offset(45.878961386319546, 41.106344350238174), Offset(48.04251149026888, 46.23579379146974), Offset(50.209827104462946, 50.13268628654091), Offset(52.38385971191208, 52.3983511364917), Offset(53.70548565511208, 53.756793910491695), Offset(53.58564869851208, 53.6325185481917), Offset(53.46581174201208, 53.5082431857917), Offset(53.34597478551208, 53.38396782349169), Offset(53.22613782901208, 53.25969246119169), Offset(53.10630087251208, 53.13541709889169), Offset(52.98646391591208, 53.011141736591696), Offset(52.86662695941208, 52.8868663742917), Offset(52.74679000291208, 52.7625910118917), Offset(52.626953046412076, 52.63831564959169), Offset(52.50711608991208, 52.51404028729169), Offset(52.38727913331208, 52.389764924991695), Offset(52.26744217681208, 52.2654895626917), Offset(52.14760522031208, 52.1412142002917), Offset(52.02776826381208, 52.01693883799169), Offset(51.90793130721208, 51.89266347569169), Offset(51.78809435071208, 51.768388113391694), Offset(51.66825739421208, 51.6441127510917), Offset(51.54842043771208, 51.5198373886917), Offset(51.42858348121208, 51.39556202639169), Offset(51.308746524612076, 51.27128666409169), Offset(51.18890956811208, 51.14701130179169), Offset(51.06907261161208, 51.022735939491696), Offset(50.949235655112076, 50.8984605771917), Offset(50.82939869851208, 50.7741852147917), Offset(50.70956174201208, 50.64990985249169), Offset(50.58972478551208, 50.52563449019169), Offset(50.46988782901208, 50.401359127891695), Offset(50.35005087251208, 50.2770837655917), Offset(50.23021391591208, 50.1528084031917), Offset(50.11037695941208, 50.02853304089169), ], ), _PathCubicTo( <Offset>[ Offset(46.79563917637766, 18.312467120719884), Offset(46.79563917637766, 18.312467120719884), Offset(46.79563917637766, 18.312467120719884), Offset(46.79563917637766, 18.312467120719884), Offset(46.79563917637766, 18.312467120719884), Offset(46.79563917637766, 18.312467120719884), Offset(46.79563917637766, 18.312467120719884), Offset(46.79563917637766, 18.312467120719884), Offset(46.79563917637766, 18.312467120719884), Offset(46.79563917637766, 18.312467120719884), Offset(46.88942369051005, 19.393342717280955), Offset(47.30462401296601, 24.77087272411485), Offset(47.67125996500929, 30.23819210030122), Offset(48.031884881450786, 35.71880006667617), Offset(48.44574851300257, 41.106344350238174), Offset(49.005021999553165, 46.23579379146974), Offset(50.25078601552198, 50.13268628654091), Offset(52.4077768566875, 52.3983511364917), Offset(53.729402799887495, 53.756793910491695), Offset(53.6095658432875, 53.6325185481917), Offset(53.489728886787496, 53.5082431857917), Offset(53.369891930287494, 53.38396782349169), Offset(53.2500549737875, 53.25969246119169), Offset(53.1302180172875, 53.13541709889169), Offset(53.0103810606875, 53.011141736591696), Offset(52.8905441041875, 52.8868663742917), Offset(52.770707147687496, 52.7625910118917), Offset(52.650870191187494, 52.63831564959169), Offset(52.5310332346875, 52.51404028729169), Offset(52.411196278087495, 52.389764924991695), Offset(52.2913593215875, 52.2654895626917), Offset(52.1715223650875, 52.1412142002917), Offset(52.051685408587495, 52.01693883799169), Offset(51.9318484519875, 51.89266347569169), Offset(51.812011495487496, 51.768388113391694), Offset(51.692174538987494, 51.6441127510917), Offset(51.5723375824875, 51.5198373886917), Offset(51.4525006259875, 51.39556202639169), Offset(51.33266366938749, 51.27128666409169), Offset(51.2128267128875, 51.14701130179169), Offset(51.092989756387496, 51.022735939491696), Offset(50.973152799887494, 50.8984605771917), Offset(50.8533158432875, 50.7741852147917), Offset(50.733478886787495, 50.64990985249169), Offset(50.6136419302875, 50.52563449019169), Offset(50.4938049737875, 50.401359127891695), Offset(50.373968017287496, 50.2770837655917), Offset(50.2541310606875, 50.1528084031917), Offset(50.1342941041875, 50.02853304089169), ], <Offset>[ Offset(54.90270712071989, 26.419565760864774), Offset(54.90270712071989, 26.419565760864774), Offset(54.90270712071989, 26.419565760864774), Offset(54.90270712071989, 26.419565760864774), Offset(54.90270712071989, 26.419565760864774), Offset(54.90270712071989, 26.419565760864774), Offset(54.90270712071989, 26.419565760864774), Offset(54.90270712071989, 26.419565760864774), Offset(54.90270712071989, 26.419565760864774), Offset(54.90270712071989, 26.419565760864774), Offset(54.71531815301439, 27.21926680424857), Offset(53.71654072312347, 31.18281367228795), Offset(52.62928729387452, 35.1962381308779), Offset(51.53045534970737, 39.21738368206378), Offset(50.52706670358306, 43.187670298244306), Offset(49.7854889546519, 47.01626356414165), Offset(50.283999172374806, 50.165899443393734), Offset(52.42717102172652, 52.417745301530715), Offset(53.74879696492653, 53.77618807553071), Offset(53.62896000832653, 53.651912713230715), Offset(53.50912305182652, 53.527637350830716), Offset(53.389286095326526, 53.40336198853072), Offset(53.26944913882653, 53.27908662623072), Offset(53.14961218232652, 53.154811263930725), Offset(53.029775225726524, 53.030535901630714), Offset(52.90993826922653, 52.90626053933072), Offset(52.79010131272652, 52.78198517693072), Offset(52.670264356226525, 52.65770981463072), Offset(52.55042739972653, 52.533434452330724), Offset(52.43059044312652, 52.40915909003071), Offset(52.310753486626524, 52.284883727730715), Offset(52.19091653012653, 52.16060836533072), Offset(52.07107957362652, 52.03633300303072), Offset(51.95124261702652, 51.91205764073072), Offset(51.83140566052653, 51.78778227843071), Offset(51.71156870402652, 51.663506916130714), Offset(51.591731747526524, 51.539231553730716), Offset(51.47189479102653, 51.41495619143072), Offset(51.35205783442652, 51.29068082913072), Offset(51.23222087792652, 51.166405466830724), Offset(51.11238392142653, 51.04213010453071), Offset(50.99254696492652, 50.917854742230716), Offset(50.87271000832652, 50.79357937983072), Offset(50.752873051826526, 50.66930401753072), Offset(50.63303609532653, 50.54502865523072), Offset(50.51319913882652, 50.42075329293071), Offset(50.39336218232653, 50.296477930630715), Offset(50.27352522572653, 50.172202568230716), Offset(50.15368826922652, 50.04792720593072), ], <Offset>[ Offset(54.90270712071989, 36.41758712071989), Offset(54.90270712071989, 36.41758712071989), Offset(54.90270712071989, 36.41758712071989), Offset(54.90270712071989, 36.41758712071989), Offset(54.90270712071989, 36.41758712071989), Offset(54.90270712071989, 36.41758712071989), Offset(54.90270712071989, 36.41758712071989), Offset(54.90270712071989, 36.41758712071989), Offset(54.90270712071989, 36.41758712071989), Offset(54.90270712071989, 36.41758712071989), Offset(54.71531815301439, 36.87053160703761), Offset(53.71654072312347, 39.09029363766916), Offset(52.62928729387452, 41.31071235333787), Offset(51.53045534970737, 43.53198610663798), Offset(50.52706670358306, 45.75444966750169), Offset(49.7854889546519, 47.97877125585276), Offset(50.283999172374806, 50.20685835445277), Offset(52.42717102172652, 52.44166244630614), Offset(53.74879696492653, 53.800105220306136), Offset(53.62896000832653, 53.67582985800614), Offset(53.50912305182652, 53.55155449560614), Offset(53.389286095326526, 53.427279133306136), Offset(53.26944913882653, 53.30300377100614), Offset(53.14961218232652, 53.17872840870614), Offset(53.029775225726524, 53.05445304640614), Offset(52.90993826922653, 52.93017768410614), Offset(52.79010131272652, 52.80590232170614), Offset(52.670264356226525, 52.68162695940614), Offset(52.55042739972653, 52.55735159710614), Offset(52.43059044312652, 52.43307623480614), Offset(52.310753486626524, 52.30880087250614), Offset(52.19091653012653, 52.18452551010614), Offset(52.07107957362652, 52.06025014780614), Offset(51.95124261702652, 51.93597478550614), Offset(51.83140566052653, 51.811699423206136), Offset(51.71156870402652, 51.68742406090614), Offset(51.591731747526524, 51.56314869850614), Offset(51.47189479102653, 51.438873336206136), Offset(51.35205783442652, 51.31459797390614), Offset(51.23222087792652, 51.19032261160614), Offset(51.11238392142653, 51.06604724930614), Offset(50.99254696492652, 50.94177188700614), Offset(50.87271000832652, 50.81749652460614), Offset(50.752873051826526, 50.69322116230614), Offset(50.63303609532653, 50.56894580000614), Offset(50.51319913882652, 50.44467043770614), Offset(50.39336218232653, 50.32039507540614), Offset(50.27352522572653, 50.19611971300614), Offset(50.15368826922652, 50.07184435070614), ], ), _PathCubicTo( <Offset>[ Offset(54.90270712071989, 46.41563917637766), Offset(54.90270712071989, 46.41563917637766), Offset(54.90270712071989, 46.41563917637766), Offset(54.90270712071989, 46.41563917637766), Offset(54.90270712071989, 46.41563917637766), Offset(54.90270712071989, 46.41563917637766), Offset(54.90270712071989, 46.41563917637766), Offset(54.90270712071989, 46.41563917637766), Offset(54.90270712071989, 46.41563917637766), Offset(54.90270712071989, 46.41563917637766), Offset(54.71531815301439, 46.52182603428994), Offset(53.71654072312347, 46.99779784106601), Offset(52.62928729387452, 47.42520527750929), Offset(51.53045534970737, 47.84660167834321), Offset(50.52706670358306, 48.32123679418471), Offset(49.7854889546519, 48.94128176513705), Offset(50.283999172374806, 50.247817265511806), Offset(52.42717102172652, 52.46557959108156), Offset(53.74879696492653, 53.824022365081554), Offset(53.62896000832653, 53.69974700278156), Offset(53.50912305182652, 53.57547164038156), Offset(53.389286095326526, 53.451196278081554), Offset(53.26944913882653, 53.32692091578156), Offset(53.14961218232652, 53.20264555348156), Offset(53.029775225726524, 53.078370191181556), Offset(52.90993826922653, 52.95409482888156), Offset(52.79010131272652, 52.82981946648156), Offset(52.670264356226525, 52.705544104181556), Offset(52.55042739972653, 52.58126874188156), Offset(52.43059044312652, 52.456993379581554), Offset(52.310753486626524, 52.33271801728156), Offset(52.19091653012653, 52.20844265488156), Offset(52.07107957362652, 52.084167292581554), Offset(51.95124261702652, 51.95989193028156), Offset(51.83140566052653, 51.83561656798155), Offset(51.71156870402652, 51.711341205681556), Offset(51.591731747526524, 51.58706584328156), Offset(51.47189479102653, 51.46279048098155), Offset(51.35205783442652, 51.338515118681556), Offset(51.23222087792652, 51.21423975638156), Offset(51.11238392142653, 51.089964394081555), Offset(50.99254696492652, 50.96568903178156), Offset(50.87271000832652, 50.84141366938156), Offset(50.752873051826526, 50.717138307081555), Offset(50.63303609532653, 50.59286294478156), Offset(50.51319913882652, 50.468587582481554), Offset(50.39336218232653, 50.34431222018156), Offset(50.27352522572653, 50.22003685778156), Offset(50.15368826922652, 50.095761495481554), ], <Offset>[ Offset(46.79563917637766, 54.522707120719886), Offset(46.79563917637766, 54.522707120719886), Offset(46.79563917637766, 54.522707120719886), Offset(46.79563917637766, 54.522707120719886), Offset(46.79563917637766, 54.522707120719886), Offset(46.79563917637766, 54.522707120719886), Offset(46.79563917637766, 54.522707120719886), Offset(46.79563917637766, 54.522707120719886), Offset(46.79563917637766, 54.522707120719886), Offset(46.79563917637766, 54.522707120719886), Offset(46.88942369051005, 54.34772049679427), Offset(47.30462401296601, 53.40971455122347), Offset(47.67125996500929, 52.38323260637452), Offset(48.031884881450786, 51.34517214659979), Offset(48.44574851300257, 50.4025549847652), Offset(49.00502199955961, 49.72174872023579), Offset(50.25078601552198, 50.28103042236462), Offset(52.4077768566875, 52.48497375612058), Offset(53.729402799887495, 53.84341653012058), Offset(53.6095658432875, 53.71914116782058), Offset(53.489728886787496, 53.59486580542058), Offset(53.369891930287494, 53.47059044312058), Offset(53.2500549737875, 53.34631508082058), Offset(53.1302180172875, 53.222039718520584), Offset(53.0103810606875, 53.09776435622058), Offset(52.8905441041875, 52.97348899392058), Offset(52.770707147687496, 52.849213631520584), Offset(52.650870191187494, 52.72493826922058), Offset(52.5310332346875, 52.60066290692058), Offset(52.411196278087495, 52.47638754462058), Offset(52.2913593215875, 52.35211218232058), Offset(52.1715223650875, 52.22783681992058), Offset(52.051685408587495, 52.10356145762058), Offset(51.9318484519875, 51.97928609532058), Offset(51.812011495487496, 51.85501073302058), Offset(51.692174538987494, 51.73073537072058), Offset(51.5723375824875, 51.60646000832058), Offset(51.4525006259875, 51.48218464602058), Offset(51.33266366938749, 51.35790928372058), Offset(51.2128267128875, 51.233633921420584), Offset(51.092989756387496, 51.10935855912058), Offset(50.973152799887494, 50.98508319682058), Offset(50.8533158432875, 50.860807834420584), Offset(50.733478886787495, 50.73653247212058), Offset(50.6136419302875, 50.61225710982058), Offset(50.4938049737875, 50.48798174752058), Offset(50.373968017287496, 50.36370638522058), Offset(50.2541310606875, 50.23943102282058), Offset(50.1342941041875, 50.11515566052058), ], <Offset>[ Offset(36.79758712071989, 54.522707120719886), Offset(36.79758712071989, 54.522707120719886), Offset(36.79758712071989, 54.522707120719886), Offset(36.79758712071989, 54.522707120719886), Offset(36.79758712071989, 54.522707120719886), Offset(36.79758712071989, 54.522707120719886), Offset(36.79758712071989, 54.522707120719886), Offset(36.79758712071989, 54.522707120719886), Offset(36.79758712071989, 54.522707120719886), Offset(36.79758712071989, 54.522707120719886), Offset(37.238129263257726, 54.34772049679427), Offset(39.39711980956916, 53.40971455122347), Offset(41.55676704083787, 52.38323260637452), Offset(43.717269309745554, 51.34517214659979), Offset(45.878961386319546, 50.4025549847652), Offset(48.04251149026888, 49.72174872023579), Offset(50.209827104462946, 50.28103042236462), Offset(52.38385971191208, 52.48497375612058), Offset(53.70548565511208, 53.84341653012058), Offset(53.58564869851208, 53.71914116782058), Offset(53.46581174201208, 53.59486580542058), Offset(53.34597478551208, 53.47059044312058), Offset(53.22613782901208, 53.34631508082058), Offset(53.10630087251208, 53.222039718520584), Offset(52.98646391591208, 53.09776435622058), Offset(52.86662695941208, 52.97348899392058), Offset(52.74679000291208, 52.849213631520584), Offset(52.626953046412076, 52.72493826922058), Offset(52.50711608991208, 52.60066290692058), Offset(52.38727913331208, 52.47638754462058), Offset(52.26744217681208, 52.35211218232058), Offset(52.14760522031208, 52.22783681992058), Offset(52.02776826381208, 52.10356145762058), Offset(51.90793130721208, 51.97928609532058), Offset(51.78809435071208, 51.85501073302058), Offset(51.66825739421208, 51.73073537072058), Offset(51.54842043771208, 51.60646000832058), Offset(51.42858348121208, 51.48218464602058), Offset(51.308746524612076, 51.35790928372058), Offset(51.18890956811208, 51.233633921420584), Offset(51.06907261161208, 51.10935855912058), Offset(50.949235655112076, 50.98508319682058), Offset(50.82939869851208, 50.860807834420584), Offset(50.70956174201208, 50.73653247212058), Offset(50.58972478551208, 50.61225710982058), Offset(50.46988782901208, 50.48798174752058), Offset(50.35005087251208, 50.36370638522058), Offset(50.23021391591208, 50.23943102282058), Offset(50.11037695941208, 50.11515566052058), ], ), _PathClose( ), ], ), _PathFrames( opacities: <double>[ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ], commands: <_PathCommand>[ _PathMoveTo( <Offset>[ Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), ], ), _PathCubicTo( <Offset>[ Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), Offset(60.937745291919896, 54.52270224391989), ], <Offset>[ Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), ], <Offset>[ Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), ], ), _PathCubicTo( <Offset>[ Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), Offset(57.739181458913336, 54.52270224391989), ], <Offset>[ Offset(56.3827647181903, 53.16631619899751), Offset(56.3827647181903, 53.16631619899751), Offset(56.3827647181903, 53.16631619899751), Offset(56.3827647181903, 53.16631619899751), Offset(56.3827647181903, 53.16631619899751), Offset(56.3827647181903, 53.16631619899751), Offset(56.3827647181903, 53.16631619899751), Offset(56.3827647181903, 53.16631619899751), Offset(56.3827647181903, 53.16631619899751), Offset(56.3827647181903, 53.16631619899751), Offset(56.39144480852299, 53.174996289330196), Offset(56.43397725114974, 53.217528731956946), Offset(56.47650969377649, 53.2600611745837), Offset(56.51904213640324, 53.30259361721045), Offset(56.561574579029994, 53.3451260598372), Offset(56.604107021656745, 53.38765850246395), Offset(56.62684855989554, 53.41109453319635), Offset(56.60877135783367, 53.39514421439123), Offset(56.5906941557718, 53.37919389558813), Offset(56.572616953707914, 53.363243576785024), Offset(56.55453975164605, 53.347293257979906), Offset(56.53646254958216, 53.33134293917681), Offset(56.518385347520294, 53.3153926203737), Offset(56.50030814545842, 53.29944230156859), Offset(56.48223094339454, 53.28349198276548), Offset(56.464153741332666, 53.267541663962376), Offset(56.44607653927079, 53.251591345157266), Offset(56.42799933720691, 53.23564102635416), Offset(56.40992213514504, 53.21969070755106), Offset(56.39184493308116, 53.20374038874594), Offset(56.373767731019285, 53.187790069942835), Offset(56.35569052895741, 53.171839751139736), Offset(56.33761332689353, 53.15588943233462), Offset(56.31953612483166, 53.13993911353152), Offset(56.30145892276979, 53.12398879472841), Offset(56.283381720705904, 53.108038475923294), Offset(56.26530451864404, 53.092088157120195), Offset(56.24722731658217, 53.07613783831709), Offset(56.22915011451828, 53.06018751951198), Offset(56.211072912456416, 53.04423720070887), Offset(56.19299571039253, 53.02828688190577), Offset(56.174918508330656, 53.012336563100654), Offset(56.15684130626879, 52.996386244297554), Offset(56.1387641042049, 52.98043592549445), Offset(56.120686902143035, 52.96448560668933), Offset(56.10260970008116, 52.94853528788623), Offset(56.08453249801728, 52.93258496908312), Offset(56.06645529595541, 52.916634650278006), Offset(56.04837809389354, 52.900684331474906), ], <Offset>[ Offset(56.3827647181903, 53.16631619899751), Offset(56.3827647181903, 53.16631619899751), Offset(56.3827647181903, 53.16631619899751), Offset(56.3827647181903, 53.16631619899751), Offset(56.3827647181903, 53.16631619899751), Offset(56.3827647181903, 53.16631619899751), Offset(56.3827647181903, 53.16631619899751), Offset(56.3827647181903, 53.16631619899751), Offset(56.3827647181903, 53.16631619899751), Offset(56.3827647181903, 53.16631619899751), Offset(56.39144480852299, 53.174996289330196), Offset(56.43397725114974, 53.217528731956946), Offset(56.47650969377649, 53.2600611745837), Offset(56.51904213640324, 53.30259361721045), Offset(56.561574579029994, 53.3451260598372), Offset(56.604107021656745, 53.38765850246395), Offset(56.62684855989554, 53.41109453319635), Offset(56.60877135783367, 53.39514421439123), Offset(56.5906941557718, 53.37919389558813), Offset(56.572616953707914, 53.363243576785024), Offset(56.55453975164605, 53.347293257979906), Offset(56.53646254958216, 53.33134293917681), Offset(56.518385347520294, 53.3153926203737), Offset(56.50030814545842, 53.29944230156859), Offset(56.48223094339454, 53.28349198276548), Offset(56.464153741332666, 53.267541663962376), Offset(56.44607653927079, 53.251591345157266), Offset(56.42799933720691, 53.23564102635416), Offset(56.40992213514504, 53.21969070755106), Offset(56.39184493308116, 53.20374038874594), Offset(56.373767731019285, 53.187790069942835), Offset(56.35569052895741, 53.171839751139736), Offset(56.33761332689353, 53.15588943233462), Offset(56.31953612483166, 53.13993911353152), Offset(56.30145892276979, 53.12398879472841), Offset(56.283381720705904, 53.108038475923294), Offset(56.26530451864404, 53.092088157120195), Offset(56.24722731658217, 53.07613783831709), Offset(56.22915011451828, 53.06018751951198), Offset(56.211072912456416, 53.04423720070887), Offset(56.19299571039253, 53.02828688190577), Offset(56.174918508330656, 53.012336563100654), Offset(56.15684130626879, 52.996386244297554), Offset(56.1387641042049, 52.98043592549445), Offset(56.120686902143035, 52.96448560668933), Offset(56.10260970008116, 52.94853528788623), Offset(56.08453249801728, 52.93258496908312), Offset(56.06645529595541, 52.916634650278006), Offset(56.04837809389354, 52.900684331474906), ], ), _PathCubicTo( <Offset>[ Offset(56.3827647181903, 53.16627596539751), Offset(56.3827647181903, 53.16627596539751), Offset(56.3827647181903, 53.16627596539751), Offset(56.3827647181903, 53.16627596539751), Offset(56.3827647181903, 53.16627596539751), Offset(56.3827647181903, 53.16627596539751), Offset(56.3827647181903, 53.16627596539751), Offset(56.3827647181903, 53.16627596539751), Offset(56.3827647181903, 53.16627596539751), Offset(56.3827647181903, 53.16627596539751), Offset(56.39144480852299, 53.1749560557302), Offset(56.43397725114974, 53.21748849835695), Offset(56.47650969377649, 53.2600209409837), Offset(56.51904213640324, 53.302553383610444), Offset(56.561574579029994, 53.345085826237195), Offset(56.604107021656745, 53.387618268863946), Offset(56.62684855989554, 53.411054299596344), Offset(56.60877135783367, 53.395103980791234), Offset(56.5906941557718, 53.37915366198813), Offset(56.572616953707914, 53.36320334318502), Offset(56.55453975164605, 53.34725302437991), Offset(56.53646254958216, 53.3313027055768), Offset(56.518385347520294, 53.315352386773704), Offset(56.50030814545842, 53.299402067968586), Offset(56.48223094339454, 53.28345174916548), Offset(56.464153741332666, 53.26750143036238), Offset(56.44607653927079, 53.25155111155726), Offset(56.42799933720691, 53.23560079275416), Offset(56.40992213514504, 53.219650473951056), Offset(56.39184493308116, 53.20370015514594), Offset(56.373767731019285, 53.18774983634284), Offset(56.35569052895741, 53.17179951753973), Offset(56.33761332689353, 53.15584919873462), Offset(56.31953612483166, 53.139898879931515), Offset(56.30145892276979, 53.123948561128415), Offset(56.283381720705904, 53.1079982423233), Offset(56.26530451864404, 53.0920479235202), Offset(56.24722731658217, 53.07609760471709), Offset(56.22915011451828, 53.060147285911974), Offset(56.211072912456416, 53.044196967108874), Offset(56.19299571039253, 53.02824664830577), Offset(56.174918508330656, 53.01229632950065), Offset(56.15684130626879, 52.99634601069755), Offset(56.1387641042049, 52.980395691894444), Offset(56.120686902143035, 52.96444537308933), Offset(56.10260970008116, 52.94849505428623), Offset(56.08453249801728, 52.93254473548313), Offset(56.06645529595541, 52.91659441667801), Offset(56.04837809389354, 52.9006440978749), ], <Offset>[ Offset(53.54631924699953, 56.02289811551084), Offset(53.54631924699953, 56.02289811551084), Offset(53.54631924699953, 56.02289811551084), Offset(53.54631924699953, 56.02289811551084), Offset(53.54631924699953, 56.02289811551084), Offset(53.54631924699953, 56.02289811551084), Offset(53.54631924699953, 56.02289811551084), Offset(53.54631924699953, 56.02289811551084), Offset(53.54631924699953, 56.02289811551084), Offset(53.54631924699953, 56.02289811551084), Offset(53.55499933733222, 56.03157820584353), Offset(53.59753177995896, 56.07411064847028), Offset(53.64006422258572, 56.11664309109703), Offset(53.682596665212465, 56.15917553372378), Offset(53.725129107839216, 56.201707976350534), Offset(53.76766155046597, 56.244240418977284), Offset(53.790403088704764, 56.26767644970968), Offset(53.77232588664289, 56.251726130904565), Offset(53.75424868458102, 56.235775812101465), Offset(53.736171482517136, 56.21982549329836), Offset(53.71809428045527, 56.20387517449325), Offset(53.70001707839138, 56.18792485569014), Offset(53.68193987632951, 56.171974536887035), Offset(53.66386267426764, 56.156024218081924), Offset(53.645785472203755, 56.14007389927882), Offset(53.62770827014189, 56.12412358047571), Offset(53.60963106808002, 56.1081732616706), Offset(53.591553866016135, 56.092222942867494), Offset(53.57347666395426, 56.076272624064394), Offset(53.55539946189038, 56.06032230525928), Offset(53.53732225982851, 56.04437198645618), Offset(53.51924505776664, 56.02842166765307), Offset(53.501167855702754, 56.01247134884795), Offset(53.483090653640886, 55.99652103004485), Offset(53.46501345157901, 55.980570711241754), Offset(53.44693624951513, 55.964620392436636), Offset(53.42885904745326, 55.94867007363353), Offset(53.41078184539139, 55.93271975483043), Offset(53.392704643327505, 55.91676943602531), Offset(53.37462744126564, 55.90081911722221), Offset(53.35655023920175, 55.884868798419106), Offset(53.33847303713988, 55.86891847961399), Offset(53.32039583507801, 55.85296816081089), Offset(53.302318633014124, 55.83701784200778), Offset(53.28424143095226, 55.821067523202665), Offset(53.26616422889038, 55.805117204399565), Offset(53.248087026826504, 55.78916688559646), Offset(53.23000982476463, 55.77321656679135), Offset(53.21193262270276, 55.75726624798824), ], <Offset>[ Offset(53.54628855119686, 56.02289811551084), Offset(53.54628855119686, 56.02289811551084), Offset(53.54628855119686, 56.02289811551084), Offset(53.54628855119686, 56.02289811551084), Offset(53.54628855119686, 56.02289811551084), Offset(53.54628855119686, 56.02289811551084), Offset(53.54628855119686, 56.02289811551084), Offset(53.54628855119686, 56.02289811551084), Offset(53.54628855119686, 56.02289811551084), Offset(53.54628855119686, 56.02289811551084), Offset(53.55496864152955, 56.03157820584353), Offset(53.5975010841563, 56.07411064847028), Offset(53.64003352678305, 56.11664309109703), Offset(53.6825659694098, 56.15917553372378), Offset(53.72509841203655, 56.201707976350534), Offset(53.7676308546633, 56.244240418977284), Offset(53.79037239290209, 56.26767644970968), Offset(53.772295190840225, 56.251726130904565), Offset(53.75421798877835, 56.235775812101465), Offset(53.73614078671447, 56.21982549329836), Offset(53.7180635846526, 56.20387517449325), Offset(53.69998638258872, 56.18792485569014), Offset(53.681909180526844, 56.171974536887035), Offset(53.66383197846497, 56.156024218081924), Offset(53.64575477640109, 56.14007389927882), Offset(53.62767757433922, 56.12412358047571), Offset(53.60960037227735, 56.1081732616706), Offset(53.59152317021346, 56.092222942867494), Offset(53.573445968151596, 56.076272624064394), Offset(53.55536876608771, 56.06032230525928), Offset(53.53729156402584, 56.04437198645618), Offset(53.51921436196397, 56.02842166765307), Offset(53.50113715990009, 56.01247134884795), Offset(53.483059957838215, 55.99652103004485), Offset(53.46498275577635, 55.980570711241754), Offset(53.44690555371246, 55.964620392436636), Offset(53.428828351650594, 55.94867007363353), Offset(53.41075114958872, 55.93271975483043), Offset(53.392673947524834, 55.91676943602531), Offset(53.374596745462966, 55.90081911722221), Offset(53.35651954339908, 55.884868798419106), Offset(53.33844234133721, 55.86891847961399), Offset(53.32036513927534, 55.85296816081089), Offset(53.30228793721146, 55.83701784200778), Offset(53.284210735149586, 55.821067523202665), Offset(53.26613353308772, 55.805117204399565), Offset(53.24805633102383, 55.78916688559646), Offset(53.229979128961965, 55.77321656679135), Offset(53.21190192690009, 55.75726624798824), ], ), _PathCubicTo( <Offset>[ Offset(53.54628855119686, 56.022857881910845), Offset(53.54628855119686, 56.022857881910845), Offset(53.54628855119686, 56.022857881910845), Offset(53.54628855119686, 56.022857881910845), Offset(53.54628855119686, 56.022857881910845), Offset(53.54628855119686, 56.022857881910845), Offset(53.54628855119686, 56.022857881910845), Offset(53.54628855119686, 56.022857881910845), Offset(53.54628855119686, 56.022857881910845), Offset(53.54628855119686, 56.022857881910845), Offset(53.55496864152955, 56.031537972243534), Offset(53.5975010841563, 56.074070414870285), Offset(53.64003352678305, 56.116602857497035), Offset(53.6825659694098, 56.159135300123786), Offset(53.72509841203655, 56.20166774275054), Offset(53.7676308546633, 56.24420018537729), Offset(53.79037239290209, 56.26763621610968), Offset(53.772295190840225, 56.25168589730457), Offset(53.75421798877835, 56.23573557850146), Offset(53.73614078671447, 56.21978525969836), Offset(53.7180635846526, 56.203834940893245), Offset(53.69998638258872, 56.18788462209014), Offset(53.681909180526844, 56.17193430328704), Offset(53.66383197846497, 56.15598398448192), Offset(53.64575477640109, 56.14003366567882), Offset(53.62767757433922, 56.124083346875715), Offset(53.60960037227735, 56.1081330280706), Offset(53.59152317021346, 56.0921827092675), Offset(53.573445968151596, 56.0762323904644), Offset(53.55536876608771, 56.06028207165928), Offset(53.53729156402584, 56.04433175285617), Offset(53.51921436196397, 56.028381434053074), Offset(53.50113715990009, 56.012431115247956), Offset(53.483059957838215, 55.99648079644485), Offset(53.46498275577635, 55.98053047764175), Offset(53.44690555371246, 55.96458015883663), Offset(53.428828351650594, 55.94862984003353), Offset(53.41075114958872, 55.932679521230426), Offset(53.392673947524834, 55.916729202425316), Offset(53.374596745462966, 55.90077888362221), Offset(53.35651954339908, 55.8848285648191), Offset(53.33844234133721, 55.86887824601399), Offset(53.32036513927534, 55.852927927210885), Offset(53.30228793721146, 55.83697760840778), Offset(53.284210735149586, 55.82102728960267), Offset(53.26613353308772, 55.80507697079956), Offset(53.24805633102383, 55.78912665199646), Offset(53.229979128961965, 55.773176333191344), Offset(53.21190192690009, 55.75722601438824), ], <Offset>[ Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), ], <Offset>[ Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291921905, 57.37931485623388), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), ], ), _PathCubicTo( <Offset>[ Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291921905, 57.37931485623388), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.379314856233876), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.37931485623388), Offset(54.902705291919894, 57.379314856233876), ], <Offset>[ Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291921905, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), ], <Offset>[ Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291921905, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), ], ), _PathCubicTo( <Offset>[ Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291921905, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), Offset(54.902705291919894, 60.557742243937994), ], <Offset>[ Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(74.32497336367568, 79.93649262312883), Offset(70.92176691523076, 76.5170858263241), Offset(67.51856046678586, 73.09767902951937), Offset(64.11535401834094, 69.67827223271463), Offset(60.71214756989602, 66.25886543593002), Offset(57.30894112147122, 62.83945863912528), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.01698575823052, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), ], <Offset>[ Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(74.32497336367568, 79.93649262312883), Offset(70.92176691523076, 76.5170858263241), Offset(67.51856046678586, 73.09767902951937), Offset(64.11535401834094, 69.67827223271463), Offset(60.71214756989602, 66.25886543593002), Offset(57.30894112147122, 62.83945863912528), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.01698575823052, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), ], ), _PathCubicTo( <Offset>[ Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(75.0195052919199, 80.63433074491833), Offset(74.32497336367568, 79.93649262312883), Offset(70.92176691523076, 76.5170858263241), Offset(67.51856046678586, 73.09767902951937), Offset(64.11535401834094, 69.67827223271463), Offset(60.71214756989602, 66.25886543593002), Offset(57.30894112147122, 62.83945863912528), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.01698575823052, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), Offset(55.016985758228515, 60.536592837199635), ], <Offset>[ Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(80.31980186465601, 73.9416641221485), Offset(76.9165954162111, 70.52225732534376), Offset(73.51338896776619, 67.10285052853904), Offset(70.11018251932127, 63.6834437317343), Offset(66.70697607087635, 60.26403693494969), Offset(63.30376962245156, 56.84463013814495), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425921086, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), ], <Offset>[ Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(80.31980186465601, 73.9416641221485), Offset(76.9165954162111, 70.52225732534376), Offset(73.51338896776619, 67.10285052853904), Offset(70.11018251932127, 63.6834437317343), Offset(66.70697607087635, 60.26403693494969), Offset(63.30376962245156, 56.84463013814495), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425921086, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), ], ), _PathCubicTo( <Offset>[ Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(81.01433379290023, 74.639502243938), Offset(80.31980186465601, 73.9416641221485), Offset(76.9165954162111, 70.52225732534376), Offset(73.51338896776619, 67.10285052853904), Offset(70.11018251932127, 63.6834437317343), Offset(66.70697607087635, 60.26403693494969), Offset(63.30376962245156, 56.84463013814495), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425921086, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), Offset(61.01181425920885, 54.5417643362193), ], <Offset>[ Offset(60.93774529191989, 54.52270224393799), Offset(60.93774529191989, 54.52270224393799), Offset(60.93774529191989, 54.52270224393799), Offset(60.93774529191989, 54.52270224393799), Offset(60.93774529191989, 54.52270224393799), Offset(60.93774529191989, 54.52270224393799), Offset(60.93774529191989, 54.52270224393799), Offset(60.93774529191989, 54.52270224393799), Offset(60.93774529191989, 54.52270224393799), Offset(60.93774529191989, 54.52270224393799), Offset(60.93774529194001, 54.52270224393799), Offset(60.937745291919896, 54.52270224393799), Offset(60.937745291919896, 54.52270224393799), Offset(60.937745291919896, 54.52270224391788), Offset(60.937745291919896, 54.52270224393799), Offset(60.93774529194001, 54.52270224393799), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192572, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), ], <Offset>[ Offset(60.93774529191989, 54.52270224393799), Offset(60.93774529191989, 54.52270224393799), Offset(60.93774529191989, 54.52270224393799), Offset(60.93774529191989, 54.52270224393799), Offset(60.93774529191989, 54.52270224393799), Offset(60.93774529191989, 54.52270224393799), Offset(60.93774529191989, 54.52270224393799), Offset(60.93774529191989, 54.52270224393799), Offset(60.93774529191989, 54.52270224393799), Offset(60.93774529191989, 54.52270224393799), Offset(60.93774529194001, 54.52270224393799), Offset(60.937745291919896, 54.52270224393799), Offset(60.937745291919896, 54.52270224393799), Offset(60.937745291919896, 54.52270224391788), Offset(60.937745291919896, 54.52270224393799), Offset(60.93774529194001, 54.52270224393799), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192572, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), Offset(60.93774529192372, 54.52270224393415), ], ), _PathClose( ), ], ), _PathFrames( opacities: <double>[ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, ], commands: <_PathCommand>[ _PathMoveTo( <Offset>[ Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 54.754867779413956), Offset(48.0, 51.604258802513954), Offset(48.0, 48.45364982561395), Offset(48.0, 45.30304084871395), Offset(48.0, 42.15243187181395), Offset(48.0, 39.00182289491395), Offset(48.0, 35.85121391801395), Offset(48.0, 34.05512107195435), Offset(48.0, 33.540905901349916), Offset(48.0, 33.12129231086275), Offset(48.0, 32.781503706824346), Offset(48.0, 32.50949551311259), Offset(48.0, 32.29485026134325), Offset(48.0, 32.1283960707288), Offset(48.0, 32.00233286349681), Offset(48.0, 31.909924001704802), Offset(48.0, 31.90656), Offset(48.0, 31.90656), Offset(48.0, 31.90656), Offset(48.0, 31.90656), Offset(48.0, 31.90656), Offset(48.0, 31.90656), Offset(48.0, 31.90656), Offset(48.0, 31.90656), Offset(48.0, 31.90656), Offset(48.0, 31.90656), Offset(48.0, 31.90656), Offset(48.0, 31.90656), Offset(48.0, 31.90656), Offset(48.0, 31.90656), ], ), _PathCubicTo( <Offset>[ Offset(52.445826306158004, 55.9765324848), Offset(52.445826306158004, 55.9765324848), Offset(52.445826306158004, 55.9765324848), Offset(52.445826306158004, 55.9765324848), Offset(52.445826306158004, 55.9765324848), Offset(52.445826306158004, 55.9765324848), Offset(52.445826306158004, 55.9765324848), Offset(52.445826306158004, 55.9765324848), Offset(52.445826306158004, 55.9765324848), Offset(52.445826306158004, 55.9765324848), Offset(52.445826306158004, 55.9765324848), Offset(52.445826306158004, 55.9765324848), Offset(52.445826306158004, 55.9765324848), Offset(52.445826306158004, 55.9765324848), Offset(52.445826306158004, 55.9765324848), Offset(52.445826306158004, 55.9765324848), Offset(52.445826306158004, 55.9765324848), Offset(52.445826306158004, 55.9765324848), Offset(52.445826306158004, 55.9765324848), Offset(52.445826306158004, 54.754867779413956), Offset(52.445826306158004, 51.604258802513954), Offset(52.445826306158004, 48.45364982561395), Offset(52.445826306158004, 45.30304084871395), Offset(52.445826306158004, 42.15243187181395), Offset(52.445826306158004, 39.00182289491395), Offset(52.445826306158004, 35.85121391801395), Offset(52.445826306158004, 34.05512107195435), Offset(52.445826306158004, 33.540905901349916), Offset(52.445826306158004, 33.12129231086275), Offset(52.445826306158004, 32.781503706824346), Offset(52.445826306158004, 32.50949551311259), Offset(52.445826306158004, 32.29485026134325), Offset(52.445826306158004, 32.1283960707288), Offset(52.445826306158004, 32.00233286349681), Offset(52.445826306158004, 31.909924001704802), Offset(52.445826306158004, 31.90656), Offset(52.445826306158004, 31.90656), Offset(52.445826306158004, 31.90656), Offset(52.445826306158004, 31.90656), Offset(52.445826306158004, 31.90656), Offset(52.445826306158004, 31.90656), Offset(52.445826306158004, 31.90656), Offset(52.445826306158004, 31.90656), Offset(52.445826306158004, 31.90656), Offset(52.445826306158004, 31.90656), Offset(52.445826306158004, 31.90656), Offset(52.445826306158004, 31.90656), Offset(52.445826306158004, 31.90656), Offset(52.445826306158004, 31.90656), ], <Offset>[ Offset(56.04672, 52.37560809515534), Offset(56.04672, 52.37560809515534), Offset(56.04672, 52.37560809515534), Offset(56.04672, 52.37560809515534), Offset(56.04672, 52.37560809515534), Offset(56.04672, 52.37560809515534), Offset(56.04672, 52.37560809515534), Offset(56.04672, 52.37560809515534), Offset(56.04672, 52.37560809515534), Offset(56.04672, 52.37560809515534), Offset(56.04672, 52.37560809515534), Offset(56.04672, 52.37560809515534), Offset(56.04672, 52.37560809515534), Offset(56.04672, 52.37560809515534), Offset(56.04672, 52.37560809515534), Offset(56.04672, 52.37560809515534), Offset(56.04672, 52.37560809515534), Offset(56.04672, 52.37560809515534), Offset(56.04672, 52.37560809515534), Offset(56.04672, 51.153943389769296), Offset(56.04672, 48.00333441286929), Offset(56.04672, 44.85272543596929), Offset(56.04672, 41.70211645906929), Offset(56.04672, 38.551507482169285), Offset(56.04672, 35.40089850526928), Offset(56.04672, 32.25028952836928), Offset(56.04672, 30.45419668230969), Offset(56.04672, 29.939981511705252), Offset(56.04672, 29.520367921218085), Offset(56.04672, 29.18057931717968), Offset(56.04672, 28.908571123467926), Offset(56.04672, 28.693925871698585), Offset(56.04672, 28.527471681084133), Offset(56.04672, 28.401408473852147), Offset(56.04672, 28.308999612060138), Offset(56.04672, 28.305635610355335), Offset(56.04672, 28.305635610355335), Offset(56.04672, 28.305635610355335), Offset(56.04672, 28.305635610355335), Offset(56.04672, 28.305635610355335), Offset(56.04672, 28.305635610355335), Offset(56.04672, 28.305635610355335), Offset(56.04672, 28.305635610355335), Offset(56.04672, 28.305635610355335), Offset(56.04672, 28.305635610355335), Offset(56.04672, 28.305635610355335), Offset(56.04672, 28.305635610355335), Offset(56.04672, 28.305635610355335), Offset(56.04672, 28.305635610355335), ], <Offset>[ Offset(56.04672, 47.9298124848), Offset(56.04672, 47.9298124848), Offset(56.04672, 47.9298124848), Offset(56.04672, 47.9298124848), Offset(56.04672, 47.9298124848), Offset(56.04672, 47.9298124848), Offset(56.04672, 47.9298124848), Offset(56.04672, 47.9298124848), Offset(56.04672, 47.9298124848), Offset(56.04672, 47.9298124848), Offset(56.04672, 47.9298124848), Offset(56.04672, 47.9298124848), Offset(56.04672, 47.9298124848), Offset(56.04672, 47.9298124848), Offset(56.04672, 47.9298124848), Offset(56.04672, 47.9298124848), Offset(56.04672, 47.9298124848), Offset(56.04672, 47.9298124848), Offset(56.04672, 47.9298124848), Offset(56.04672, 46.708147779413956), Offset(56.04672, 43.55753880251395), Offset(56.04672, 40.40692982561395), Offset(56.04672, 37.25632084871395), Offset(56.04672, 34.10571187181395), Offset(56.04672, 30.95510289491395), Offset(56.04672, 27.804493918013947), Offset(56.04672, 26.008401071954353), Offset(56.04672, 25.494185901349915), Offset(56.04672, 25.07457231086275), Offset(56.04672, 24.734783706824345), Offset(56.04672, 24.46277551311259), Offset(56.04672, 24.24813026134325), Offset(56.04672, 24.081676070728797), Offset(56.04672, 23.95561286349681), Offset(56.04672, 23.8632040017048), Offset(56.04672, 23.85984), Offset(56.04672, 23.85984), Offset(56.04672, 23.85984), Offset(56.04672, 23.85984), Offset(56.04672, 23.85984), Offset(56.04672, 23.85984), Offset(56.04672, 23.85984), Offset(56.04672, 23.85984), Offset(56.04672, 23.85984), Offset(56.04672, 23.85984), Offset(56.04672, 23.85984), Offset(56.04672, 23.85984), Offset(56.04672, 23.85984), Offset(56.04672, 23.85984), ], ), _PathCubicTo( <Offset>[ Offset(56.04672, 43.483986178642), Offset(56.04672, 43.483986178642), Offset(56.04672, 43.483986178642), Offset(56.04672, 43.483986178642), Offset(56.04672, 43.483986178642), Offset(56.04672, 43.483986178642), Offset(56.04672, 43.483986178642), Offset(56.04672, 43.483986178642), Offset(56.04672, 43.483986178642), Offset(56.04672, 43.483986178642), Offset(56.04672, 43.483986178642), Offset(56.04672, 43.483986178642), Offset(56.04672, 43.483986178642), Offset(56.04672, 43.483986178642), Offset(56.04672, 43.483986178642), Offset(56.04672, 43.483986178642), Offset(56.04672, 43.483986178642), Offset(56.04672, 43.483986178642), Offset(56.04672, 43.483986178642), Offset(56.04672, 42.26232147325595), Offset(56.04672, 39.11171249635595), Offset(56.04672, 35.961103519455946), Offset(56.04672, 32.810494542555944), Offset(56.04672, 29.65988556565595), Offset(56.04672, 26.50927658875595), Offset(56.04672, 23.358667611855946), Offset(56.04672, 21.562574765796352), Offset(56.04672, 21.048359595191915), Offset(56.04672, 20.628746004704748), Offset(56.04672, 20.288957400666344), Offset(56.04672, 20.01694920695459), Offset(56.04672, 19.80230395518525), Offset(56.04672, 19.635849764570796), Offset(56.04672, 19.50978655733881), Offset(56.04672, 19.4173776955468), Offset(56.04672, 19.414013693841998), Offset(56.04672, 19.414013693841998), Offset(56.04672, 19.414013693841998), Offset(56.04672, 19.414013693841998), Offset(56.04672, 19.414013693841998), Offset(56.04672, 19.414013693841998), Offset(56.04672, 19.414013693841998), Offset(56.04672, 19.414013693841998), Offset(56.04672, 19.414013693841998), Offset(56.04672, 19.414013693841998), Offset(56.04672, 19.414013693841998), Offset(56.04672, 19.414013693841998), Offset(56.04672, 19.414013693841998), Offset(56.04672, 19.414013693841998), ], <Offset>[ Offset(52.445826306158004, 39.8830924848), Offset(52.445826306158004, 39.8830924848), Offset(52.445826306158004, 39.8830924848), Offset(52.445826306158004, 39.8830924848), Offset(52.445826306158004, 39.8830924848), Offset(52.445826306158004, 39.8830924848), Offset(52.445826306158004, 39.8830924848), Offset(52.445826306158004, 39.8830924848), Offset(52.445826306158004, 39.8830924848), Offset(52.445826306158004, 39.8830924848), Offset(52.445826306158004, 39.8830924848), Offset(52.445826306158004, 39.8830924848), Offset(52.445826306158004, 39.8830924848), Offset(52.445826306158004, 39.8830924848), Offset(52.445826306158004, 39.8830924848), Offset(52.445826306158004, 39.8830924848), Offset(52.445826306158004, 39.8830924848), Offset(52.445826306158004, 39.8830924848), Offset(52.445826306158004, 39.8830924848), Offset(52.445826306158004, 38.661427779413955), Offset(52.445826306158004, 35.51081880251395), Offset(52.445826306158004, 32.36020982561395), Offset(52.445826306158004, 29.209600848713947), Offset(52.445826306158004, 26.05899187181395), Offset(52.445826306158004, 22.90838289491395), Offset(52.445826306158004, 19.757773918013946), Offset(52.445826306158004, 17.961681071954352), Offset(52.445826306158004, 17.447465901349915), Offset(52.445826306158004, 17.027852310862748), Offset(52.445826306158004, 16.688063706824344), Offset(52.445826306158004, 16.41605551311259), Offset(52.445826306158004, 16.20141026134325), Offset(52.445826306158004, 16.034956070728796), Offset(52.445826306158004, 15.90889286349681), Offset(52.445826306158004, 15.8164840017048), Offset(52.445826306158004, 15.813119999999998), Offset(52.445826306158004, 15.813119999999998), Offset(52.445826306158004, 15.813119999999998), Offset(52.445826306158004, 15.813119999999998), Offset(52.445826306158004, 15.813119999999998), Offset(52.445826306158004, 15.813119999999998), Offset(52.445826306158004, 15.813119999999998), Offset(52.445826306158004, 15.813119999999998), Offset(52.445826306158004, 15.813119999999998), Offset(52.445826306158004, 15.813119999999998), Offset(52.445826306158004, 15.813119999999998), Offset(52.445826306158004, 15.813119999999998), Offset(52.445826306158004, 15.813119999999998), Offset(52.445826306158004, 15.813119999999998), ], <Offset>[ Offset(48.0, 39.8830924848), Offset(48.0, 39.8830924848), Offset(48.0, 39.8830924848), Offset(48.0, 39.8830924848), Offset(48.0, 39.8830924848), Offset(48.0, 39.8830924848), Offset(48.0, 39.8830924848), Offset(48.0, 39.8830924848), Offset(48.0, 39.8830924848), Offset(48.0, 39.8830924848), Offset(48.0, 39.8830924848), Offset(48.0, 39.8830924848), Offset(48.0, 39.8830924848), Offset(48.0, 39.8830924848), Offset(48.0, 39.8830924848), Offset(48.0, 39.8830924848), Offset(48.0, 39.8830924848), Offset(48.0, 39.8830924848), Offset(48.0, 39.8830924848), Offset(48.0, 38.661427779413955), Offset(48.0, 35.51081880251395), Offset(48.0, 32.36020982561395), Offset(48.0, 29.209600848713947), Offset(48.0, 26.05899187181395), Offset(48.0, 22.90838289491395), Offset(48.0, 19.757773918013946), Offset(48.0, 17.961681071954352), Offset(48.0, 17.447465901349915), Offset(48.0, 17.027852310862748), Offset(48.0, 16.688063706824344), Offset(48.0, 16.41605551311259), Offset(48.0, 16.20141026134325), Offset(48.0, 16.034956070728796), Offset(48.0, 15.90889286349681), Offset(48.0, 15.8164840017048), Offset(48.0, 15.813119999999998), Offset(48.0, 15.813119999999998), Offset(48.0, 15.813119999999998), Offset(48.0, 15.813119999999998), Offset(48.0, 15.813119999999998), Offset(48.0, 15.813119999999998), Offset(48.0, 15.813119999999998), Offset(48.0, 15.813119999999998), Offset(48.0, 15.813119999999998), Offset(48.0, 15.813119999999998), Offset(48.0, 15.813119999999998), Offset(48.0, 15.813119999999998), Offset(48.0, 15.813119999999998), Offset(48.0, 15.813119999999998), ], ), _PathCubicTo( <Offset>[ Offset(43.554173693841996, 39.8830924848), Offset(43.554173693841996, 39.8830924848), Offset(43.554173693841996, 39.8830924848), Offset(43.554173693841996, 39.8830924848), Offset(43.554173693841996, 39.8830924848), Offset(43.554173693841996, 39.8830924848), Offset(43.554173693841996, 39.8830924848), Offset(43.554173693841996, 39.8830924848), Offset(43.554173693841996, 39.8830924848), Offset(43.554173693841996, 39.8830924848), Offset(43.554173693841996, 39.8830924848), Offset(43.554173693841996, 39.8830924848), Offset(43.554173693841996, 39.8830924848), Offset(43.554173693841996, 39.8830924848), Offset(43.554173693841996, 39.8830924848), Offset(43.554173693841996, 39.8830924848), Offset(43.554173693841996, 39.8830924848), Offset(43.554173693841996, 39.8830924848), Offset(43.554173693841996, 39.8830924848), Offset(43.554173693841996, 38.661427779413955), Offset(43.554173693841996, 35.51081880251395), Offset(43.554173693841996, 32.36020982561395), Offset(43.554173693841996, 29.209600848713947), Offset(43.554173693841996, 26.05899187181395), Offset(43.554173693841996, 22.90838289491395), Offset(43.554173693841996, 19.757773918013946), Offset(43.554173693841996, 17.961681071954352), Offset(43.554173693841996, 17.447465901349915), Offset(43.554173693841996, 17.027852310862748), Offset(43.554173693841996, 16.688063706824344), Offset(43.554173693841996, 16.41605551311259), Offset(43.554173693841996, 16.20141026134325), Offset(43.554173693841996, 16.034956070728796), Offset(43.554173693841996, 15.90889286349681), Offset(43.554173693841996, 15.8164840017048), Offset(43.554173693841996, 15.813119999999998), Offset(43.554173693841996, 15.813119999999998), Offset(43.554173693841996, 15.813119999999998), Offset(43.554173693841996, 15.813119999999998), Offset(43.554173693841996, 15.813119999999998), Offset(43.554173693841996, 15.813119999999998), Offset(43.554173693841996, 15.813119999999998), Offset(43.554173693841996, 15.813119999999998), Offset(43.554173693841996, 15.813119999999998), Offset(43.554173693841996, 15.813119999999998), Offset(43.554173693841996, 15.813119999999998), Offset(43.554173693841996, 15.813119999999998), Offset(43.554173693841996, 15.813119999999998), Offset(43.554173693841996, 15.813119999999998), ], <Offset>[ Offset(39.95328, 43.483986178642), Offset(39.95328, 43.483986178642), Offset(39.95328, 43.483986178642), Offset(39.95328, 43.483986178642), Offset(39.95328, 43.483986178642), Offset(39.95328, 43.483986178642), Offset(39.95328, 43.483986178642), Offset(39.95328, 43.483986178642), Offset(39.95328, 43.483986178642), Offset(39.95328, 43.483986178642), Offset(39.95328, 43.483986178642), Offset(39.95328, 43.483986178642), Offset(39.95328, 43.483986178642), Offset(39.95328, 43.483986178642), Offset(39.95328, 43.483986178642), Offset(39.95328, 43.483986178642), Offset(39.95328, 43.483986178642), Offset(39.95328, 43.483986178642), Offset(39.95328, 43.483986178642), Offset(39.95328, 42.26232147325595), Offset(39.95328, 39.11171249635595), Offset(39.95328, 35.961103519455946), Offset(39.95328, 32.810494542555944), Offset(39.95328, 29.65988556565595), Offset(39.95328, 26.50927658875595), Offset(39.95328, 23.358667611855946), Offset(39.95328, 21.562574765796352), Offset(39.95328, 21.048359595191915), Offset(39.95328, 20.628746004704748), Offset(39.95328, 20.288957400666344), Offset(39.95328, 20.01694920695459), Offset(39.95328, 19.80230395518525), Offset(39.95328, 19.635849764570796), Offset(39.95328, 19.50978655733881), Offset(39.95328, 19.4173776955468), Offset(39.95328, 19.414013693841998), Offset(39.95328, 19.414013693841998), Offset(39.95328, 19.414013693841998), Offset(39.95328, 19.414013693841998), Offset(39.95328, 19.414013693841998), Offset(39.95328, 19.414013693841998), Offset(39.95328, 19.414013693841998), Offset(39.95328, 19.414013693841998), Offset(39.95328, 19.414013693841998), Offset(39.95328, 19.414013693841998), Offset(39.95328, 19.414013693841998), Offset(39.95328, 19.414013693841998), Offset(39.95328, 19.414013693841998), Offset(39.95328, 19.414013693841998), ], <Offset>[ Offset(39.95328, 47.9298124848), Offset(39.95328, 47.9298124848), Offset(39.95328, 47.9298124848), Offset(39.95328, 47.9298124848), Offset(39.95328, 47.9298124848), Offset(39.95328, 47.9298124848), Offset(39.95328, 47.9298124848), Offset(39.95328, 47.9298124848), Offset(39.95328, 47.9298124848), Offset(39.95328, 47.9298124848), Offset(39.95328, 47.9298124848), Offset(39.95328, 47.9298124848), Offset(39.95328, 47.9298124848), Offset(39.95328, 47.9298124848), Offset(39.95328, 47.9298124848), Offset(39.95328, 47.9298124848), Offset(39.95328, 47.9298124848), Offset(39.95328, 47.9298124848), Offset(39.95328, 47.9298124848), Offset(39.95328, 46.708147779413956), Offset(39.95328, 43.55753880251395), Offset(39.95328, 40.40692982561395), Offset(39.95328, 37.25632084871395), Offset(39.95328, 34.10571187181395), Offset(39.95328, 30.95510289491395), Offset(39.95328, 27.804493918013947), Offset(39.95328, 26.008401071954353), Offset(39.95328, 25.494185901349915), Offset(39.95328, 25.07457231086275), Offset(39.95328, 24.734783706824345), Offset(39.95328, 24.46277551311259), Offset(39.95328, 24.24813026134325), Offset(39.95328, 24.081676070728797), Offset(39.95328, 23.95561286349681), Offset(39.95328, 23.8632040017048), Offset(39.95328, 23.85984), Offset(39.95328, 23.85984), Offset(39.95328, 23.85984), Offset(39.95328, 23.85984), Offset(39.95328, 23.85984), Offset(39.95328, 23.85984), Offset(39.95328, 23.85984), Offset(39.95328, 23.85984), Offset(39.95328, 23.85984), Offset(39.95328, 23.85984), Offset(39.95328, 23.85984), Offset(39.95328, 23.85984), Offset(39.95328, 23.85984), Offset(39.95328, 23.85984), ], ), _PathCubicTo( <Offset>[ Offset(39.95328, 52.37560809515534), Offset(39.95328, 52.37560809515534), Offset(39.95328, 52.37560809515534), Offset(39.95328, 52.37560809515534), Offset(39.95328, 52.37560809515534), Offset(39.95328, 52.37560809515534), Offset(39.95328, 52.37560809515534), Offset(39.95328, 52.37560809515534), Offset(39.95328, 52.37560809515534), Offset(39.95328, 52.37560809515534), Offset(39.95328, 52.37560809515534), Offset(39.95328, 52.37560809515534), Offset(39.95328, 52.37560809515534), Offset(39.95328, 52.37560809515534), Offset(39.95328, 52.37560809515534), Offset(39.95328, 52.37560809515534), Offset(39.95328, 52.37560809515534), Offset(39.95328, 52.37560809515534), Offset(39.95328, 52.37560809515534), Offset(39.95328, 51.153943389769296), Offset(39.95328, 48.00333441286929), Offset(39.95328, 44.85272543596929), Offset(39.95328, 41.70211645906929), Offset(39.95328, 38.551507482169285), Offset(39.95328, 35.40089850526928), Offset(39.95328, 32.25028952836928), Offset(39.95328, 30.45419668230969), Offset(39.95328, 29.939981511705252), Offset(39.95328, 29.520367921218085), Offset(39.95328, 29.18057931717968), Offset(39.95328, 28.908571123467926), Offset(39.95328, 28.693925871698585), Offset(39.95328, 28.527471681084133), Offset(39.95328, 28.401408473852147), Offset(39.95328, 28.308999612060138), Offset(39.95328, 28.305635610355335), Offset(39.95328, 28.305635610355335), Offset(39.95328, 28.305635610355335), Offset(39.95328, 28.305635610355335), Offset(39.95328, 28.305635610355335), Offset(39.95328, 28.305635610355335), Offset(39.95328, 28.305635610355335), Offset(39.95328, 28.305635610355335), Offset(39.95328, 28.305635610355335), Offset(39.95328, 28.305635610355335), Offset(39.95328, 28.305635610355335), Offset(39.95328, 28.305635610355335), Offset(39.95328, 28.305635610355335), Offset(39.95328, 28.305635610355335), ], <Offset>[ Offset(43.554173693841996, 55.9765324848), Offset(43.554173693841996, 55.9765324848), Offset(43.554173693841996, 55.9765324848), Offset(43.554173693841996, 55.9765324848), Offset(43.554173693841996, 55.9765324848), Offset(43.554173693841996, 55.9765324848), Offset(43.554173693841996, 55.9765324848), Offset(43.554173693841996, 55.9765324848), Offset(43.554173693841996, 55.9765324848), Offset(43.554173693841996, 55.9765324848), Offset(43.554173693841996, 55.9765324848), Offset(43.554173693841996, 55.9765324848), Offset(43.554173693841996, 55.9765324848), Offset(43.554173693841996, 55.9765324848), Offset(43.554173693841996, 55.9765324848), Offset(43.554173693841996, 55.9765324848), Offset(43.554173693841996, 55.9765324848), Offset(43.554173693841996, 55.9765324848), Offset(43.554173693841996, 55.9765324848), Offset(43.554173693841996, 54.754867779413956), Offset(43.554173693841996, 51.604258802513954), Offset(43.554173693841996, 48.45364982561395), Offset(43.554173693841996, 45.30304084871395), Offset(43.554173693841996, 42.15243187181395), Offset(43.554173693841996, 39.00182289491395), Offset(43.554173693841996, 35.85121391801395), Offset(43.554173693841996, 34.05512107195435), Offset(43.554173693841996, 33.540905901349916), Offset(43.554173693841996, 33.12129231086275), Offset(43.554173693841996, 32.781503706824346), Offset(43.554173693841996, 32.50949551311259), Offset(43.554173693841996, 32.29485026134325), Offset(43.554173693841996, 32.1283960707288), Offset(43.554173693841996, 32.00233286349681), Offset(43.554173693841996, 31.909924001704802), Offset(43.554173693841996, 31.90656), Offset(43.554173693841996, 31.90656), Offset(43.554173693841996, 31.90656), Offset(43.554173693841996, 31.90656), Offset(43.554173693841996, 31.90656), Offset(43.554173693841996, 31.90656), Offset(43.554173693841996, 31.90656), Offset(43.554173693841996, 31.90656), Offset(43.554173693841996, 31.90656), Offset(43.554173693841996, 31.90656), Offset(43.554173693841996, 31.90656), Offset(43.554173693841996, 31.90656), Offset(43.554173693841996, 31.90656), Offset(43.554173693841996, 31.90656), ], <Offset>[ Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 55.9765324848), Offset(48.0, 54.754867779413956), Offset(48.0, 51.604258802513954), Offset(48.0, 48.45364982561395), Offset(48.0, 45.30304084871395), Offset(48.0, 42.15243187181395), Offset(48.0, 39.00182289491395), Offset(48.0, 35.85121391801395), Offset(48.0, 34.05512107195435), Offset(48.0, 33.540905901349916), Offset(48.0, 33.12129231086275), Offset(48.0, 32.781503706824346), Offset(48.0, 32.50949551311259), Offset(48.0, 32.29485026134325), Offset(48.0, 32.1283960707288), Offset(48.0, 32.00233286349681), Offset(48.0, 31.909924001704802), Offset(48.0, 31.90656), Offset(48.0, 31.90656), Offset(48.0, 31.90656), Offset(48.0, 31.90656), Offset(48.0, 31.90656), Offset(48.0, 31.90656), Offset(48.0, 31.90656), Offset(48.0, 31.90656), Offset(48.0, 31.90656), Offset(48.0, 31.90656), Offset(48.0, 31.90656), Offset(48.0, 31.90656), Offset(48.0, 31.90656), Offset(48.0, 31.90656), ], ), _PathClose( ), ], ), _PathFrames( opacities: <double>[ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, ], commands: <_PathCommand>[ _PathMoveTo( <Offset>[ Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), ], ), _PathCubicTo( <Offset>[ Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), Offset(43.554173693841996, 39.95328), ], <Offset>[ Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), Offset(39.95328, 43.554173693841996), ], <Offset>[ Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), Offset(39.95328, 48.0), ], ), _PathCubicTo( <Offset>[ Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), Offset(39.95328, 52.445826306158004), ], <Offset>[ Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), Offset(43.554173693841996, 56.04672), ], <Offset>[ Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), Offset(48.0, 56.04672), ], ), _PathCubicTo( <Offset>[ Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), Offset(52.445826306158004, 56.04672), ], <Offset>[ Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), Offset(56.04672, 52.445826306158004), ], <Offset>[ Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), Offset(56.04672, 48.0), ], ), _PathCubicTo( <Offset>[ Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), Offset(56.04672, 43.554173693841996), ], <Offset>[ Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), Offset(52.445826306158004, 39.95328), ], <Offset>[ Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), Offset(48.0, 39.95328), ], ), _PathClose( ), ], ), _PathFrames( opacities: <double>[ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, ], commands: <_PathCommand>[ _PathMoveTo( <Offset>[ Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 41.2763342754), Offset(48.0, 44.422639514400004), Offset(48.0, 47.568944753400004), Offset(48.0, 50.715249992400004), Offset(48.0, 53.861555231400004), Offset(48.0, 57.0078604704), Offset(48.0, 60.154165709400004), Offset(48.0, 61.94780621836377), Offset(48.0, 62.46132080048674), Offset(48.0, 62.88036269183587), Offset(48.0, 63.219688353387404), Offset(48.0, 63.491325951788546), Offset(48.0, 63.70567876161293), Offset(48.0, 63.87190616809776), Offset(48.0, 63.997797621511204), Offset(48.0, 64.09008058170691), Offset(48.0, 64.09344), Offset(48.0, 64.09344), Offset(48.0, 64.09344), Offset(48.0, 64.09344), Offset(48.0, 64.09344), Offset(48.0, 64.09344), Offset(48.0, 64.09344), Offset(48.0, 64.09344), Offset(48.0, 64.09344), Offset(48.0, 64.09344), Offset(48.0, 64.09344), Offset(48.0, 64.09344), Offset(48.0, 64.09344), Offset(48.0, 64.09344), ], ), _PathCubicTo( <Offset>[ Offset(43.554173693841996, 40.0563383664), Offset(43.554173693841996, 40.0563383664), Offset(43.554173693841996, 40.0563383664), Offset(43.554173693841996, 40.0563383664), Offset(43.554173693841996, 40.0563383664), Offset(43.554173693841996, 40.0563383664), Offset(43.554173693841996, 40.0563383664), Offset(43.554173693841996, 40.0563383664), Offset(43.554173693841996, 40.0563383664), Offset(43.554173693841996, 40.0563383664), Offset(43.554173693841996, 40.0563383664), Offset(43.554173693841996, 40.0563383664), Offset(43.554173693841996, 40.0563383664), Offset(43.554173693841996, 40.0563383664), Offset(43.554173693841996, 40.0563383664), Offset(43.554173693841996, 40.0563383664), Offset(43.554173693841996, 40.0563383664), Offset(43.554173693841996, 40.0563383664), Offset(43.554173693841996, 40.0563383664), Offset(43.554173693841996, 41.2763342754), Offset(43.554173693841996, 44.422639514400004), Offset(43.554173693841996, 47.568944753400004), Offset(43.554173693841996, 50.715249992400004), Offset(43.554173693841996, 53.861555231400004), Offset(43.554173693841996, 57.0078604704), Offset(43.554173693841996, 60.154165709400004), Offset(43.554173693841996, 61.94780621836377), Offset(43.554173693841996, 62.46132080048674), Offset(43.554173693841996, 62.88036269183587), Offset(43.554173693841996, 63.219688353387404), Offset(43.554173693841996, 63.491325951788546), Offset(43.554173693841996, 63.70567876161293), Offset(43.554173693841996, 63.87190616809776), Offset(43.554173693841996, 63.997797621511204), Offset(43.554173693841996, 64.09008058170691), Offset(43.554173693841996, 64.09344), Offset(43.554173693841996, 64.09344), Offset(43.554173693841996, 64.09344), Offset(43.554173693841996, 64.09344), Offset(43.554173693841996, 64.09344), Offset(43.554173693841996, 64.09344), Offset(43.554173693841996, 64.09344), Offset(43.554173693841996, 64.09344), Offset(43.554173693841996, 64.09344), Offset(43.554173693841996, 64.09344), Offset(43.554173693841996, 64.09344), Offset(43.554173693841996, 64.09344), Offset(43.554173693841996, 64.09344), Offset(43.554173693841996, 64.09344), ], <Offset>[ Offset(39.95328, 43.65726275604466), Offset(39.95328, 43.65726275604466), Offset(39.95328, 43.65726275604466), Offset(39.95328, 43.65726275604466), Offset(39.95328, 43.65726275604466), Offset(39.95328, 43.65726275604466), Offset(39.95328, 43.65726275604466), Offset(39.95328, 43.65726275604466), Offset(39.95328, 43.65726275604466), Offset(39.95328, 43.65726275604466), Offset(39.95328, 43.65726275604466), Offset(39.95328, 43.65726275604466), Offset(39.95328, 43.65726275604466), Offset(39.95328, 43.65726275604466), Offset(39.95328, 43.65726275604466), Offset(39.95328, 43.65726275604466), Offset(39.95328, 43.65726275604466), Offset(39.95328, 43.65726275604466), Offset(39.95328, 43.65726275604466), Offset(39.95328, 44.877258665044664), Offset(39.95328, 48.023563904044664), Offset(39.95328, 51.169869143044664), Offset(39.95328, 54.316174382044665), Offset(39.95328, 57.462479621044665), Offset(39.95328, 60.608784860044665), Offset(39.95328, 63.755090099044665), Offset(39.95328, 65.54873060800844), Offset(39.95328, 66.0622451901314), Offset(39.95328, 66.48128708148053), Offset(39.95328, 66.82061274303207), Offset(39.95328, 67.09225034143321), Offset(39.95328, 67.30660315125759), Offset(39.95328, 67.47283055774243), Offset(39.95328, 67.59872201115587), Offset(39.95328, 67.69100497135157), Offset(39.95328, 67.69436438964466), Offset(39.95328, 67.69436438964466), Offset(39.95328, 67.69436438964466), Offset(39.95328, 67.69436438964466), Offset(39.95328, 67.69436438964466), Offset(39.95328, 67.69436438964466), Offset(39.95328, 67.69436438964466), Offset(39.95328, 67.69436438964466), Offset(39.95328, 67.69436438964466), Offset(39.95328, 67.69436438964466), Offset(39.95328, 67.69436438964466), Offset(39.95328, 67.69436438964466), Offset(39.95328, 67.69436438964466), Offset(39.95328, 67.69436438964466), ], <Offset>[ Offset(39.95328, 48.1030583664), Offset(39.95328, 48.1030583664), Offset(39.95328, 48.1030583664), Offset(39.95328, 48.1030583664), Offset(39.95328, 48.1030583664), Offset(39.95328, 48.1030583664), Offset(39.95328, 48.1030583664), Offset(39.95328, 48.1030583664), Offset(39.95328, 48.1030583664), Offset(39.95328, 48.1030583664), Offset(39.95328, 48.1030583664), Offset(39.95328, 48.1030583664), Offset(39.95328, 48.1030583664), Offset(39.95328, 48.1030583664), Offset(39.95328, 48.1030583664), Offset(39.95328, 48.1030583664), Offset(39.95328, 48.1030583664), Offset(39.95328, 48.1030583664), Offset(39.95328, 48.1030583664), Offset(39.95328, 49.3230542754), Offset(39.95328, 52.4693595144), Offset(39.95328, 55.6156647534), Offset(39.95328, 58.761969992400005), Offset(39.95328, 61.908275231400005), Offset(39.95328, 65.0545804704), Offset(39.95328, 68.20088570940001), Offset(39.95328, 69.99452621836377), Offset(39.95328, 70.50804080048674), Offset(39.95328, 70.92708269183586), Offset(39.95328, 71.2664083533874), Offset(39.95328, 71.53804595178855), Offset(39.95328, 71.75239876161294), Offset(39.95328, 71.91862616809776), Offset(39.95328, 72.0445176215112), Offset(39.95328, 72.13680058170692), Offset(39.95328, 72.14016000000001), Offset(39.95328, 72.14016000000001), Offset(39.95328, 72.14016000000001), Offset(39.95328, 72.14016000000001), Offset(39.95328, 72.14016000000001), Offset(39.95328, 72.14016000000001), Offset(39.95328, 72.14016000000001), Offset(39.95328, 72.14016000000001), Offset(39.95328, 72.14016000000001), Offset(39.95328, 72.14016000000001), Offset(39.95328, 72.14016000000001), Offset(39.95328, 72.14016000000001), Offset(39.95328, 72.14016000000001), Offset(39.95328, 72.14016000000001), ], ), _PathCubicTo( <Offset>[ Offset(39.95328, 52.548884672558), Offset(39.95328, 52.548884672558), Offset(39.95328, 52.548884672558), Offset(39.95328, 52.548884672558), Offset(39.95328, 52.548884672558), Offset(39.95328, 52.548884672558), Offset(39.95328, 52.548884672558), Offset(39.95328, 52.548884672558), Offset(39.95328, 52.548884672558), Offset(39.95328, 52.548884672558), Offset(39.95328, 52.548884672558), Offset(39.95328, 52.548884672558), Offset(39.95328, 52.548884672558), Offset(39.95328, 52.548884672558), Offset(39.95328, 52.548884672558), Offset(39.95328, 52.548884672558), Offset(39.95328, 52.548884672558), Offset(39.95328, 52.548884672558), Offset(39.95328, 52.548884672558), Offset(39.95328, 53.768880581558), Offset(39.95328, 56.915185820558), Offset(39.95328, 60.061491059558), Offset(39.95328, 63.20779629855801), Offset(39.95328, 66.35410153755801), Offset(39.95328, 69.500406776558), Offset(39.95328, 72.64671201555801), Offset(39.95328, 74.44035252452177), Offset(39.95328, 74.95386710664474), Offset(39.95328, 75.37290899799387), Offset(39.95328, 75.7122346595454), Offset(39.95328, 75.98387225794654), Offset(39.95328, 76.19822506777093), Offset(39.95328, 76.36445247425576), Offset(39.95328, 76.4903439276692), Offset(39.95328, 76.58262688786492), Offset(39.95328, 76.585986306158), Offset(39.95328, 76.585986306158), Offset(39.95328, 76.585986306158), Offset(39.95328, 76.585986306158), Offset(39.95328, 76.585986306158), Offset(39.95328, 76.585986306158), Offset(39.95328, 76.585986306158), Offset(39.95328, 76.585986306158), Offset(39.95328, 76.585986306158), Offset(39.95328, 76.585986306158), Offset(39.95328, 76.585986306158), Offset(39.95328, 76.585986306158), Offset(39.95328, 76.585986306158), Offset(39.95328, 76.585986306158), ], <Offset>[ Offset(43.554173693841996, 56.1497783664), Offset(43.554173693841996, 56.1497783664), Offset(43.554173693841996, 56.1497783664), Offset(43.554173693841996, 56.1497783664), Offset(43.554173693841996, 56.1497783664), Offset(43.554173693841996, 56.1497783664), Offset(43.554173693841996, 56.1497783664), Offset(43.554173693841996, 56.1497783664), Offset(43.554173693841996, 56.1497783664), Offset(43.554173693841996, 56.1497783664), Offset(43.554173693841996, 56.1497783664), Offset(43.554173693841996, 56.1497783664), Offset(43.554173693841996, 56.1497783664), Offset(43.554173693841996, 56.1497783664), Offset(43.554173693841996, 56.1497783664), Offset(43.554173693841996, 56.1497783664), Offset(43.554173693841996, 56.1497783664), Offset(43.554173693841996, 56.1497783664), Offset(43.554173693841996, 56.1497783664), Offset(43.554173693841996, 57.369774275400005), Offset(43.554173693841996, 60.516079514400005), Offset(43.554173693841996, 63.662384753400005), Offset(43.554173693841996, 66.8086899924), Offset(43.554173693841996, 69.9549952314), Offset(43.554173693841996, 73.10130047039999), Offset(43.554173693841996, 76.2476057094), Offset(43.554173693841996, 78.04124621836377), Offset(43.554173693841996, 78.55476080048675), Offset(43.554173693841996, 78.97380269183587), Offset(43.554173693841996, 79.31312835338741), Offset(43.554173693841996, 79.58476595178854), Offset(43.554173693841996, 79.79911876161293), Offset(43.554173693841996, 79.96534616809777), Offset(43.554173693841996, 80.0912376215112), Offset(43.554173693841996, 80.18352058170692), Offset(43.554173693841996, 80.18688), Offset(43.554173693841996, 80.18688), Offset(43.554173693841996, 80.18688), Offset(43.554173693841996, 80.18688), Offset(43.554173693841996, 80.18688), Offset(43.554173693841996, 80.18688), Offset(43.554173693841996, 80.18688), Offset(43.554173693841996, 80.18688), Offset(43.554173693841996, 80.18688), Offset(43.554173693841996, 80.18688), Offset(43.554173693841996, 80.18688), Offset(43.554173693841996, 80.18688), Offset(43.554173693841996, 80.18688), Offset(43.554173693841996, 80.18688), ], <Offset>[ Offset(48.0, 56.1497783664), Offset(48.0, 56.1497783664), Offset(48.0, 56.1497783664), Offset(48.0, 56.1497783664), Offset(48.0, 56.1497783664), Offset(48.0, 56.1497783664), Offset(48.0, 56.1497783664), Offset(48.0, 56.1497783664), Offset(48.0, 56.1497783664), Offset(48.0, 56.1497783664), Offset(48.0, 56.1497783664), Offset(48.0, 56.1497783664), Offset(48.0, 56.1497783664), Offset(48.0, 56.1497783664), Offset(48.0, 56.1497783664), Offset(48.0, 56.1497783664), Offset(48.0, 56.1497783664), Offset(48.0, 56.1497783664), Offset(48.0, 56.1497783664), Offset(48.0, 57.369774275400005), Offset(48.0, 60.516079514400005), Offset(48.0, 63.662384753400005), Offset(48.0, 66.8086899924), Offset(48.0, 69.9549952314), Offset(48.0, 73.10130047039999), Offset(48.0, 76.2476057094), Offset(48.0, 78.04124621836377), Offset(48.0, 78.55476080048675), Offset(48.0, 78.97380269183587), Offset(48.0, 79.31312835338741), Offset(48.0, 79.58476595178854), Offset(48.0, 79.79911876161293), Offset(48.0, 79.96534616809777), Offset(48.0, 80.0912376215112), Offset(48.0, 80.18352058170692), Offset(48.0, 80.18688), Offset(48.0, 80.18688), Offset(48.0, 80.18688), Offset(48.0, 80.18688), Offset(48.0, 80.18688), Offset(48.0, 80.18688), Offset(48.0, 80.18688), Offset(48.0, 80.18688), Offset(48.0, 80.18688), Offset(48.0, 80.18688), Offset(48.0, 80.18688), Offset(48.0, 80.18688), Offset(48.0, 80.18688), Offset(48.0, 80.18688), ], ), _PathCubicTo( <Offset>[ Offset(52.445826306158004, 56.1497783664), Offset(52.445826306158004, 56.1497783664), Offset(52.445826306158004, 56.1497783664), Offset(52.445826306158004, 56.1497783664), Offset(52.445826306158004, 56.1497783664), Offset(52.445826306158004, 56.1497783664), Offset(52.445826306158004, 56.1497783664), Offset(52.445826306158004, 56.1497783664), Offset(52.445826306158004, 56.1497783664), Offset(52.445826306158004, 56.1497783664), Offset(52.445826306158004, 56.1497783664), Offset(52.445826306158004, 56.1497783664), Offset(52.445826306158004, 56.1497783664), Offset(52.445826306158004, 56.1497783664), Offset(52.445826306158004, 56.1497783664), Offset(52.445826306158004, 56.1497783664), Offset(52.445826306158004, 56.1497783664), Offset(52.445826306158004, 56.1497783664), Offset(52.445826306158004, 56.1497783664), Offset(52.445826306158004, 57.369774275400005), Offset(52.445826306158004, 60.516079514400005), Offset(52.445826306158004, 63.662384753400005), Offset(52.445826306158004, 66.8086899924), Offset(52.445826306158004, 69.9549952314), Offset(52.445826306158004, 73.10130047039999), Offset(52.445826306158004, 76.2476057094), Offset(52.445826306158004, 78.04124621836377), Offset(52.445826306158004, 78.55476080048675), Offset(52.445826306158004, 78.97380269183587), Offset(52.445826306158004, 79.31312835338741), Offset(52.445826306158004, 79.58476595178854), Offset(52.445826306158004, 79.79911876161293), Offset(52.445826306158004, 79.96534616809777), Offset(52.445826306158004, 80.0912376215112), Offset(52.445826306158004, 80.18352058170692), Offset(52.445826306158004, 80.18688), Offset(52.445826306158004, 80.18688), Offset(52.445826306158004, 80.18688), Offset(52.445826306158004, 80.18688), Offset(52.445826306158004, 80.18688), Offset(52.445826306158004, 80.18688), Offset(52.445826306158004, 80.18688), Offset(52.445826306158004, 80.18688), Offset(52.445826306158004, 80.18688), Offset(52.445826306158004, 80.18688), Offset(52.445826306158004, 80.18688), Offset(52.445826306158004, 80.18688), Offset(52.445826306158004, 80.18688), Offset(52.445826306158004, 80.18688), ], <Offset>[ Offset(56.04672, 52.548884672558), Offset(56.04672, 52.548884672558), Offset(56.04672, 52.548884672558), Offset(56.04672, 52.548884672558), Offset(56.04672, 52.548884672558), Offset(56.04672, 52.548884672558), Offset(56.04672, 52.548884672558), Offset(56.04672, 52.548884672558), Offset(56.04672, 52.548884672558), Offset(56.04672, 52.548884672558), Offset(56.04672, 52.548884672558), Offset(56.04672, 52.548884672558), Offset(56.04672, 52.548884672558), Offset(56.04672, 52.548884672558), Offset(56.04672, 52.548884672558), Offset(56.04672, 52.548884672558), Offset(56.04672, 52.548884672558), Offset(56.04672, 52.548884672558), Offset(56.04672, 52.548884672558), Offset(56.04672, 53.768880581558), Offset(56.04672, 56.915185820558), Offset(56.04672, 60.061491059558), Offset(56.04672, 63.20779629855801), Offset(56.04672, 66.35410153755801), Offset(56.04672, 69.500406776558), Offset(56.04672, 72.64671201555801), Offset(56.04672, 74.44035252452177), Offset(56.04672, 74.95386710664474), Offset(56.04672, 75.37290899799387), Offset(56.04672, 75.7122346595454), Offset(56.04672, 75.98387225794654), Offset(56.04672, 76.19822506777093), Offset(56.04672, 76.36445247425576), Offset(56.04672, 76.4903439276692), Offset(56.04672, 76.58262688786492), Offset(56.04672, 76.585986306158), Offset(56.04672, 76.585986306158), Offset(56.04672, 76.585986306158), Offset(56.04672, 76.585986306158), Offset(56.04672, 76.585986306158), Offset(56.04672, 76.585986306158), Offset(56.04672, 76.585986306158), Offset(56.04672, 76.585986306158), Offset(56.04672, 76.585986306158), Offset(56.04672, 76.585986306158), Offset(56.04672, 76.585986306158), Offset(56.04672, 76.585986306158), Offset(56.04672, 76.585986306158), Offset(56.04672, 76.585986306158), ], <Offset>[ Offset(56.04672, 48.1030583664), Offset(56.04672, 48.1030583664), Offset(56.04672, 48.1030583664), Offset(56.04672, 48.1030583664), Offset(56.04672, 48.1030583664), Offset(56.04672, 48.1030583664), Offset(56.04672, 48.1030583664), Offset(56.04672, 48.1030583664), Offset(56.04672, 48.1030583664), Offset(56.04672, 48.1030583664), Offset(56.04672, 48.1030583664), Offset(56.04672, 48.1030583664), Offset(56.04672, 48.1030583664), Offset(56.04672, 48.1030583664), Offset(56.04672, 48.1030583664), Offset(56.04672, 48.1030583664), Offset(56.04672, 48.1030583664), Offset(56.04672, 48.1030583664), Offset(56.04672, 48.1030583664), Offset(56.04672, 49.3230542754), Offset(56.04672, 52.4693595144), Offset(56.04672, 55.6156647534), Offset(56.04672, 58.761969992400005), Offset(56.04672, 61.908275231400005), Offset(56.04672, 65.0545804704), Offset(56.04672, 68.20088570940001), Offset(56.04672, 69.99452621836377), Offset(56.04672, 70.50804080048674), Offset(56.04672, 70.92708269183586), Offset(56.04672, 71.2664083533874), Offset(56.04672, 71.53804595178855), Offset(56.04672, 71.75239876161294), Offset(56.04672, 71.91862616809776), Offset(56.04672, 72.0445176215112), Offset(56.04672, 72.13680058170692), Offset(56.04672, 72.14016000000001), Offset(56.04672, 72.14016000000001), Offset(56.04672, 72.14016000000001), Offset(56.04672, 72.14016000000001), Offset(56.04672, 72.14016000000001), Offset(56.04672, 72.14016000000001), Offset(56.04672, 72.14016000000001), Offset(56.04672, 72.14016000000001), Offset(56.04672, 72.14016000000001), Offset(56.04672, 72.14016000000001), Offset(56.04672, 72.14016000000001), Offset(56.04672, 72.14016000000001), Offset(56.04672, 72.14016000000001), Offset(56.04672, 72.14016000000001), ], ), _PathCubicTo( <Offset>[ Offset(56.04672, 43.65726275604466), Offset(56.04672, 43.65726275604466), Offset(56.04672, 43.65726275604466), Offset(56.04672, 43.65726275604466), Offset(56.04672, 43.65726275604466), Offset(56.04672, 43.65726275604466), Offset(56.04672, 43.65726275604466), Offset(56.04672, 43.65726275604466), Offset(56.04672, 43.65726275604466), Offset(56.04672, 43.65726275604466), Offset(56.04672, 43.65726275604466), Offset(56.04672, 43.65726275604466), Offset(56.04672, 43.65726275604466), Offset(56.04672, 43.65726275604466), Offset(56.04672, 43.65726275604466), Offset(56.04672, 43.65726275604466), Offset(56.04672, 43.65726275604466), Offset(56.04672, 43.65726275604466), Offset(56.04672, 43.65726275604466), Offset(56.04672, 44.877258665044664), Offset(56.04672, 48.023563904044664), Offset(56.04672, 51.169869143044664), Offset(56.04672, 54.316174382044665), Offset(56.04672, 57.462479621044665), Offset(56.04672, 60.608784860044665), Offset(56.04672, 63.755090099044665), Offset(56.04672, 65.54873060800844), Offset(56.04672, 66.0622451901314), Offset(56.04672, 66.48128708148053), Offset(56.04672, 66.82061274303207), Offset(56.04672, 67.09225034143321), Offset(56.04672, 67.30660315125759), Offset(56.04672, 67.47283055774243), Offset(56.04672, 67.59872201115587), Offset(56.04672, 67.69100497135157), Offset(56.04672, 67.69436438964466), Offset(56.04672, 67.69436438964466), Offset(56.04672, 67.69436438964466), Offset(56.04672, 67.69436438964466), Offset(56.04672, 67.69436438964466), Offset(56.04672, 67.69436438964466), Offset(56.04672, 67.69436438964466), Offset(56.04672, 67.69436438964466), Offset(56.04672, 67.69436438964466), Offset(56.04672, 67.69436438964466), Offset(56.04672, 67.69436438964466), Offset(56.04672, 67.69436438964466), Offset(56.04672, 67.69436438964466), Offset(56.04672, 67.69436438964466), ], <Offset>[ Offset(52.445826306158004, 40.0563383664), Offset(52.445826306158004, 40.0563383664), Offset(52.445826306158004, 40.0563383664), Offset(52.445826306158004, 40.0563383664), Offset(52.445826306158004, 40.0563383664), Offset(52.445826306158004, 40.0563383664), Offset(52.445826306158004, 40.0563383664), Offset(52.445826306158004, 40.0563383664), Offset(52.445826306158004, 40.0563383664), Offset(52.445826306158004, 40.0563383664), Offset(52.445826306158004, 40.0563383664), Offset(52.445826306158004, 40.0563383664), Offset(52.445826306158004, 40.0563383664), Offset(52.445826306158004, 40.0563383664), Offset(52.445826306158004, 40.0563383664), Offset(52.445826306158004, 40.0563383664), Offset(52.445826306158004, 40.0563383664), Offset(52.445826306158004, 40.0563383664), Offset(52.445826306158004, 40.0563383664), Offset(52.445826306158004, 41.2763342754), Offset(52.445826306158004, 44.422639514400004), Offset(52.445826306158004, 47.568944753400004), Offset(52.445826306158004, 50.715249992400004), Offset(52.445826306158004, 53.861555231400004), Offset(52.445826306158004, 57.0078604704), Offset(52.445826306158004, 60.154165709400004), Offset(52.445826306158004, 61.94780621836377), Offset(52.445826306158004, 62.46132080048674), Offset(52.445826306158004, 62.88036269183587), Offset(52.445826306158004, 63.219688353387404), Offset(52.445826306158004, 63.491325951788546), Offset(52.445826306158004, 63.70567876161293), Offset(52.445826306158004, 63.87190616809776), Offset(52.445826306158004, 63.997797621511204), Offset(52.445826306158004, 64.09008058170691), Offset(52.445826306158004, 64.09344), Offset(52.445826306158004, 64.09344), Offset(52.445826306158004, 64.09344), Offset(52.445826306158004, 64.09344), Offset(52.445826306158004, 64.09344), Offset(52.445826306158004, 64.09344), Offset(52.445826306158004, 64.09344), Offset(52.445826306158004, 64.09344), Offset(52.445826306158004, 64.09344), Offset(52.445826306158004, 64.09344), Offset(52.445826306158004, 64.09344), Offset(52.445826306158004, 64.09344), Offset(52.445826306158004, 64.09344), Offset(52.445826306158004, 64.09344), ], <Offset>[ Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 40.0563383664), Offset(48.0, 41.2763342754), Offset(48.0, 44.422639514400004), Offset(48.0, 47.568944753400004), Offset(48.0, 50.715249992400004), Offset(48.0, 53.861555231400004), Offset(48.0, 57.0078604704), Offset(48.0, 60.154165709400004), Offset(48.0, 61.94780621836377), Offset(48.0, 62.46132080048674), Offset(48.0, 62.88036269183587), Offset(48.0, 63.219688353387404), Offset(48.0, 63.491325951788546), Offset(48.0, 63.70567876161293), Offset(48.0, 63.87190616809776), Offset(48.0, 63.997797621511204), Offset(48.0, 64.09008058170691), Offset(48.0, 64.09344), Offset(48.0, 64.09344), Offset(48.0, 64.09344), Offset(48.0, 64.09344), Offset(48.0, 64.09344), Offset(48.0, 64.09344), Offset(48.0, 64.09344), Offset(48.0, 64.09344), Offset(48.0, 64.09344), Offset(48.0, 64.09344), Offset(48.0, 64.09344), Offset(48.0, 64.09344), Offset(48.0, 64.09344), Offset(48.0, 64.09344), ], ), _PathClose( ), ], ), ], );
flutter/packages/flutter/lib/src/material/animated_icons/data/search_ellipsis.g.dart/0
{'file_path': 'flutter/packages/flutter/lib/src/material/animated_icons/data/search_ellipsis.g.dart', 'repo_id': 'flutter', 'token_count': 154395}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/foundation.dart' show clampDouble; import 'package:flutter/widgets.dart'; import 'chip.dart'; import 'chip_theme.dart'; import 'colors.dart'; import 'debug.dart'; import 'theme.dart'; import 'theme_data.dart'; /// A Material Design choice chip. /// /// [ChoiceChip]s represent a single choice from a set. Choice chips contain /// related descriptive text or categories. /// /// Requires one of its ancestors to be a [Material] widget. The [selected] and /// [label] arguments must not be null. /// /// {@tool dartpad} /// This example shows how to create [ChoiceChip]s with [onSelected]. When the /// user taps, the chip will be selected. /// /// ** See code in examples/api/lib/material/choice_chip/choice_chip.0.dart ** /// {@end-tool} /// /// ## Material Design 3 /// /// [ChoiceChip] can be used for single select Filter chips from /// Material Design 3. If [ThemeData.useMaterial3] is true, then [ChoiceChip] /// will be styled to match the Material Design 3 specification for Filter /// chips. Use [FilterChip] for multiple select Filter chips. /// /// See also: /// /// * [Chip], a chip that displays information and can be deleted. /// * [InputChip], a chip that represents a complex piece of information, such /// as an entity (person, place, or thing) or conversational text, in a /// compact form. /// * [FilterChip], uses tags or descriptive words as a way to filter content. /// * [ActionChip], represents an action related to primary content. /// * [CircleAvatar], which shows images or initials of people. /// * [Wrap], A widget that displays its children in multiple horizontal or /// vertical runs. /// * <https://material.io/design/components/chips.html> class ChoiceChip extends StatelessWidget implements ChipAttributes, SelectableChipAttributes, DisabledChipAttributes { /// Create a chip that acts like a radio button. /// /// The [label], [selected], [autofocus], and [clipBehavior] arguments must /// not be null. The [pressElevation] and [elevation] must be null or /// non-negative. Typically, [pressElevation] is greater than [elevation]. const ChoiceChip({ super.key, this.avatar, required this.label, this.labelStyle, this.labelPadding, this.onSelected, this.pressElevation, required this.selected, this.selectedColor, this.disabledColor, this.tooltip, this.side, this.shape, this.clipBehavior = Clip.none, this.focusNode, this.autofocus = false, this.backgroundColor, this.padding, this.visualDensity, this.materialTapTargetSize, this.elevation, this.shadowColor, this.surfaceTintColor, this.iconTheme, this.selectedShadowColor, this.avatarBorder = const CircleBorder(), }) : assert(pressElevation == null || pressElevation >= 0.0), assert(elevation == null || elevation >= 0.0); @override final Widget? avatar; @override final Widget label; @override final TextStyle? labelStyle; @override final EdgeInsetsGeometry? labelPadding; @override final ValueChanged<bool>? onSelected; @override final double? pressElevation; @override final bool selected; @override final Color? disabledColor; @override final Color? selectedColor; @override final String? tooltip; @override final BorderSide? side; @override final OutlinedBorder? shape; @override final Clip clipBehavior; @override final FocusNode? focusNode; @override final bool autofocus; @override final Color? backgroundColor; @override final EdgeInsetsGeometry? padding; @override final VisualDensity? visualDensity; @override final MaterialTapTargetSize? materialTapTargetSize; @override final double? elevation; @override final Color? shadowColor; @override final Color? surfaceTintColor; @override final Color? selectedShadowColor; @override final ShapeBorder avatarBorder; @override final IconThemeData? iconTheme; @override bool get isEnabled => onSelected != null; @override Widget build(BuildContext context) { assert(debugCheckHasMaterial(context)); final ChipThemeData chipTheme = ChipTheme.of(context); final ChipThemeData? defaults = Theme.of(context).useMaterial3 ? _ChoiceChipDefaultsM3(context, isEnabled, selected) : null; return RawChip( defaultProperties: defaults, avatar: avatar, label: label, labelStyle: labelStyle ?? (selected ? chipTheme.secondaryLabelStyle : null), labelPadding: labelPadding, onSelected: onSelected, pressElevation: pressElevation, selected: selected, showCheckmark: Theme.of(context).useMaterial3, tooltip: tooltip, side: side, shape: shape, clipBehavior: clipBehavior, focusNode: focusNode, autofocus: autofocus, disabledColor: disabledColor, selectedColor: selectedColor ?? chipTheme.secondarySelectedColor, backgroundColor: backgroundColor, padding: padding, visualDensity: visualDensity, isEnabled: isEnabled, materialTapTargetSize: materialTapTargetSize, elevation: elevation, shadowColor: shadowColor, surfaceTintColor: surfaceTintColor, selectedShadowColor: selectedShadowColor, avatarBorder: avatarBorder, iconTheme: iconTheme, ); } } // BEGIN GENERATED TOKEN PROPERTIES - ChoiceChip // Do not edit by hand. The code between the "BEGIN GENERATED" and // "END GENERATED" comments are generated from data in the Material // Design token database by the script: // dev/tools/gen_defaults/bin/gen_defaults.dart. // Token database version: v0_158 class _ChoiceChipDefaultsM3 extends ChipThemeData { const _ChoiceChipDefaultsM3(this.context, this.isEnabled, this.isSelected) : super( elevation: 0.0, shape: const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(8.0))), showCheckmark: true, ); final BuildContext context; final bool isEnabled; final bool isSelected; @override TextStyle? get labelStyle => Theme.of(context).textTheme.labelLarge; @override Color? get backgroundColor => null; @override Color? get shadowColor => Colors.transparent; @override Color? get surfaceTintColor => Theme.of(context).colorScheme.surfaceTint; @override Color? get selectedColor => isEnabled ? Theme.of(context).colorScheme.secondaryContainer : Theme.of(context).colorScheme.onSurface.withOpacity(0.12); @override Color? get checkmarkColor => Theme.of(context).colorScheme.onSecondaryContainer; @override Color? get disabledColor => isSelected ? Theme.of(context).colorScheme.onSurface.withOpacity(0.12) : null; @override Color? get deleteIconColor => Theme.of(context).colorScheme.onSecondaryContainer; @override BorderSide? get side => !isSelected ? isEnabled ? BorderSide(color: Theme.of(context).colorScheme.outline) : BorderSide(color: Theme.of(context).colorScheme.onSurface.withOpacity(0.12)) : const BorderSide(color: Colors.transparent); @override IconThemeData? get iconTheme => IconThemeData( color: isEnabled ? null : Theme.of(context).colorScheme.onSurface, size: 18.0, ); @override EdgeInsetsGeometry? get padding => const EdgeInsets.all(8.0); /// The chip at text scale 1 starts with 8px on each side and as text scaling /// gets closer to 2 the label padding is linearly interpolated from 8px to 4px. /// Once the widget has a text scaling of 2 or higher than the label padding /// remains 4px. @override EdgeInsetsGeometry? get labelPadding => EdgeInsets.lerp( const EdgeInsets.symmetric(horizontal: 8.0), const EdgeInsets.symmetric(horizontal: 4.0), clampDouble(MediaQuery.textScaleFactorOf(context) - 1.0, 0.0, 1.0), )!; } // END GENERATED TOKEN PROPERTIES - ChoiceChip
flutter/packages/flutter/lib/src/material/choice_chip.dart/0
{'file_path': 'flutter/packages/flutter/lib/src/material/choice_chip.dart', 'repo_id': 'flutter', 'token_count': 2690}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/widgets.dart'; import 'ink_well.dart' show InteractiveInkFeature; import 'material.dart'; const Duration _kDefaultHighlightFadeDuration = Duration(milliseconds: 200); /// A visual emphasis on a part of a [Material] receiving user interaction. /// /// This object is rarely created directly. Instead of creating an ink highlight /// directly, consider using an [InkResponse] or [InkWell] widget, which uses /// gestures (such as tap and long-press) to trigger ink highlights. /// /// See also: /// /// * [InkResponse], which uses gestures to trigger ink highlights and ink /// splashes in the parent [Material]. /// * [InkWell], which is a rectangular [InkResponse] (the most common type of /// ink response). /// * [Material], which is the widget on which the ink highlight is painted. /// * [InkSplash], which is an ink feature that shows a reaction to user input /// on a [Material]. /// * [Ink], a convenience widget for drawing images and other decorations on /// Material widgets. class InkHighlight extends InteractiveInkFeature { /// Begin a highlight animation. /// /// The [controller] argument is typically obtained via /// `Material.of(context)`. /// /// If a `rectCallback` is given, then it provides the highlight rectangle, /// otherwise, the highlight rectangle is coincident with the [referenceBox]. /// /// When the highlight is removed, `onRemoved` will be called. InkHighlight({ required super.controller, required super.referenceBox, required super.color, required TextDirection textDirection, BoxShape shape = BoxShape.rectangle, double? radius, BorderRadius? borderRadius, ShapeBorder? customBorder, RectCallback? rectCallback, super.onRemoved, Duration fadeDuration = _kDefaultHighlightFadeDuration, }) : _shape = shape, _radius = radius, _borderRadius = borderRadius ?? BorderRadius.zero, _customBorder = customBorder, _textDirection = textDirection, _rectCallback = rectCallback { _alphaController = AnimationController(duration: fadeDuration, vsync: controller.vsync) ..addListener(controller.markNeedsPaint) ..addStatusListener(_handleAlphaStatusChanged) ..forward(); _alpha = _alphaController.drive(IntTween( begin: 0, end: color.alpha, )); controller.addInkFeature(this); } final BoxShape _shape; final double? _radius; final BorderRadius _borderRadius; final ShapeBorder? _customBorder; final RectCallback? _rectCallback; final TextDirection _textDirection; late Animation<int> _alpha; late AnimationController _alphaController; /// Whether this part of the material is being visually emphasized. bool get active => _active; bool _active = true; /// Start visually emphasizing this part of the material. void activate() { _active = true; _alphaController.forward(); } /// Stop visually emphasizing this part of the material. void deactivate() { _active = false; _alphaController.reverse(); } void _handleAlphaStatusChanged(AnimationStatus status) { if (status == AnimationStatus.dismissed && !_active) { dispose(); } } @override void dispose() { _alphaController.dispose(); super.dispose(); } void _paintHighlight(Canvas canvas, Rect rect, Paint paint) { canvas.save(); if (_customBorder != null) { canvas.clipPath(_customBorder!.getOuterPath(rect, textDirection: _textDirection)); } switch (_shape) { case BoxShape.circle: canvas.drawCircle(rect.center, _radius ?? Material.defaultSplashRadius, paint); break; case BoxShape.rectangle: if (_borderRadius != BorderRadius.zero) { final RRect clipRRect = RRect.fromRectAndCorners( rect, topLeft: _borderRadius.topLeft, topRight: _borderRadius.topRight, bottomLeft: _borderRadius.bottomLeft, bottomRight: _borderRadius.bottomRight, ); canvas.drawRRect(clipRRect, paint); } else { canvas.drawRect(rect, paint); } break; } canvas.restore(); } @override void paintFeature(Canvas canvas, Matrix4 transform) { final Paint paint = Paint()..color = color.withAlpha(_alpha.value); final Offset? originOffset = MatrixUtils.getAsTranslation(transform); final Rect rect = _rectCallback != null ? _rectCallback!() : Offset.zero & referenceBox.size; if (originOffset == null) { canvas.save(); canvas.transform(transform.storage); _paintHighlight(canvas, rect, paint); canvas.restore(); } else { _paintHighlight(canvas, rect.shift(originOffset), paint); } } }
flutter/packages/flutter/lib/src/material/ink_highlight.dart/0
{'file_path': 'flutter/packages/flutter/lib/src/material/ink_highlight.dart', 'repo_id': 'flutter', 'token_count': 1621}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/services.dart'; import 'package:flutter/widgets.dart'; import 'debug.dart'; import 'material_localizations.dart'; /// Whether the [TimeOfDay] is before or after noon. enum DayPeriod { /// Ante meridiem (before noon). am, /// Post meridiem (after noon). pm, } /// A value representing a time during the day, independent of the date that /// day might fall on or the time zone. /// /// The time is represented by [hour] and [minute] pair. Once created, both /// values cannot be changed. /// /// You can create TimeOfDay using the constructor which requires both hour and /// minute or using [DateTime] object. /// Hours are specified between 0 and 23, as in a 24-hour clock. /// /// {@tool snippet} /// /// ```dart /// TimeOfDay now = TimeOfDay.now(); /// const TimeOfDay releaseTime = TimeOfDay(hour: 15, minute: 0); // 3:00pm /// TimeOfDay roomBooked = TimeOfDay.fromDateTime(DateTime.parse('2018-10-20 16:30:04Z')); // 4:30pm /// ``` /// {@end-tool} /// /// See also: /// /// * [showTimePicker], which returns this type. /// * [MaterialLocalizations], which provides methods for formatting values of /// this type according to the chosen [Locale]. /// * [DateTime], which represents date and time, and is subject to eras and /// time zones. @immutable class TimeOfDay { /// Creates a time of day. /// /// The [hour] argument must be between 0 and 23, inclusive. The [minute] /// argument must be between 0 and 59, inclusive. const TimeOfDay({ required this.hour, required this.minute }); /// Creates a time of day based on the given time. /// /// The [hour] is set to the time's hour and the [minute] is set to the time's /// minute in the timezone of the given [DateTime]. TimeOfDay.fromDateTime(DateTime time) : hour = time.hour, minute = time.minute; /// Creates a time of day based on the current time. /// /// The [hour] is set to the current hour and the [minute] is set to the /// current minute in the local time zone. factory TimeOfDay.now() { return TimeOfDay.fromDateTime(DateTime.now()); } /// The number of hours in one day, i.e. 24. static const int hoursPerDay = 24; /// The number of hours in one day period (see also [DayPeriod]), i.e. 12. static const int hoursPerPeriod = 12; /// The number of minutes in one hour, i.e. 60. static const int minutesPerHour = 60; /// Returns a new TimeOfDay with the hour and/or minute replaced. TimeOfDay replacing({ int? hour, int? minute }) { assert(hour == null || (hour >= 0 && hour < hoursPerDay)); assert(minute == null || (minute >= 0 && minute < minutesPerHour)); return TimeOfDay(hour: hour ?? this.hour, minute: minute ?? this.minute); } /// The selected hour, in 24 hour time from 0..23. final int hour; /// The selected minute. final int minute; /// Whether this time of day is before or after noon. DayPeriod get period => hour < hoursPerPeriod ? DayPeriod.am : DayPeriod.pm; /// Which hour of the current period (e.g., am or pm) this time is. /// /// For 12AM (midnight) and 12PM (noon) this returns 12. int get hourOfPeriod => hour == 0 || hour == 12 ? 12 : hour - periodOffset; /// The hour at which the current period starts. int get periodOffset => period == DayPeriod.am ? 0 : hoursPerPeriod; /// Returns the localized string representation of this time of day. /// /// This is a shortcut for [MaterialLocalizations.formatTimeOfDay]. String format(BuildContext context) { assert(debugCheckHasMediaQuery(context)); assert(debugCheckHasMaterialLocalizations(context)); final MaterialLocalizations localizations = MaterialLocalizations.of(context); return localizations.formatTimeOfDay( this, alwaysUse24HourFormat: MediaQuery.alwaysUse24HourFormatOf(context), ); } @override bool operator ==(Object other) { return other is TimeOfDay && other.hour == hour && other.minute == minute; } @override int get hashCode => Object.hash(hour, minute); @override String toString() { String addLeadingZeroIfNeeded(int value) { if (value < 10) { return '0$value'; } return value.toString(); } final String hourLabel = addLeadingZeroIfNeeded(hour); final String minuteLabel = addLeadingZeroIfNeeded(minute); return '$TimeOfDay($hourLabel:$minuteLabel)'; } } /// A [RestorableValue] that knows how to save and restore [TimeOfDay]. /// /// {@macro flutter.widgets.RestorableNum}. class RestorableTimeOfDay extends RestorableValue<TimeOfDay> { /// Creates a [RestorableTimeOfDay]. /// /// {@macro flutter.widgets.RestorableNum.constructor} RestorableTimeOfDay(TimeOfDay defaultValue) : _defaultValue = defaultValue; final TimeOfDay _defaultValue; @override TimeOfDay createDefaultValue() => _defaultValue; @override void didUpdateValue(TimeOfDay? oldValue) { assert(debugIsSerializableForRestoration(value.hour)); assert(debugIsSerializableForRestoration(value.minute)); notifyListeners(); } @override TimeOfDay fromPrimitives(Object? data) { final List<Object?> timeData = data! as List<Object?>; return TimeOfDay( minute: timeData[0]! as int, hour: timeData[1]! as int, ); } @override Object? toPrimitives() => <int>[value.minute, value.hour]; } /// Determines how the time picker invoked using [showTimePicker] formats and /// lays out the time controls. /// /// The time picker provides layout configurations optimized for each of the /// enum values. enum TimeOfDayFormat { /// Corresponds to the ICU 'HH:mm' pattern. /// /// This format uses 24-hour two-digit zero-padded hours. Controls are always /// laid out horizontally. Hours are separated from minutes by one colon /// character. HH_colon_mm, /// Corresponds to the ICU 'HH.mm' pattern. /// /// This format uses 24-hour two-digit zero-padded hours. Controls are always /// laid out horizontally. Hours are separated from minutes by one dot /// character. HH_dot_mm, /// Corresponds to the ICU "HH 'h' mm" pattern used in Canadian French. /// /// This format uses 24-hour two-digit zero-padded hours. Controls are always /// laid out horizontally. Hours are separated from minutes by letter 'h'. frenchCanadian, /// Corresponds to the ICU 'H:mm' pattern. /// /// This format uses 24-hour non-padded variable-length hours. Controls are /// always laid out horizontally. Hours are separated from minutes by one /// colon character. H_colon_mm, /// Corresponds to the ICU 'h:mm a' pattern. /// /// This format uses 12-hour non-padded variable-length hours with a day /// period. Controls are laid out horizontally in portrait mode. In landscape /// mode, the day period appears vertically after (consistent with the ambient /// [TextDirection]) hour-minute indicator. Hours are separated from minutes /// by one colon character. h_colon_mm_space_a, /// Corresponds to the ICU 'a h:mm' pattern. /// /// This format uses 12-hour non-padded variable-length hours with a day /// period. Controls are laid out horizontally in portrait mode. In landscape /// mode, the day period appears vertically before (consistent with the /// ambient [TextDirection]) hour-minute indicator. Hours are separated from /// minutes by one colon character. a_space_h_colon_mm, } /// Describes how hours are formatted. enum HourFormat { /// Zero-padded two-digit 24-hour format ranging from "00" to "23". HH, /// Non-padded variable-length 24-hour format ranging from "0" to "23". H, /// Non-padded variable-length hour in day period format ranging from "1" to /// "12". h, } /// The [HourFormat] used for the given [TimeOfDayFormat]. HourFormat hourFormat({ required TimeOfDayFormat of }) { switch (of) { case TimeOfDayFormat.h_colon_mm_space_a: case TimeOfDayFormat.a_space_h_colon_mm: return HourFormat.h; case TimeOfDayFormat.H_colon_mm: return HourFormat.H; case TimeOfDayFormat.HH_dot_mm: case TimeOfDayFormat.HH_colon_mm: case TimeOfDayFormat.frenchCanadian: return HourFormat.HH; } }
flutter/packages/flutter/lib/src/material/time.dart/0
{'file_path': 'flutter/packages/flutter/lib/src/material/time.dart', 'repo_id': 'flutter', 'token_count': 2599}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:ui' as ui; import 'package:flutter/foundation.dart'; import 'package:flutter/services.dart' show ServicesBinding; import 'image_cache.dart'; import 'shader_warm_up.dart'; /// Binding for the painting library. /// /// Hooks into the cache eviction logic to clear the image cache. /// /// Requires the [ServicesBinding] to be mixed in earlier. mixin PaintingBinding on BindingBase, ServicesBinding { @override void initInstances() { super.initInstances(); _instance = this; _imageCache = createImageCache(); shaderWarmUp?.execute(); } /// The current [PaintingBinding], if one has been created. /// /// Provides access to the features exposed by this mixin. The binding must /// be initialized before using this getter; this is typically done by calling /// [runApp] or [WidgetsFlutterBinding.ensureInitialized]. static PaintingBinding get instance => BindingBase.checkInstance(_instance); static PaintingBinding? _instance; /// [ShaderWarmUp] instance to be executed during [initInstances]. /// /// Defaults to `null`, meaning no shader warm-up is done. Some platforms may /// not support shader warm-up before at least one frame has been displayed. /// /// If the application has scenes that require the compilation of complex /// shaders, it may cause jank in the middle of an animation or interaction. /// In that case, setting [shaderWarmUp] to a custom [ShaderWarmUp] before /// creating the binding (usually before [runApp] for normal Flutter apps, and /// before [enableFlutterDriverExtension] for Flutter driver tests) may help /// if that object paints the difficult scene in its /// [ShaderWarmUp.warmUpOnCanvas] method, as this allows Flutter to /// pre-compile and cache the required shaders during startup. /// /// Currently the warm-up happens synchronously on the raster thread which /// means the rendering of the first frame on the raster thread will be /// postponed until the warm-up is finished. /// /// The warm up is only costly (100ms-200ms, depending on the shaders to /// compile) during the first run after the installation or a data wipe. The /// warm up does not block the platform thread so there should be no /// "Application Not Responding" warning. /// /// If this is null, no shader warm-up is executed. /// /// See also: /// /// * [ShaderWarmUp], the interface for implementing custom warm-up scenes. /// * <https://flutter.dev/docs/perf/rendering/shader> static ShaderWarmUp? shaderWarmUp; /// The singleton that implements the Flutter framework's image cache. /// /// The cache is used internally by [ImageProvider] and should generally not /// be accessed directly. /// /// The image cache is created during startup by the [createImageCache] /// method. ImageCache get imageCache => _imageCache; late ImageCache _imageCache; /// Creates the [ImageCache] singleton (accessible via [imageCache]). /// /// This method can be overridden to provide a custom image cache. @protected ImageCache createImageCache() => ImageCache(); /// Calls through to [dart:ui.instantiateImageCodec] from [ImageCache]. /// /// This method is deprecated. use [instantiateImageCodecFromBuffer] with an /// [ImmutableBuffer] instance instead of this method. /// /// The `cacheWidth` and `cacheHeight` parameters, when specified, indicate /// the size to decode the image to. /// /// Both `cacheWidth` and `cacheHeight` must be positive values greater than /// or equal to 1, or null. It is valid to specify only one of `cacheWidth` /// and `cacheHeight` with the other remaining null, in which case the omitted /// dimension will be scaled to maintain the aspect ratio of the original /// dimensions. When both are null or omitted, the image will be decoded at /// its native resolution. /// /// The `allowUpscaling` parameter determines whether the `cacheWidth` or /// `cacheHeight` parameters are clamped to the intrinsic width and height of /// the original image. By default, the dimensions are clamped to avoid /// unnecessary memory usage for images. Callers that wish to display an image /// above its native resolution should prefer scaling the canvas the image is /// drawn into. @Deprecated( 'Use instantiateImageCodecWithSize with an ImmutableBuffer instance instead. ' 'This feature was deprecated after v2.13.0-1.0.pre.', ) Future<ui.Codec> instantiateImageCodec( Uint8List bytes, { int? cacheWidth, int? cacheHeight, bool allowUpscaling = false, }) { assert(cacheWidth == null || cacheWidth > 0); assert(cacheHeight == null || cacheHeight > 0); return ui.instantiateImageCodec( bytes, targetWidth: cacheWidth, targetHeight: cacheHeight, allowUpscaling: allowUpscaling, ); } /// Calls through to [dart:ui.instantiateImageCodecFromBuffer] from [ImageCache]. /// /// The [buffer] parameter should be an [ui.ImmutableBuffer] instance which can /// be acquired from [ui.ImmutableBuffer.fromUint8List] or [ui.ImmutableBuffer.fromAsset]. /// /// The [cacheWidth] and [cacheHeight] parameters, when specified, indicate /// the size to decode the image to. /// /// Both [cacheWidth] and [cacheHeight] must be positive values greater than /// or equal to 1, or null. It is valid to specify only one of `cacheWidth` /// and [cacheHeight] with the other remaining null, in which case the omitted /// dimension will be scaled to maintain the aspect ratio of the original /// dimensions. When both are null or omitted, the image will be decoded at /// its native resolution. /// /// The [allowUpscaling] parameter determines whether the `cacheWidth` or /// [cacheHeight] parameters are clamped to the intrinsic width and height of /// the original image. By default, the dimensions are clamped to avoid /// unnecessary memory usage for images. Callers that wish to display an image /// above its native resolution should prefer scaling the canvas the image is /// drawn into. @Deprecated( 'Use instantiateImageCodecWithSize instead. ' 'This feature was deprecated after v3.7.0-1.4.pre.', ) Future<ui.Codec> instantiateImageCodecFromBuffer( ui.ImmutableBuffer buffer, { int? cacheWidth, int? cacheHeight, bool allowUpscaling = false, }) { assert(cacheWidth == null || cacheWidth > 0); assert(cacheHeight == null || cacheHeight > 0); return ui.instantiateImageCodecFromBuffer( buffer, targetWidth: cacheWidth, targetHeight: cacheHeight, allowUpscaling: allowUpscaling, ); } /// Calls through to [dart:ui.instantiateImageCodecWithSize] from [ImageCache]. /// /// The [buffer] parameter should be an [ui.ImmutableBuffer] instance which can /// be acquired from [ui.ImmutableBuffer.fromUint8List] or /// [ui.ImmutableBuffer.fromAsset]. /// /// The [getTargetSize] parameter, when specified, will be invoked and passed /// the image's intrinsic size to determine the size to decode the image to. /// The width and the height of the size it returns must be positive values /// greater than or equal to 1, or null. It is valid to return a [TargetImageSize] /// that specifies only one of `width` and `height` with the other remaining /// null, in which case the omitted dimension will be scaled to maintain the /// aspect ratio of the original dimensions. When both are null or omitted, /// the image will be decoded at its native resolution (as will be the case if /// the [getTargetSize] parameter is omitted). Future<ui.Codec> instantiateImageCodecWithSize( ui.ImmutableBuffer buffer, { ui.TargetImageSizeCallback? getTargetSize, }) { return ui.instantiateImageCodecWithSize(buffer, getTargetSize: getTargetSize); } @override void evict(String asset) { super.evict(asset); imageCache.clear(); imageCache.clearLiveImages(); } @override void handleMemoryPressure() { super.handleMemoryPressure(); imageCache.clear(); } /// Listenable that notifies when the available fonts on the system have /// changed. /// /// System fonts can change when the system installs or removes new font. To /// correctly reflect the change, it is important to relayout text related /// widgets when this happens. /// /// Objects that show text and/or measure text (e.g. via [TextPainter] or /// [Paragraph]) should listen to this and redraw/remeasure. Listenable get systemFonts => _systemFonts; final _SystemFontsNotifier _systemFonts = _SystemFontsNotifier(); @override Future<void> handleSystemMessage(Object systemMessage) async { await super.handleSystemMessage(systemMessage); final Map<String, dynamic> message = systemMessage as Map<String, dynamic>; final String type = message['type'] as String; switch (type) { case 'fontsChange': _systemFonts.notifyListeners(); break; } return; } } class _SystemFontsNotifier extends Listenable { final Set<VoidCallback> _systemFontsCallbacks = <VoidCallback>{}; void notifyListeners () { for (final VoidCallback callback in _systemFontsCallbacks) { callback(); } } @override void addListener(VoidCallback listener) { _systemFontsCallbacks.add(listener); } @override void removeListener(VoidCallback listener) { _systemFontsCallbacks.remove(listener); } } /// The singleton that implements the Flutter framework's image cache. /// /// The cache is used internally by [ImageProvider] and should generally not be /// accessed directly. /// /// The image cache is created during startup by the [PaintingBinding]'s /// [PaintingBinding.createImageCache] method. ImageCache get imageCache => PaintingBinding.instance.imageCache;
flutter/packages/flutter/lib/src/painting/binding.dart/0
{'file_path': 'flutter/packages/flutter/lib/src/painting/binding.dart', 'repo_id': 'flutter', 'token_count': 2883}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:ui' as ui show lerpDouble; import 'package:flutter/foundation.dart'; import 'alignment.dart'; import 'basic_types.dart'; /// An offset that's expressed as a fraction of a [Size]. /// /// `FractionalOffset(1.0, 0.0)` represents the top right of the [Size]. /// /// `FractionalOffset(0.0, 1.0)` represents the bottom left of the [Size]. /// /// `FractionalOffset(0.5, 2.0)` represents a point half way across the [Size], /// below the bottom of the rectangle by the height of the [Size]. /// /// The [FractionalOffset] class specifies offsets in terms of a distance from /// the top left, regardless of the [TextDirection]. /// /// ## Design discussion /// /// [FractionalOffset] and [Alignment] are two different representations of the /// same information: the location within a rectangle relative to the size of /// the rectangle. The difference between the two classes is in the coordinate /// system they use to represent the location. /// /// [FractionalOffset] uses a coordinate system with an origin in the top-left /// corner of the rectangle whereas [Alignment] uses a coordinate system with an /// origin in the center of the rectangle. /// /// Historically, [FractionalOffset] predates [Alignment]. When we attempted to /// make a version of [FractionalOffset] that adapted to the [TextDirection], we /// ran into difficulty because placing the origin in the top-left corner /// introduced a left-to-right bias that was hard to remove. /// /// By placing the origin in the center, [Alignment] and [AlignmentDirectional] /// are able to use the same origin, which means we can use a linear function to /// resolve an [AlignmentDirectional] into an [Alignment] in both /// [TextDirection.rtl] and [TextDirection.ltr]. /// /// [Alignment] is better for most purposes than [FractionalOffset] and should /// be used instead of [FractionalOffset]. We continue to implement /// [FractionalOffset] to support code that predates [Alignment]. /// /// See also: /// /// * [Alignment], which uses a coordinate system based on the center of the /// rectangle instead of the top left corner of the rectangle. @immutable class FractionalOffset extends Alignment { /// Creates a fractional offset. /// /// The [dx] and [dy] arguments must not be null. const FractionalOffset(double dx, double dy) : super(dx * 2.0 - 1.0, dy * 2.0 - 1.0); /// Creates a fractional offset from a specific offset and size. /// /// The returned [FractionalOffset] describes the position of the /// [Offset] in the [Size], as a fraction of the [Size]. factory FractionalOffset.fromOffsetAndSize(Offset offset, Size size) { return FractionalOffset( offset.dx / size.width, offset.dy / size.height, ); } /// Creates a fractional offset from a specific offset and rectangle. /// /// The offset is assumed to be relative to the same origin as the rectangle. /// /// If the offset is relative to the top left of the rectangle, use [ /// FractionalOffset.fromOffsetAndSize] instead, passing `rect.size`. /// /// The returned [FractionalOffset] describes the position of the /// [Offset] in the [Rect], as a fraction of the [Rect]. factory FractionalOffset.fromOffsetAndRect(Offset offset, Rect rect) { return FractionalOffset.fromOffsetAndSize( offset - rect.topLeft, rect.size, ); } /// The distance fraction in the horizontal direction. /// /// A value of 0.0 corresponds to the leftmost edge. A value of 1.0 /// corresponds to the rightmost edge. Values are not limited to that range; /// negative values represent positions to the left of the left edge, and /// values greater than 1.0 represent positions to the right of the right /// edge. double get dx => (x + 1.0) / 2.0; /// The distance fraction in the vertical direction. /// /// A value of 0.0 corresponds to the topmost edge. A value of 1.0 corresponds /// to the bottommost edge. Values are not limited to that range; negative /// values represent positions above the top, and values greater than 1.0 /// represent positions below the bottom. double get dy => (y + 1.0) / 2.0; /// The top left corner. static const FractionalOffset topLeft = FractionalOffset(0.0, 0.0); /// The center point along the top edge. static const FractionalOffset topCenter = FractionalOffset(0.5, 0.0); /// The top right corner. static const FractionalOffset topRight = FractionalOffset(1.0, 0.0); /// The center point along the left edge. static const FractionalOffset centerLeft = FractionalOffset(0.0, 0.5); /// The center point, both horizontally and vertically. static const FractionalOffset center = FractionalOffset(0.5, 0.5); /// The center point along the right edge. static const FractionalOffset centerRight = FractionalOffset(1.0, 0.5); /// The bottom left corner. static const FractionalOffset bottomLeft = FractionalOffset(0.0, 1.0); /// The center point along the bottom edge. static const FractionalOffset bottomCenter = FractionalOffset(0.5, 1.0); /// The bottom right corner. static const FractionalOffset bottomRight = FractionalOffset(1.0, 1.0); @override Alignment operator -(Alignment other) { if (other is! FractionalOffset) { return super - other; } return FractionalOffset(dx - other.dx, dy - other.dy); } @override Alignment operator +(Alignment other) { if (other is! FractionalOffset) { return super + other; } return FractionalOffset(dx + other.dx, dy + other.dy); } @override FractionalOffset operator -() { return FractionalOffset(-dx, -dy); } @override FractionalOffset operator *(double other) { return FractionalOffset(dx * other, dy * other); } @override FractionalOffset operator /(double other) { return FractionalOffset(dx / other, dy / other); } @override FractionalOffset operator ~/(double other) { return FractionalOffset((dx ~/ other).toDouble(), (dy ~/ other).toDouble()); } @override FractionalOffset operator %(double other) { return FractionalOffset(dx % other, dy % other); } /// Linearly interpolate between two [FractionalOffset]s. /// /// If either is null, this function interpolates from [FractionalOffset.center]. /// /// {@macro dart.ui.shadow.lerp} static FractionalOffset? lerp(FractionalOffset? a, FractionalOffset? b, double t) { if (a == null && b == null) { return null; } if (a == null) { return FractionalOffset(ui.lerpDouble(0.5, b!.dx, t)!, ui.lerpDouble(0.5, b.dy, t)!); } if (b == null) { return FractionalOffset(ui.lerpDouble(a.dx, 0.5, t)!, ui.lerpDouble(a.dy, 0.5, t)!); } return FractionalOffset(ui.lerpDouble(a.dx, b.dx, t)!, ui.lerpDouble(a.dy, b.dy, t)!); } @override String toString() { return 'FractionalOffset(${dx.toStringAsFixed(1)}, ' '${dy.toStringAsFixed(1)})'; } }
flutter/packages/flutter/lib/src/painting/fractional_offset.dart/0
{'file_path': 'flutter/packages/flutter/lib/src/painting/fractional_offset.dart', 'repo_id': 'flutter', 'token_count': 2233}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:developer'; import 'dart:ui' as ui; import 'package:flutter/foundation.dart'; import 'debug.dart'; /// Interface for drawing an image to warm up Skia shader compilations. /// /// When Skia first sees a certain type of draw operation on the GPU, it needs /// to compile the corresponding shader. The compilation can be slow (20ms- /// 200ms). Having that time as startup latency is often better than having /// jank in the middle of an animation. /// /// Therefore, we use this during the [PaintingBinding.initInstances] call to /// move common shader compilations from animation time to startup time. If /// needed, app developers can create a custom [ShaderWarmUp] subclass and /// hand it to [PaintingBinding.shaderWarmUp] before /// [PaintingBinding.initInstances] is called. Usually, that can be done before /// calling [runApp]. /// /// To determine whether a draw operation is useful for warming up shaders, /// check whether it improves the slowest frame rasterization time. Also, /// tracing with `flutter run --profile --trace-skia` may reveal whether there /// is shader-compilation-related jank. If there is such jank, some long /// `GrGLProgramBuilder::finalize` calls would appear in the middle of an /// animation. Their parent calls, which look like `XyzOp` (e.g., `FillRecOp`, /// `CircularRRectOp`) would suggest Xyz draw operations are causing the shaders /// to be compiled. A useful shader warm-up draw operation would eliminate such /// long compilation calls in the animation. To double-check the warm-up, trace /// with `flutter run --profile --trace-skia --start-paused`. The /// `GrGLProgramBuilder` with the associated `XyzOp` should appear during /// startup rather than in the middle of a later animation. /// /// This warm-up needs to be run on each individual device because the shader /// compilation depends on the specific GPU hardware and driver a device has. It /// can't be pre-computed during the Flutter engine compilation as the engine is /// device-agnostic. /// /// If no warm-up is desired (e.g., when the startup latency is crucial), set /// [PaintingBinding.shaderWarmUp] either to a custom ShaderWarmUp with an empty /// [warmUpOnCanvas] or null. /// /// See also: /// /// * [PaintingBinding.shaderWarmUp], the actual instance of [ShaderWarmUp] /// that's used to warm up the shaders. /// * <https://flutter.dev/docs/perf/rendering/shader> abstract class ShaderWarmUp { /// Abstract const constructor. This constructor enables subclasses to provide /// const constructors so that they can be used in const expressions. const ShaderWarmUp(); /// The size of the warm up image. /// /// The exact size shouldn't matter much as long as all draws are onscreen. /// 100x100 is an arbitrary small size that's easy to fit significant draw /// calls onto. /// /// A custom shader warm up can override this based on targeted devices. ui.Size get size => const ui.Size(100.0, 100.0); /// Trigger draw operations on a given canvas to warm up GPU shader /// compilation cache. /// /// To decide which draw operations to be added to your custom warm up /// process, consider capturing an skp using `flutter screenshot /// --observatory-uri=<uri> --type=skia` and analyzing it with /// <https://debugger.skia.org/>. Alternatively, one may run the app with /// `flutter run --trace-skia` and then examine the raster thread in the /// observatory timeline to see which Skia draw operations are commonly used, /// and which shader compilations are causing jank. @protected Future<void> warmUpOnCanvas(ui.Canvas canvas); /// Construct an offscreen image of [size], and execute [warmUpOnCanvas] on a /// canvas associated with that image. /// /// Currently, this has no effect when [kIsWeb] is true. Future<void> execute() async { final ui.PictureRecorder recorder = ui.PictureRecorder(); final ui.Canvas canvas = ui.Canvas(recorder); await warmUpOnCanvas(canvas); final ui.Picture picture = recorder.endRecording(); assert(debugCaptureShaderWarmUpPicture(picture)); if (!kIsWeb || isCanvasKit) { // Picture.toImage is not yet implemented on the web. final TimelineTask shaderWarmUpTask = TimelineTask(); shaderWarmUpTask.start('Warm-up shader'); try { final ui.Image image = await picture.toImage(size.width.ceil(), size.height.ceil()); assert(debugCaptureShaderWarmUpImage(image)); image.dispose(); } finally { shaderWarmUpTask.finish(); } } picture.dispose(); } }
flutter/packages/flutter/lib/src/painting/shader_warm_up.dart/0
{'file_path': 'flutter/packages/flutter/lib/src/painting/shader_warm_up.dart', 'repo_id': 'flutter', 'token_count': 1374}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:ui' as ui show AccessibilityFeatures, SemanticsUpdateBuilder; import 'package:flutter/foundation.dart'; import 'debug.dart'; export 'dart:ui' show AccessibilityFeatures, SemanticsUpdateBuilder; /// The glue between the semantics layer and the Flutter engine. // TODO(zanderso): move the remaining semantic related bindings here. mixin SemanticsBinding on BindingBase { @override void initInstances() { super.initInstances(); _instance = this; _accessibilityFeatures = platformDispatcher.accessibilityFeatures; } /// The current [SemanticsBinding], if one has been created. /// /// Provides access to the features exposed by this mixin. The binding must /// be initialized before using this getter; this is typically done by calling /// [runApp] or [WidgetsFlutterBinding.ensureInitialized]. static SemanticsBinding get instance => BindingBase.checkInstance(_instance); static SemanticsBinding? _instance; /// Called when the platform accessibility features change. /// /// See [dart:ui.PlatformDispatcher.onAccessibilityFeaturesChanged]. @protected void handleAccessibilityFeaturesChanged() { _accessibilityFeatures = platformDispatcher.accessibilityFeatures; } /// Creates an empty semantics update builder. /// /// The caller is responsible for filling out the semantics node updates. /// /// This method is used by the [SemanticsOwner] to create builder for all its /// semantics updates. ui.SemanticsUpdateBuilder createSemanticsUpdateBuilder() { return ui.SemanticsUpdateBuilder(); } /// The currently active set of [AccessibilityFeatures]. /// /// This is initialized the first time [runApp] is called and updated whenever /// a flag is changed. /// /// To listen to changes to accessibility features, create a /// [WidgetsBindingObserver] and listen to /// [WidgetsBindingObserver.didChangeAccessibilityFeatures]. ui.AccessibilityFeatures get accessibilityFeatures => _accessibilityFeatures; late ui.AccessibilityFeatures _accessibilityFeatures; /// The platform is requesting that animations be disabled or simplified. /// /// This setting can be overridden for testing or debugging by setting /// [debugSemanticsDisableAnimations]. bool get disableAnimations { bool value = _accessibilityFeatures.disableAnimations; assert(() { if (debugSemanticsDisableAnimations != null) { value = debugSemanticsDisableAnimations!; } return true; }()); return value; } }
flutter/packages/flutter/lib/src/semantics/binding.dart/0
{'file_path': 'flutter/packages/flutter/lib/src/semantics/binding.dart', 'repo_id': 'flutter', 'token_count': 732}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:js/js.dart'; import 'package:js/js_util.dart' as js_util; /// This file includes static interop helpers for Flutter Web. // TODO(joshualitt): This file will eventually be removed, // https://github.com/flutter/flutter/issues/113402. /// [DomWindow] interop object. @JS() @staticInterop class DomWindow {} /// [DomWindow] required extension. extension DomWindowExtension on DomWindow { /// Returns a [DomMediaQueryList] of the media that matches [query]. external DomMediaQueryList matchMedia(String? query); /// Returns the [DomNavigator] associated with this window. external DomNavigator get navigator; /// Gets the current selection. external DomSelection? getSelection(); } /// The underyling window. @JS('window') external DomWindow get domWindow; /// [DomMediaQueryList] interop object. @JS() @staticInterop class DomMediaQueryList {} /// [DomMediaQueryList] required extension. extension DomMediaQueryListExtension on DomMediaQueryList { /// Whether or not the query matched. external bool get matches; } /// [DomNavigator] interop object. @JS() @staticInterop class DomNavigator {} /// [DomNavigator] required extension. extension DomNavigatorExtension on DomNavigator { /// The underyling platform string. external String? get platform; } /// A DOM event target. @JS() @staticInterop class DomEventTarget {} /// [DomEventTarget]'s required extension. extension DomEventTargetExtension on DomEventTarget { /// Adds an event listener to this event target. void addEventListener(String type, DomEventListener? listener, [bool? useCapture]) { if (listener != null) { js_util.callMethod(this, 'addEventListener', <Object>[type, listener, if (useCapture != null) useCapture]); } } } /// [DomXMLHttpRequest] interop class. @JS() @staticInterop class DomXMLHttpRequest extends DomEventTarget {} /// [DomXMLHttpRequest] extension. extension DomXMLHttpRequestExtension on DomXMLHttpRequest { /// Gets the response. external dynamic get response; /// Gets the response text. external String? get responseText; /// Gets the response type. external String get responseType; /// Gets the status. external int? get status; /// Set the response type. external set responseType(String value); /// Set the request header. external void setRequestHeader(String header, String value); /// Open the request. void open(String method, String url, bool isAsync) => js_util.callMethod( this, 'open', <Object>[method, url, isAsync]); /// Send the request. void send() => js_util.callMethod(this, 'send', <Object>[]); } /// Factory function for creating [DomXMLHttpRequest]. DomXMLHttpRequest createDomXMLHttpRequest() => domCallConstructorString('XMLHttpRequest', <Object?>[])! as DomXMLHttpRequest; /// Type for event listener. typedef DomEventListener = void Function(DomEvent event); /// [DomEvent] interop object. @JS() @staticInterop class DomEvent {} /// [DomEvent] reqiured extension. extension DomEventExtension on DomEvent { /// Get the event type. external String get type; /// Initialize an event. void initEvent(String type, [bool? bubbles, bool? cancelable]) => js_util.callMethod(this, 'initEvent', <Object>[ type, if (bubbles != null) bubbles, if (cancelable != null) cancelable ]); } /// [DomProgressEvent] interop object. @JS() @staticInterop class DomProgressEvent extends DomEvent {} /// [DomProgressEvent] reqiured extension. extension DomProgressEventExtension on DomProgressEvent { /// Amount of work done. external int? get loaded; /// Total amount of work. external int? get total; } /// Gets a constructor from a [String]. Object? domGetConstructor(String constructorName) => js_util.getProperty(domWindow, constructorName); /// Calls a constructor as a [String]. Object? domCallConstructorString(String constructorName, List<Object?> args) { final Object? constructor = domGetConstructor(constructorName); if (constructor == null) { return null; } return js_util.callConstructor(constructor, args); } /// The underlying DOM document. @JS() @staticInterop class DomDocument {} /// [DomDocument]'s required extension. extension DomDocumentExtension on DomDocument { /// Creates an event. external DomEvent createEvent(String eventType); /// Creates a range. external DomRange createRange(); /// Gets the head element. external DomHTMLHeadElement? get head; /// Creates a new element. DomElement createElement(String name, [Object? options]) => js_util.callMethod(this, 'createElement', <Object>[name, if (options != null) options]) as DomElement; } /// Returns the top level document. @JS('window.document') external DomDocument get domDocument; /// Cretaes a new DOM event. DomEvent createDomEvent(String type, String name) { final DomEvent event = domDocument.createEvent(type); event.initEvent(name, true, true); return event; } /// Defines a new property on an Object. @JS('Object.defineProperty') external void objectDefineProperty(Object o, String symbol, dynamic desc); /// A Range object. @JS() @staticInterop class DomRange {} /// [DomRange]'s required extension. extension DomRangeExtension on DomRange { /// Selects the provided node. external void selectNode(DomNode node); } /// A node in the DOM. @JS() @staticInterop class DomNode extends DomEventTarget {} /// [DomNode]'s required extension. extension DomNodeExtension on DomNode { /// Sets the innerText of this node. external set innerText(String text); /// Appends a node this node. external void append(DomNode node); } /// An element in the DOM. @JS() @staticInterop class DomElement extends DomNode {} /// [DomElement]'s required extension. extension DomElementExtension on DomElement { /// Returns the style of this element. external DomCSSStyleDeclaration get style; /// Returns the class list of this element. external DomTokenList get classList; } /// An HTML element in the DOM. @JS() @staticInterop class DomHTMLElement extends DomElement {} /// A UI event. @JS() @staticInterop class DomUIEvent extends DomEvent {} /// A mouse event. @JS() @staticInterop class DomMouseEvent extends DomUIEvent {} /// [DomMouseEvent]'s required extension. extension DomMouseEventExtension on DomMouseEvent { /// Returns the current x offset. external num get offsetX; /// Returns the current y offset. external num get offsetY; /// Returns the current button. external int get button; } /// A DOM selection. @JS() @staticInterop class DomSelection {} /// [DomSelection]'s required extension. extension DomSelectionExtension on DomSelection { /// Removes all ranges from this selection. external void removeAllRanges(); /// Adds a range to this selection. external void addRange(DomRange range); } /// A DOM html div element. @JS() @staticInterop class DomHTMLDivElement extends DomHTMLElement {} /// Factory constructor for [DomHTMLDivElement]. DomHTMLDivElement createDomHTMLDivElement() => domDocument.createElement('div') as DomHTMLDivElement; /// An html style element. @JS() @staticInterop class DomHTMLStyleElement extends DomHTMLElement {} /// [DomHTMLStyleElement]'s required extension. extension DomHTMLStyleElementExtension on DomHTMLStyleElement { /// Get's the style sheet of this element. external DomStyleSheet? get sheet; } /// Factory constructor for [DomHTMLStyleElement]. DomHTMLStyleElement createDomHTMLStyleElement() => domDocument.createElement('style') as DomHTMLStyleElement; /// CSS styles. @JS() @staticInterop class DomCSSStyleDeclaration {} /// [DomCSSStyleDeclaration]'s required extension. extension DomCSSStyleDeclarationExtension on DomCSSStyleDeclaration { /// Sets the width. set width(String value) => setProperty('width', value); /// Sets the height. set height(String value) => setProperty('height', value); /// Sets a CSS property by name. void setProperty(String propertyName, String value, [String? priority]) { priority ??= ''; js_util.callMethod( this, 'setProperty', <Object>[propertyName, value, priority]); } } /// The HTML head element. @JS() @staticInterop class DomHTMLHeadElement extends DomHTMLElement {} /// A DOM style sheet. @JS() @staticInterop class DomStyleSheet {} /// A DOM CSS style sheet. @JS() @staticInterop class DomCSSStyleSheet extends DomStyleSheet {} /// [DomCSSStyleSheet]'s required extension. extension DomCSSStyleSheetExtension on DomCSSStyleSheet { /// Inserts a rule into this style sheet. int insertRule(String rule, [int? index]) => js_util .callMethod(this, 'insertRule', <Object>[rule, if (index != null) index]); } /// A list of token. @JS() @staticInterop class DomTokenList {} /// [DomTokenList]'s required extension. extension DomTokenListExtension on DomTokenList { /// Adds a token to this token list. external void add(String value); }
flutter/packages/flutter/lib/src/services/dom.dart/0
{'file_path': 'flutter/packages/flutter/lib/src/services/dom.dart', 'repo_id': 'flutter', 'token_count': 2712}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/rendering.dart'; import 'basic.dart'; import 'framework.dart'; /// An interface for widgets that can return the size this widget would prefer /// if it were otherwise unconstrained. /// /// There are a few cases, notably [AppBar] and [TabBar], where it would be /// undesirable for the widget to constrain its own size but where the widget /// needs to expose a preferred or "default" size. For example a primary /// [Scaffold] sets its app bar height to the app bar's preferred height /// plus the height of the system status bar. /// /// Widgets that need to know the preferred size of their child can require /// that their child implement this interface by using this class rather /// than [Widget] as the type of their `child` property. /// /// Use [PreferredSize] to give a preferred size to an arbitrary widget. // (We ignore `avoid_implementing_value_types` here because the superclass // doesn't really implement `operator ==`, it just overrides it to _prevent_ it // from being implemented, which is the exact opposite of the spirit of the // `avoid_implementing_value_types` lint.) // ignore: avoid_implementing_value_types abstract class PreferredSizeWidget implements Widget { /// The size this widget would prefer if it were otherwise unconstrained. /// /// In many cases it's only necessary to define one preferred dimension. /// For example the [Scaffold] only depends on its app bar's preferred /// height. In that case implementations of this method can just return /// `Size.fromHeight(myAppBarHeight)`. Size get preferredSize; } /// A widget with a preferred size. /// /// This widget does not impose any constraints on its child, and it doesn't /// affect the child's layout in any way. It just advertises a preferred size /// which can be used by the parent. /// /// Parents like [Scaffold] use [PreferredSizeWidget] to require that their /// children implement that interface. To give a preferred size to an arbitrary /// widget so that it can be used in a `child` property of that type, this /// widget, [PreferredSize], can be used. /// /// Widgets like [AppBar] implement a [PreferredSizeWidget], so that this /// [PreferredSize] widget is not necessary for them. /// /// {@tool dartpad} /// This sample shows a custom widget, similar to an [AppBar], which uses a /// [PreferredSize] widget, with its height set to 80 logical pixels. /// Changing the [PreferredSize] can be used to change the height /// of the custom app bar. /// /// ** See code in examples/api/lib/widgets/preferred_size/preferred_size.0.dart ** /// {@end-tool} /// /// See also: /// /// * [AppBar.bottom] and [Scaffold.appBar], which require preferred size widgets. /// * [PreferredSizeWidget], the interface which this widget implements to expose /// its preferred size. /// * [AppBar] and [TabBar], which implement PreferredSizeWidget. class PreferredSize extends StatelessWidget implements PreferredSizeWidget { /// Creates a widget that has a preferred size that the parent can query. const PreferredSize({ super.key, required this.child, required this.preferredSize, }); /// The widget below this widget in the tree. /// /// {@macro flutter.widgets.ProxyWidget.child} final Widget child; @override final Size preferredSize; @override Widget build(BuildContext context) => child; }
flutter/packages/flutter/lib/src/widgets/preferred_size.dart/0
{'file_path': 'flutter/packages/flutter/lib/src/widgets/preferred_size.dart', 'repo_id': 'flutter', 'token_count': 939}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/foundation.dart'; import 'package:flutter/rendering.dart'; /// The position information for a text selection toolbar. /// /// Typically, a menu will attempt to position itself at [primaryAnchor], and /// if that's not possible, then it will use [secondaryAnchor] instead, if it /// exists. /// /// See also: /// /// * [AdaptiveTextSelectionToolbar.anchors], which is of this type. @immutable class TextSelectionToolbarAnchors { /// Creates an instance of [TextSelectionToolbarAnchors] directly from the /// anchor points. const TextSelectionToolbarAnchors({ required this.primaryAnchor, this.secondaryAnchor, }); /// Creates an instance of [TextSelectionToolbarAnchors] for some selection. factory TextSelectionToolbarAnchors.fromSelection({ required RenderBox renderBox, required double startGlyphHeight, required double endGlyphHeight, required List<TextSelectionPoint> selectionEndpoints, }) { final Rect editingRegion = Rect.fromPoints( renderBox.localToGlobal(Offset.zero), renderBox.localToGlobal(renderBox.size.bottomRight(Offset.zero)), ); final bool isMultiline = selectionEndpoints.last.point.dy - selectionEndpoints.first.point.dy > endGlyphHeight / 2; final Rect selectionRect = Rect.fromLTRB( isMultiline ? editingRegion.left : editingRegion.left + selectionEndpoints.first.point.dx, editingRegion.top + selectionEndpoints.first.point.dy - startGlyphHeight, isMultiline ? editingRegion.right : editingRegion.left + selectionEndpoints.last.point.dx, editingRegion.top + selectionEndpoints.last.point.dy, ); return TextSelectionToolbarAnchors( primaryAnchor: Offset( selectionRect.left + selectionRect.width / 2, clampDouble(selectionRect.top, editingRegion.top, editingRegion.bottom), ), secondaryAnchor: Offset( selectionRect.left + selectionRect.width / 2, clampDouble(selectionRect.bottom, editingRegion.top, editingRegion.bottom), ), ); } /// The location that the toolbar should attempt to position itself at. /// /// If the toolbar doesn't fit at this location, use [secondaryAnchor] if it /// exists. final Offset primaryAnchor; /// The fallback position that should be used if [primaryAnchor] doesn't work. final Offset? secondaryAnchor; }
flutter/packages/flutter/lib/src/widgets/text_selection_toolbar_anchors.dart/0
{'file_path': 'flutter/packages/flutter/lib/src/widgets/text_selection_toolbar_anchors.dart', 'repo_id': 'flutter', 'token_count': 856}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /// The Flutter widgets framework. /// /// To use, import `package:flutter/widgets.dart`. /// /// See also: /// /// * [flutter.dev/widgets](https://flutter.dev/widgets/) /// for a catalog of commonly-used Flutter widgets. library widgets; export 'package:characters/characters.dart'; export 'package:vector_math/vector_math_64.dart' show Matrix4; export 'foundation.dart' show UniqueKey; export 'rendering.dart' show TextSelectionHandleType; export 'src/widgets/actions.dart'; export 'src/widgets/animated_cross_fade.dart'; export 'src/widgets/animated_scroll_view.dart'; export 'src/widgets/animated_size.dart'; export 'src/widgets/animated_switcher.dart'; export 'src/widgets/annotated_region.dart'; export 'src/widgets/app.dart'; export 'src/widgets/async.dart'; export 'src/widgets/autocomplete.dart'; export 'src/widgets/autofill.dart'; export 'src/widgets/automatic_keep_alive.dart'; export 'src/widgets/banner.dart'; export 'src/widgets/basic.dart'; export 'src/widgets/binding.dart'; export 'src/widgets/bottom_navigation_bar_item.dart'; export 'src/widgets/color_filter.dart'; export 'src/widgets/container.dart'; export 'src/widgets/context_menu_button_item.dart'; export 'src/widgets/context_menu_controller.dart'; export 'src/widgets/debug.dart'; export 'src/widgets/default_selection_style.dart'; export 'src/widgets/default_text_editing_shortcuts.dart'; export 'src/widgets/desktop_text_selection_toolbar_layout_delegate.dart'; export 'src/widgets/dismissible.dart'; export 'src/widgets/display_feature_sub_screen.dart'; export 'src/widgets/disposable_build_context.dart'; export 'src/widgets/drag_target.dart'; export 'src/widgets/draggable_scrollable_sheet.dart'; export 'src/widgets/dual_transition_builder.dart'; export 'src/widgets/editable_text.dart'; export 'src/widgets/fade_in_image.dart'; export 'src/widgets/focus_manager.dart'; export 'src/widgets/focus_scope.dart'; export 'src/widgets/focus_traversal.dart'; export 'src/widgets/form.dart'; export 'src/widgets/framework.dart'; export 'src/widgets/gesture_detector.dart'; export 'src/widgets/grid_paper.dart'; export 'src/widgets/heroes.dart'; export 'src/widgets/icon.dart'; export 'src/widgets/icon_data.dart'; export 'src/widgets/icon_theme.dart'; export 'src/widgets/icon_theme_data.dart'; export 'src/widgets/image.dart'; export 'src/widgets/image_filter.dart'; export 'src/widgets/image_icon.dart'; export 'src/widgets/implicit_animations.dart'; export 'src/widgets/inherited_model.dart'; export 'src/widgets/inherited_notifier.dart'; export 'src/widgets/inherited_theme.dart'; export 'src/widgets/interactive_viewer.dart'; export 'src/widgets/keyboard_listener.dart'; export 'src/widgets/layout_builder.dart'; export 'src/widgets/list_wheel_scroll_view.dart'; export 'src/widgets/localizations.dart'; export 'src/widgets/lookup_boundary.dart'; export 'src/widgets/magnifier.dart'; export 'src/widgets/media_query.dart'; export 'src/widgets/modal_barrier.dart'; export 'src/widgets/navigation_toolbar.dart'; export 'src/widgets/navigator.dart'; export 'src/widgets/nested_scroll_view.dart'; export 'src/widgets/notification_listener.dart'; export 'src/widgets/orientation_builder.dart'; export 'src/widgets/overflow_bar.dart'; export 'src/widgets/overlay.dart'; export 'src/widgets/overscroll_indicator.dart'; export 'src/widgets/page_storage.dart'; export 'src/widgets/page_view.dart'; export 'src/widgets/pages.dart'; export 'src/widgets/performance_overlay.dart'; export 'src/widgets/placeholder.dart'; export 'src/widgets/platform_menu_bar.dart'; export 'src/widgets/platform_selectable_region_context_menu.dart'; export 'src/widgets/platform_view.dart'; export 'src/widgets/preferred_size.dart'; export 'src/widgets/primary_scroll_controller.dart'; export 'src/widgets/raw_keyboard_listener.dart'; export 'src/widgets/reorderable_list.dart'; export 'src/widgets/restoration.dart'; export 'src/widgets/restoration_properties.dart'; export 'src/widgets/router.dart'; export 'src/widgets/routes.dart'; export 'src/widgets/safe_area.dart'; export 'src/widgets/scroll_activity.dart'; export 'src/widgets/scroll_aware_image_provider.dart'; export 'src/widgets/scroll_configuration.dart'; export 'src/widgets/scroll_context.dart'; export 'src/widgets/scroll_controller.dart'; export 'src/widgets/scroll_metrics.dart'; export 'src/widgets/scroll_notification.dart'; export 'src/widgets/scroll_notification_observer.dart'; export 'src/widgets/scroll_physics.dart'; export 'src/widgets/scroll_position.dart'; export 'src/widgets/scroll_position_with_single_context.dart'; export 'src/widgets/scroll_simulation.dart'; export 'src/widgets/scroll_view.dart'; export 'src/widgets/scrollable.dart'; export 'src/widgets/scrollbar.dart'; export 'src/widgets/selectable_region.dart'; export 'src/widgets/selection_container.dart'; export 'src/widgets/semantics_debugger.dart'; export 'src/widgets/service_extensions.dart'; export 'src/widgets/shared_app_data.dart'; export 'src/widgets/shortcuts.dart'; export 'src/widgets/single_child_scroll_view.dart'; export 'src/widgets/size_changed_layout_notifier.dart'; export 'src/widgets/sliver.dart'; export 'src/widgets/sliver_fill.dart'; export 'src/widgets/sliver_layout_builder.dart'; export 'src/widgets/sliver_persistent_header.dart'; export 'src/widgets/sliver_prototype_extent_list.dart'; export 'src/widgets/slotted_render_object_widget.dart'; export 'src/widgets/snapshot_widget.dart'; export 'src/widgets/spacer.dart'; export 'src/widgets/spell_check.dart'; export 'src/widgets/status_transitions.dart'; export 'src/widgets/table.dart'; export 'src/widgets/tap_and_drag_gestures.dart'; export 'src/widgets/tap_region.dart'; export 'src/widgets/text.dart'; export 'src/widgets/text_editing_intents.dart'; export 'src/widgets/text_selection.dart'; export 'src/widgets/text_selection_toolbar_anchors.dart'; export 'src/widgets/text_selection_toolbar_layout_delegate.dart'; export 'src/widgets/texture.dart'; export 'src/widgets/ticker_provider.dart'; export 'src/widgets/title.dart'; export 'src/widgets/transitions.dart'; export 'src/widgets/tween_animation_builder.dart'; export 'src/widgets/unique_widget.dart'; export 'src/widgets/value_listenable_builder.dart'; export 'src/widgets/view.dart'; export 'src/widgets/viewport.dart'; export 'src/widgets/visibility.dart'; export 'src/widgets/widget_inspector.dart'; export 'src/widgets/widget_span.dart'; export 'src/widgets/will_pop_scope.dart';
flutter/packages/flutter/lib/widgets.dart/0
{'file_path': 'flutter/packages/flutter/lib/widgets.dart', 'repo_id': 'flutter', 'token_count': 2427}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @TestOn('browser') library; import 'package:flutter_test/flutter_test.dart'; // Regression test for: https://github.com/dart-lang/sdk/issues/47207 // Needs: https://github.com/dart-lang/sdk/commit/6c4593929f067af259113eae5dc1b3b1c04f1035 to pass. // Originally here: https://github.com/flutter/engine/pull/28808 void main() { test('Web library environment define exists', () { expect(const bool.fromEnvironment('dart.library.js_util'), isTrue); expect(const bool.fromEnvironment('dart.library.someFooLibrary'), isFalse); }); }
flutter/packages/flutter/test/dart/browser_environment_test.dart/0
{'file_path': 'flutter/packages/flutter/test/dart/browser_environment_test.dart', 'repo_id': 'flutter', 'token_count': 236}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/foundation.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { test('isWeb is false for flutter tester', () { expect(kIsWeb, false); }, skip: kIsWeb); // [intended] kIsWeb is what we are testing here. }
flutter/packages/flutter/test/foundation/constants_test.dart/0
{'file_path': 'flutter/packages/flutter/test/foundation/constants_test.dart', 'repo_id': 'flutter', 'token_count': 133}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/gestures.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { test('wrapped HitTestResult gets HitTestEntry added to wrapping HitTestResult', () async { final HitTestEntry entry1 = HitTestEntry(_DummyHitTestTarget()); final HitTestEntry entry2 = HitTestEntry(_DummyHitTestTarget()); final HitTestEntry entry3 = HitTestEntry(_DummyHitTestTarget()); final Matrix4 transform = Matrix4.translationValues(40.0, 150.0, 0.0); final HitTestResult wrapped = MyHitTestResult() ..publicPushTransform(transform); wrapped.add(entry1); expect(wrapped.path, equals(<HitTestEntry>[entry1])); expect(entry1.transform, transform); final HitTestResult wrapping = HitTestResult.wrap(wrapped); expect(wrapping.path, equals(<HitTestEntry>[entry1])); expect(wrapping.path, same(wrapped.path)); wrapping.add(entry2); expect(wrapping.path, equals(<HitTestEntry>[entry1, entry2])); expect(wrapped.path, equals(<HitTestEntry>[entry1, entry2])); expect(entry2.transform, transform); wrapped.add(entry3); expect(wrapping.path, equals(<HitTestEntry>[entry1, entry2, entry3])); expect(wrapped.path, equals(<HitTestEntry>[entry1, entry2, entry3])); expect(entry3.transform, transform); }); test('HitTestResult should correctly push and pop transforms', () { Matrix4? currentTransform(HitTestResult targetResult) { final HitTestEntry entry = HitTestEntry(_DummyHitTestTarget()); targetResult.add(entry); return entry.transform; } final MyHitTestResult result = MyHitTestResult(); final Matrix4 m1 = Matrix4.translationValues(10, 20, 0); final Matrix4 m2 = Matrix4.rotationZ(1); final Matrix4 m3 = Matrix4.diagonal3Values(1.1, 1.2, 1.0); result.publicPushTransform(m1); expect(currentTransform(result), equals(m1)); result.publicPushTransform(m2); expect(currentTransform(result), equals(m2 * m1)); expect(currentTransform(result), equals(m2 * m1)); // Test repeated add // The `wrapped` is wrapped at [m1, m2] final MyHitTestResult wrapped = MyHitTestResult.wrap(result); expect(currentTransform(wrapped), equals(m2 * m1)); result.publicPushTransform(m3); // ignore: avoid_dynamic_calls expect(currentTransform(result), equals(m3 * m2 * m1)); // ignore: avoid_dynamic_calls expect(currentTransform(wrapped), equals(m3 * m2 * m1)); result.publicPopTransform(); result.publicPopTransform(); expect(currentTransform(result), equals(m1)); result.publicPopTransform(); result.publicPushTransform(m3); expect(currentTransform(result), equals(m3)); result.publicPushTransform(m2); expect(currentTransform(result), equals(m2 * m3)); }); test('HitTestResult should correctly push and pop offsets', () { Matrix4? currentTransform(HitTestResult targetResult) { final HitTestEntry entry = HitTestEntry(_DummyHitTestTarget()); targetResult.add(entry); return entry.transform; } final MyHitTestResult result = MyHitTestResult(); final Matrix4 m1 = Matrix4.rotationZ(1); final Matrix4 m2 = Matrix4.diagonal3Values(1.1, 1.2, 1.0); const Offset o3 = Offset(10, 20); final Matrix4 m3 = Matrix4.translationValues(o3.dx, o3.dy, 0.0); // Test pushing offset as the first element result.publicPushOffset(o3); expect(currentTransform(result), equals(m3)); result.publicPopTransform(); result.publicPushOffset(o3); result.publicPushTransform(m1); expect(currentTransform(result), equals(m1 * m3)); expect(currentTransform(result), equals(m1 * m3)); // Test repeated add // The `wrapped` is wrapped at [m1, m2] final MyHitTestResult wrapped = MyHitTestResult.wrap(result); expect(currentTransform(wrapped), equals(m1 * m3)); result.publicPushTransform(m2); // ignore: avoid_dynamic_calls expect(currentTransform(result), equals(m2 * m1 * m3)); // ignore: avoid_dynamic_calls expect(currentTransform(wrapped), equals(m2 * m1 * m3)); result.publicPopTransform(); result.publicPopTransform(); result.publicPopTransform(); expect(currentTransform(result), equals(Matrix4.identity())); result.publicPushTransform(m2); result.publicPushOffset(o3); result.publicPushTransform(m1); // ignore: avoid_dynamic_calls expect(currentTransform(result), equals(m1 * m3 * m2)); result.publicPopTransform(); expect(currentTransform(result), equals(m3 * m2)); }); } class _DummyHitTestTarget implements HitTestTarget { @override void handleEvent(PointerEvent event, HitTestEntry entry) { // Nothing to do. } } class MyHitTestResult extends HitTestResult { MyHitTestResult(); MyHitTestResult.wrap(super.result) : super.wrap(); void publicPushTransform(Matrix4 transform) => pushTransform(transform); void publicPushOffset(Offset offset) => pushOffset(offset); void publicPopTransform() => popTransform(); }
flutter/packages/flutter/test/gestures/hit_test_test.dart/0
{'file_path': 'flutter/packages/flutter/test/gestures/hit_test_test.dart', 'repo_id': 'flutter', 'token_count': 1747}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('gets local coordinates', (WidgetTester tester) async { int longPressCount = 0; int longPressUpCount = 0; final List<LongPressEndDetails> endDetails = <LongPressEndDetails>[]; final List<LongPressMoveUpdateDetails> moveDetails = <LongPressMoveUpdateDetails>[]; final List<LongPressStartDetails> startDetails = <LongPressStartDetails>[]; final Key redContainer = UniqueKey(); await tester.pumpWidget( Center( child: GestureDetector( onLongPress: () { longPressCount++; }, onLongPressEnd: (LongPressEndDetails details) { endDetails.add(details); }, onLongPressMoveUpdate: (LongPressMoveUpdateDetails details) { moveDetails.add(details); }, onLongPressStart: (LongPressStartDetails details) { startDetails.add(details); }, onLongPressUp: () { longPressUpCount++; }, child: Container( key: redContainer, width: 100, height: 150, color: Colors.red, ), ), ), ); await tester.longPressAt(tester.getCenter(find.byKey(redContainer))); expect(longPressCount, 1); expect(longPressUpCount, 1); expect(moveDetails, isEmpty); expect(startDetails.single.localPosition, const Offset(50, 75)); expect(startDetails.single.globalPosition, const Offset(400, 300)); expect(endDetails.single.localPosition, const Offset(50, 75)); expect(endDetails.single.globalPosition, const Offset(400, 300)); }); testWidgets('scaled up', (WidgetTester tester) async { int longPressCount = 0; int longPressUpCount = 0; final List<LongPressEndDetails> endDetails = <LongPressEndDetails>[]; final List<LongPressMoveUpdateDetails> moveDetails = <LongPressMoveUpdateDetails>[]; final List<LongPressStartDetails> startDetails = <LongPressStartDetails>[]; final Key redContainer = UniqueKey(); await tester.pumpWidget( Center( child: Transform.scale( scale: 2.0, child: GestureDetector( onLongPress: () { longPressCount++; }, onLongPressEnd: (LongPressEndDetails details) { endDetails.add(details); }, onLongPressMoveUpdate: (LongPressMoveUpdateDetails details) { moveDetails.add(details); }, onLongPressStart: (LongPressStartDetails details) { startDetails.add(details); }, onLongPressUp: () { longPressUpCount++; }, child: Container( key: redContainer, width: 100, height: 150, color: Colors.red, ), ), ), ), ); TestGesture gesture = await tester.startGesture(tester.getCenter(find.byKey(redContainer))); await gesture.moveBy(const Offset(0, 10.0)); await tester.pump(kLongPressTimeout); await gesture.up(); expect(longPressCount, 1); expect(longPressUpCount, 1); expect(startDetails.single.localPosition, const Offset(50, 75)); expect(startDetails.single.globalPosition, const Offset(400, 300)); expect(endDetails.single.localPosition, const Offset(50, 75 + 10.0 / 2.0)); expect(endDetails.single.globalPosition, const Offset(400, 300.0 + 10.0)); expect(moveDetails, isEmpty); // moved before long press was detected. startDetails.clear(); endDetails.clear(); longPressCount = 0; longPressUpCount = 0; // Move after recognized. gesture = await tester.startGesture(tester.getCenter(find.byKey(redContainer))); await tester.pump(kLongPressTimeout); await gesture.moveBy(const Offset(0, 100)); await gesture.up(); expect(longPressCount, 1); expect(longPressUpCount, 1); expect(startDetails.single.localPosition, const Offset(50, 75)); expect(startDetails.single.globalPosition, const Offset(400, 300)); expect(endDetails.single.localPosition, const Offset(50, 75 + 100.0 / 2.0)); expect(endDetails.single.globalPosition, const Offset(400, 300.0 + 100.0)); expect(moveDetails.single.localPosition, const Offset(50, 75 + 100.0 / 2.0)); expect(moveDetails.single.globalPosition, const Offset(400, 300.0 + 100.0)); expect(moveDetails.single.offsetFromOrigin, const Offset(0, 100.0)); expect(moveDetails.single.localOffsetFromOrigin, const Offset(0, 100.0 / 2.0)); }); testWidgets('scaled down', (WidgetTester tester) async { int longPressCount = 0; int longPressUpCount = 0; final List<LongPressEndDetails> endDetails = <LongPressEndDetails>[]; final List<LongPressMoveUpdateDetails> moveDetails = <LongPressMoveUpdateDetails>[]; final List<LongPressStartDetails> startDetails = <LongPressStartDetails>[]; final Key redContainer = UniqueKey(); await tester.pumpWidget( Center( child: Transform.scale( scale: 0.5, child: GestureDetector( onLongPress: () { longPressCount++; }, onLongPressEnd: (LongPressEndDetails details) { endDetails.add(details); }, onLongPressMoveUpdate: (LongPressMoveUpdateDetails details) { moveDetails.add(details); }, onLongPressStart: (LongPressStartDetails details) { startDetails.add(details); }, onLongPressUp: () { longPressUpCount++; }, child: Container( key: redContainer, width: 100, height: 150, color: Colors.red, ), ), ), ), ); TestGesture gesture = await tester.startGesture(tester.getCenter(find.byKey(redContainer))); await gesture.moveBy(const Offset(0, 10.0)); await tester.pump(kLongPressTimeout); await gesture.up(); expect(longPressCount, 1); expect(longPressUpCount, 1); expect(startDetails.single.localPosition, const Offset(50, 75)); expect(startDetails.single.globalPosition, const Offset(400, 300)); expect(endDetails.single.localPosition, const Offset(50, 75 + 10.0 * 2.0)); expect(endDetails.single.globalPosition, const Offset(400, 300.0 + 10.0)); expect(moveDetails, isEmpty); // moved before long press was detected. startDetails.clear(); endDetails.clear(); longPressCount = 0; longPressUpCount = 0; // Move after recognized. gesture = await tester.startGesture(tester.getCenter(find.byKey(redContainer))); await tester.pump(kLongPressTimeout); await gesture.moveBy(const Offset(0, 100)); await gesture.up(); expect(longPressCount, 1); expect(longPressUpCount, 1); expect(startDetails.single.localPosition, const Offset(50, 75)); expect(startDetails.single.globalPosition, const Offset(400, 300)); expect(endDetails.single.localPosition, const Offset(50, 75 + 100.0 * 2.0)); expect(endDetails.single.globalPosition, const Offset(400, 300.0 + 100.0)); expect(moveDetails.single.localPosition, const Offset(50, 75 + 100.0 * 2.0)); expect(moveDetails.single.globalPosition, const Offset(400, 300.0 + 100.0)); expect(moveDetails.single.offsetFromOrigin, const Offset(0, 100.0)); expect(moveDetails.single.localOffsetFromOrigin, const Offset(0, 100.0 * 2.0)); }); }
flutter/packages/flutter/test/gestures/transformed_long_press_test.dart/0
{'file_path': 'flutter/packages/flutter/test/gestures/transformed_long_press_test.dart', 'repo_id': 'flutter', 'token_count': 3448}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { test('MaterialPointArcTween control test', () { final MaterialPointArcTween a = MaterialPointArcTween( begin: Offset.zero, end: const Offset(0.0, 10.0), ); final MaterialPointArcTween b = MaterialPointArcTween( begin: Offset.zero, end: const Offset(0.0, 10.0), ); expect(a, hasOneLineDescription); expect(a.toString(), equals(b.toString())); }); test('MaterialRectArcTween control test', () { final MaterialRectArcTween a = MaterialRectArcTween( begin: const Rect.fromLTWH(0.0, 0.0, 10.0, 10.0), end: const Rect.fromLTWH(0.0, 10.0, 10.0, 10.0), ); final MaterialRectArcTween b = MaterialRectArcTween( begin: const Rect.fromLTWH(0.0, 0.0, 10.0, 10.0), end: const Rect.fromLTWH(0.0, 10.0, 10.0, 10.0), ); expect(a, hasOneLineDescription); expect(a.toString(), equals(b.toString())); }); test('on-axis MaterialPointArcTween', () { MaterialPointArcTween tween = MaterialPointArcTween( begin: Offset.zero, end: const Offset(0.0, 10.0), ); expect(tween.lerp(0.5), equals(const Offset(0.0, 5.0))); expect(tween, hasOneLineDescription); tween = MaterialPointArcTween( begin: Offset.zero, end: const Offset(10.0, 0.0), ); expect(tween.lerp(0.5), equals(const Offset(5.0, 0.0))); }); test('on-axis MaterialRectArcTween', () { MaterialRectArcTween tween = MaterialRectArcTween( begin: const Rect.fromLTWH(0.0, 0.0, 10.0, 10.0), end: const Rect.fromLTWH(0.0, 10.0, 10.0, 10.0), ); expect(tween.lerp(0.5), equals(const Rect.fromLTWH(0.0, 5.0, 10.0, 10.0))); expect(tween, hasOneLineDescription); tween = MaterialRectArcTween( begin: const Rect.fromLTWH(0.0, 0.0, 10.0, 10.0), end: const Rect.fromLTWH(10.0, 0.0, 10.0, 10.0), ); expect(tween.lerp(0.5), equals(const Rect.fromLTWH(5.0, 0.0, 10.0, 10.0))); }); test('MaterialPointArcTween', () { const Offset begin = Offset(180.0, 110.0); const Offset end = Offset(37.0, 250.0); MaterialPointArcTween tween = MaterialPointArcTween(begin: begin, end: end); expect(tween.lerp(0.0), begin); expect(tween.lerp(0.25), within<Offset>(distance: 2.0, from: const Offset(126.0, 120.0))); expect(tween.lerp(0.75), within<Offset>(distance: 2.0, from: const Offset(48.0, 196.0))); expect(tween.lerp(1.0), end); tween = MaterialPointArcTween(begin: end, end: begin); expect(tween.lerp(0.0), end); expect(tween.lerp(0.25), within<Offset>(distance: 2.0, from: const Offset(91.0, 239.0))); expect(tween.lerp(0.75), within<Offset>(distance: 2.0, from: const Offset(168.3, 163.8))); expect(tween.lerp(1.0), begin); }); test('MaterialRectArcTween', () { const Rect begin = Rect.fromLTRB(180.0, 100.0, 330.0, 200.0); const Rect end = Rect.fromLTRB(32.0, 275.0, 132.0, 425.0); bool sameRect(Rect a, Rect b) { return (a.left - b.left).abs() < 2.0 && (a.top - b.top).abs() < 2.0 && (a.right - b.right).abs() < 2.0 && (a.bottom - b.bottom).abs() < 2.0; } MaterialRectArcTween tween = MaterialRectArcTween(begin: begin, end: end); expect(tween.lerp(0.0), begin); expect(sameRect(tween.lerp(0.25), const Rect.fromLTRB(120.0, 113.0, 259.0, 237.0)), isTrue); expect(sameRect(tween.lerp(0.75), const Rect.fromLTRB(42.3, 206.5, 153.5, 354.7)), isTrue); expect(tween.lerp(1.0), end); tween = MaterialRectArcTween(begin: end, end: begin); expect(tween.lerp(0.0), end); expect(sameRect(tween.lerp(0.25), const Rect.fromLTRB(92.0, 262.0, 203.0, 388.0)), isTrue); expect(sameRect(tween.lerp(0.75), const Rect.fromLTRB(169.7, 168.5, 308.5, 270.3)), isTrue); expect(tween.lerp(1.0), begin); }); }
flutter/packages/flutter/test/material/arc_test.dart/0
{'file_path': 'flutter/packages/flutter/test/material/arc_test.dart', 'repo_id': 'flutter', 'token_count': 1777}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/painting.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { test('applyBoxFit', () { FittedSizes result; result = applyBoxFit(BoxFit.scaleDown, const Size(100.0, 1000.0), const Size(200.0, 2000.0)); expect(result.source, equals(const Size(100.0, 1000.0))); expect(result.destination, equals(const Size(100.0, 1000.0))); result = applyBoxFit(BoxFit.scaleDown, const Size(300.0, 3000.0), const Size(200.0, 2000.0)); expect(result.source, equals(const Size(300.0, 3000.0))); expect(result.destination, equals(const Size(200.0, 2000.0))); result = applyBoxFit(BoxFit.fitWidth, const Size(2000.0, 400.0), const Size(1000.0, 100.0)); expect(result.source, equals(const Size(2000.0, 200.0))); expect(result.destination, equals(const Size(1000.0, 100.0))); result = applyBoxFit(BoxFit.fitWidth, const Size(2000.0, 400.0), const Size(1000.0, 300.0)); expect(result.source, equals(const Size(2000.0, 400.0))); expect(result.destination, equals(const Size(1000.0, 200.0))); result = applyBoxFit(BoxFit.fitHeight, const Size(400.0, 2000.0), const Size(100.0, 1000.0)); expect(result.source, equals(const Size(200.0, 2000.0))); expect(result.destination, equals(const Size(100.0, 1000.0))); result = applyBoxFit(BoxFit.fitHeight, const Size(400.0, 2000.0), const Size(300.0, 1000.0)); expect(result.source, equals(const Size(400.0, 2000.0))); expect(result.destination, equals(const Size(200.0, 1000.0))); _testZeroAndNegativeSizes(BoxFit.fill); _testZeroAndNegativeSizes(BoxFit.contain); _testZeroAndNegativeSizes(BoxFit.cover); _testZeroAndNegativeSizes(BoxFit.fitWidth); _testZeroAndNegativeSizes(BoxFit.fitHeight); _testZeroAndNegativeSizes(BoxFit.none); _testZeroAndNegativeSizes(BoxFit.scaleDown); }); } void _testZeroAndNegativeSizes(BoxFit fit) { FittedSizes result; result = applyBoxFit(fit, const Size(-400.0, 2000.0), const Size(100.0, 1000.0)); expect(result.source, equals(Size.zero)); expect(result.destination, equals(Size.zero)); result = applyBoxFit(fit, const Size(400.0, -2000.0), const Size(100.0, 1000.0)); expect(result.source, equals(Size.zero)); expect(result.destination, equals(Size.zero)); result = applyBoxFit(fit, const Size(400.0, 2000.0), const Size(-100.0, 1000.0)); expect(result.source, equals(Size.zero)); expect(result.destination, equals(Size.zero)); result = applyBoxFit(fit, const Size(400.0, 2000.0), const Size(100.0, -1000.0)); expect(result.source, equals(Size.zero)); expect(result.destination, equals(Size.zero)); result = applyBoxFit(fit, const Size(0.0, 2000.0), const Size(100.0, 1000.0)); expect(result.source, equals(Size.zero)); expect(result.destination, equals(Size.zero)); result = applyBoxFit(fit, const Size(400.0, 0.0), const Size(100.0, 1000.0)); expect(result.source, equals(Size.zero)); expect(result.destination, equals(Size.zero)); result = applyBoxFit(fit, const Size(400.0, 2000.0), const Size(0.0, 1000.0)); expect(result.source, equals(Size.zero)); expect(result.destination, equals(Size.zero)); result = applyBoxFit(fit, const Size(400.0, 2000.0), const Size(100.0, 0.0)); expect(result.source, equals(Size.zero)); expect(result.destination, equals(Size.zero)); }
flutter/packages/flutter/test/painting/box_fit_test.dart/0
{'file_path': 'flutter/packages/flutter/test/painting/box_fit_test.dart', 'repo_id': 'flutter', 'token_count': 1274}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/painting.dart'; import 'package:flutter_test/flutter_test.dart'; import '../rendering/mock_canvas.dart'; void main() { test('OvalBorder defaults', () { const OvalBorder border = OvalBorder(); expect(border.side, BorderSide.none); }); test('OvalBorder copyWith, ==, hashCode', () { expect(const OvalBorder(), const OvalBorder().copyWith()); expect(const OvalBorder().hashCode, const OvalBorder().copyWith().hashCode); const BorderSide side = BorderSide(width: 10.0, color: Color(0xff123456)); expect(const OvalBorder().copyWith(side: side), const OvalBorder(side: side)); }); test('OvalBorder', () { const OvalBorder c10 = OvalBorder(side: BorderSide(width: 10.0)); const OvalBorder c15 = OvalBorder(side: BorderSide(width: 15.0)); const OvalBorder c20 = OvalBorder(side: BorderSide(width: 20.0)); expect(c10.dimensions, const EdgeInsets.all(10.0)); expect(c10.scale(2.0), c20); expect(c20.scale(0.5), c10); expect(ShapeBorder.lerp(c10, c20, 0.0), c10); expect(ShapeBorder.lerp(c10, c20, 0.5), c15); expect(ShapeBorder.lerp(c10, c20, 1.0), c20); expect( c10.getInnerPath(const Rect.fromLTWH(0, 0, 100, 40)), isPathThat( includes: const <Offset>[ Offset(12, 19), Offset(50, 10), Offset(88, 19), Offset(50, 29) ], excludes: const <Offset>[ Offset(17, 26), Offset(15, 15), Offset(74, 10), Offset(76, 28) ], ), ); expect( c10.getOuterPath(const Rect.fromLTWH(0, 0, 100, 20)), isPathThat( includes: const <Offset>[ Offset(2, 9), Offset(50, 0), Offset(98, 9), Offset(50, 19) ], excludes: const <Offset>[ Offset(7, 16), Offset(10, 2), Offset(84, 1), Offset(86, 18) ], ), ); }); }
flutter/packages/flutter/test/painting/oval_border_test.dart/0
{'file_path': 'flutter/packages/flutter/test/painting/oval_border_test.dart', 'repo_id': 'flutter', 'token_count': 757}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/scheduler.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { WidgetsFlutterBinding.ensureInitialized(); test('scheduleForcedFrame sets up frame callbacks', () async { SchedulerBinding.instance.scheduleForcedFrame(); expect(SchedulerBinding.instance.platformDispatcher.onBeginFrame, isNotNull); }); test('debugAssertNoTimeDilation does not throw if time dilate already reset', () async { timeDilation = 2.0; timeDilation = 1.0; SchedulerBinding.instance.debugAssertNoTimeDilation('reason'); // no error }); test('debugAssertNoTimeDilation throw if time dilate not reset', () async { timeDilation = 3.0; expect( () => SchedulerBinding.instance.debugAssertNoTimeDilation('reason'), throwsA(isA<FlutterError>().having((FlutterError e) => e.message, 'message', 'reason')), ); timeDilation = 1.0; }); }
flutter/packages/flutter/test/scheduler/binding_test.dart/0
{'file_path': 'flutter/packages/flutter/test/scheduler/binding_test.dart', 'repo_id': 'flutter', 'token_count': 371}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This file is run as part of a reduced test set in CI on Mac and Windows // machines. @Tags(<String>['reduced-test-set']) @TestOn('!chrome') library; import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Color filter - red', (WidgetTester tester) async { await tester.pumpWidget( const RepaintBoundary( child: ColorFiltered( colorFilter: ColorFilter.mode(Colors.red, BlendMode.color), child: Placeholder(), ), ), ); await expectLater( find.byType(ColorFiltered), matchesGoldenFile('color_filter_red.png'), ); }); testWidgets('Color filter - sepia', (WidgetTester tester) async { const ColorFilter sepia = ColorFilter.matrix(<double>[ 0.39, 0.769, 0.189, 0, 0, // 0.349, 0.686, 0.168, 0, 0, // 0.272, 0.534, 0.131, 0, 0, // 0, 0, 0, 1, 0, // ]); await tester.pumpWidget( RepaintBoundary( child: ColorFiltered( colorFilter: sepia, child: MaterialApp( title: 'Flutter Demo', theme: ThemeData(primarySwatch: Colors.blue), home: Scaffold( appBar: AppBar( title: const Text('Sepia ColorFilter Test'), ), body: const Center( child:Text('Hooray!'), ), floatingActionButton: FloatingActionButton( onPressed: () { }, tooltip: 'Increment', child: const Icon(Icons.add), ), ), ), ), ), ); await expectLater( find.byType(ColorFiltered), matchesGoldenFile('color_filter_sepia.png'), ); }); testWidgets('Color filter - reuses its layer', (WidgetTester tester) async { Future<void> pumpWithColor(Color color) async { await tester.pumpWidget( RepaintBoundary( child: ColorFiltered( colorFilter: ColorFilter.mode(color, BlendMode.color), child: const Placeholder(), ), ), ); } await pumpWithColor(Colors.red); final RenderObject renderObject = tester.firstRenderObject(find.byType(ColorFiltered)); final ColorFilterLayer originalLayer = renderObject.debugLayer! as ColorFilterLayer; expect(originalLayer, isNotNull); // Change color to force a repaint. await pumpWithColor(Colors.green); expect(renderObject.debugLayer, same(originalLayer)); }); }
flutter/packages/flutter/test/widgets/color_filter_test.dart/0
{'file_path': 'flutter/packages/flutter/test/widgets/color_filter_test.dart', 'repo_id': 'flutter', 'token_count': 1204}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:ui' as ui show TextHeightBehavior; import 'package:flutter/widgets.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('DefaultTextStyle changes propagate to Text', (WidgetTester tester) async { const Text textWidget = Text('Hello', textDirection: TextDirection.ltr); const TextStyle s1 = TextStyle( fontSize: 10.0, fontWeight: FontWeight.w800, height: 123.0, ); await tester.pumpWidget(const DefaultTextStyle( style: s1, child: textWidget, )); RichText text = tester.firstWidget(find.byType(RichText)); expect(text, isNotNull); expect(text.text.style, s1); await tester.pumpWidget(const DefaultTextStyle( style: s1, textAlign: TextAlign.justify, softWrap: false, overflow: TextOverflow.fade, maxLines: 3, child: textWidget, )); text = tester.firstWidget(find.byType(RichText)); expect(text, isNotNull); expect(text.text.style, s1); expect(text.textAlign, TextAlign.justify); expect(text.softWrap, false); expect(text.overflow, TextOverflow.fade); expect(text.maxLines, 3); }); testWidgets('AnimatedDefaultTextStyle changes propagate to Text', (WidgetTester tester) async { const Text textWidget = Text('Hello', textDirection: TextDirection.ltr); const TextStyle s1 = TextStyle( fontSize: 10.0, fontWeight: FontWeight.w800, height: 123.0, ); const TextStyle s2 = TextStyle( fontSize: 20.0, fontWeight: FontWeight.w200, height: 1.0, ); await tester.pumpWidget(const AnimatedDefaultTextStyle( style: s1, duration: Duration(milliseconds: 1000), child: textWidget, )); final RichText text1 = tester.firstWidget(find.byType(RichText)); expect(text1, isNotNull); expect(text1.text.style, s1); expect(text1.textAlign, TextAlign.start); expect(text1.softWrap, isTrue); expect(text1.overflow, TextOverflow.clip); expect(text1.maxLines, isNull); expect(text1.textWidthBasis, TextWidthBasis.parent); expect(text1.textHeightBehavior, isNull); await tester.pumpWidget(const AnimatedDefaultTextStyle( style: s2, textAlign: TextAlign.justify, softWrap: false, overflow: TextOverflow.fade, maxLines: 3, textWidthBasis: TextWidthBasis.longestLine, textHeightBehavior: ui.TextHeightBehavior(applyHeightToFirstAscent: false), duration: Duration(milliseconds: 1000), child: textWidget, )); final RichText text2 = tester.firstWidget(find.byType(RichText)); expect(text2, isNotNull); expect(text2.text.style, s1); // animation hasn't started yet expect(text2.textAlign, TextAlign.justify); expect(text2.softWrap, false); expect(text2.overflow, TextOverflow.fade); expect(text2.maxLines, 3); expect(text2.textWidthBasis, TextWidthBasis.longestLine); expect(text2.textHeightBehavior, const ui.TextHeightBehavior(applyHeightToFirstAscent: false)); await tester.pump(const Duration(milliseconds: 1000)); final RichText text3 = tester.firstWidget(find.byType(RichText)); expect(text3, isNotNull); expect(text3.text.style, s2); // animation has now finished expect(text3.textAlign, TextAlign.justify); expect(text3.softWrap, false); expect(text3.overflow, TextOverflow.fade); expect(text3.maxLines, 3); expect(text2.textWidthBasis, TextWidthBasis.longestLine); expect(text2.textHeightBehavior, const ui.TextHeightBehavior(applyHeightToFirstAscent: false)); }); }
flutter/packages/flutter/test/widgets/default_text_style_test.dart/0
{'file_path': 'flutter/packages/flutter/test/widgets/default_text_style_test.dart', 'repo_id': 'flutter', 'token_count': 1454}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This file is run as part of a reduced test set in CI on Mac and Windows // machines. @Tags(<String>['reduced-test-set']) library; import 'dart:math'; import 'dart:ui'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Image filter - blur', (WidgetTester tester) async { await tester.pumpWidget( RepaintBoundary( child: ImageFiltered( imageFilter: ImageFilter.blur(sigmaX: 10.0, sigmaY: 10.0), child: const Placeholder(), ), ), ); await expectLater( find.byType(ImageFiltered), matchesGoldenFile('image_filter_blur.png'), ); }); testWidgets('Image filter - blur with offset', (WidgetTester tester) async { final Key key = GlobalKey(); await tester.pumpWidget( RepaintBoundary( key: key, child: Transform.translate( offset: const Offset(50, 50), child: ImageFiltered( imageFilter: ImageFilter.blur(sigmaX: 3.0, sigmaY: 3.0), child: const Placeholder(), ), ), ), ); await expectLater( find.byKey(key), matchesGoldenFile('image_filter_blur_offset.png'), ); }); testWidgets('Image filter - dilate', (WidgetTester tester) async { await tester.pumpWidget( RepaintBoundary( child: ImageFiltered( imageFilter: ImageFilter.dilate(radiusX: 10.0, radiusY: 10.0), child: const Placeholder(), ), ), ); await expectLater( find.byType(ImageFiltered), matchesGoldenFile('image_filter_dilate.png'), ); }, skip: kIsWeb); // https://github.com/flutter/flutter/issues/101874 testWidgets('Image filter - erode', (WidgetTester tester) async { await tester.pumpWidget( RepaintBoundary( child: ImageFiltered( // Do not erode too much, otherwise we will see nothing left. imageFilter: ImageFilter.erode(radiusX: 1.0, radiusY: 1.0), child: const Placeholder(strokeWidth: 4), ), ), ); await expectLater( find.byType(ImageFiltered), matchesGoldenFile('image_filter_erode.png'), ); }, skip: kIsWeb); // https://github.com/flutter/flutter/issues/101874 testWidgets('Image filter - matrix', (WidgetTester tester) async { final ImageFilter matrix = ImageFilter.matrix(Float64List.fromList(<double>[ 0.5, 0.0, 0.0, 0.0, // 0.0, 0.5, 0.0, 0.0, // 0.0, 0.0, 1.0, 0.0, // 0.0, 0.0, 0.0, 1.0, // ])); await tester.pumpWidget( RepaintBoundary( child: ImageFiltered( imageFilter: matrix, child: MaterialApp( title: 'Flutter Demo', theme: ThemeData(primarySwatch: Colors.blue), home: Scaffold( appBar: AppBar( title: const Text('Matrix ImageFilter Test'), ), body: const Center( child:Text('Hooray!'), ), floatingActionButton: FloatingActionButton( onPressed: () { }, tooltip: 'Increment', child: const Icon(Icons.add), ), ), ), ), ), ); await expectLater( find.byType(ImageFiltered), matchesGoldenFile('image_filter_matrix.png'), ); }); testWidgets('Image filter - matrix with offset', (WidgetTester tester) async { final Matrix4 matrix = Matrix4.rotationZ(pi / 18); final ImageFilter matrixFilter = ImageFilter.matrix(matrix.storage); final Key key = GlobalKey(); await tester.pumpWidget( RepaintBoundary( key: key, child: Transform.translate( offset: const Offset(50, 50), child: ImageFiltered( imageFilter: matrixFilter, child: MaterialApp( title: 'Flutter Demo', theme: ThemeData(primarySwatch: Colors.blue), home: Scaffold( appBar: AppBar( title: const Text('Matrix ImageFilter Test'), ), body: const Center( child:Text('Hooray!'), ), floatingActionButton: FloatingActionButton( onPressed: () { }, tooltip: 'Increment', child: const Icon(Icons.add), ), ), ), ), ), ), ); await expectLater( find.byKey(key), matchesGoldenFile('image_filter_matrix_offset.png'), ); }); testWidgets('Image filter - reuses its layer', (WidgetTester tester) async { Future<void> pumpWithSigma(double sigma) async { await tester.pumpWidget( RepaintBoundary( child: ImageFiltered( imageFilter: ImageFilter.blur(sigmaX: sigma, sigmaY: sigma), child: const Placeholder(), ), ), ); } await pumpWithSigma(5.0); final RenderObject renderObject = tester.firstRenderObject(find.byType(ImageFiltered)); final ImageFilterLayer originalLayer = renderObject.debugLayer! as ImageFilterLayer; // Change blur sigma to force a repaint. await pumpWithSigma(10.0); expect(renderObject.debugLayer, same(originalLayer)); }); testWidgets('Image filter - enabled and disabled', (WidgetTester tester) async { Future<void> pumpWithEnabledStaet(bool enabled) async { await tester.pumpWidget( RepaintBoundary( child: ImageFiltered( enabled: enabled, imageFilter: ImageFilter.blur(sigmaX: 5, sigmaY: 5), child: const Placeholder(), ), ), ); } await pumpWithEnabledStaet(false); expect(tester.layers, isNot(contains(isA<ImageFilterLayer>()))); await pumpWithEnabledStaet(true); expect(tester.layers, contains(isA<ImageFilterLayer>())); }); }
flutter/packages/flutter/test/widgets/image_filter_test.dart/0
{'file_path': 'flutter/packages/flutter/test/widgets/image_filter_test.dart', 'repo_id': 'flutter', 'token_count': 2813}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/widgets.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Intrinsic stepWidth, stepHeight', (WidgetTester tester) async { // Regression test for https://github.com/flutter/flutter/issues/25224 Widget buildFrame(double? stepWidth, double? stepHeight) { return Center( child: IntrinsicWidth( stepWidth: stepWidth, stepHeight: stepHeight, child: const SizedBox(width: 100.0, height: 50.0), ), ); } await tester.pumpWidget(buildFrame(null, null)); expect(tester.getSize(find.byType(IntrinsicWidth)), const Size(100.0, 50.0)); await tester.pumpWidget(buildFrame(0.0, 0.0)); expect(tester.getSize(find.byType(IntrinsicWidth)), const Size(100.0, 50.0)); expect(() { buildFrame(-1.0, 0.0); }, throwsAssertionError); expect(() { buildFrame(0.0, -1.0); }, throwsAssertionError); }); }
flutter/packages/flutter/test/widgets/intrinsic_width_test.dart/0
{'file_path': 'flutter/packages/flutter/test/widgets/intrinsic_width_test.dart', 'repo_id': 'flutter', 'token_count': 426}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { final MemoryAllocations ma = MemoryAllocations.instance; setUp(() { assert(!ma.hasListeners); }); test('Publishers dispatch events in debug mode', () async { int eventCount = 0; void listener(ObjectEvent event) => eventCount++; ma.addListener(listener); final int expectedEventCount = await _activateFlutterObjectsAndReturnCountOfEvents(); expect(eventCount, expectedEventCount); ma.removeListener(listener); expect(ma.hasListeners, isFalse); }); testWidgets('State dispatches events in debug mode', (WidgetTester tester) async { bool stateCreated = false; bool stateDisposed = false; void listener(ObjectEvent event) { if (event is ObjectCreated && event.object is State) { stateCreated = true; } if (event is ObjectDisposed && event.object is State) { stateDisposed = true; } } ma.addListener(listener); await tester.pumpWidget(const _TestStatefulWidget()); expect(stateCreated, isTrue); expect(stateDisposed, isFalse); await tester.pumpWidget(const SizedBox.shrink()); expect(stateCreated, isTrue); expect(stateDisposed, isTrue); ma.removeListener(listener); expect(ma.hasListeners, isFalse); }); } class _TestLeafRenderObjectWidget extends LeafRenderObjectWidget { @override RenderObject createRenderObject(BuildContext context) { return _TestRenderObject(); } } class _TestElement extends RootRenderObjectElement{ _TestElement(): super(_TestLeafRenderObjectWidget()); void makeInactive() { assignOwner(BuildOwner(focusManager: FocusManager())); mount(null, null); deactivate(); } } class _TestRenderObject extends RenderObject { @override void debugAssertDoesMeetConstraints() {} @override Rect get paintBounds => throw UnimplementedError(); @override void performLayout() {} @override void performResize() {} @override Rect get semanticBounds => throw UnimplementedError(); } class _TestStatefulWidget extends StatefulWidget { const _TestStatefulWidget(); @override State<_TestStatefulWidget> createState() => _TestStatefulWidgetState(); } class _TestStatefulWidgetState extends State<_TestStatefulWidget> { @override Widget build(BuildContext context) { return Container(); } } /// Create and dispose Flutter objects to fire memory allocation events. Future<int> _activateFlutterObjectsAndReturnCountOfEvents() async { int count = 0; final _TestElement element = _TestElement(); count++; final RenderObject renderObject = _TestRenderObject(); count++; element.makeInactive(); element.unmount(); count += 3; renderObject.dispose(); count++; return count; }
flutter/packages/flutter/test/widgets/memory_allocations_test.dart/0
{'file_path': 'flutter/packages/flutter/test/widgets/memory_allocations_test.dart', 'repo_id': 'flutter', 'token_count': 945}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/rendering.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('OverflowBox control test', (WidgetTester tester) async { final GlobalKey inner = GlobalKey(); await tester.pumpWidget(Align( alignment: Alignment.bottomRight, child: SizedBox( width: 10.0, height: 20.0, child: OverflowBox( minWidth: 0.0, maxWidth: 100.0, minHeight: 0.0, maxHeight: 50.0, child: Container( key: inner, ), ), ), )); final RenderBox box = inner.currentContext!.findRenderObject()! as RenderBox; expect(box.localToGlobal(Offset.zero), equals(const Offset(745.0, 565.0))); expect(box.size, equals(const Size(100.0, 50.0))); }); testWidgets('OverflowBox implements debugFillProperties', (WidgetTester tester) async { final DiagnosticPropertiesBuilder builder = DiagnosticPropertiesBuilder(); const OverflowBox( minWidth: 1.0, maxWidth: 2.0, minHeight: 3.0, maxHeight: 4.0, ).debugFillProperties(builder); final List<String> description = builder.properties .where((DiagnosticsNode n) => !n.isFiltered(DiagnosticLevel.info)) .map((DiagnosticsNode n) => n.toString()).toList(); expect(description, <String>[ 'alignment: Alignment.center', 'minWidth: 1.0', 'maxWidth: 2.0', 'minHeight: 3.0', 'maxHeight: 4.0', ]); }); testWidgets('SizedOverflowBox alignment', (WidgetTester tester) async { final GlobalKey inner = GlobalKey(); await tester.pumpWidget(Directionality( textDirection: TextDirection.rtl, child: Center( child: SizedOverflowBox( size: const Size(100.0, 100.0), alignment: Alignment.topRight, child: SizedBox(height: 50.0, width: 50.0, key: inner), ), ), )); final RenderBox box = inner.currentContext!.findRenderObject()! as RenderBox; expect(box.size, equals(const Size(50.0, 50.0))); expect( box.localToGlobal(box.size.center(Offset.zero)), equals(const Offset( (800.0 - 100.0) / 2.0 + 100.0 - 50.0 / 2.0, (600.0 - 100.0) / 2.0 + 0.0 + 50.0 / 2.0, )), ); }); testWidgets('SizedOverflowBox alignment (direction-sensitive)', (WidgetTester tester) async { final GlobalKey inner = GlobalKey(); await tester.pumpWidget(Directionality( textDirection: TextDirection.rtl, child: Center( child: SizedOverflowBox( size: const Size(100.0, 100.0), alignment: AlignmentDirectional.bottomStart, child: SizedBox(height: 50.0, width: 50.0, key: inner), ), ), )); final RenderBox box = inner.currentContext!.findRenderObject()! as RenderBox; expect(box.size, equals(const Size(50.0, 50.0))); expect( box.localToGlobal(box.size.center(Offset.zero)), equals(const Offset( (800.0 - 100.0) / 2.0 + 100.0 - 50.0 / 2.0, (600.0 - 100.0) / 2.0 + 100.0 - 50.0 / 2.0, )), ); }); }
flutter/packages/flutter/test/widgets/overflow_box_test.dart/0
{'file_path': 'flutter/packages/flutter/test/widgets/overflow_box_test.dart', 'repo_id': 'flutter', 'token_count': 1431}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/widgets.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Scroll flings twice in a row does not crash', (WidgetTester tester) async { await tester.pumpWidget( Directionality( textDirection: TextDirection.ltr, child: ListView( children: <Widget>[ Container(height: 100000.0), ], ), ), ); final ScrollableState scrollable = tester.state<ScrollableState>(find.byType(Scrollable)); expect(scrollable.position.pixels, equals(0.0)); await tester.flingFrom(const Offset(200.0, 300.0), const Offset(0.0, -200.0), 500.0); await tester.pump(); await tester.pump(const Duration(seconds: 5)); expect(scrollable.position.pixels, greaterThan(0.0)); final double oldOffset = scrollable.position.pixels; await tester.flingFrom(const Offset(200.0, 300.0), const Offset(0.0, -200.0), 500.0); await tester.pump(); await tester.pump(const Duration(seconds: 5)); expect(scrollable.position.pixels, greaterThan(oldOffset)); }); }
flutter/packages/flutter/test/widgets/scroll_interaction_test.dart/0
{'file_path': 'flutter/packages/flutter/test/widgets/scroll_interaction_test.dart', 'repo_id': 'flutter', 'token_count': 487}
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/rendering.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter_test/flutter_test.dart'; import 'semantics_tester.dart'; void main() { testWidgets('Traversal Order of SliverList', (WidgetTester tester) async { final SemanticsTester semantics = SemanticsTester(tester); final List<Widget> listChildren = List<Widget>.generate(30, (int i) { return SizedBox( height: 200.0, child: Row( crossAxisAlignment: CrossAxisAlignment.stretch, children: <Widget>[ Semantics( container: true, child: Text('Item ${i}a'), ), Semantics( container: true, child: Text('item ${i}b'), ), ], ), ); }); await tester.pumpWidget( Semantics( textDirection: TextDirection.ltr, child: Directionality( textDirection: TextDirection.ltr, child: MediaQuery( data: const MediaQueryData(), child: CustomScrollView( controller: ScrollController(initialScrollOffset: 3000.0), semanticChildCount: 30, slivers: <Widget>[ SliverList( delegate: SliverChildListDelegate(listChildren), ), ], ), ), ), ), ); expect(semantics, hasSemantics( TestSemantics.root( children: <TestSemantics>[ TestSemantics( textDirection: TextDirection.ltr, children: <TestSemantics>[ TestSemantics( children: <TestSemantics>[ TestSemantics( scrollIndex: 15, scrollChildren: 30, flags: <SemanticsFlag>[ SemanticsFlag.hasImplicitScrolling, ], actions: <SemanticsAction>[ SemanticsAction.scrollUp, SemanticsAction.scrollDown, ], children: <TestSemantics>[ TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], children: <TestSemantics>[ TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'Item 13a', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'item 13b', textDirection: TextDirection.ltr, ), ], ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], children: <TestSemantics>[ TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'Item 14a', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'item 14b', textDirection: TextDirection.ltr, ), ], ), TestSemantics( children: <TestSemantics>[ TestSemantics( label: 'Item 15a', textDirection: TextDirection.ltr, ), TestSemantics( label: 'item 15b', textDirection: TextDirection.ltr, ), ], ), TestSemantics( children: <TestSemantics>[ TestSemantics( label: 'Item 16a', textDirection: TextDirection.ltr, ), TestSemantics( label: 'item 16b', textDirection: TextDirection.ltr, ), ], ), TestSemantics( children: <TestSemantics>[ TestSemantics( label: 'Item 17a', textDirection: TextDirection.ltr, ), TestSemantics( label: 'item 17b', textDirection: TextDirection.ltr, ), ], ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], children: <TestSemantics>[ TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'Item 18a', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'item 18b', textDirection: TextDirection.ltr, ), ], ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], children: <TestSemantics>[ TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'Item 19a', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'item 19b', textDirection: TextDirection.ltr, ), ], ), ], ), ], ), ], ), ], ), ignoreId: true, ignoreTransform: true, ignoreRect: true, )); semantics.dispose(); }); testWidgets('Traversal Order of SliverFixedExtentList', (WidgetTester tester) async { final SemanticsTester semantics = SemanticsTester(tester); final List<Widget> listChildren = List<Widget>.generate(30, (int i) { return SizedBox( height: 200.0, child: Row( crossAxisAlignment: CrossAxisAlignment.stretch, children: <Widget>[ Semantics( container: true, child: Text('Item ${i}a'), ), Semantics( container: true, child: Text('item ${i}b'), ), ], ), ); }); await tester.pumpWidget( Semantics( textDirection: TextDirection.ltr, child: Directionality( textDirection: TextDirection.ltr, child: MediaQuery( data: const MediaQueryData(), child: CustomScrollView( controller: ScrollController(initialScrollOffset: 3000.0), slivers: <Widget>[ SliverFixedExtentList( itemExtent: 200.0, delegate: SliverChildListDelegate(listChildren, addSemanticIndexes: false), ), ], ), ), ), ), ); expect(semantics, hasSemantics( TestSemantics.root( children: <TestSemantics>[ TestSemantics( textDirection: TextDirection.ltr, children: <TestSemantics>[ TestSemantics( children: <TestSemantics>[ TestSemantics( flags: <SemanticsFlag>[ SemanticsFlag.hasImplicitScrolling, ], actions: <SemanticsAction>[ SemanticsAction.scrollUp, SemanticsAction.scrollDown, ], children: <TestSemantics>[ TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'Item 13a', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'item 13b', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'Item 14a', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'item 14b', textDirection: TextDirection.ltr, ), TestSemantics( label: 'Item 15a', textDirection: TextDirection.ltr, ), TestSemantics( label: 'item 15b', textDirection: TextDirection.ltr, ), TestSemantics( label: 'Item 16a', textDirection: TextDirection.ltr, ), TestSemantics( label: 'item 16b', textDirection: TextDirection.ltr, ), TestSemantics( label: 'Item 17a', textDirection: TextDirection.ltr, ), TestSemantics( label: 'item 17b', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'Item 18a', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'item 18b', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'Item 19a', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'item 19b', textDirection: TextDirection.ltr, ), ], ), ], ), ], ), ], ), ignoreId: true, ignoreTransform: true, ignoreRect: true, )); semantics.dispose(); }); testWidgets('Traversal Order of SliverGrid', (WidgetTester tester) async { final SemanticsTester semantics = SemanticsTester(tester); final List<Widget> listChildren = List<Widget>.generate(30, (int i) { return SizedBox( height: 200.0, child: Text('Item $i'), ); }); await tester.pumpWidget( Semantics( textDirection: TextDirection.ltr, child: Directionality( textDirection: TextDirection.ltr, child: MediaQuery( data: const MediaQueryData(), child: CustomScrollView( controller: ScrollController(initialScrollOffset: 1600.0), slivers: <Widget>[ SliverGrid.count( crossAxisCount: 2, crossAxisSpacing: 400.0, children: listChildren, ), ], ), ), ), ), ); expect(semantics, hasSemantics( TestSemantics.root( children: <TestSemantics>[ TestSemantics( textDirection: TextDirection.ltr, children: <TestSemantics>[ TestSemantics( children: <TestSemantics>[ TestSemantics( flags: <SemanticsFlag>[ SemanticsFlag.hasImplicitScrolling, ], actions: <SemanticsAction>[ SemanticsAction.scrollUp, SemanticsAction.scrollDown, ], children: <TestSemantics>[ TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'Item 12', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'Item 13', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'Item 14', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'Item 15', textDirection: TextDirection.ltr, ), TestSemantics( label: 'Item 16', textDirection: TextDirection.ltr, ), TestSemantics( label: 'Item 17', textDirection: TextDirection.ltr, ), TestSemantics( label: 'Item 18', textDirection: TextDirection.ltr, ), TestSemantics( label: 'Item 19', textDirection: TextDirection.ltr, ), TestSemantics( label: 'Item 20', textDirection: TextDirection.ltr, ), TestSemantics( label: 'Item 21', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'Item 22', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'Item 23', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'Item 24', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'Item 25', textDirection: TextDirection.ltr, ), ], ), ], ), ], ), ], ), ignoreId: true, ignoreTransform: true, ignoreRect: true, )); semantics.dispose(); }); testWidgets('Traversal Order of List of individual slivers', (WidgetTester tester) async { final SemanticsTester semantics = SemanticsTester(tester); final List<Widget> listChildren = List<Widget>.generate(30, (int i) { return SliverToBoxAdapter( child: SizedBox( height: 200.0, child: Row( crossAxisAlignment: CrossAxisAlignment.stretch, children: <Widget>[ Semantics( container: true, child: Text('Item ${i}a'), ), Semantics( container: true, child: Text('item ${i}b'), ), ], ), ), ); }); await tester.pumpWidget( Semantics( textDirection: TextDirection.ltr, child: Directionality( textDirection: TextDirection.ltr, child: MediaQuery( data: const MediaQueryData(), child: CustomScrollView( controller: ScrollController(initialScrollOffset: 3000.0), slivers: listChildren, ), ), ), ), ); expect(semantics, hasSemantics( TestSemantics.root( children: <TestSemantics>[ TestSemantics( textDirection: TextDirection.ltr, children: <TestSemantics>[ TestSemantics( children: <TestSemantics>[ TestSemantics( flags: <SemanticsFlag>[ SemanticsFlag.hasImplicitScrolling, ], actions: <SemanticsAction>[ SemanticsAction.scrollUp, SemanticsAction.scrollDown, ], children: <TestSemantics>[ TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'Item 13a', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'item 13b', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'Item 14a', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'item 14b', textDirection: TextDirection.ltr, ), TestSemantics( label: 'Item 15a', textDirection: TextDirection.ltr, ), TestSemantics( label: 'item 15b', textDirection: TextDirection.ltr, ), TestSemantics( label: 'Item 16a', textDirection: TextDirection.ltr, ), TestSemantics( label: 'item 16b', textDirection: TextDirection.ltr, ), TestSemantics( label: 'Item 17a', textDirection: TextDirection.ltr, ), TestSemantics( label: 'item 17b', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'Item 18a', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'item 18b', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'Item 19a', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: 'item 19b', textDirection: TextDirection.ltr, ), ], ), ], ), ], ), ], ), ignoreId: true, ignoreTransform: true, ignoreRect: true, )); semantics.dispose(); }); testWidgets('Traversal Order of in a SingleChildScrollView', (WidgetTester tester) async { final SemanticsTester semantics = SemanticsTester(tester); final List<Widget> listChildren = List<Widget>.generate(30, (int i) { return SizedBox( height: 200.0, child: Row( crossAxisAlignment: CrossAxisAlignment.stretch, children: <Widget>[ Semantics( container: true, child: Text('Item ${i}a'), ), Semantics( container: true, child: Text('item ${i}b'), ), ], ), ); }); await tester.pumpWidget( Semantics( textDirection: TextDirection.ltr, child: Directionality( textDirection: TextDirection.ltr, child: MediaQuery( data: const MediaQueryData(), child: SingleChildScrollView( controller: ScrollController(initialScrollOffset: 3000.0), child: Column( children: listChildren, ), ), ), ), ), ); final List<TestSemantics> children = <TestSemantics>[]; for (int index = 0; index < 30; index += 1) { final bool isHidden = index < 15 || index > 17; children.add( TestSemantics( flags: isHidden ? <SemanticsFlag>[SemanticsFlag.isHidden] : 0, label: 'Item ${index}a', textDirection: TextDirection.ltr, ), ); children.add( TestSemantics( flags: isHidden ? <SemanticsFlag>[SemanticsFlag.isHidden] : 0, label: 'item ${index}b', textDirection: TextDirection.ltr, ), ); } expect(semantics, hasSemantics( TestSemantics.root( children: <TestSemantics>[ TestSemantics( textDirection: TextDirection.ltr, children: <TestSemantics>[ TestSemantics( flags: <SemanticsFlag>[ SemanticsFlag.hasImplicitScrolling, ], actions: <SemanticsAction>[ SemanticsAction.scrollUp, SemanticsAction.scrollDown, ], children: children, ), ], ), ], ), ignoreId: true, ignoreTransform: true, ignoreRect: true, )); semantics.dispose(); }); testWidgets('Traversal Order with center child', (WidgetTester tester) async { final SemanticsTester semantics = SemanticsTester(tester); await tester.pumpWidget(Semantics( textDirection: TextDirection.ltr, child: Directionality( textDirection: TextDirection.ltr, child: MediaQuery( data: const MediaQueryData(), child: Scrollable( viewportBuilder: (BuildContext context, ViewportOffset offset) { return Viewport( offset: offset, center: const ValueKey<int>(0), slivers: List<Widget>.generate(30, (int i) { final int item = i - 15; return SliverToBoxAdapter( key: ValueKey<int>(item), child: SizedBox( height: 200.0, child: Row( crossAxisAlignment: CrossAxisAlignment.stretch, children: <Widget>[ Semantics( container: true, child: Text('${item}a'), ), Semantics( container: true, child: Text('${item}b'), ), ], ), ), ); }), ); }, ), ), ), )); expect(semantics, hasSemantics( TestSemantics.root( children: <TestSemantics>[ TestSemantics( textDirection: TextDirection.ltr, children: <TestSemantics>[ TestSemantics( children: <TestSemantics>[ TestSemantics( flags: <SemanticsFlag>[ SemanticsFlag.hasImplicitScrolling, ], actions: <SemanticsAction>[ SemanticsAction.scrollUp, SemanticsAction.scrollDown, ], children: <TestSemantics>[ TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: '-2a', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: '-2b', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: '-1a', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: '-1b', textDirection: TextDirection.ltr, ), TestSemantics( label: '0a', textDirection: TextDirection.ltr, ), TestSemantics( label: '0b', textDirection: TextDirection.ltr, ), TestSemantics( label: '1a', textDirection: TextDirection.ltr, ), TestSemantics( label: '1b', textDirection: TextDirection.ltr, ), TestSemantics( label: '2a', textDirection: TextDirection.ltr, ), TestSemantics( label: '2b', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: '3a', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: '3b', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: '4a', textDirection: TextDirection.ltr, ), TestSemantics( flags: <SemanticsFlag>[SemanticsFlag.isHidden], label: '4b', textDirection: TextDirection.ltr, ), ], ), ], ), ], ), ], ), ignoreRect: true, ignoreTransform: true, ignoreId: true, )); semantics.dispose(); }); }
flutter/packages/flutter/test/widgets/scrollable_semantics_traversal_order_test.dart/0
{'file_path': 'flutter/packages/flutter/test/widgets/scrollable_semantics_traversal_order_test.dart', 'repo_id': 'flutter', 'token_count': 18049}