From 0c5db63961acc9515cdda9d6e7fe2cc9bc54ca99 Mon Sep 17 00:00:00 2001 From: Sergey Penkovsky Date: Fri, 16 May 2025 17:57:40 +0300 Subject: [PATCH] fixed warnings --- examples/client_app/.gitignore | 5 +++++ examples/client_app/lib/main.dart | 2 +- examples/client_app/lib/my_home_page.dart | 4 +++- examples/client_app/pubspec.lock | 18 ++++++++---------- 4 files changed, 17 insertions(+), 12 deletions(-) diff --git a/examples/client_app/.gitignore b/examples/client_app/.gitignore index f4ffe82..80ad3a6 100644 --- a/examples/client_app/.gitignore +++ b/examples/client_app/.gitignore @@ -45,3 +45,8 @@ app.*.map.json pubspec_overrides.yaml + +**/*.g.dart +**/*.gr.dart +**/*.freezed.dart + diff --git a/examples/client_app/lib/main.dart b/examples/client_app/lib/main.dart index 886cf30..e7d6783 100644 --- a/examples/client_app/lib/main.dart +++ b/examples/client_app/lib/main.dart @@ -26,7 +26,7 @@ class MyApp extends StatelessWidget { return MaterialApp( title: 'Example App', theme: ThemeData(primarySwatch: Colors.blue), - home: MyHomePage(), + home: const MyHomePage(), ); } } diff --git a/examples/client_app/lib/my_home_page.dart b/examples/client_app/lib/my_home_page.dart index a871013..91aaea4 100644 --- a/examples/client_app/lib/my_home_page.dart +++ b/examples/client_app/lib/my_home_page.dart @@ -3,6 +3,8 @@ import 'package:cherrypick_flutter/cherrypick_flutter.dart'; import 'use_case.dart'; class MyHomePage extends StatelessWidget { + const MyHomePage({super.key}); + @override Widget build(BuildContext context) { // Разрешение зависимости UseCase из рутового скоупа @@ -11,7 +13,7 @@ class MyHomePage extends StatelessWidget { return Scaffold( appBar: AppBar( - title: Text('Example App'), + title: const Text('Example App'), ), body: Center( child: Text(useCase.fetchData()), diff --git a/examples/client_app/pubspec.lock b/examples/client_app/pubspec.lock index db71cb1..43c8489 100644 --- a/examples/client_app/pubspec.lock +++ b/examples/client_app/pubspec.lock @@ -28,19 +28,17 @@ packages: cherrypick: dependency: "direct main" description: - name: cherrypick - sha256: "802427b777bc80e39216ec7070e452edd1a01eca84f824dfb57cc5e055797c4c" - url: "https://pub.dev" - source: hosted - version: "2.0.1" + path: "../../cherrypick" + relative: true + source: path + version: "2.1.0-dev.1" cherrypick_flutter: dependency: "direct main" description: - name: cherrypick_flutter - sha256: "6fa2ee4ea06a8f9edfaab43e665199b378add34c52ca081f55ed82cded090257" - url: "https://pub.dev" - source: hosted - version: "1.1.0" + path: "../../cherrypick_flutter" + relative: true + source: path + version: "1.1.1-dev.1" clock: dependency: transitive description: