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
class Foo {} | |
class Bar extends Foo {} | |
void acceptsBar(Bar bar) {} | |
void main() { | |
Foo foo = Foo(); | |
acceptsBar(Foo()); // ERROR | |
acceptsBar(foo); // NO ERROR ?? |
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'; | |
import 'package:flutter/scheduler.dart'; | |
/// Wraps the [child] in a [Container] or [AnimatedContainer], based on [animated], | |
/// that adjusts its bottom padding to accommodate the on-screen keyboard. | |
class KeyboardAvoider extends StatefulWidget | |
{ | |
/// The child contained by the widget | |
final Widget child; |
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
#Update build number with number of git commits if in release mode | |
if [ ${CONFIGURATION} == "Release" ]; then | |
buildNumber=$(git rev-list HEAD | wc -l | tr -d ' ') | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${PROJECT_DIR}/${INFOPLIST_FILE}" | |
fi; | |
#if [ ${CONFIGURATION} == "Release" ]; then | |
APPLEDOC_PATH=`which appledoc` | |
if [ $APPLEDOC_PATH ]; then | |
$APPLEDOC_PATH \ |