Skip to content

Commit

Permalink
fix: fixed dart analysis issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jhomlala committed Jun 2, 2024
1 parent 7c02c4d commit cf9a8a1
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 22 deletions.
2 changes: 1 addition & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: package:very_good_analysis/analysis_options.yaml
1include: package:very_good_analysis/analysis_options.yaml

linter:
rules:
Expand Down
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
ButtonStyle _buttonStyle = ButtonStyle(
backgroundColor: MaterialStateProperty.all<Color>(_buttonColor));
backgroundColor: WidgetStateProperty.all<Color>(_buttonColor));
return MaterialApp(
theme: ThemeData(
primaryColor: _primaryColor,
Expand Down
24 changes: 8 additions & 16 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.4.0"
version: "0.4.1"
analyzer:
dependency: transitive
description:
Expand Down Expand Up @@ -164,10 +164,10 @@ packages:
dependency: transitive
description:
name: collection
sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
url: "https://pub.dev"
source: hosted
version: "1.17.2"
version: "1.18.0"
convert:
dependency: transitive
description:
Expand Down Expand Up @@ -374,18 +374,18 @@ packages:
dependency: transitive
description:
name: material_color_utilities
sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"
url: "https://pub.dev"
source: hosted
version: "0.5.0"
version: "0.8.0"
meta:
dependency: transitive
description:
name: meta
sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136"
url: "https://pub.dev"
source: hosted
version: "1.9.1"
version: "1.12.0"
mime:
dependency: transitive
description:
Expand Down Expand Up @@ -815,14 +815,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.1.0"
web:
dependency: transitive
description:
name: web
sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10
url: "https://pub.dev"
source: hosted
version: "0.1.4-beta"
web_socket_channel:
dependency: transitive
description:
Expand Down Expand Up @@ -864,5 +856,5 @@ packages:
source: hosted
version: "3.1.2"
sdks:
dart: ">=3.1.0 <4.0.0"
dart: ">=3.3.0-0 <4.0.0"
flutter: ">=3.13.0"
4 changes: 2 additions & 2 deletions lib/ui/widget/alice_call_response_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class _AliceCallResponseWidgetState
ElevatedButton(
style: ButtonStyle(
backgroundColor:
MaterialStateProperty.all<Color>(AliceConstants.lightRed),
WidgetStateProperty.all<Color>(AliceConstants.lightRed),
),
onPressed: () {
setState(() {
Expand Down Expand Up @@ -235,7 +235,7 @@ class _AliceCallResponseWidgetState
ElevatedButton(
style: ButtonStyle(
backgroundColor:
MaterialStateProperty.all<Color>(AliceConstants.lightRed),
WidgetStateProperty.all<Color>(AliceConstants.lightRed),
),
onPressed: () {
setState(() {
Expand Down
2 changes: 0 additions & 2 deletions lib/ui/widget/alice_log_list_widget.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import 'dart:convert';
import 'dart:ui';

import 'package:alice/model/alice_log.dart';
import 'package:alice/utils/alice_scroll_behavior.dart';
import 'package:alice/utils/alice_theme.dart';
Expand Down

0 comments on commit cf9a8a1

Please sign in to comment.