This file contains 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 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 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 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 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, |
This file contains 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'; | |
void main() async { | |
runApp(const DynamicHeader()); | |
} | |
class DynamicHeader extends StatelessWidget { | |
const DynamicHeader({Key? key}) : super(key: key); | |
@override |
This file contains 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
//Flutter Modal Bottom Sheet | |
//Modified by Suvadeep Das | |
//Based on https://gist.github.com/andrelsmoraes/9e4af0133bff8960c1feeb0ead7fd749 | |
import 'dart:async'; | |
import 'package:flutter/material.dart'; | |
import 'package:meta/meta.dart'; | |
const Duration _kBottomSheetDuration = const Duration(milliseconds: 200); |
This file contains 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
//Flutter Modal Bottom Sheet | |
//Modified by Giorgio Bertolotti | |
//Based on https://gist.github.com/crimsonsuv/b25d5ebd04236f9be2aa66accba19446 | |
import 'dart:async'; | |
import 'package:flutter/material.dart'; | |
import 'package:meta/meta.dart'; | |
const Duration _kBottomSheetDuration = const Duration(milliseconds: 200); |
This file contains 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 2015 The Chromium Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
import 'dart:async'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/widgets.dart'; |