Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added more fine tuned controls for different devices #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions example/lib/views/home/home_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,19 @@ class HomeView extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ScreenTypeLayout(
breakpoints: ScreenBreakpoints(desktop: 900, tablet: 650, watch: 250),
mobile: OrientationLayoutBuilder(
breakpoints: ScreenBreakpoints(
watch: 300,
mobileSmall: 480,
mobileTabletNormal: 767,
tabletLarge: 1024,
monitorSmall: 1280,
monitorLarge: 1650,
monitorExtraLarge: 1650),
mobileTabletNormal: OrientationLayoutBuilder(
portrait: (context) => HomeMobilePortrait(),
landscape: (context) => HomeMobileLandscape(),
),
tablet: HomeViewTablet(),
tabletLarge: HomeViewTablet(),
);
}
}
4 changes: 2 additions & 2 deletions example/lib/widgets/app_drawer/app_drawer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class AppDrawer extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ScreenTypeLayout(
mobile: AppDrawerMobile(),
tablet: OrientationLayoutBuilder(
mobileTabletNormal: AppDrawerMobile(),
tabletLarge: OrientationLayoutBuilder(
portrait: (context) => AppDrawerTabletPortrait(),
landscape: (context) => AppDrawerTabletLandscape(),
),
Expand Down
4 changes: 2 additions & 2 deletions example/lib/widgets/drawer_option/drawer_option.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class DrawerOption extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ScreenTypeLayout(
mobile: OrientationLayoutBuilder(
mobileTabletNormal: OrientationLayoutBuilder(
landscape: (context) => DrawerOptionMobileLandscape(
iconData: iconData,
),
Expand All @@ -25,7 +25,7 @@ class DrawerOption extends StatelessWidget {
iconData: iconData,
),
),
tablet: OrientationLayoutBuilder(
tabletLarge: OrientationLayoutBuilder(
portrait: (context) => DrawerOptionTabletPortrait(
iconData: iconData,
title: title,
Expand Down
68 changes: 55 additions & 13 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
@@ -1,34 +1,62 @@
# 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.13"
args:
dependency: transitive
description:
name: args
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.0"
async:
dependency: transitive
description:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.3.0"
version: "2.4.1"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.5"
version: "2.0.0"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.2"
version: "1.1.3"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.14.11"
version: "1.14.12"
convert:
dependency: transitive
description:
name: convert
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
crypto:
dependency: transitive
description:
name: crypto
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.4"
cupertino_icons:
dependency: "direct main"
description:
Expand All @@ -46,41 +74,48 @@ 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.12"
matcher:
dependency: transitive
description:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.5"
version: "0.12.6"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.7"
version: "1.1.8"
path:
dependency: transitive
description:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.4"
pedantic:
petitparser:
dependency: transitive
description:
name: pedantic
name: petitparser
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0+1"
version: "2.4.0"
quiver:
dependency: transitive
description:
name: quiver
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.5"
version: "2.1.3"
responsive_builder:
dependency: "direct main"
description:
Expand All @@ -99,7 +134,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.5.5"
version: "1.7.0"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -134,7 +169,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.5"
version: "0.2.15"
typed_data:
dependency: transitive
description:
Expand All @@ -149,5 +184,12 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.8"
xml:
dependency: transitive
description:
name: xml
url: "https://pub.dartlang.org"
source: hosted
version: "3.6.1"
sdks:
dart: ">=2.2.2 <3.0.0"
dart: ">=2.6.0 <3.0.0"
Loading