-
Notifications
You must be signed in to change notification settings - Fork 486
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c02c42
commit 7b559d1
Showing
18 changed files
with
156 additions
and
43 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,45 @@ | ||
# This file tracks properties of this Flutter project. | ||
# Used by Flutter tool to assess capabilities and perform upgrades etc. | ||
# | ||
# This file should be version controlled and should not be manually edited. | ||
# This file should be version controlled. | ||
|
||
version: | ||
revision: 8cb266511897d79e6d7d60c08c0e425f4cdaf433 | ||
channel: master | ||
revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c | ||
channel: stable | ||
|
||
project_type: app | ||
|
||
# Tracks metadata for the flutter migrate command | ||
migration: | ||
platforms: | ||
- platform: root | ||
create_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c | ||
base_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c | ||
- platform: android | ||
create_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c | ||
base_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c | ||
- platform: ios | ||
create_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c | ||
base_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c | ||
- platform: linux | ||
create_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c | ||
base_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c | ||
- platform: macos | ||
create_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c | ||
base_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c | ||
- platform: web | ||
create_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c | ||
base_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c | ||
- platform: windows | ||
create_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c | ||
base_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c | ||
|
||
# User provided section | ||
|
||
# List of Local paths (relative to this file) that should be | ||
# ignored by the migrate tool. | ||
# | ||
# Files that are not part of the templates will be ignored by default. | ||
unmanaged_files: | ||
- 'lib/main.dart' | ||
- 'ios/Runner.xcodeproj/project.pbxproj' |
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
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
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
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
2 changes: 1 addition & 1 deletion
2
...otlin/com/example/example/MainActivity.kt → ...kotlin/jb/example/example/MainActivity.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.example.example | ||
package jb.example.example | ||
|
||
import io.flutter.embedding.android.FlutterActivity | ||
|
||
|
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
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
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
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
3 changes: 1 addition & 2 deletions
3
sheet/example/android/gradle/wrapper/gradle-wrapper.properties
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#Fri Jun 23 08:50:38 CEST 2017 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:sheet/sheet.dart'; | ||
|
||
class FoldableScreenFloatingSheet extends StatefulWidget { | ||
@override | ||
_FitSheetState createState() => _FitSheetState(); | ||
} | ||
|
||
class _FitSheetState extends State<FoldableScreenFloatingSheet> { | ||
final SheetController controller = SheetController(); | ||
|
||
@override | ||
void initState() { | ||
Future<void>.delayed(const Duration(milliseconds: 400), animateSheet); | ||
|
||
super.initState(); | ||
} | ||
|
||
void animateSheet() { | ||
controller.relativeAnimateTo(1, | ||
duration: const Duration(milliseconds: 400), curve: Curves.easeOut); | ||
} | ||
|
||
@override | ||
void dispose() { | ||
controller.dispose(); | ||
super.dispose(); | ||
} | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return DisplayFeatureSubScreen( | ||
anchorPoint: Offset.infinite, | ||
child: Sheet.raw( | ||
physics: const SnapSheetPhysics( | ||
parent: BouncingSheetPhysics(overflowViewport: false), | ||
stops: <double>[0, 1], | ||
), | ||
padding: const EdgeInsets.all(20), | ||
child: Container( | ||
height: 200, | ||
alignment: Alignment.topCenter, | ||
child: Container( | ||
height: 200, | ||
width: double.infinity, | ||
child: Material( | ||
elevation: 1, | ||
shape: RoundedRectangleBorder( | ||
borderRadius: BorderRadius.circular(12), | ||
), | ||
color: Colors.grey[900], | ||
), | ||
), | ||
), | ||
controller: controller, | ||
), | ||
); | ||
} | ||
} |
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.