Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Integration test shows white screen when setting tester.view.physicalSize, but tests pass functionally #167726

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Bilawal-Mehfooz-Malik opened this issue Apr 24, 2025 · 5 comments
Labels
f: integration_test The flutter/packages/integration_test plugin found in release: 3.29 Found to occur in 3.29 found in release: 3.32 Found to occur in 3.32 framework flutter/packages/flutter repository. See also f: labels. has reproducible steps The issue has been confirmed reproducible and is ready to work on P2 Important issues not at the top of the work list team-framework Owned by Framework team triaged-framework Triaged by Framework team

Comments

@Bilawal-Mehfooz-Malik
Copy link

Steps to reproduce

  1. Create a Flutter app with responsive/adaptive layouts.
  2. Write an integration test using flutter_test (and potentially the integration_test package).
  3. In the test setup (setUp or within the test), set a specific screen size using tester.view.physicalSize = Size(width, height); and tester.view.devicePixelRatio = 1.0;. Remember to reset these in addTearDown.
  4. Pump the app widget using tester.pumpWidget() or a helper function.
  5. Use tester.pumpAndSettle() after pumping the initial widget and after interactions.
  6. Perform test actions like finding widgets (find.byKey, find.byType) and tapping them (tester.tap).
  7. Run the integration test (e.g., flutter test integration_test/my_test.dart).

Expected results

The integration test should run, interact with the widgets, and the visual output should show the app's UI rendering correctly for the specified screen size. Widgets should be visible.

Actual results

