Bladeren bron

make fields which are not re-assigned as final

Neeraj Gupta 3 jaren geleden
bovenliggende
commit
16ea080a4e
3 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 1 1
      lib/ui/password_reentry_page.dart
  2. 1 1
      lib/ui/progress_dialog.dart
  3. 1 1
      lib/ui/shared_collections_gallery.dart

+ 1 - 1
lib/ui/password_reentry_page.dart

@@ -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;
 

+ 1 - 1
lib/ui/progress_dialog.dart

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

+ 1 - 1
lib/ui/shared_collections_gallery.dart

@@ -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;