flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
165.22k stars 27.26k forks source link

Strange behaviour when using Stack and AnimatedPositioned #89003

Closed followthemoney1 closed 3 years ago

followthemoney1 commented 3 years ago

The problem with flutter web iframes, I have been observing it for a long time, but usually, it is not so obvious, but here it is easy to track down. I cut out a small example from my web application that easily shows that when we click on any card and the rest of the cards change position from the horizontal position, the stack does not redraw the widgets. You can also observe this problem if you have any iframe in the application (for example, a built-in YouTube player) on the detailed page and you redirect to the main page.

Steps to Reproduce

I pasted part of the code, but you actually can create some positioned IFrame cards inside Stack: https://dartpad.dev/?id=257e61588786241b0634a74ffc6dcc2e&null_safety=true

Expected results: Expand or collapse and redraw. Without IFrame - https://drive.google.com/file/d/1yqzSgV3iUIGG1Cp7oWiyi_BvUqRGsBRA/view?usp=sharing

Actual results: With IFrame - https://drive.google.com/file/d/1bycNis5CsYiEx1ERUst6KjpZ6nxdn3Ii/view?usp=sharing

Logs no errors or logs didn't displayed ``` The plugin `cloud_functions` uses a deprecated version of the Android embedding. To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs. If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration. Analyzing nemesis... info • Name non-constant identifiers using lowerCamelCase • lib/constants.dart:14:16 • non_constant_identifier_names info • Name non-constant identifiers using lowerCamelCase • lib/constants.dart:15:16 • non_constant_identifier_names info • Name non-constant identifiers using lowerCamelCase • lib/constants.dart:16:16 • non_constant_identifier_names info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: LoadStateWidget.state • lib/constants.dart:28:7 • must_be_immutable info • Dead code • lib/constants.dart:47:9 • dead_code info • Dead code • lib/constants.dart:51:9 • dead_code info • Dead code • lib/constants.dart:54:9 • dead_code info • Dead code • lib/constants.dart:59:5 • dead_code info • Dead code • lib/constants.dart:71:7 • dead_code info • Dead code • lib/constants.dart:75:7 • dead_code info • Dead code • lib/constants.dart:78:7 • dead_code info • Dead code • lib/constants.dart:83:3 • dead_code info • Unused import: 'package:cloud_firestore/cloud_firestore.dart' • lib/data/firestore_mixin.dart:1:8 • unused_import info • Close instances of `dart.core.Sink` • lib/data/helper/fpsperfomance.dart:30:26 • close_sinks info • Close instances of `dart.core.Sink` • lib/data/helper/fpsperfomance.dart:74:28 • close_sinks info • Cancel instances of dart.async.StreamSubscription • lib/data/helper/fpsperfomance.dart:75:30 • cancel_subscriptions info • Unused import: 'dart:async' • lib/data/helper/runtime_ui.dart:1:8 • unused_import info • Unused import: 'dart:developer' • lib/data/helper/runtime_ui.dart:2:8 • unused_import info • The getter doesn't override an inherited getter • lib/data/local/local_team.dart:43:21 • override_on_non_overriding_member info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: GameCategory.id, GameCategory.name, GameCategory.snapshotID • lib/data/network_new/game_category.dart:4:7 • must_be_immutable info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: League.imageUrl, League.name, League.snapshotID, League.createdAt • lib/data/network_new/league.dart:4:7 • must_be_immutable info • The operand can't be null, so the condition is always true • lib/data/network_new/match_event.dart:46:49 • unnecessary_null_comparison info • Avoid using braces in interpolation when not needed • lib/data/network_new/match_event.dart:146:31 • unnecessary_brace_in_string_interps info • Avoid using braces in interpolation when not needed • lib/data/network_new/place_bet_response.dart:14:18 • unnecessary_brace_in_string_interps info • Unused import: 'package:sport_news/constants.dart' • lib/di/home_binding.dart:4:8 • unused_import info • Unused import: 'package:sport_news/data/helper/runtime_ui.dart' • lib/di/initial_binding.dart:2:8 • unused_import info • Unused import: 'dart:io' • lib/main.dart:18:8 • unused_import info • Avoid using braces in interpolation when not needed • lib/main.dart:46:31 • unnecessary_brace_in_string_interps info • The operand can't be null, so the condition is always true • lib/main.dart:94:37 • unnecessary_null_comparison info • Unused import: 'dart:convert' • lib/managers/firebase_manager.dart:2:8 • unused_import info • Avoid using web-only libraries outside Flutter web plugin packages • lib/managers/firebase_manager.dart:25:1 • avoid_web_libraries_in_flutter info • Name non-constant identifiers using lowerCamelCase • lib/managers/firebase_manager.dart:29:7 • non_constant_identifier_names info • Name non-constant identifiers using lowerCamelCase • lib/managers/firebase_manager.dart:30:7 • non_constant_identifier_names info • Name non-constant identifiers using lowerCamelCase • lib/managers/firebase_manager.dart:31:7 • non_constant_identifier_names info • Name non-constant identifiers using lowerCamelCase • lib/managers/firebase_manager.dart:32:7 • non_constant_identifier_names info • Name non-constant identifiers using lowerCamelCase • lib/managers/firebase_manager.dart:33:7 • non_constant_identifier_names info • Name non-constant identifiers using lowerCamelCase • lib/managers/firebase_manager.dart:34:7 • non_constant_identifier_names info • Name non-constant identifiers using lowerCamelCase • lib/managers/firebase_manager.dart:35:7 • non_constant_identifier_names info • The value of the local variable 'userCredential' isn't used • lib/managers/firebase_manager.dart:107:22 • unused_local_variable info • The value of the local variable 'res' isn't used • lib/managers/firebase_manager.dart:145:11 • unused_local_variable info • 'await' applied to 'Transaction', which is not a 'Future' • lib/managers/firebase_manager.dart:307:7 • await_only_futures info • Avoid using braces in interpolation when not needed • lib/managers/firebase_manager.dart:338:17 • unnecessary_brace_in_string_interps info • Unused import: 'package:sport_news/data/network/firebase_news.dart' • lib/managers/network_manager.dart:4:8 • unused_import info • Name non-constant identifiers using lowerCamelCase • lib/managers/shared_preference_manager.dart:12:9 • non_constant_identifier_names info • Name non-constant identifiers using lowerCamelCase • lib/managers/shared_preference_manager.dart:13:9 • non_constant_identifier_names info • Name non-constant identifiers using lowerCamelCase • lib/managers/shared_preference_manager.dart:14:9 • non_constant_identifier_names info • Name non-constant identifiers using lowerCamelCase • lib/managers/shared_preference_manager.dart:15:9 • non_constant_identifier_names info • Name non-constant identifiers using lowerCamelCase • lib/managers/shared_preference_manager.dart:16:9 • non_constant_identifier_names info • Name non-constant identifiers using lowerCamelCase • lib/managers/shared_preference_manager.dart:17:9 • non_constant_identifier_names info • Equality operator `==` invocation with references of unrelated types • lib/managers/shared_preference_manager.dart:153:9 • unrelated_type_equality_checks info • Equality operator `==` invocation with references of unrelated types • lib/managers/shared_preference_manager.dart:161:9 • unrelated_type_equality_checks info • Name non-constant identifiers using lowerCamelCase • lib/managers/twitch_api.dart:7:16 • non_constant_identifier_names info • Name non-constant identifiers using lowerCamelCase • lib/managers/twitch_api.dart:8:16 • non_constant_identifier_names info • Prefer using /// for doc comments • lib/pr_extension.dart:9:1 • slash_for_doc_comments info • Avoid using unnecessary statements • lib/pr_extension.dart:41:7 • unnecessary_statements info • Name non-constant identifiers using lowerCamelCase • lib/pr_extension.dart:114:58 • non_constant_identifier_names info • The exception variable 'e' isn't used, so the 'catch' clause can be removed • lib/pr_extension.dart:173:27 • unused_catch_clause info • The operand can't be null, so the condition is always true • lib/style/theme/gallery_option.dart:212:34 • unnecessary_null_comparison info • 'textTheme' is deprecated and shouldn't be used. This property is no longer used, please use toolbarTextStyle and titleTextStyle instead. This feature was deprecated after v2.4.0-0.0.pre. • lib/style/theme/gallery_theme_data.dart:55:11 • deprecated_member_use info • 'brightness' is deprecated and shouldn't be used. This property is no longer used, please use systemOverlayStyle instead. This feature was deprecated after v2.4.0-0.0.pre. • lib/style/theme/gallery_theme_data.dart:59:11 • deprecated_member_use info • 'accentColor' is deprecated and shouldn't be used. Use colorScheme.secondary instead. For more information, consult the migration guide at https://flutter.dev/docs/release/breaking-changes/theme-data-accent-properties#migration-guide. This feature was deprecated after v2.3.0-0.1.pre. • lib/style/theme/gallery_theme_data.dart:65:9 • deprecated_member_use info • 'buttonColor' is deprecated and shouldn't be used. No longer used by the framework, please remove any reference to it. This feature was deprecated after v2.3.0-0.2.pre. • lib/style/theme/gallery_theme_data.dart:67:9 • deprecated_member_use info • Unused import: 'package:auto_size_text/auto_size_text.dart' • lib/ui/admin/admin_panel.dart:3:8 • unused_import info • Unused import: 'package:sport_news/ui/widgets/my_text_field.dart' • lib/ui/admin/admin_panel.dart:14:8 • unused_import info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: AdminPanel.context • lib/ui/admin/admin_panel.dart:21:7 • must_be_immutable info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: CreateCategory.pickedCategory • lib/ui/admin/create_category/create_category.dart:8:7 • must_be_immutable info • Don't type annotate initializing formals • lib/ui/admin/create_category/create_category.dart:13:36 • type_init_formals info • Use `isNotEmpty` for Iterables and Maps • lib/ui/admin/create_category/create_category_controller.dart:44:9 • prefer_is_not_empty info • The operand can't be null, so the condition is always true • lib/ui/admin/create_new_team/create_new_team.dart:115:45 • unnecessary_null_comparison info • Unused import: 'package:flutter/material.dart' • lib/ui/admin/create_new_team/create_team_controller.dart:3:8 • unused_import info • The exception variable 'e' isn't used, so the 'catch' clause can be removed • lib/ui/auth/login/login_controller.dart:67:35 • unused_catch_clause info • The operand can't be null, so the condition is always false • lib/ui/auth/login/login_controller.dart:71:18 • unnecessary_null_comparison info • The exception variable 'e' isn't used, so the 'catch' clause can be removed • lib/ui/auth/registration/registration_controller.dart:76:35 • unused_catch_clause info • The operand can't be null, so the condition is always false • lib/ui/auth/registration/registration_controller.dart:80:18 • unnecessary_null_comparison info • Unused import: 'package:sport_news/style/theme/gallery_theme_data.dart' • lib/ui/header/header.dart:7:8 • unused_import info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: Header.child, Header.onBackEnabled, Header.onBackPress, Header.context, Header.isDesktop • lib/ui/header/header.dart:19:7 • must_be_immutable info • Don't type annotate initializing formals • lib/ui/header/header.dart:24:36 • type_init_formals info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: RightPanel.state • lib/ui/header/header.dart:240:7 • must_be_immutable info • Don't type annotate initializing formals • lib/ui/header/header.dart:242:24 • type_init_formals info • Unused import: 'package:flutter/material.dart' • lib/ui/header/header_controller.dart:4:8 • unused_import info • Avoid using web-only libraries outside Flutter web plugin packages • lib/ui/header/header_controller.dart:12:1 • avoid_web_libraries_in_flutter info • The operand can't be null, so the condition is always true • lib/ui/header/header_controller.dart:72:22 • unnecessary_null_comparison info • Unused import: 'package:sport_news/managers/firebase_manager.dart' • lib/ui/home/home_controller.dart:3:8 • unused_import info • Unused import: 'package:sport_news/style/theme/gallery_theme_data.dart' • lib/ui/home/home_page.dart:6:8 • unused_import info • Unused import: 'package:flutter_link_previewer/flutter_link_previewer.dart' • lib/ui/main/main_page.dart:3:8 • unused_import info • Unused import: 'package:sport_news/style/theme/gallery_theme_data.dart' • lib/ui/main/main_page.dart:7:8 • unused_import info • Unused import: 'package:sport_news/ui/widgets/card_news/card_news.dart' • lib/ui/main/main_page.dart:11:8 • unused_import info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: MainPage.context • lib/ui/main/main_page.dart:18:7 • must_be_immutable info • Unused import: 'package:sport_news/style/theme/gallery_theme_data.dart' • lib/ui/match_detail/match_detail.dart:7:8 • unused_import info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: MatchDetail.tag, MatchDetail.context, MatchDetail.isDesktop, MatchDetail.formKey • lib/ui/match_detail/match_detail.dart:20:7 • must_be_immutable info • 'vsync' is deprecated and shouldn't be used. This field is now ignored. This feature was deprecated after v2.2.0-10.1.pre. • lib/ui/match_detail/match_detail.dart:146:15 • deprecated_member_use info • Don't type annotate initializing formals • lib/ui/match_detail/match_detail.dart:397:24 • type_init_formals info • Don't type annotate initializing formals • lib/ui/match_detail/match_detail.dart:397:52 • type_init_formals info • The operand can't be null, so the condition is always false • lib/ui/match_detail/match_detail_controller.dart:74:17 • unnecessary_null_comparison info • Unused import: 'package:flutter/material.dart' • lib/ui/news_list/matches_list_controller.dart:1:8 • unused_import info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: MatchesListPage.tag, MatchesListPage.scrollable, MatchesListPage.scrollController, MatchesListPage.context • lib/ui/news_list/matches_list_page.dart:7:7 • must_be_immutable info • Unused import: 'dart:developer' • lib/ui/widgets/animated_elevation_card.dart:1:8 • unused_import info • Unused import: 'package:align_positioned/align_positioned.dart' • lib/ui/widgets/animated_elevation_card.dart:4:8 • unused_import info • Unused import: 'package:measured_size/measured_size.dart' • lib/ui/widgets/animated_elevation_card.dart:8:8 • unused_import info • Unused import: 'package:sport_news/style/theme/gallery_theme_data.dart' • lib/ui/widgets/animated_elevation_card.dart:10:8 • unused_import info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: AnimatedElevationCard.child, AnimatedElevationCard.selected, AnimatedElevationCard._paintKey, AnimatedElevationCard.bloc • lib/ui/widgets/animated_elevation_card.dart:86:7 • must_be_immutable info • Don't type annotate initializing formals • lib/ui/widgets/animated_elevation_card.dart:99:14 • type_init_formals info • The type parameter 'color' is annotated with @required but only named parameters without a default value can be annotated with it • lib/ui/widgets/animated_elevation_card.dart:184:5 • invalid_required_named_param info • Don't type annotate initializing formals • lib/ui/widgets/animated_icons/back_icon/back_icon.dart:10:22 • type_init_formals info • Unused import: 'dart:developer' • lib/ui/widgets/animated_icons/menu/menu_icon.dart:1:8 • unused_import info • Unused import: 'package:flutter/services.dart' • lib/ui/widgets/animated_icons/menu/menu_icon.dart:4:8 • unused_import info • Don't type annotate initializing formals • lib/ui/widgets/animated_icons/menu/menu_icon.dart:13:22 • type_init_formals info • Name non-constant identifiers using lowerCamelCase • lib/ui/widgets/animated_on_click_widget.dart:10:7 • non_constant_identifier_names info • Name non-constant identifiers using lowerCamelCase • lib/ui/widgets/animated_on_click_widget.dart:15:12 • non_constant_identifier_names info • The declaration '_onTapDown' isn't referenced • lib/ui/widgets/animated_on_click_widget.dart:45:8 • unused_element info • The declaration '_onTapUp' isn't referenced • lib/ui/widgets/animated_on_click_widget.dart:49:8 • unused_element info • The operand can't be null, so the condition is always true • lib/ui/widgets/animated_on_click_widget.dart:54:22 • unnecessary_null_comparison info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: BBCReferenceNewsButton.child, BBCReferenceNewsButton.padding • lib/ui/widgets/b_b_c_reference_news_button.dart:3:7 • must_be_immutable info • The value of the field '_colorTween' isn't used • lib/ui/widgets/b_b_c_reference_news_button.dart:20:15 • unused_field info • The value of the field '_colorTweenAnimation' isn't used • lib/ui/widgets/b_b_c_reference_news_button.dart:21:21 • unused_field info • Unused import: 'package:sport_news/data/network/firebase_news.dart' • lib/ui/widgets/card_match/match_card.dart:7:8 • unused_import info • Unused import: 'package:sport_news/managers/campaign_manager.dart' • lib/ui/widgets/card_match/match_card.dart:10:8 • unused_import info • Unused import: 'package:sport_news/style/theme/gallery_theme_data.dart' • lib/ui/widgets/card_match/match_card.dart:11:8 • unused_import info • Unused import: 'package:sport_news/ui/widgets/animated_icons/big_progress/big_progress.dart' • lib/ui/widgets/card_match/match_card.dart:13:8 • unused_import info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: MatchCard.tag, MatchCard.teamName • lib/ui/widgets/card_match/match_card.dart:22:7 • must_be_immutable info • Unused import: 'package:sport_news/data/helper/runtime_ui.dart' • lib/ui/widgets/card_match/match_card_controller.dart:6:8 • unused_import info • Unused import: 'package:sport_news/style/theme/gallery_theme_data.dart' • lib/ui/widgets/card_news/card_news.dart:8:8 • unused_import info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: NewsCard.tag, NewsCard.context, NewsCard.keyCard • lib/ui/widgets/card_news/card_news.dart:14:7 • must_be_immutable info • The type parameter 'remove' is annotated with @required but only named parameters without a default value can be annotated with it • lib/ui/widgets/card_news/news_detail.dart:101:23 • invalid_required_named_param info • The operand can't be null, so the condition is always true • lib/ui/widgets/card_news/news_detail.dart:136:19 • unnecessary_null_comparison info • 'vsync' is deprecated and shouldn't be used. This field is now ignored. This feature was deprecated after v2.2.0-10.1.pre. • lib/ui/widgets/card_news/news_detail.dart:221:39 • deprecated_member_use info • 'vsync' is deprecated and shouldn't be used. This field is now ignored. This feature was deprecated after v2.2.0-10.1.pre. • lib/ui/widgets/card_news/news_detail.dart:231:31 • deprecated_member_use info • Unused import: 'dart:developer' • lib/ui/widgets/card_news/news_page_indicator.dart:1:8 • unused_import info • Unused import: 'package:extended_image/extended_image.dart' • lib/ui/widgets/card_news/news_page_indicator.dart:3:8 • unused_import info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: NewsPageIndicator.news • lib/ui/widgets/card_news/news_page_indicator.dart:14:7 • must_be_immutable info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: NewsArrow.activeIcon, NewsArrow.onTap • lib/ui/widgets/card_news/news_page_indicator.dart:113:7 • must_be_immutable info • Don't type annotate initializing formals • lib/ui/widgets/card_news/news_page_indicator.dart:116:23 • type_init_formals info • Don't type annotate initializing formals • lib/ui/widgets/card_news/news_page_indicator.dart:116:56 • type_init_formals info • The operand can't be null, so the condition is always false • lib/ui/widgets/chat_widget/chat_controller.dart:47:17 • unnecessary_null_comparison info • Avoid using braces in interpolation when not needed • lib/ui/widgets/chat_widget/chat_controller.dart:93:32 • unnecessary_brace_in_string_interps info • Unused import: 'package:sport_news/style/theme/gallery_theme_data.dart' • lib/ui/widgets/chat_widget/chat_widget.dart:10:8 • unused_import info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: ChatWidget.tag, ChatWidget.context • lib/ui/widgets/chat_widget/chat_widget.dart:16:7 • must_be_immutable info • The value of the local variable 'imageController' isn't used • lib/ui/widgets/chat_widget/chat_widget.dart:20:20 • unused_local_variable info • The operand can't be null, so the condition is always true • lib/ui/widgets/chat_widget/chat_widget.dart:206:91 • unnecessary_null_comparison info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: ChatContent.tag, ChatContent.chatController • lib/ui/widgets/chat_widget/chat_widget.dart:216:7 • must_be_immutable info • Don't type annotate initializing formals • lib/ui/widgets/chat_widget/chat_widget.dart:221:17 • type_init_formals info • The operand can't be null, so the condition is always true • lib/ui/widgets/expand_item_transition.dart:10:23 • unnecessary_null_comparison info • The operand can't be null, so the condition is always true • lib/ui/widgets/expand_item_transition.dart:11:22 • unnecessary_null_comparison info • Unused import: 'package:flutter/material.dart' • lib/ui/widgets/fluid_nav_bar/fluid_controller.dart:1:8 • unused_import info • Unused import: 'package:sport_news/style/theme/gallery_theme_data.dart' • lib/ui/widgets/fluid_nav_bar/fluid_nav_bar.dart:8:8 • unused_import info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: FluidNavBar.context, FluidNavBar.iconSize • lib/ui/widgets/fluid_nav_bar/fluid_nav_bar.dart:18:7 • must_be_immutable info • Don't type annotate initializing formals • lib/ui/widgets/fluid_nav_bar/fluid_nav_bar.dart:25:14 • type_init_formals info • Use `;` instead of `{}` for empty constructor bodies • lib/ui/widgets/fluid_nav_bar/fluid_nav_bar.dart:26:6 • empty_constructor_bodies info • The value of the local variable 'isDesktop' isn't used • lib/ui/widgets/fluid_nav_bar/fluid_nav_bar.dart:43:11 • unused_local_variable info • 'vsync' is deprecated and shouldn't be used. This field is now ignored. This feature was deprecated after v2.2.0-10.1.pre. • lib/ui/widgets/fluid_nav_bar/fluid_nav_bar.dart:47:9 • deprecated_member_use info • Don't import implementation files from another package • lib/ui/widgets/image_picker/image_picker.dart:4:8 • implementation_imports info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: ImagePickerWidget.tag, ImagePickerWidget.context • lib/ui/widgets/image_picker/image_picker.dart:8:7 • must_be_immutable info • The value of the local variable 'imageController' isn't used • lib/ui/widgets/image_picker/image_picker.dart:13:28 • unused_local_variable info • Unused import: 'dart:io' • lib/ui/widgets/image_picker/image_picker_controller.dart:2:8 • unused_import info • Unused import: 'package:flutter/material.dart' • lib/ui/widgets/image_picker/image_picker_controller.dart:4:8 • unused_import info • Avoid using web-only libraries outside Flutter web plugin packages • lib/ui/widgets/image_picker/image_picker_controller.dart:9:1 • avoid_web_libraries_in_flutter info • The operand can't be null, so the condition is always true • lib/ui/widgets/image_picker/image_picker_controller.dart:23:20 • unnecessary_null_comparison info • Avoid using braces in interpolation when not needed • lib/ui/widgets/like_widget/like_controller.dart:36:23 • unnecessary_brace_in_string_interps info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: EventStatisticWidget.tag • lib/ui/widgets/like_widget/like_widget.dart:13:7 • must_be_immutable info • The declaration '_isTwitchLink' isn't referenced • lib/ui/widgets/link_preview/user_link_preview.dart:96:8 • unused_element info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: MousePosition.child, MousePosition.onEnter, MousePosition.onExit, MousePosition.onHover • lib/ui/widgets/mouse/mouse_position.dart:3:7 • must_be_immutable info • Don't type annotate initializing formals • lib/ui/widgets/my_text_field.dart:10:56 • type_init_formals info • Don't type annotate initializing formals • lib/ui/widgets/my_text_field.dart:10:82 • type_init_formals info • Don't type annotate initializing formals • lib/ui/widgets/my_text_field.dart:10:126 • type_init_formals info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: NewsWidgetMobile.scrollable • lib/ui/widgets/news_widget_mobile.dart:8:7 • must_be_immutable info • The operand can't be null, so the condition is always false • lib/ui/widgets/news_widget_mobile.dart:18:18 • unnecessary_null_comparison info • The operand can't be null, so the condition is always false • lib/ui/widgets/news_widget_mobile.dart:20:24 • unnecessary_null_comparison info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: AssetSvgIcon.assetName, AssetSvgIcon.procentIconSize, AssetSvgIcon.color • lib/ui/widgets/svg_icon.dart:4:7 • must_be_immutable info • Don't type annotate initializing formals • lib/ui/widgets/svg_icon.dart:8:26 • type_init_formals info • Don't type annotate initializing formals • lib/ui/widgets/svg_icon.dart:8:58 • type_init_formals info • Don't type annotate initializing formals • lib/ui/widgets/svg_icon.dart:8:87 • type_init_formals info • Unused import: 'package:auto_size_text/auto_size_text.dart' • lib/ui/widgets/video_players/twitch_player.dart:5:8 • unused_import info • Avoid using web-only libraries outside Flutter web plugin packages • lib/ui/widgets/video_players/twitch_player.dart:8:1 • avoid_web_libraries_in_flutter info • Unused import: 'dart:html' • lib/ui/widgets/video_players/twitch_player.dart:8:8 • unused_import info • Unused import: 'dart:ui' • lib/ui/widgets/video_players/twitch_player.dart:9:8 • unused_import info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: TwitchPlayer.streamName, TwitchPlayer.url • lib/ui/widgets/video_players/twitch_player.dart:11:7 • must_be_immutable info • Avoid using braces in interpolation when not needed • lib/ui/widgets/video_players/twitch_player.dart:85:22 • unnecessary_brace_in_string_interps info • Avoid using braces in interpolation when not needed • lib/ui/widgets/video_players/twitch_player.dart:90:22 • unnecessary_brace_in_string_interps info • Unused import: 'package:auto_size_text/auto_size_text.dart' • lib/ui/widgets/video_players/youtube_player.dart:5:8 • unused_import info • Avoid using web-only libraries outside Flutter web plugin packages • lib/ui/widgets/video_players/youtube_player.dart:8:1 • avoid_web_libraries_in_flutter info • Unused import: 'dart:html' • lib/ui/widgets/video_players/youtube_player.dart:8:8 • unused_import info • Unused import: 'dart:ui' • lib/ui/widgets/video_players/youtube_player.dart:9:8 • unused_import info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: YoutubePlayer.url • lib/ui/widgets/video_players/youtube_player.dart:11:7 • must_be_immutable info • Avoid using braces in interpolation when not needed • lib/ui/widgets/video_players/youtube_player.dart:47:24 • unnecessary_brace_in_string_interps 184 issues found. (ran in 6.3s) ``` ``` [✓] Flutter (Channel master, 2.5.0-7.0.pre.182, on macOS 11.5.2 20G95 darwin-x64, locale en-GB) • Flutter version 2.5.0-7.0.pre.182 at /Users/dmitrydyachenko/fvm/versions/master • Upstream repository https://github.com/flutter/flutter.git • Framework revision 92d2856dda (6 days ago), 2021-08-21 03:22:04 -0400 • Engine revision 1accc709af • Dart version 2.15.0 (build 2.15.0-39.0.dev) [!] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at /Users/dmitrydyachenko/Library/Android/sdk • Platform android-S, build-tools 30.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses [✓] Xcode - develop for iOS and macOS (Xcode 12.5.1) • Xcode at /Applications/Xcode.app/Contents/Developer • CocoaPods version 1.10.1 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [!] Android Studio • Android Studio at /Applications/Android Studio Preview.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart ✗ Unable to find bundled Java version. • Try updating or re-installing Android Studio. [✓] Android Studio (version 4.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264) [✓] VS Code (version 1.59.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.25.0 [✓] Connected device (2 available) • macOS (desktop) • macos • darwin-x64 • macOS 11.5.2 20G95 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 92.0.4515.131 ! Doctor found issues in 2 categories. ```
TahaTesser commented 3 years ago

Hi @followthemoney1 Your code sample, actual results/expected results are different, it is not clear what code sample is supposed to do? Can you please update the results to match the code sample?

darshankawar commented 3 years ago

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.

Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v. All system setups can be slightly different, so it's always better to open new issues and reference related issues.

github-actions[bot] commented 3 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.