The integration test passes functionally:

  • Finders locate the widgets successfully (expect(finder, findsOneWidget) passes).
  • Taps are registered (tester.tap(finder) executes without error, and subsequent expectations based on the tap's effect might pass).
  • tester.pumpAndSettle() completes without throwing errors related to timeouts (usually).
  • If i run the test without specifying the tester.view.physicalSize = Size(width, height); and tester.view.devicePixelRatio = 1.0; it succeed and shows integration test running with content.

Code sample

Code sample
import 'package:flutter_test/flutter_test.dart';
import '../test/src/robot.dart';

void main() {
  setUpAll(() => WidgetController.hitTestWarningShouldBeFatal = true);

  testWidgets('Integration test (Mobile Screen) - White Screen Issue', (tester) async {
    await tester.runAsync(() async {
      final r = Robot(tester);
      // This is where the size is set
      await r.pumpAppWithMobileScreen();
      // Actions that succeed logically but don't show visually
      await r.startupRobot.tapGetStartedButton();
      r.startupRobot.expectModalBottomSheet(); 
    });
  });
}

Robot Helper (test/src/robot.dart)
import 'package:app/src/core/app_bootstrap/app_bootstrap.dart'; 
import 'package:app/src/core/app_bootstrap/app_bootstrap_fakes.dart'; 
import 'package:app/src/app.dart'; 
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_test/flutter_test.dart';

class Robot {
  Robot(this.tester)
    : startupRobot = StartupRobot(tester),
      categoriesRobot = CategoriesRobot(tester),
      golden = GoldenRobot(tester);

  final WidgetTester tester;
  // ... other robots

  Future<void> pumpMyApp() async {
    final appBootStrap = AppBootStrap();
    final container = appBootStrap.createFakeProviderContainer();
    final root = UncontrolledProviderScope(
      container: container,
      child: const MyApp(), 
    );
    await tester.pumpWidget(root);
    await tester.pumpAndSettle();
  }

  Future<void> pumpAppWithScreenSize(Size screenSize) async {
    // The core part causing the issue
    tester.view.physicalSize = screenSize;
    tester.view.devicePixelRatio = 1.0;
    addTearDown(
      () => {
        tester.view.resetPhysicalSize(),
        tester.view.resetDevicePixelRatio(),
      },
    );
    await pumpMyApp(); 
  }

  Future<void> pumpAppWithMobileScreen() async {
    await pumpAppWithScreenSize(Size(350, 600)); 
  }
  // ... other helpers
}

Screenshots or Video

Screenshots / Video demonstration
bandicam.2025-04-24.20-13-00-417.mp4

Logs

Logs
[        ]                    ]
[        ]                  },
[        ]                  {
[        ]                    "name": "geolocator_apple",
[        ]                    "version": "2.3.13",
[        ]                    "kind": "transitive",
[   +1 ms]                    "source": "hosted",
[        ]                    "dependencies": [
[   +2 ms]                      "flutter",
[   +1 ms]                      "geolocator_platform_interface"
[        ]                    ],
[        ]                    "directDependencies": [
[        ]                      "flutter",
[        ]                      "geolocator_platform_interface"
[        ]                    ]
[        ]                  },
[        ]                  {
[        ]                    "name": "geolocator_android",
[        ]                    "version": "4.6.2",
[        ]                    "kind": "transitive",
[        ]                    "source": "hosted",
[        ]                    "dependencies": [
[        ]                      "flutter",
[        ]                      "geolocator_platform_interface",
[        ]                      "meta",
[        ]                      "uuid"
[        ]                    ],
[        ]                    "directDependencies": [
[        ]                      "flutter",
[   +1 ms]                      "geolocator_platform_interface",
[        ]                      "meta",
[        ]                      "uuid"
[        ]                    ]
[        ]                  },
[        ]                  {
[        ]                    "name": "path_provider",
[        ]                    "version": "2.1.5",
[        ]                    "kind": "direct",
[        ]                    "source": "hosted",
[   +3 ms]                    "dependencies": [
[        ]                      "flutter",
[        ]                      "path_provider_android",
[        ]                      "path_provider_foundation",
[        ]                      "path_provider_linux",
[        ]                      "path_provider_platform_interface",
[        ]                      "path_provider_windows"
[        ]                    ],
[        ]                    "directDependencies": [
[        ]                      "flutter",
[        ]                      "path_provider_android",
[        ]                      "path_provider_foundation",
[        ]                      "path_provider_linux",
[        ]                      "path_provider_platform_interface",
[        ]                      "path_provider_windows"
[   +2 ms]                    ]
[        ]                  },
[        ]                  {
[        ]                    "name": "path_provider_windows",
[        ]                    "version": "2.3.0",
[        ]                    "kind": "transitive",
[        ]                    "source": "hosted",
[        ]                    "dependencies": [
[        ]                      "ffi",
[        ]                      "flutter",
[        ]                      "path",
[        ]                      "path_provider_platform_interface"
[   +3 ms]                    ],
[        ]                    "directDependencies": [
[        ]                      "ffi",
[        ]                      "flutter",
[        ]                      "path",
[        ]                      "path_provider_platform_interface"
[        ]                    ]
[        ]                  },
[        ]                  {
[        ]                    "name": "path_provider_platform_interface",
[        ]                    "version": "2.1.2",
[        ]                    "kind": "transitive",
[        ]                    "source": "hosted",
[   +1 ms]                    "dependencies": [
[        ]                      "flutter",
[        ]                      "platform",
[        ]                      "plugin_platform_interface"
[        ]                    ],
[        ]                    "directDependencies": [
[        ]                      "flutter",
[        ]                      "platform",
[        ]                      "plugin_platform_interface"
[        ]                    ]
[   +4 ms]                  },
[        ]                  {
[        ]                    "name": "ffi",
[        ]                    "version": "2.1.4",
[        ]                    "kind": "transitive",
[        ]                    "source": "hosted",
[        ]                    "dependencies": [],
[        ]                    "directDependencies": []
[        ]                  },
[        ]                  {
[        ]                    "name": "path_provider_linux",
[        ]                    "version": "2.2.1",
[        ]                    "kind": "transitive",
[        ]                    "source": "hosted",
[        ]                    "dependencies": [
[        ]                      "ffi",
[        ]                      "flutter",
[        ]                      "path",
[        ]                      "path_provider_platform_interface",
[        ]                      "xdg_directories"
[        ]                    ],
[        ]                    "directDependencies": [
[        ]                      "ffi",
[        ]                      "flutter",
[        ]                      "path",
[        ]                      "path_provider_platform_interface",
[        ]                      "xdg_directories"
[        ]                    ]
[        ]                  },
[   +4 ms]                  {
[        ]                    "name": "xdg_directories",
[        ]                    "version": "1.1.0",
[        ]                    "kind": "transitive",
[        ]                    "source": "hosted",
[        ]                    "dependencies": [
[        ]                      "meta",
[        ]                      "path"
[        ]                    ],
[        ]                    "directDependencies": [
[        ]                      "meta",
[        ]                      "path"
[        ]                    ]
[        ]                  },
[        ]                  {
[   +1 ms]                    "name": "path_provider_foundation",
[        ]                    "version": "2.4.1",
[        ]                    "kind": "transitive",
[        ]                    "source": "hosted",
[        ]                    "dependencies": [
[        ]                      "flutter",
[        ]                      "path_provider_platform_interface"
[        ]                    ],
[        ]                    "directDependencies": [
[        ]                      "flutter",
[        ]                      "path_provider_platform_interface"
[        ]                    ]
[        ]                  },
[        ]                  {
[        ]                    "name": "path_provider_android",
[        ]                    "version": "2.2.16",
[   +2 ms]                    "kind": "transitive",
[   +1 ms]                    "source": "hosted",
[        ]                    "dependencies": [
[        ]                      "flutter",
[        ]                      "path_provider_platform_interface"
[        ]                    ],
[        ]                    "directDependencies": [
[        ]                      "flutter",
[        ]                      "path_provider_platform_interface"
[        ]                    ]
[        ]                  },
[        ]                  {
[        ]                    "name": "sembast_web",
[        ]                    "version": "2.4.1",
[        ]                    "kind": "direct",
[        ]                    "source": "hosted",
[        ]                    "dependencies": [
[        ]                      "web",
[   +1 ms]                      "sembast",
[        ]                      "idb_shim",
[        ]                      "synchronized"
[        ]                    ],
[        ]                    "directDependencies": [
[        ]                      "web",
[        ]                      "sembast",
[        ]                      "idb_shim",
[        ]                      "synchronized"
[        ]                    ]
[        ]                  },
[   +1 ms]                  {
[   +3 ms]                    "name": "synchronized",
[        ]                    "version": "3.3.1",
[        ]                    "kind": "transitive",
[        ]                    "source": "hosted",
[        ]                    "dependencies": [],
[        ]                    "directDependencies": []
[        ]                  },
[        ]                  {
[        ]                    "name": "idb_shim",
[        ]                    "version": "2.6.4+1",
[        ]                    "kind": "transitive",
[        ]                    "source": "hosted",
[        ]                    "dependencies": [
[        ]                      "sembast",
[        ]                      "collection",
[        ]                      "path",
[        ]                      "meta",
[        ]                      "web"
[   +1 ms]                    ],
[        ]                    "directDependencies": [
[        ]                      "sembast",
[        ]                      "collection",
[        ]                      "path",
[        ]                      "meta",
[        ]                      "web"
[        ]                    ]
[        ]                  },
[        ]                  {
[        ]                    "name": "sembast",
[        ]                    "version": "3.8.4+1",
[        ]                    "kind": "direct",
[   +4 ms]                    "source": "hosted",
[        ]                    "dependencies": [
[        ]                      "meta",
[        ]                      "path",
[        ]                      "synchronized"
[        ]                    ],
[        ]                    "directDependencies": [
[        ]                      "meta",
[        ]                      "path",
[        ]                      "synchronized"
[        ]                    ]
[        ]                  },
[        ]                  {
[        ]                    "name": "mocktail",
[   +1 ms]                    "version": "1.0.4",
[        ]                    "kind": "direct",
[        ]                    "source": "hosted",
[        ]                    "dependencies": [
[        ]                      "collection",
[        ]                      "matcher",
[        ]                      "test_api"
[        ]                    ],
[        ]                    "directDependencies": [
[        ]                      "collection",
[        ]                      "matcher",
[        ]                      "test_api"
[        ]                    ]
[        ]                  },
[        ]                  {
[   +3 ms]                    "name": "rxdart",
[        ]                    "version": "0.28.0",
[        ]                    "kind": "direct",
[        ]                    "source": "hosted",
[        ]                    "dependencies": [],
[        ]                    "directDependencies": []
[        ]                  },
[        ]                  {
[        ]                    "name": "carousel_slider",
[        ]                    "version": "5.0.0",
[        ]                    "kind": "direct",
[   +1 ms]                    "source": "hosted",
[   +1 ms]                    "dependencies": [
[        ]                      "flutter"
[        ]                    ],
[        ]                    "directDependencies": [
[        ]                      "flutter"
[        ]                    ]
[        ]                  },
[        ]                  {
[        ]                    "name": "flutter_staggered_grid_view",
[        ]                    "version": "0.7.0",
[        ]                    "kind": "direct",
[        ]                    "source": "hosted",
[   +2 ms]                    "dependencies": [
[   +1 ms]                      "flutter"
[        ]                    ],
[        ]                    "directDependencies": [
[        ]                      "flutter"
[        ]                    ]
[        ]                  },
[        ]                  {
[        ]                    "name": "dio",
[        ]                    "version": "5.8.0+1",
[        ]                    "kind": "direct",
[        ]                    "source": "hosted",
[        ]                    "dependencies": [
[        ]                      "async",
[   +2 ms]                      "collection",
[   +1 ms]                      "http_parser",
[        ]                      "meta",
[        ]                      "path",
[        ]                      "dio_web_adapter"
[        ]                    ],
[        ]                    "directDependencies": [
[        ]                      "async",
[        ]                      "collection",
[        ]                      "http_parser",
[        ]                      "meta",
[        ]                      "path",
[        ]                      "dio_web_adapter"
[        ]                    ]
[   +4 ms]                  },
[        ]                  {
[        ]                    "name": "dio_web_adapter",
[        ]                    "version": "2.1.1",
[        ]                    "kind": "transitive",
[        ]                    "source": "hosted",
[        ]                    "dependencies": [
[        ]                      "dio",
[        ]                      "http_parser",
[        ]                      "meta",
[        ]                      "web"
00:15 +0: loading D:/Flutter Apps/City Helper System/app/integration_test/app_flow_test.dart                               [   +1 ms]                    ],
[   +2 ms]                    "directDependencies": [
[        ]                      "dio",
[        ]                      "http_parser",
[        ]                      "meta",
[        ]                      "web"
[        ]                    ]
[        ]                  },
[        ]                  {
[        ]                    "name": "skeletonizer",
[        ]                    "version": "1.4.3",
[        ]                    "kind": "direct",
[   +3 ms]                    "source": "hosted",
[        ]                    "dependencies": [
[        ]                      "flutter"
[        ]                    ],
[        ]                    "directDependencies": [
[        ]                      "flutter"
[        ]                    ]
[        ]                  },
[        ]                  {
[        ]                    "name": "internet_connection_checker_plus",
[        ]                    "version": "2.7.1",
[        ]                    "kind": "direct",
[        ]                    "source": "hosted",
[        ]                    "dependencies": [
[        ]                      "connectivity_plus",
[        ]                      "flutter",
[   +1 ms]                      "http"
[        ]                    ],
[        ]                    "directDependencies": [
[        ]                      "connectivity_plus",
[        ]                      "flutter",
[        ]                      "http"
[        ]                    ]
[        ]                  },
[        ]                  {
[        ]                    "name": "connectivity_plus",
[        ]                    "version": "6.1.3",
[        ]                    "kind": "transitive",
[        ]                    "source": "hosted",
[        ]                    "dependencies": [
[   +3 ms]                      "flutter",
[        ]                      "flutter_web_plugins",
[        ]                      "connectivity_plus_platform_interface",
[        ]                      "web",
[        ]                      "meta",
[        ]                      "nm",
[        ]                      "collection"
[        ]                    ],
[        ]                    "directDependencies": [
[        ]                      "flutter",
[        ]                      "flutter_web_plugins",
[        ]                      "connectivity_plus_platform_interface",
[        ]                      "web",
[   +2 ms]                      "meta",
[        ]                      "nm",
[        ]                      "collection"
[        ]                    ]
[        ]                  },
[        ]                  {
[        ]                    "name": "nm",
[   +1 ms]                    "version": "0.5.0",
[   +4 ms]                    "kind": "transitive",
[        ]                    "source": "hosted",
[        ]                    "dependencies": [
[        ]                      "dbus"
[        ]                    ],
[        ]                    "directDependencies": [
[        ]                      "dbus"
[        ]                    ]
[        ]                  },
[        ]                  {
[        ]                    "name": "dbus",
[        ]                    "version": "0.7.11",
[        ]                    "kind": "transitive",
[        ]                    "source": "hosted",
[        ]                    "dependencies": [
[        ]                      "args",
[        ]                      "ffi",
[        ]                      "meta",
[        ]                      "xml"
[        ]                    ],
[        ]                    "directDependencies": [
[        ]                      "args",
[        ]                      "ffi",
[        ]                      "meta",
[        ]                      "xml"
[        ]                    ]
[        ]                  },
[        ]                  {
[        ]                    "name": "xml",
[   +3 ms]                    "version": "6.5.0",
[        ]                    "kind": "transitive",
[        ]                    "source": "hosted",
[        ]                    "dependencies": [
[        ]                      "collection",
[        ]                      "meta",
[   +9 ms]                      "petitparser"
[   +4 ms]                    ],
[   +2 ms]                    "directDependencies": [
[   +1 ms]                      "collection",
[        ]                      "meta",
[        ]                      "petitparser"
[   +1 ms]                    ]
[   +4 ms]                  },
[   +1 ms]                  {
[   +1 ms]                    "name": "petitparser",
[        ]                    "version": "6.1.0",
[   +5 ms]                    "kind": "transitive",
[        ]                    "source": "hosted",
[        ]                    "dependencies": [
[        ]                      "meta",
[   +1 ms]                      "collection"
[        ]                    ],
[   +3 ms]                    "directDependencies": [
[   +1 ms]                      "meta",
[   +7 ms]                      "collection"
[        ]                    ]
[        ]                  },
[        ]                  {
[        ]                    "name": "connectivity_plus_platform_interface",
[        ]                    "version": "2.0.1",
[        ]                    "kind": "transitive",
[   +1 ms]                    "source": "hosted",
[   +4 ms]                    "dependencies": [
[        ]                      "flutter",
[        ]                      "meta",
[        ]                      "plugin_platform_interface"
[   +4 ms]                    ],
[        ]                    "directDependencies": [
[        ]                      "flutter",
[        ]                      "meta",
[        ]                      "plugin_platform_interface"
[        ]                    ]
[   +1 ms]                  },
[   +4 ms]                  {
[   +1 ms]                    "name": "flutter_svg",
[        ]                    "version": "2.0.17",
[        ]                    "kind": "direct",
[        ]                    "source": "hosted",
[        ]                    "dependencies": [
[        ]                      "flutter",
[        ]                      "http",
[ +106 ms]                      "vector_graphics",
[        ]                      "vector_graphics_codec",
[        ]                      "vector_graphics_compiler"
[  +19 ms]                    ],
[  +10 ms]                    "directDependencies": [
[        ]                      "flutter",
[        ]                      "http",
[        ]                      "vector_graphics",
[        ]                      "vector_graphics_codec",
[        ]                      "vector_graphics_compiler"
[   +4 ms]                    ]
[        ]                  },
[        ]                  {
[        ]                    "name": "vector_graphics_compiler",
[        ]                    "version": "1.1.16",
[        ]                    "kind": "transitive",
[        ]                    "source": "hosted",
[        ]                    "dependencies": [
[        ]                      "args",
[        ]                      "meta",
[        ]                      "path",
[        ]                      "path_parsing",
[        ]                      "vector_graphics_codec",
[        ]                      "xml"
[        ]                    ],
[        ]                    "directDependencies": [
[        ]                      "args",
[        ]                      "meta",
[        ]                      "path",
[        ]                      "path_parsing",
[  +28 ms]                      "vector_graphics_codec",
[   +1 ms]                      "xml"
[        ]                    ]
[        ]                  },
[   +4 ms]                  {
[        ]                    "name": "vector_graphics_codec",
[        ]                    "version": "1.1.13",
[   +1 ms]                    "kind": "transitive",
[   +1 ms]                    "source": "hosted",
[   +1 ms]                    "dependencies": [],
[   +1 ms]                    "directDependencies": []
[   +4 ms]                  },
[        ]                  {
[        ]                    "name": "path_parsing",
[        ]                    "version": "1.1.0",
[        ]                    "kind": "transitive",
[   +2 ms]                    "source": "hosted",
[   +1 ms]                    "dependencies": [
[   +1 ms]                      "meta",
[   +2 ms]                      "vector_math"
[        ]                    ],
[        ]                    "directDependencies": [
[        ]                      "meta",
[        ]                      "vector_math"
[        ]                    ]
[        ]                  },
[        ]                  {
[        ]                    "name": "vector_graphics",
[        ]                    "version": "1.1.18",
[        ]                    "kind": "transitive",
[        ]                    "source": "hosted",
[        ]                    "dependencies": [
[        ]                      "flutter",
[        ]                      "http",
[        ]                      "vector_graphics_codec"
[        ]                    ],
[        ]                    "directDependencies": [
[        ]                      "flutter",
[        ]                      "http",
[        ]                      "vector_graphics_codec"
[        ]                    ]
[        ]                  },
[        ]                  {
[        ]                    "name": "google_fonts",
[   +1 ms]                    "version": "6.2.1",
[   +3 ms]                    "kind": "direct",
[        ]                    "source": "hosted",
[        ]                    "dependencies": [
[        ]                      "flutter",
[   +4 ms]                      "http",
[        ]                      "path_provider",
[        ]                      "crypto"
[        ]                    ],
[        ]                    "directDependencies": [
[        ]                      "flutter",
[        ]                      "http",
[   +1 ms]                      "path_provider",
[   +3 ms]                      "crypto"
[   +5 ms]                    ]
[        ]                  },
[        ]                  {
[        ]                    "name": "intl",
[        ]                    "version": "0.19.0",
[        ]                    "kind": "direct",
[        ]                    "source": "hosted",
[        ]                    "dependencies": [
[        ]                      "clock",
[        ]                      "meta",
[        ]                      "path"
[        ]                    ],
[        ]                    "directDependencies": [
[   +2 ms]                      "clock",
[   +5 ms]                      "meta",
[   +1 ms]                      "path"
[        ]                    ]
[        ]                  },
[   +5 ms]                  {
[        ]                    "name": "go_router",
[        ]                    "version": "14.8.1",
[        ]                    "kind": "direct",
[        ]                    "source": "hosted",
[        ]                    "dependencies": [
[        ]                      "collection",
[        ]                      "flutter",
[        ]                      "flutter_web_plugins",
[   +2 ms]                      "logging",
[        ]                      "meta"
[        ]                    ],
[        ]                    "directDependencies": [
[        ]                      "collection",
[        ]                      "flutter",
[        ]                      "flutter_web_plugins",
[        ]                      "logging",
[        ]                      "meta"
[        ]                    ]
[        ]                  },
[        ]                  {
[        ]                    "name": "flutter_riverpod",
[        ]                    "version": "2.6.1",
[   +4 ms]                    "kind": "direct",
[   +1 ms]                    "source": "hosted",
[        ]                    "dependencies": [
[        ]                      "collection",
[        ]                      "flutter",
[        ]                      "meta",
[        ]                      "riverpod",
[   +3 ms]                      "state_notifier"
[        ]                    ],
[        ]                    "directDependencies": [
[        ]                      "collection",
[        ]                      "flutter",
[        ]                      "meta",
[        ]                      "riverpod",
[        ]                      "state_notifier"
[        ]                    ]
[   +3 ms]                  },
[        ]                  {
[        ]                    "name": "flutter_localizations",
[        ]                    "version": "0.0.0",
[        ]                    "kind": "direct",
[   +1 ms]                    "source": "sdk",
[   +7 ms]                    "dependencies": [
[   +6 ms]                      "flutter",
[   +2 ms]                      "intl",
[        ]                      "characters",
[   +1 ms]                      "clock",
[   +1 ms]                      "collection",
[   +1 ms]                      "material_color_utilities",
[        ]                      "meta",
[        ]                      "path",
[        ]                      "vector_math"
[        ]                    ],
[        ]                    "directDependencies": [
[        ]                      "flutter",
[   +1 ms]                      "intl",
[        ]                      "characters",
[        ]                      "clock",
[        ]                      "collection",
[        ]                      "material_color_utilities",
[   +9 ms]                      "meta",
[   +5 ms]                      "path",
[   +1 ms]                      "vector_math"
[        ]                    ]
[   +4 ms]                  }
[        ]                ],
[        ]                "sdks": [
[        ]                  {
[        ]                    "name": "Dart",
[   +1 ms]                    "version": "3.7.0"
[        ]                  },
[        ]                  {
[        ]                    "name": "Flutter",
[        ]                    "version": "3.29.0"
[   +1 ms]                  }
[        ]                ],
[        ]                "executables": [
[        ]                  "build_runner",
[        ]                  "build_runner:graph_inspector"
[   +1 ms]                ]
[        ]              }
[   +4 ms]   [ +168 ms] Found plugin connectivity_plus at C:\Users\Bilawal
Mehfooz\AppData\Local\Pub\Cache\hosted\pub.dev\connectivity_plus-6.1.3\
[   +1 ms]   [ +107 ms] Found plugin flutter_plugin_android_lifecycle at C:\Users\Bilawal
Mehfooz\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_plugin_android_lifecycle-2.0.27\
[   +3 ms]   [  +22 ms] Found plugin geolocator at C:\Users\Bilawal
Mehfooz\AppData\Local\Pub\Cache\hosted\pub.dev\geolocator-13.0.3\
[   +1 ms]   [   +6 ms] Found plugin geolocator_android at C:\Users\Bilawal
Mehfooz\AppData\Local\Pub\Cache\hosted\pub.dev\geolocator_android-4.6.2\
[   +1 ms]   [   +6 ms] Found plugin geolocator_apple at C:\Users\Bilawal
Mehfooz\AppData\Local\Pub\Cache\hosted\pub.dev\geolocator_apple-2.3.13\
[   +2 ms]   [   +6 ms] Found plugin geolocator_web at C:\Users\Bilawal
Mehfooz\AppData\Local\Pub\Cache\hosted\pub.dev\geolocator_web-4.1.2\
[   +5 ms]   [   +2 ms] Found plugin geolocator_windows at C:\Users\Bilawal
Mehfooz\AppData\Local\Pub\Cache\hosted\pub.dev\geolocator_windows-0.2.4\
[        ]   [  +11 ms] Found plugin google_maps_flutter at C:\Users\Bilawal
Mehfooz\AppData\Local\Pub\Cache\hosted\pub.dev\google_maps_flutter-2.11.0\
[   +1 ms]   [+1379 ms] Found plugin google_maps_flutter_android at C:\Users\Bilawal
Mehfooz\AppData\Local\Pub\Cache\hosted\pub.dev\google_maps_flutter_android-2.15.0\
[   +1 ms]   [  +15 ms] Found plugin google_maps_flutter_ios at C:\Users\Bilawal
Mehfooz\AppData\Local\Pub\Cache\hosted\pub.dev\google_maps_flutter_ios-2.14.0\
[   +2 ms]   [   +8 ms] Found plugin google_maps_flutter_web at C:\Users\Bilawal
Mehfooz\AppData\Local\Pub\Cache\hosted\pub.dev\google_maps_flutter_web-0.5.12\
[   +1 ms]   [  +96 ms] Found plugin path_provider at C:\Users\Bilawal
Mehfooz\AppData\Local\Pub\Cache\hosted\pub.dev\path_provider-2.1.5\
[   +1 ms]   [   +2 ms] Found plugin path_provider_android at C:\Users\Bilawal
Mehfooz\AppData\Local\Pub\Cache\hosted\pub.dev\path_provider_android-2.2.16\
[   +1 ms]   [   +6 ms] Found plugin path_provider_foundation at C:\Users\Bilawal
Mehfooz\AppData\Local\Pub\Cache\hosted\pub.dev\path_provider_foundation-2.4.1\
[   +9 ms]   [   +2 ms] Found plugin path_provider_linux at C:\Users\Bilawal
Mehfooz\AppData\Local\Pub\Cache\hosted\pub.dev\path_provider_linux-2.2.1\
[   +2 ms]   [   +6 ms] Found plugin path_provider_windows at C:\Users\Bilawal
Mehfooz\AppData\Local\Pub\Cache\hosted\pub.dev\path_provider_windows-2.3.0\
[   +2 ms]   [ +556 ms] Found plugin integration_test at C:\src\flutter\packages\integration_test\
[   +1 ms]   [  +61 ms] gen_dart_plugin_registrant: Complete
[        ]   [   +7 ms] kernel_snapshot_program: Starting due to {}
[        ]   [  +24 ms] C:\src\flutter\bin\cache\dart-sdk\bin\dartaotruntime.exe
C:\src\flutter\bin\cache\dart-sdk\bin\snapshots\frontend_server_aot.dart.snapshot --sdk-root
C:\src\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --target=flutter --no-print-incremental-dependencies  
-DINTEGRATION_TEST_SHOULD_REPORT_RESULTS_TO_NATIVE=false -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts   
--track-widget-creation --packages D:\Flutter Apps\City Helper System\app\.dart_tool\package_config.json --output-dill      
D:\Flutter Apps\City Helper System\app\.dart_tool\flutter_build\13d3525a3dfc77a06060c9fc1c520cab\app.dill --depfile
D:\Flutter Apps\City Helper System\app\.dart_tool\flutter_build\13d3525a3dfc77a06060c9fc1c520cab\kernel_snapshot_program.d  
--incremental --initialize-from-dill D:\Flutter Apps\City Helper
System\app\.dart_tool\flutter_build\13d3525a3dfc77a06060c9fc1c520cab\app.dill --source
file:///D:/Flutter%20Apps/City%20Helper%20System/app/.dart_tool/flutter_build/dart_plugin_registrant.dart --source
package:flutter/src/dart_plugin_registrant.dart
-Dflutter.dart_plugin_registrant=file:///D:/Flutter%20Apps/City%20Helper%20System/app/.dart_tool/flutter_build/dart_plugin_registrant.dart --verbosity=error
file:///C:/Users/BILAWA~1/AppData/Local/Temp/flutter_tools.40228222/flutter_test_listener.82d28b29/listener.dart
00:30 +0: loading D:/Flutter Apps/City Helper System/app/integration_test/app_flow_test.dart                               [+14147 ms]   [+14331 ms] kernel_snapshot_program: Complete
00:32 +0: loading D:/Flutter Apps/City Helper System/app/integration_test/app_flow_test.dart                               [+1695 ms]   [+1695 ms] dart_build: Starting due to {}
[ +113 ms]   [ +113 ms] No packages with native assets. Skipping native assets compilation.
[   +3 ms]   [   +3 ms] dart_build: Complete
[  +22 ms]   [  +20 ms] install_code_assets: Starting due to {}
[   +3 ms]   [   +5 ms] Writing native assets json to
file:///D:/Flutter%20Apps/City%20Helper%20System/app/.dart_tool/flutter_build/13d3525a3dfc77a06060c9fc1c520cab/native_assets.json.
[  +14 ms]   [   +9 ms] Writing D:\Flutter Apps\City Helper
System\app\.dart_tool\flutter_build\13d3525a3dfc77a06060c9fc1c520cab\native_assets.json done.
[   +9 ms]   [   +5 ms] install_code_assets: Complete
[   +7 ms]   [  +16 ms] debug_bundle_windows-x64_assets: Starting due to {}
[ +322 ms]   [ +322 ms] Manifest contained wildcard assets. Inserting missing file into build graph to force rerun. for moreinformation see #56466.
[  +15 ms]   [  +15 ms] shaderc command: [C:\src\flutter\bin\cache\artifacts\engine\windows-x64\impellerc.exe, --sksl,
--runtime-stage-gles, --runtime-stage-gles3, --runtime-stage-vulkan, --iplr, --sl=D:\Flutter Apps\City Helper
System\app\build\flutter_assets\shaders/ink_sparkle.frag, --spirv=D:\Flutter Apps\City Helper
System\app\build\flutter_assets\shaders/ink_sparkle.frag.spirv,
--input=C:\src\flutter\packages\flutter\lib\src\material\shaders\ink_sparkle.frag, --input-type=frag,
--include=C:\src\flutter\packages\flutter\lib\src\material\shaders,
--include=C:\src\flutter\bin\cache\artifacts\engine\windows-x64\shader_lib]
00:33 +0: loading D:/Flutter Apps/City Helper System/app/integration_test/app_flow_test.dart                               [+1195 ms]   [+1195 ms] debug_bundle_windows-x64_assets: Complete
00:35 +0: loading D:/Flutter Apps/City Helper System/app/integration_test/app_flow_test.dart                               [+1322 ms]   [+1322 ms] Persisting file store
[  +31 ms]   [  +31 ms] Done persisting file store
[  +32 ms]   [  +32 ms] build succeeded.
[  +16 ms]   [  +16 ms] "flutter assemble" took 27,878ms.
[  +99 ms]   [ +100 ms] Running 1 shutdown hook
[   +3 ms]   [   +1 ms] Shutdown hooks complete
[ +269 ms]   [ +270 ms] exiting with code 0
[ +122 ms] FinalizeBuildStatus:
[   +1 ms]   Deleting file "x64\Debug\flutter_assemble\flutter_assemble.tlog\unsuccessfulbuild".
[        ]   Touching "x64\Debug\flutter_assemble\flutter_assemble.tlog\flutter_assemble.lastbuildstate".
[        ] Done Building Project "D:\Flutter Apps\City Helper System\app\build\windows\x64\flutter\flutter_assemble.vcxproj"(default targets).
[  +93 ms] Project "D:\Flutter Apps\City Helper System\app\build\windows\x64\runner\app.vcxproj" (4) is building "D:\FlutterApps\City Helper System\app\build\windows\x64\plugins\connectivity_plus\connectivity_plus_plugin.vcxproj" (6) on node 1     
(default targets).
[   +2 ms] Project "D:\Flutter Apps\City Helper
System\app\build\windows\x64\plugins\connectivity_plus\connectivity_plus_plugin.vcxproj" (6) is building "D:\Flutter        
Apps\City Helper System\app\build\windows\x64\flutter\flutter_wrapper_plugin.vcxproj" (7) on node 1 (default targets).      
[   +1 ms] PrepareForBuild:
[   +1 ms]   Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See     
https://aka.ms/cpp/structured-output for more details.
[   +5 ms] InitializeBuildStatus:
[   +2 ms]   Creating "flutter_wrapper_plugin.dir\Debug\flutter_.C48EC03C.tlog\unsuccessfulbuild" because "AlwaysCreate" wasspecified.
[   +3 ms]   Touching "flutter_wrapper_plugin.dir\Debug\flutter_.C48EC03C.tlog\unsuccessfulbuild".
[        ] CustomBuild:
[   +1 ms]   All outputs are up-to-date.
[ +101 ms] ClCompile:
[   +1 ms]   All outputs are up-to-date.
[  +42 ms] Lib:
[        ]   All outputs are up-to-date.
[   +2 ms]   flutter_wrapper_plugin.vcxproj -> D:\Flutter Apps\City Helper
System\app\build\windows\x64\flutter\Debug\flutter_wrapper_plugin.lib
[  +33 ms] FinalizeBuildStatus:
[   +4 ms]   Deleting file "flutter_wrapper_plugin.dir\Debug\flutter_.C48EC03C.tlog\unsuccessfulbuild".
[   +1 ms]   Touching "flutter_wrapper_plugin.dir\Debug\flutter_.C48EC03C.tlog\flutter_wrapper_plugin.lastbuildstate".      
[        ] Done Building Project "D:\Flutter Apps\City Helper
System\app\build\windows\x64\flutter\flutter_wrapper_plugin.vcxproj" (default targets).
00:36 +0: loading D:/Flutter Apps/City Helper System/app/integration_test/app_flow_test.dart                               [  +14 ms] PrepareForBuild:
[        ]   Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See     
https://aka.ms/cpp/structured-output for more details.
[   +2 ms] InitializeBuildStatus:
[        ]   Creating "connectivity_plus_plugin.dir\Debug\connecti.684640BA.tlog\unsuccessfulbuild" because "AlwaysCreate"  
was specified.
[   +1 ms]   Touching "connectivity_plus_plugin.dir\Debug\connecti.684640BA.tlog\unsuccessfulbuild".
[   +1 ms] CustomBuild:
[        ]   All outputs are up-to-date.
[  +26 ms] ClCompile:
[        ]   All outputs are up-to-date.
[  +46 ms] Link:
[   +1 ms]   All outputs are up-to-date.
[   +6 ms]   connectivity_plus_plugin.vcxproj -> D:\Flutter Apps\City Helper
System\app\build\windows\x64\plugins\connectivity_plus\Debug\connectivity_plus_plugin.dll
[  +12 ms] FinalizeBuildStatus:
[   +1 ms]   Deleting file "connectivity_plus_plugin.dir\Debug\connecti.684640BA.tlog\unsuccessfulbuild".
[   +4 ms]   Touching "connectivity_plus_plugin.dir\Debug\connecti.684640BA.tlog\connectivity_plus_plugin.lastbuildstate".  
[        ] Done Building Project "D:\Flutter Apps\City Helper
System\app\build\windows\x64\plugins\connectivity_plus\connectivity_plus_plugin.vcxproj" (default targets).
[  +48 ms] Project "D:\Flutter Apps\City Helper System\app\build\windows\x64\runner\app.vcxproj" (4) is building "D:\FlutterApps\City Helper System\app\build\windows\x64\flutter\flutter_wrapper_app.vcxproj" (8) on node 1 (default targets).
[   +1 ms] PrepareForBuild:
[        ]   Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See     
https://aka.ms/cpp/structured-output for more details.
[   +1 ms] InitializeBuildStatus:
[        ]   Creating "flutter_wrapper_app.dir\Debug\flutter_.BB069B8F.tlog\unsuccessfulbuild" because "AlwaysCreate" was   
specified.
[        ]   Touching "flutter_wrapper_app.dir\Debug\flutter_.BB069B8F.tlog\unsuccessfulbuild".
[   +1 ms] CustomBuild:
[        ]   All outputs are up-to-date.
[  +21 ms] ClCompile:
[   +1 ms]   All outputs are up-to-date.
[   +8 ms] Lib:
[        ]   All outputs are up-to-date.
[   +1 ms]   flutter_wrapper_app.vcxproj -> D:\Flutter Apps\City Helper
System\app\build\windows\x64\flutter\Debug\flutter_wrapper_app.lib
[  +45 ms] FinalizeBuildStatus:
[        ]   Deleting file "flutter_wrapper_app.dir\Debug\flutter_.BB069B8F.tlog\unsuccessfulbuild".
[        ]   Touching "flutter_wrapper_app.dir\Debug\flutter_.BB069B8F.tlog\flutter_wrapper_app.lastbuildstate".
[        ] Done Building Project "D:\Flutter Apps\City Helper
System\app\build\windows\x64\flutter\flutter_wrapper_app.vcxproj" (default targets).
[  +47 ms] Project "D:\Flutter Apps\City Helper System\app\build\windows\x64\runner\app.vcxproj" (4) is building "D:\FlutterApps\City Helper System\app\build\windows\x64\plugins\geolocator_windows\geolocator_windows_plugin.vcxproj" (9) on node 1   
(default targets).
[   +1 ms] PrepareForBuild:
[        ]   Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See     
https://aka.ms/cpp/structured-output for more details.
[   +5 ms] InitializeBuildStatus:
[        ]   Creating "geolocator_windows_plugin.dir\Debug\geolocat.64F97101.tlog\unsuccessfulbuild" because "AlwaysCreate" 
was specified.
[        ]   Touching "geolocator_windows_plugin.dir\Debug\geolocat.64F97101.tlog\unsuccessfulbuild".
[        ] CustomBuild:
[        ]   All outputs are up-to-date.
[  +23 ms] ClCompile:
[        ]   All outputs are up-to-date.
[  +17 ms] Link:
[        ]   All outputs are up-to-date.
[        ]   geolocator_windows_plugin.vcxproj -> D:\Flutter Apps\City Helper
System\app\build\windows\x64\plugins\geolocator_windows\Debug\geolocator_windows_plugin.dll
[  +20 ms] FinalizeBuildStatus:
[   +3 ms]   Deleting file "geolocator_windows_plugin.dir\Debug\geolocat.64F97101.tlog\unsuccessfulbuild".
[   +1 ms]   Touching "geolocator_windows_plugin.dir\Debug\geolocat.64F97101.tlog\geolocator_windows_plugin.lastbuildstate".[        ] Done Building Project "D:\Flutter Apps\City Helper
System\app\build\windows\x64\plugins\geolocator_windows\geolocator_windows_plugin.vcxproj" (default targets).
[  +20 ms] PrepareForBuild:
[        ]   Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See     
https://aka.ms/cpp/structured-output for more details.
[   +2 ms] InitializeBuildStatus:
[   +2 ms]   Creating "app.dir\Debug\app.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[   +2 ms]   Touching "app.dir\Debug\app.tlog\unsuccessfulbuild".
[        ] CustomBuild:
[        ]   All outputs are up-to-date.
[  +42 ms] ClCompile:
[        ]   C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\CL.exe /c
/I"D:\Flutter Apps\City Helper System\app\windows" /I"D:\Flutter Apps\City Helper System\app\windows\flutter\ephemeral"     
/I"D:\Flutter Apps\City Helper System\app\windows\flutter\ephemeral\cpp_client_wrapper\include" /I"D:\Flutter Apps\City     
Helper System\app\windows\flutter\ephemeral\.plugin_symlinks\connectivity_plus\windows\include" /I"D:\Flutter Apps\City     
Helper System\app\windows\flutter\ephemeral\.plugin_symlinks\geolocator_windows\windows\include" /Zi /nologo /W4 /WX        
/diagnostics:column /Od /Ob0 /D _UNICODE /D UNICODE /D WIN32 /D _WINDOWS /D _HAS_EXCEPTIONS=0 /D _DEBUG /D
"FLUTTER_VERSION=\"1.0.0+1\"" /D FLUTTER_VERSION_MAJOR=1 /D FLUTTER_VERSION_MINOR=0 /D FLUTTER_VERSION_PATCH=0 /D
FLUTTER_VERSION_BUILD=1 /D NOMINMAX /D UNICODE /D _UNICODE /D "CMAKE_INTDIR=\"Debug\"" /EHsc /RTC1 /MDd /GS /fp:precise     
/Zc:wchar_t /Zc:forScope /Zc:inline /GR /std:c++17 /Fo"app.dir\Debug\\" /Fd"app.dir\Debug\vc143.pdb" /external:W4 /Gd /TP   
/wd4100 /errorReport:queue "D:\Flutter Apps\City Helper System\app\windows\flutter\generated_plugin_registrant.cc"
"D:\Flutter Apps\City Helper System\app\windows\runner\flutter_window.cpp"
[ +130 ms]   generated_plugin_registrant.cc
[ +360 ms]   flutter_window.cpp
00:38 +0: loading D:/Flutter Apps/City Helper System/app/integration_test/app_flow_test.dart                               [+1206 ms]   Generating Code...
[ +146 ms] ResourceCompile:
[   +1 ms]   All outputs are up-to-date.
[  +17 ms] Link:
[   +9 ms]   C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\link.exe
/ERRORREPORT:QUEUE /OUT:"D:\Flutter Apps\City Helper System\app\build\windows\x64\runner\Debug\app.exe" /INCREMENTAL        
/ILK:"app.dir\Debug\app.ilk" /NOLOGO ..\flutter\Debug\flutter_wrapper_app.lib dwmapi.lib
..\plugins\connectivity_plus\Debug\connectivity_plus_plugin.lib
..\plugins\geolocator_windows\Debug\geolocator_windows_plugin.lib "D:\Flutter Apps\City Helper
System\app\windows\flutter\ephemeral\flutter_windows.dll.lib" kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib    
ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'"       
/manifest:embed /manifestinput:"D:\Flutter Apps\City Helper System\app\windows\runner\runner.exe.manifest" /DEBUG
/PDB:"D:/Flutter Apps/City Helper System/app/build/windows/x64/runner/Debug/app.pdb" /SUBSYSTEM:WINDOWS /TLBID:1
/DYNAMICBASE /NXCOMPAT /IMPLIB:"D:/Flutter Apps/City Helper System/app/build/windows/x64/runner/Debug/app.lib" /MACHINE:X64 
/machine:x64 app.dir\Debug\Runner.res
[   +2 ms]   app.dir\Debug\flutter_window.obj
[        ]   app.dir\Debug\main.obj
[        ]   app.dir\Debug\utils.obj
[        ]   app.dir\Debug\win32_window.obj
[        ]   app.dir\Debug\generated_plugin_registrant.obj
[ +475 ms]   app.vcxproj -> D:\Flutter Apps\City Helper System\app\build\windows\x64\runner\Debug\app.exe
[  +18 ms] FinalizeBuildStatus:
[        ]   Deleting file "app.dir\Debug\app.tlog\unsuccessfulbuild".
[   +1 ms]   Touching "app.dir\Debug\app.tlog\app.lastbuildstate".
[   +1 ms] Done Building Project "D:\Flutter Apps\City Helper System\app\build\windows\x64\runner\app.vcxproj" (default     
targets).
[  +24 ms] PrepareForBuild:
[        ]   Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See     
https://aka.ms/cpp/structured-output for more details.
[   +2 ms] InitializeBuildStatus:
[        ]   Creating "x64\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[        ]   Touching "x64\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild".
[   +2 ms] CustomBuild:
[   +2 ms]   All outputs are up-to-date.
[  +20 ms] FinalizeBuildStatus:
[   +1 ms]   Deleting file "x64\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild".
[        ]   Touching "x64\Debug\ALL_BUILD\ALL_BUILD.tlog\ALL_BUILD.lastbuildstate".
[        ] Done Building Project "D:\Flutter Apps\City Helper System\app\build\windows\x64\ALL_BUILD.vcxproj" (default      
targets).
[  +12 ms] PrepareForBuild:
[        ]   Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See     
https://aka.ms/cpp/structured-output for more details.
[   +5 ms] InitializeBuildStatus:
[   +1 ms]   Creating "x64\Debug\INSTALL\INSTALL.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[        ]   Touching "x64\Debug\INSTALL\INSTALL.tlog\unsuccessfulbuild".
[  +83 ms] CustomBuild:
[   +1 ms]   1>
00:39 +0: loading D:/Flutter Apps/City Helper System/app/integration_test/app_flow_test.dart                               [  +23 ms] PostBuildEvent:
[   +2 ms]   setlocal
[   +3 ms]   "C:\Program Files\Microsoft Visual
Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P
cmake_install.cmake
[   +2 ms]   if %errorlevel% neq 0 goto :cmEnd
[        ]   :cmEnd
[        ]   endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
[        ]   :cmErrorLevel
[        ]   exit /b %1
[        ]   :cmDone
[        ]   if %errorlevel% neq 0 goto :VCEnd
[   +2 ms]   :VCEnd
[ +230 ms]   -- Install configuration: "Debug"
[  +73 ms]   -- Up-to-date: D:/Flutter Apps/City Helper System/app/build/windows/x64/runner/Debug/data/icudtl.dat
[        ]   -- Up-to-date: D:/Flutter Apps/City Helper System/app/build/windows/x64/runner/Debug/flutter_windows.dll
[        ]   -- Up-to-date: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/connectivity_plus_plugin.dll
[        ]   -- Up-to-date: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/geolocator_windows_plugin.dll
[        ]   -- Up-to-date: D:/Flutter Apps/City Helper System/app/build/windows/x64/runner/Debug
[   +1 ms]   -- Installing: D:/Flutter Apps/City Helper System/app/build/windows/x64/runner/Debug/native_assets.json        
[  +22 ms]   -- Installing: D:/Flutter Apps/City Helper System/app/build/windows/x64/runner/Debug/data/flutter_assets
[   +1 ms]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/AssetManifest.bin
[   +1 ms]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/AssetManifest.bin.json
[   +1 ms]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/AssetManifest.json
[        ]   -- Installing: D:/Flutter Apps/City Helper System/app/build/windows/x64/runner/Debug/data/flutter_assets/assets[        ]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/assets/carousel_ads
[   +1 ms]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/assets/carousel_ads/image_1.jpg
[  +34 ms]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/assets/fonts
[   +2 ms]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/assets/fonts/Roboto-Regular.ttf
[   +1 ms]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/assets/images
[   +3 ms]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/assets/images/2.0x
[   +1 ms]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/assets/images/2.0x/flutter_logo.png
[        ]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/assets/images/3.0x
[   +1 ms]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/assets/images/3.0x/flutter_logo.png
[   +5 ms]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/assets/images/flutter_logo.png
[   +2 ms]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/assets/images/food
[        ]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/assets/images/food/image_1.jpg
[   +8 ms]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/assets/images/residence
[   +5 ms]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/assets/images/residence/image_1.jpg
[   +9 ms]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/assets/logo
[   +2 ms]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/assets/logo/app_logo.svg
[   +4 ms]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/FontManifest.json
[        ]   -- Installing: D:/Flutter Apps/City Helper System/app/build/windows/x64/runner/Debug/data/flutter_assets/fonts 
[   +6 ms]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/fonts/MaterialIcons-Regular.otf
[  +15 ms]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/kernel_blob.bin
[ +220 ms]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/NativeAssetsManifest.json
[   +3 ms]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/NOTICES
[   +6 ms]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/NOTICES.Z
[   +2 ms]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/shaders
[   +2 ms]   -- Installing: D:/Flutter Apps/City Helper
System/app/build/windows/x64/runner/Debug/data/flutter_assets/shaders/ink_sparkle.frag
[  +19 ms] FinalizeBuildStatus:
[   +1 ms]   Deleting file "x64\Debug\INSTALL\INSTALL.tlog\unsuccessfulbuild".
[   +1 ms]   Touching "x64\Debug\INSTALL\INSTALL.tlog\INSTALL.lastbuildstate".
[        ] Done Building Project "D:\Flutter Apps\City Helper System\app\build\windows\x64\INSTALL.vcxproj" (default        
targets).
[   +2 ms] Build succeeded.
[  +12 ms]     0 Warning(s)
[        ]     0 Error(s)
[        ] Time Elapsed 00:00:35.25
[  +84 ms] Building Windows application... (completed in 39.6s)
[   +3 ms] √ Built build\windows\x64\runner\Debug\app.exe
00:40 +0: loading D:/Flutter Apps/City Helper System/app/integration_test/app_flow_test.dart                               [ +448 ms] VM Service URL on device: http://127.0.0.1:53848/a_3dtcxN6Sc=/
[   +2 ms] test 0: Starting Dart Development Service
[   +2 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service at
http://127.0.0.1:53848/a_3dtcxN6Sc=/.
00:41 +0: loading D:/Flutter Apps/City Helper System/app/integration_test/app_flow_test.dart                               [ +872 ms] test 0: Dart Development Service started at http://127.0.0.1:53850/Xmx8aVRjcio=/, forwarding to VM service at     
http://127.0.0.1:53848/a_3dtcxN6Sc=/.
[   +1 ms] test 0: Connecting to vm service
[   +5 ms] test 0: VM Service uri is available at http://127.0.0.1:53850/Xmx8aVRjcio=/
[ +135 ms] test 0: Finding the correct isolate with the integration test service extension
[  +88 ms] test 0: connected to test device, now awaiting test result
[        ] test 0: Waiting for test harness or tests to finish
00:50 +4: (tearDownAll)                                                                                                    [+9556 ms] test 0: Test harness is no longer needed by test process
[   +1 ms] test 0: finished
[   +2 ms] test 0: cleaning up...
[   +1 ms] test 0: ensuring test device is terminated.
[   +2 ms] test 0: Test process is no longer needed by test harness
[   +2 ms] test 0: deleting temporary directory
[   +5 ms] test 0: finished
00:51 +4: All tests passed!
[ +531 ms] test package returned with exit code 0
[  +29 ms] Runtime for phase TestRunner: Wall-clock: 0:00:51.785799; combined: 0:00:51.785828.
[   +6 ms] Runtime for phase Compile: Wall-clock: 0:00:00.000000; combined: 0:00:00.000000.
[        ] Runtime for phase Run: Wall-clock: 0:00:50.925837; combined: 0:00:50.925890.
[   +1 ms] Runtime for phase CoverageTotal: Wall-clock: 0:00:00.000000; combined: 0:00:00.000000.
[   +4 ms] Runtime for phase CoverageCollect: Wall-clock: 0:00:00.000000; combined: 0:00:00.000000.
[   +1 ms] Runtime for phase CoverageParseJson: Wall-clock: 0:00:00.000000; combined: 0:00:00.000000.
[        ] Runtime for phase CoverageAddHitmap: Wall-clock: 0:00:00.000000; combined: 0:00:00.000000.
[   +6 ms] Runtime for phase CoverageDataCollect: Wall-clock: 0:00:00.000000; combined: 0:00:00.000000.
[   +3 ms] Runtime for phase WatcherFinishedTest: Wall-clock: 0:00:00.000137; combined: 0:00:00.000140.
[  +32 ms] "flutter test" took 67,395ms.
[ +155 ms] Running 4 shutdown hooks
[   +4 ms] Shutdown hooks complete
[ +269 ms] exiting with code 0
PS D:\Flutter Apps\City Helper System\app> 

Flutter Doctor output

Doctor output
C:\Users\Bilawal Mehfooz>flutter doctor -v
[√] Flutter (Channel stable, 3.29.0, on Microsoft Windows [Version 10.0.19045.5737], locale en-GB) [809ms]
    • Flutter version 3.29.0 on channel stable at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 35c388afb5 (2 months ago), 2025-02-10 12:48:41 -0800
    • Engine revision f73bfc4522
    • Dart version 3.7.0
    • DevTools version 2.42.2

[√] Windows Version (10 Pro 64-bit, 22H2, 2009) [3.7s]

[√] Android toolchain - develop for Android devices (Android SDK version 35.0.1) [4.7s]
    • Android SDK at C:\Android\sdk
    • Platform android-35, build-tools 35.0.1
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.5+-13047016-b750.29)
    • All Android licenses accepted.

[√] Chrome - develop for the web [160ms]
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.13.1) [158ms]
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.13.35818.85
    • Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2024.2) [33ms]
    • Android Studio at C:\Program Files\Android\Android Studio
    • 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 21.0.5+-13047016-b750.29)

[√] VS Code (version 1.99.3) [30ms]
    • VS Code at C:\Users\Bilawal Mehfooz\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.108.0

[√] Connected device (3 available) [466ms]
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19045.5737]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 135.0.7049.96
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 135.0.3179.85

[√] Network resources [1,377ms]
    • All expected network resources are available.

• No issues found!
@darshankawar
Copy link
Member

Thanks for the detailed report @Bilawal-Mehfooz-Malik
I believe your case is same as the issue you linked and a workaround seems to be as mentioned #149209 (comment) that you can try and confirm to see if it works in your case or not.

@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Apr 28, 2025
@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Apr 28, 2025
@Bilawal-Mehfooz-Malik
Copy link
Author

Thanks for the detailed report @Bilawal-Mehfooz-Malik I believe your case is same as the issue you linked and a workaround seems to be as mentioned #149209 (comment) that you can try and confirm to see if it works in your case or not.

Thanks for your reponse @darshankawar

I tried the workaround, but it is not producing the expected results. Instead of using tester.view.physicalSize = const Size(300, 700), I am using await tester.binding.setSurfaceSize(const Size(300, 700)). The expected behavior was to simulate a small device screen like a typical mobile phone and get this UI:
Image

However, the actual UI I am seeing appears to be the larger screen layout simply scaled down:
Image

Here is the attached video of what i am getting:
Video

In my code, I display different UIs based on the screen size determined by MediaQuery.sizeOf(context). Here’s the relevant widget:

Widget build(BuildContext context) {
    final size = MediaQuery.sizeOf(context);
    final width = size.width;
    final height = size.height;

    final screenType = ScreenType.determine(width: width, height: height);

    // Auto-close bottom sheet on large screens
    if (screenType == ScreenType.desktop || screenType == ScreenType.tablet) {
      if (_isBottomSheetVisible) {
        _controller?.close();
      }
    }

    return Scaffold(
      key: _scaffoldKey,
      body: SafeArea(
        child: switch (screenType) {
          ScreenType.smallHeight => ResponsiveScrollable(
            padding: const EdgeInsets.all(Sizes.p16),
            child: StartupContent(
              isLargeScreen: false,
              onGetStarted: _openBottomSheet,
            ),
          ),
          ScreenType.mobile => Padding(
            padding: const EdgeInsets.all(Sizes.p16),
            child: StartupContent(
              useSpacer: true,
              isLargeScreen: false,
              onGetStarted: _openBottomSheet,
            ),
          ),
          ScreenType.tablet => ResponsiveCenter(
            showCard: true,
            paddingInsideCard: const EdgeInsets.all(Sizes.p24),
            child: ResponsiveTwoColumnLayout(
              spacing: Sizes.p16,
              rowLayoutOnly: true,
              startContent: StartupContent(
                isLargeScreen: true,
                onGetStarted: _openBottomSheet,
              ),
              endContent: const GetLocationContent(isLargeScreen: true),
            ),
          ),
          ScreenType.desktop => ResponsiveCenter(
            showCard: true,
            paddingInsideCard: const EdgeInsets.all(Sizes.p48),
            child: ResponsiveTwoColumnLayout(
              spacing: Sizes.p32,
              rowLayoutOnly: true,
              startContent: StartupContent(
                isLargeScreen: true,
                onGetStarted: _openBottomSheet,
              ),
              endContent: const GetLocationContent(),
            ),
          ),
        },
      ),
    );
  }
}

Here’s how the screen type is determined:

class Breakpoint {
  static const double desktop = 840;
  static const double tablet = 600;
  static const double mobile = 300;
  static const double smallHeight = 450;
}

enum ScreenType {
  desktop(Breakpoint.desktop),
  tablet(Breakpoint.tablet),
  mobile(Breakpoint.mobile),
  smallHeight(Breakpoint.smallHeight);

  const ScreenType(this.value);

  final double value;

  factory ScreenType.determine({
    required double width,
    required double height,
  }) {
    if (height < Breakpoint.smallHeight) {
      return ScreenType.smallHeight;
    } else if (width >= Breakpoint.desktop) {
      return ScreenType.desktop;
    } else if (width >= Breakpoint.tablet) {
      return ScreenType.tablet;
    } else {
      return ScreenType.mobile;
    }
  }
}

Both of the above screenshots in start are golden images generated by this golden test setup:

@isTest
Future<Robot> _setupGoldenTestEnvironment(
  WidgetTester tester,
  Size size,
) async {
  final r = Robot(tester);
  await r.golden.setSurfaceSize(size);
  await r.golden.loadRobotoFont();
  await r.golden.loadMaterialIconFont();
  await r.pumpMyApp();
  await r.golden.precacheImages();
  return r;
}

void main() {
  final kMobileSize = Size(350, 600);
  final kDesktopSize = Size(1000, 1000);

  group('Golden - Startup Screen', () {
    testWidgets('Get Current Location (Mobile)', (tester) async {
      final r = await _setupGoldenTestEnvironment(tester, kMobileSize);
      await expectLater(
        find.byType(MyApp),
        matchesGoldenFile('startup/Mobile/1_startup_screen.png'),
      );
      await r.startupRobot.tapGetStartedButton();
      r.startupRobot.expectModalBottomSheet();
      await expectLater(
        find.byType(MyApp),
        matchesGoldenFile('startup/Mobile/2_bottom_sheet_opened.png'),
      );
      await r.startupRobot.tapGetCurrentButton();
      await expectLater(
        find.byType(MyApp),
        matchesGoldenFile('startup/Mobile/3_saved_current_location.png'),
      );
      await r.startupRobot.tapSaveButton();
      await expectLater(
        find.byType(MyApp),
        matchesGoldenFile('startup/Mobile/4_categories_list_screen.png'),
      );
    }, tags: ['golden']);

    testWidgets('Get Current Location (Desktop)', (tester) async {
      final r = await _setupGoldenTestEnvironment(tester, kDesktopSize);
      await expectLater(
        find.byType(MyApp),
        matchesGoldenFile('startup/Desktop/1_startup_screen.png'),
      );
      await r.startupRobot.tapGetCurrentButton();
      await expectLater(
        find.byType(MyApp),
        matchesGoldenFile('startup/Desktop/2_saved_current_location.png'),
      );
      await r.startupRobot.tapSaveButton();
      await expectLater(
        find.byType(MyApp),
        matchesGoldenFile('startup/Desktop/3_categories_list_screen.png'),
      );
    }, tags: ['golden']);
  });
}

