Skip to content

Commit

Permalink
Merge pull request #1 from tappeddev/adjustments-stefan
Browse files Browse the repository at this point in the history
adjustments-stefan
  • Loading branch information
stefanschaller authored Mar 8, 2024
2 parents 3779e56 + 59e278a commit b5215e0
Show file tree
Hide file tree
Showing 48 changed files with 82 additions and 1,952 deletions.
1 change: 0 additions & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
#lints
include: package:tapped_lints/flutter-3.10.yaml
2 changes: 1 addition & 1 deletion example/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:flutter_lints/flutter.yaml
include: package:tapped_lints/flutter-3.10.yaml
2 changes: 1 addition & 1 deletion example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = YES;
LastUpgradeCheck = 1510;
LastUpgradeCheck = 1430;
ORGANIZATIONNAME = "";
TargetAttributes = {
331C8080294A63A400263BE5 = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1510"
LastUpgradeVersion = "1430"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
65 changes: 34 additions & 31 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,42 +10,45 @@ class MainApp extends StatelessWidget {

@override
Widget build(BuildContext context) {
double maxHeight = MediaQuery.of(context).size.height - kToolbarHeight;
final maxHeight = MediaQuery.of(context).size.height - kToolbarHeight;
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Bottom Sheet Example'),
),
body: Stack(
children: [
Positioned.fill(
child: Container(
appBar: AppBar(
title: const Text('Bottom Sheet Example'),
),
body: Stack(
children: [
Positioned.fill(
child: Container(
color: Colors.green,
)),
Align(
alignment: Alignment.bottomCenter,
child: ScrollableBottomSheet(
snapPoints: [maxHeight / 2],
initialPosition: maxHeight / 2,
maxHeight: maxHeight,
minHeight: 100,
builder: (context, scrollController) {
return ListView.builder(
controller: scrollController,
itemCount: 100,
itemBuilder: (context, index) {
return ListTile(
title: Text('Element $index'),
);
},
),
),
Align(
alignment: Alignment.bottomCenter,
child: ScrollableBottomSheet(
snapPositions: [maxHeight / 2],
initialPosition: maxHeight / 2,
maxHeight: maxHeight,
minHeight: 100,
builder: (context, scrollController) {
return ListView.builder(
controller: scrollController,
itemCount: 100,
itemBuilder: (context, index) {
return ListTile(
title: Text('Element $index'),
);
},
borderRadiusTop: 15,
borderColor: Colors.black,
backgroundColor: Colors.white),
)
],
)),
);
},
borderRadiusTop: 15,
borderColor: Colors.black,
backgroundColor: Colors.white,
),
),
],
),
),
);
}
}
1 change: 0 additions & 1 deletion example/linux/.gitignore

This file was deleted.

145 changes: 0 additions & 145 deletions example/linux/CMakeLists.txt

This file was deleted.

88 changes: 0 additions & 88 deletions example/linux/flutter/CMakeLists.txt

This file was deleted.

11 changes: 0 additions & 11 deletions example/linux/flutter/generated_plugin_registrant.cc

This file was deleted.

15 changes: 0 additions & 15 deletions example/linux/flutter/generated_plugin_registrant.h

This file was deleted.

23 changes: 0 additions & 23 deletions example/linux/flutter/generated_plugins.cmake

This file was deleted.

6 changes: 0 additions & 6 deletions example/linux/main.cc

This file was deleted.

Loading

0 comments on commit b5215e0

Please sign in to comment.