This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp( | |
items: List<String>.generate(10000, (i) => "Item $i"), | |
)); | |
} | |
class MyApp extends StatefulWidget { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'dart:async'; | |
import 'package:flutter/widgets.dart'; | |
import 'package:flutter/foundation.dart'; | |
import 'dart:collection'; | |
import 'package:flutter/rendering.dart'; | |
import 'package:flutter/scheduler.dart'; | |
class Person with DiagnosticableTreeMixin { | |
Person({this.name, this.age}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:math'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(Kata()); | |
} | |
class Kata extends StatelessWidget { | |
@override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2021 Fredrick Allan Grott. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
// ignore_for_file: type_annotate_public_apis | |
import 'package:flutter/cupertino.dart'; | |
import 'package:material_color_utilities/material_color_utilities.dart'; | |
import 'package:material_color_utilities/scheme/scheme.dart'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2021 Fredrick Allan Grott. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
// ignore_for_file: prefer_initializing_formals, unnecessary_this, avoid_init_to_null | |
import 'package:flutter/material.dart'; | |
// Gist: At end of ThemeData ffunc declaration these fields are added to the | |
// the colorScheme instance. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2021 Fredrick Allan Grott. 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_starterapp_raw/src/domain/infrastructure/app_vars.dart'; | |
import 'package:flutter_starterapp_raw/src/presentation/themes/app_colors.dart'; | |
// Gist: colors derive from the individual MD3 colors | |
// defiend in app colors. Other new MD3 fields used |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ThemeData appMaterialLightThemeData = ThemeData( | |
typography: appTypography, | |
colorScheme: appMaterialLightColorScheme, | |
brightness: Brightness.light, | |
visualDensity: VisualDensity.adaptivePlatformDensity, | |
primaryColor: appMaterialLightColorScheme.primary, | |
primaryColorBrightness: Brightness.light, | |
primaryColorLight: appMaterialLightColorScheme.primary, | |
primaryColorDark: appMaterialDarkColorScheme.primary, | |
//accentColor: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
/// An implicitly animated builder that tweens from 0.0 to 1.0 based on `isActive` property | |
class ImplicitlyAnimatedBuilder extends ImplicitlyAnimatedWidget { | |
ImplicitlyAnimatedBuilder({ | |
Key key, | |
@required Curve curve, | |
@required Duration duration, | |
@required this.isActive, | |
@required this.builder, |