fixed warnings

This commit is contained in:
Sergey Penkovsky
2025-05-16 17:57:40 +03:00
parent 7740717fce
commit 0c5db63961
4 changed files with 17 additions and 12 deletions

View File

@@ -45,3 +45,8 @@ app.*.map.json
pubspec_overrides.yaml pubspec_overrides.yaml
**/*.g.dart
**/*.gr.dart
**/*.freezed.dart

View File

@@ -26,7 +26,7 @@ class MyApp extends StatelessWidget {
return MaterialApp( return MaterialApp(
title: 'Example App', title: 'Example App',
theme: ThemeData(primarySwatch: Colors.blue), theme: ThemeData(primarySwatch: Colors.blue),
home: MyHomePage(), home: const MyHomePage(),
); );
} }
} }

View File

@@ -3,6 +3,8 @@ import 'package:cherrypick_flutter/cherrypick_flutter.dart';
import 'use_case.dart'; import 'use_case.dart';
class MyHomePage extends StatelessWidget { class MyHomePage extends StatelessWidget {
const MyHomePage({super.key});
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
// Разрешение зависимости UseCase из рутового скоупа // Разрешение зависимости UseCase из рутового скоупа
@@ -11,7 +13,7 @@ class MyHomePage extends StatelessWidget {
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
title: Text('Example App'), title: const Text('Example App'),
), ),
body: Center( body: Center(
child: Text(useCase.fetchData()), child: Text(useCase.fetchData()),

View File

@@ -28,19 +28,17 @@ packages:
cherrypick: cherrypick:
dependency: "direct main" dependency: "direct main"
description: description:
name: cherrypick path: "../../cherrypick"
sha256: "802427b777bc80e39216ec7070e452edd1a01eca84f824dfb57cc5e055797c4c" relative: true
url: "https://pub.dev" source: path
source: hosted version: "2.1.0-dev.1"
version: "2.0.1"
cherrypick_flutter: cherrypick_flutter:
dependency: "direct main" dependency: "direct main"
description: description:
name: cherrypick_flutter path: "../../cherrypick_flutter"
sha256: "6fa2ee4ea06a8f9edfaab43e665199b378add34c52ca081f55ed82cded090257" relative: true
url: "https://pub.dev" source: path
source: hosted version: "1.1.1-dev.1"
version: "1.1.0"
clock: clock:
dependency: transitive dependency: transitive
description: description: