Skip to content

Commit

Permalink
Merge pull request #7 from quantosapplications/master
Browse files Browse the repository at this point in the history
update to bloc 6
  • Loading branch information
aliyigitbireroglu committed Oct 16, 2020
2 parents a13dfb9 + 8b9dcb3 commit 232534d
Show file tree
Hide file tree
Showing 9 changed files with 117 additions and 260 deletions.
1 change: 1 addition & 0 deletions peek_and_pop/example/.flutter-plugins-dependencies
@@ -0,0 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"webview_flutter","path":"/Users/fabriziotognetto/Library/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.13/","dependencies":[]}],"android":[{"name":"webview_flutter","path":"/Users/fabriziotognetto/Library/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.13/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"webview_flutter","dependencies":[]}],"date_created":"2020-09-23 23:12:06.440462","version":"1.22.0-12.1.pre"}
3 changes: 2 additions & 1 deletion peek_and_pop/example/lib/nav_bar.dart
Expand Up @@ -236,6 +236,7 @@ Widget _wrapWithBackground({
/// * [CupertinoSliverNavigationBar] for a navigation bar to be placed in a
/// scrolling list and that supports iOS-11-style large titles.
class CupertinoNavigationBar extends StatefulWidget implements ObstructingPreferredSizeWidget {

/// {@template flutter.cupertino.navBar.leading}
/// Widget to place at the start of the navigation bar. Normally a back button
/// for a normal page or a cancel button for full page dialogs.
Expand Down Expand Up @@ -411,7 +412,7 @@ class CupertinoNavigationBar extends StatefulWidget implements ObstructingPrefer

/// True if the navigation bar's background color has no transparency.
@override
bool get fullObstruction => backgroundColor == null ? null : backgroundColor.alpha == 0xFF;
bool shouldFullyObstruct(BuildContext context) => backgroundColor == null ? null : backgroundColor.alpha == 0xFF;

@override
Size get preferredSize {
Expand Down
123 changes: 37 additions & 86 deletions peek_and_pop/example/pubspec.lock
@@ -1,83 +1,76 @@
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
archive:
dependency: transitive
description:
name: archive
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.10"
args:
dependency: transitive
description:
name: args
url: "https://pub.dartlang.org"
source: hosted
version: "1.5.2"
async:
dependency: transitive
description:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.3.0"
version: "2.5.0-nullsafety"
bloc:
dependency: transitive
description:
name: bloc
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
version: "6.0.3"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.5"
charcode:
version: "2.1.0-nullsafety"
characters:
dependency: transitive
description:
name: charcode
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.2"
collection:
version: "1.1.0-nullsafety.2"
charcode:
dependency: transitive
description:
name: collection
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.14.11"
convert:
version: "1.2.0-nullsafety"
clock:
dependency: transitive
description:
name: convert
name: clock
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
crypto:
version: "1.1.0-nullsafety"
collection:
dependency: transitive
description:
name: crypto
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.2"
version: "1.15.0-nullsafety.2"
cupertino_icons:
dependency: "direct main"
description:
name: cupertino_icons
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.2"
fake_async:
dependency: transitive
description:
name: fake_async
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0-nullsafety"
flick:
dependency: transitive
description:
name: flick
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.2"
version: "1.0.3"
flutter:
dependency: "direct main"
description: flutter
Expand All @@ -88,69 +81,34 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
image:
dependency: transitive
description:
name: image
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.4"
matcher:
dependency: transitive
description:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.5"
version: "0.12.10-nullsafety"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.7"
version: "1.3.0-nullsafety.2"
path:
dependency: transitive
description:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.4"
pedantic:
dependency: transitive
description:
name: pedantic
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0+1"
version: "1.8.0-nullsafety"
peek_and_pop:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "1.0.2+1"
petitparser:
dependency: transitive
description:
name: petitparser
url: "https://pub.dartlang.org"
source: hosted
version: "2.4.0"
quiver:
dependency: transitive
description:
name: quiver
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.5"
rxdart:
dependency: transitive
description:
name: rxdart
url: "https://pub.dartlang.org"
source: hosted
version: "0.22.2"
version: "1.0.3"
sky_engine:
dependency: transitive
description: flutter
Expand All @@ -162,49 +120,49 @@ packages:
name: snap
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.4"
version: "1.0.5"
source_span:
dependency: transitive
description:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.5.5"
version: "1.8.0-nullsafety"
stack_trace:
dependency: transitive
description:
name: stack_trace
url: "https://pub.dartlang.org"
source: hosted
version: "1.9.3"
version: "1.10.0-nullsafety"
stream_channel:
dependency: transitive
description:
name: stream_channel
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
version: "2.1.0-nullsafety"
string_scanner:
dependency: transitive
description:
name: string_scanner
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.5"
version: "1.1.0-nullsafety"
term_glyph:
dependency: transitive
description:
name: term_glyph
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "1.2.0-nullsafety"
test_api:
dependency: transitive
description:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.5"
version: "0.2.19-nullsafety"
transparent_image:
dependency: transitive
description:
Expand All @@ -218,28 +176,21 @@ packages:
name: typed_data
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.6"
version: "1.3.0-nullsafety.2"
vector_math:
dependency: transitive
description:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.8"
version: "2.1.0-nullsafety.2"
webview_flutter:
dependency: "direct main"
description:
name: webview_flutter
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.13"
xml:
dependency: transitive
description:
name: xml
url: "https://pub.dartlang.org"
source: hosted
version: "3.5.0"
sdks:
dart: ">=2.4.0 <3.0.0"
dart: ">=2.10.0-0.0.dev <2.10.0"
flutter: ">=1.5.0 <2.0.0"
4 changes: 2 additions & 2 deletions peek_and_pop/lib/misc.dart
Expand Up @@ -72,8 +72,8 @@ Widget scaleUpWrapper(Widget child, double scaleUpCoefficient) {

///A Bloc class for controlling the [scaleDownWrapper] and [scaleUpWrapper].
class TransformBloc extends Bloc<double, double> {
@override
double initialState = 0.0;

TransformBloc(): super(0.0);

@override
Stream<double> mapEventToState(double newState) async* {
Expand Down
1 change: 1 addition & 0 deletions peek_and_pop/pretty_example/.flutter-plugins-dependencies
@@ -0,0 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"webview_flutter","path":"/Users/fabriziotognetto/Library/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.13/","dependencies":[]}],"android":[{"name":"webview_flutter","path":"/Users/fabriziotognetto/Library/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.13/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"webview_flutter","dependencies":[]}],"date_created":"2020-09-23 23:07:44.981689","version":"1.22.0-12.1.pre"}
3 changes: 2 additions & 1 deletion peek_and_pop/pretty_example/lib/nav_bar.dart
Expand Up @@ -236,6 +236,7 @@ Widget _wrapWithBackground({
/// * [CupertinoSliverNavigationBar] for a navigation bar to be placed in a
/// scrolling list and that supports iOS-11-style large titles.
class CupertinoNavigationBar extends StatefulWidget implements ObstructingPreferredSizeWidget {

/// {@template flutter.cupertino.navBar.leading}
/// Widget to place at the start of the navigation bar. Normally a back button
/// for a normal page or a cancel button for full page dialogs.
Expand Down Expand Up @@ -411,7 +412,7 @@ class CupertinoNavigationBar extends StatefulWidget implements ObstructingPrefer

/// True if the navigation bar's background color has no transparency.
@override
bool get fullObstruction => backgroundColor == null ? null : backgroundColor.alpha == 0xFF;
bool shouldFullyObstruct(BuildContext context) => backgroundColor == null ? null : backgroundColor.alpha == 0xFF;

@override
Size get preferredSize {
Expand Down

0 comments on commit 232534d

Please sign in to comment.