Skip to content

Commit

Permalink
fix(demo): build and lint errors (#134)
Browse files Browse the repository at this point in the history
* fix(demo): build errors

* [demo] fixed analysis issues
  • Loading branch information
daadu authored Sep 6, 2023
1 parent b343735 commit 0387c4f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
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

0 comments on commit 0387c4f

Please sign in to comment.