parse-community / Parse-SDK-Flutter

The Dart/Flutter SDK for Parse Platform
https://parseplatform.org
Apache License 2.0
575 stars 190 forks source link

The Flutter example code needs some refactors #910

Closed Nidal-Bakir closed 1 year ago

Nidal-Bakir commented 1 year ago

New Issue Checklist

Issue Description

Run dart analyze --fatal-infos OR flutter analyze --fatal-infos

You will see:

Analyzing flutter...

info • Use 'const' with the constructor to improve performance • packages/flutter/example/lib/live_list/main.dart:52:23 • prefer_const_constructors info • Use 'const' literals as arguments to constructors of '@immutable' classes • packages/flutter/example/lib/live_list/main.dart:54:35 • prefer_const_literals_to_create_immutables info • Use 'const' with the constructor to improve performance • packages/flutter/example/lib/live_list/main.dart:55:27 • prefer_const_constructors info • Use 'const' with the constructor to improve performance • packages/flutter/example/lib/live_list/main.dart:56:27 • prefer_const_constructors


Steps to reproduce

Run dart analyze --fatal-infos OR flutter analyze --fatal-infos

Actual Outcome

Analyzing flutter...

info • Use 'const' with the constructor to improve performance • packages/flutter/example/lib/live_list/main.dart:52:23 • prefer_const_constructors info • Use 'const' literals as arguments to constructors of '@immutable' classes • packages/flutter/example/lib/live_list/main.dart:54:35 • prefer_const_literals_to_create_immutables info • Use 'const' with the constructor to improve performance • packages/flutter/example/lib/live_list/main.dart:55:27 • prefer_const_constructors info • Use 'const' with the constructor to improve performance • packages/flutter/example/lib/live_list/main.dart:56:27 • prefer_const_constructors


Expected Outcome

Analyzing flutter...
No issues found! (ran in 5.2s)

Environment

Parse Flutter SDK

Server

Logs

parse-github-assistant[bot] commented 1 year ago

Thanks for opening this issue!