From 0387c4f0a240726a532050ab89556da2dce281ba Mon Sep 17 00:00:00 2001 From: Harsh Bhikadia Date: Wed, 6 Sep 2023 16:55:22 +0530 Subject: [PATCH] fix(demo): build and lint errors (#134) * fix(demo): build errors * [demo] fixed analysis issues --- demo/.gitignore | 1 - .../use_cases/contextual_controls/contextual_controls.dart | 4 ++-- demo/lib/use_cases/contextual_info/contextual_info.dart | 2 +- demo/lib/use_cases/filter/filter.dart | 2 +- demo/lib/use_cases/navigation/navigation.dart | 4 ++-- demo/pubspec.yaml | 6 +++--- 6 files changed, 9 insertions(+), 10 deletions(-) diff --git a/demo/.gitignore b/demo/.gitignore index f3c2053..1544388 100644 --- a/demo/.gitignore +++ b/demo/.gitignore @@ -32,7 +32,6 @@ /build/ # Web related -lib/generated_plugin_registrant.dart # Symbolication related app.*.symbols diff --git a/demo/lib/use_cases/contextual_controls/contextual_controls.dart b/demo/lib/use_cases/contextual_controls/contextual_controls.dart index 5ddf970..f3550bc 100644 --- a/demo/lib/use_cases/contextual_controls/contextual_controls.dart +++ b/demo/lib/use_cases/contextual_controls/contextual_controls.dart @@ -7,7 +7,7 @@ class ContextualControls extends StatefulWidget { const ContextualControls({Key? key}) : super(key: key); @override - _ContextualControlsState createState() => _ContextualControlsState(); + State createState() => _ContextualControlsState(); } class _ContextualControlsState extends State { @@ -40,6 +40,7 @@ class _ContextualControlsState extends State { } Widget _createBackLayer(BuildContext context) => ListView( + shrinkWrap: true, children: [ ListTile( leading: const Column( @@ -115,7 +116,6 @@ class _ContextualControlsState extends State { onPressed: () => Backdrop.of(context).fling(), )) ], - shrinkWrap: true, ); Widget _createFrontLayer(BuildContext context) => Container( diff --git a/demo/lib/use_cases/contextual_info/contextual_info.dart b/demo/lib/use_cases/contextual_info/contextual_info.dart index 1e3200e..b16a5ed 100644 --- a/demo/lib/use_cases/contextual_info/contextual_info.dart +++ b/demo/lib/use_cases/contextual_info/contextual_info.dart @@ -23,6 +23,7 @@ class ContextualInfo extends StatelessWidget { } Widget _createBackLayer(BuildContext context) => ListView( + shrinkWrap: true, children: const [ ListTile( leading: Column( @@ -75,7 +76,6 @@ class ContextualInfo extends StatelessWidget { ), ), ], - shrinkWrap: true, ); Widget _createFrontLayer(BuildContext context) => Container( diff --git a/demo/lib/use_cases/filter/filter.dart b/demo/lib/use_cases/filter/filter.dart index 8545fb2..e6c4760 100644 --- a/demo/lib/use_cases/filter/filter.dart +++ b/demo/lib/use_cases/filter/filter.dart @@ -8,7 +8,7 @@ class Filter extends StatefulWidget { const Filter({Key? key}) : super(key: key); @override - _FilterState createState() => _FilterState(); + State createState() => _FilterState(); } class _FilterState extends State { diff --git a/demo/lib/use_cases/navigation/navigation.dart b/demo/lib/use_cases/navigation/navigation.dart index 470a311..8a638c1 100644 --- a/demo/lib/use_cases/navigation/navigation.dart +++ b/demo/lib/use_cases/navigation/navigation.dart @@ -7,7 +7,7 @@ class Navigation extends StatefulWidget { const Navigation({Key? key}) : super(key: key); @override - _NavigationState createState() => _NavigationState(); + State createState() => _NavigationState(); } class _NavigationState extends State { @@ -87,6 +87,7 @@ class _ItemsPage extends StatelessWidget { @override Widget build(BuildContext context) { return ListView( + shrinkWrap: true, children: const [ ListTile( leading: Icon(Icons.computer), @@ -105,7 +106,6 @@ class _ItemsPage extends StatelessWidget { title: Text("Car"), ), ], - shrinkWrap: true, ); } } diff --git a/demo/pubspec.yaml b/demo/pubspec.yaml index 98fd028..ba0cef3 100644 --- a/demo/pubspec.yaml +++ b/demo/pubspec.yaml @@ -24,7 +24,7 @@ dependencies: flutter: sdk: flutter - gallerize: ^0.1.0 + gallerize: ^0.3.0 # Add backdrop dependency here backdrop: path: "../" @@ -32,8 +32,8 @@ dependencies: 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