@darshankawar
Copy link
Member

Thanks for the details. I think the root-cause seems to be same as discussed in the linked issue.
Can you provide us only minimal but complete reproducible code sample without third party implementations such as riverpod ?

@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Apr 29, 2025
@Bilawal-Mehfooz-Malik
Copy link
Author

Thanks for the details. I think the root-cause seems to be same as discussed in the linked issue. Can you provide us only minimal but complete reproducible code sample without third party implementations such as riverpod ?

Sorry for delayed response. I created a github repo of the project without third party packages. You can clone it from here https://github.com/Bilawal-Mehfooz-Malik/test

The test is in integration_test/app_flow_test.dart

Looking forward for your reponse

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Apr 30, 2025
@darshankawar
Copy link
Member

Thanks for the update. Using the repo, I was able to replicate the reported behavior, although as discussed in earlier thread, this is very closely related to #149209, the root-cause seems to be #149209 (comment), but the workaround mentioned #149209 (comment) doesn't seem to work properly for small screen UI.
So based on these findings and earlier verification, I'll keep the issue open and label for team's tracking.

stable : 3.29.3
master : 3.32.0-1.0.pre.375

@darshankawar darshankawar added framework flutter/packages/flutter repository. See also f: labels. f: integration_test The flutter/packages/integration_test plugin has reproducible steps The issue has been confirmed reproducible and is ready to work on team-framework Owned by Framework team found in release: 3.29 Found to occur in 3.29 found in release: 3.32 Found to occur in 3.32 and removed in triage Presently being triaged by the triage team labels May 2, 2025
@justinmc justinmc added P2 Important issues not at the top of the work list triaged-framework Triaged by Framework team labels May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f: integration_test The flutter/packages/integration_test plugin found in release: 3.29 Found to occur in 3.29 found in release: 3.32 Found to occur in 3.32 framework flutter/packages/flutter repository. See also f: labels. has reproducible steps The issue has been confirmed reproducible and is ready to work on P2 Important issues not at the top of the work list team-framework Owned by Framework team triaged-framework Triaged by Framework team
Projects
None yet
Development

No branches or pull requests

3 participants