make fields which are not re-assigned as final

This commit is contained in:
Neeraj Gupta 2021-10-30 11:48:45 +05:30
parent ffebccf003
commit 16ea080a4e
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1
3 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@ class PasswordReentryPage extends StatefulWidget {
class _PasswordReentryPageState extends State<PasswordReentryPage> {
final _passwordController = TextEditingController();
FocusNode _passwordFocusNode = FocusNode();
final FocusNode _passwordFocusNode = FocusNode();
bool _passwordInFocus = false;
bool _passwordVisible = false;

View file

@ -180,7 +180,7 @@ class ProgressDialog {
// ignore: must_be_immutable
class _Body extends StatefulWidget {
_BodyState _dialog = _BodyState();
final _BodyState _dialog = _BodyState();
update() {
_dialog.update();

View file

@ -31,7 +31,7 @@ class SharedCollectionGallery extends StatefulWidget {
class _SharedCollectionGalleryState extends State<SharedCollectionGallery>
with AutomaticKeepAliveClientMixin {
Logger _logger = Logger("SharedCollectionGallery");
final Logger _logger = Logger("SharedCollectionGallery");
StreamSubscription<LocalPhotosUpdatedEvent> _localFilesSubscription;
StreamSubscription<CollectionUpdatedEvent> _collectionUpdatesSubscription;
StreamSubscription<UserLoggedOutEvent> _loggedOutEvent;