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

fix(demo): build and lint errors #134

Merged
merged 2 commits into from
Sep 6, 2023
Merged
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
1 change: 0 additions & 1 deletion demo/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
/build/

# Web related
lib/generated_plugin_registrant.dart

# Symbolication related
app.*.symbols
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class ContextualControls extends StatefulWidget {
const ContextualControls({Key? key}) : super(key: key);

@override
_ContextualControlsState createState() => _ContextualControlsState();
State<ContextualControls> createState() => _ContextualControlsState();
}

class _ContextualControlsState extends State<ContextualControls> {
Expand Down Expand Up @@ -40,6 +40,7 @@ class _ContextualControlsState extends State<ContextualControls> {
}

Widget _createBackLayer(BuildContext context) => ListView(
shrinkWrap: true,
children: [
ListTile(
leading: const Column(
Expand Down Expand Up @@ -115,7 +116,6 @@ class _ContextualControlsState extends State<ContextualControls> {
onPressed: () => Backdrop.of(context).fling(),
))
],
shrinkWrap: true,
);

Widget _createFrontLayer(BuildContext context) => Container(
Expand Down
2 changes: 1 addition & 1 deletion demo/lib/use_cases/contextual_info/contextual_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class ContextualInfo extends StatelessWidget {
}

Widget _createBackLayer(BuildContext context) => ListView(
shrinkWrap: true,
children: const [
ListTile(
leading: Column(
Expand Down Expand Up @@ -75,7 +76,6 @@ class ContextualInfo extends StatelessWidget {
),
),
],
shrinkWrap: true,
);

Widget _createFrontLayer(BuildContext context) => Container(
Expand Down
2 changes: 1 addition & 1 deletion demo/lib/use_cases/filter/filter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Filter extends StatefulWidget {
const Filter({Key? key}) : super(key: key);

@override
_FilterState createState() => _FilterState();
State<Filter> createState() => _FilterState();
}

class _FilterState extends State<Filter> {
Expand Down
4 changes: 2 additions & 2 deletions demo/lib/use_cases/navigation/navigation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Navigation extends StatefulWidget {
const Navigation({Key? key}) : super(key: key);

@override
_NavigationState createState() => _NavigationState();
State<Navigation> createState() => _NavigationState();
}

class _NavigationState extends State<Navigation> {
Expand Down Expand Up @@ -87,6 +87,7 @@ class _ItemsPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ListView(
shrinkWrap: true,
children: const [
ListTile(
leading: Icon(Icons.computer),
Expand All @@ -105,7 +106,6 @@ class _ItemsPage extends StatelessWidget {
title: Text("Car"),
),
],
shrinkWrap: true,
);
}
}
6 changes: 3 additions & 3 deletions demo/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ dependencies:
flutter:
sdk: flutter

gallerize: ^0.1.0
gallerize: ^0.3.0
# Add backdrop dependency here
backdrop:
path: "../"

dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^1.0.4
flutter_launcher_icons: ^0.9.0
flutter_lints: ^2.0.3
flutter_launcher_icons: ^0.13.1

flutter_icons:
android: false
Expand Down
Loading