flutterbench / prompts.jsonl
NoirZangetsu's picture
Upload FlutterBench public prompts and rubrics
3550b43 verified
Raw
History Blame Contribute Delete
490 kB
{"difficulty": "medium", "id": "seed_000044", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter application, how to write automated UI tests for a accessibility -oriented sliding component (SLIDER) to verify that critical features such as default value, interaction and semantic labels are applied correctly and work as expected?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1_200_eng.csv", "repo": null, "row_in_file": "44", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_000048", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter Widget tests, how do you render a particular `UseCase` class wrapped in a `MaterialApp` and a `Builder` widget to create a suitable structure for the test environment?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1_200_eng.csv", "repo": null, "row_in_file": "48", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_000051", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How to automate the deactivated/enabled situations, text scaling behavior, semantic labels and headings covering, in order to automate accessibility tests and especially to verify the accessibility properties of Textfield components, are applied?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1_200_eng.csv", "repo": null, "row_in_file": "51", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_000071", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In the Flutter test environment, if different types of exceptions (String, FlutterError, and uncaught Future error) are thrown, how do we write test scenarios to show how the tests behave?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1_200_eng.csv", "repo": null, "row_in_file": "71", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_000083", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, what kind of integration test is designed to measure and compare the ListView's scrolling performance (the number of Janky frames, the average absolute shake, the number of frames) at different screen renewal rates (59Hz and 90Hz) and the frame re-sampling?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1_200_eng.csv", "repo": null, "row_in_file": "83", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_000084", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter application, how can I configure the integration test results (especially shift fluency data) in a legible and analyzable format (eg JSON) to write the Integration Test Driver to write to a file called`scroll_smoothness_test`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1_200_eng.csv", "repo": null, "row_in_file": "84", "status": "P1_partial", "type": "seed"}, "task_type": "api_usage"}
{"difficulty": "easy", "id": "seed_000113", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How to create a full-screen textfield (textfield), which contains too many text and emojis (both family emojis and various facial expressions and hand movements) in Flutter, is created and a unique key to this text field?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1_200_eng.csv", "repo": null, "row_in_file": "113", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_000140", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do you implement a performance benchmark in Flutter using `SceneBuilder` to perform dynamic clipping on a static picture containing pre-rendered text paragraphs?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1_200_eng.csv", "repo": null, "row_in_file": "140", "status": "P1_partial", "type": "seed"}, "task_type": "api_usage"}
{"difficulty": "hard", "id": "seed_000155", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How is this benchmark test designed and applied to measure and optimize text drawing performance by drawing a large number of single -line and multi -line paragraphs to overflow outside the screen, using`Scenebuilder`and`Canvas`in Flutter?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1_200_eng.csv", "repo": null, "row_in_file": "155", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_000162", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter application, how do you automate the performance testing of complex animated opacity changes (e.g., square speed, shake) for the `animated_complex_opacity_perf` route, using a 1-second page load delay and a 10-second test duration?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1_200_eng.csv", "repo": null, "row_in_file": "162", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_000171", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how to measure the performance of a full screen text field (5 seconds after touched) called`FullScreen_Textfield_Perf`with E2E Macro Performance Test) and how to report the results of this test with the`Macroperfteste2e`auxiliary function?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1_200_eng.csv", "repo": null, "row_in_file": "171", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_000173", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter application, how do you write a multi-page macro performance test called 'gradient_dynamic_perf' that measures gradient performance, navigating between the routes 'kGradientPerfRouteName' and 'kGradientPerfRecreateDynamicRouteName' (using scrollables 'kScrollableName' and 'kGradientPerfScrollableName'), where each page is operated for 1 second, for a total duration of 10 seconds?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1_200_eng.csv", "repo": null, "row_in_file": "173", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_000177", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you write a macro performance test for the opacity peephole column of alpha save layer rows using the macrobenchmarks package?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1_200_eng.csv", "repo": null, "row_in_file": "177", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_000178", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter macrobenchmark test, how do you implement a multi-page end-to-end performance test (`macroPerfTestMultiPageE2E`) for 'opacity_peephole_col_of_rows_perf' using the scrollable routes `kScrollableName` to `kOpacityPeepholeRouteName` and `kOpacityScrollableName` to `kOpacityPeepholeOpacityOfColOfRowsRouteName`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1_200_eng.csv", "repo": null, "row_in_file": "178", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_000179", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter application, how do you write a multi-page macro performance test named 'opacity_peephole_fade_transition_text_perf' that uses the scroll areas `kScrollableName` and `kOpacityScrollableName` with the routes 'Opacity Peephole' and 'Opacity Peephole Fade Transition Text', and runs for a total duration of 10 seconds?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1_200_eng.csv", "repo": null, "row_in_file": "179", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_000181", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do we perform the end-to-end performance test automation using `macroPerfTestMultiPageE2E` for the `opacity_peephole_grid_of_opacity_perf` page, with a 1-second page delay and a 10-second test duration, and which scrollable button routes (`ScrollableButtonRoute`) are used during this test?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1_200_eng.csv", "repo": null, "row_in_file": "181", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_000182", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter application, how do I define the E2E test configuration for the `opacity_peephole_one_rect_perf` macro performance test? The test should switch between the `kOpacityPeepholeRouteName` and `kOpacityPeepholeOneRectRouteName` routes, spending 1 second on each route, for a total duration of 10 seconds.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1_200_eng.csv", "repo": null, "row_in_file": "182", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_000183", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How to create an end-to-end performance test that measures the performance of a Flutter application for two different routes containing opacity and scrollable widgets, and records these measurements using the `macroPerfTestMultiPageE2E` function?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1_200_eng.csv", "repo": null, "row_in_file": "183", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_000185", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter macrobenchmark, how do you configure and execute an end-to-end performance test for raster cache memory usage (`raster_cache_use_memory_perf`) using `kRasterCacheUseMemory` with a 1-second page delay and a 10-second duration?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1_200_eng.csv", "repo": null, "row_in_file": "185", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_000187", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Using the Flutter Macrobenchmark test, how to write a test to measure the performance of a touch with a Textfield Widget carrying the`Basic-Textfield`switch and observe that the application remains unresponsively for 5 seconds after this touch?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1_200_eng.csv", "repo": null, "row_in_file": "187", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_000192", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter application, how do you write a macro benchmark test that waits for an `AnimatedImage` widget to reach its 250th frame?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1_200_eng.csv", "repo": null, "row_in_file": "192", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_000194", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do I write a Flutter macro performance test named 'animated_placeholder_perf' using the route 'kAnimatedPlaceholderRouteName', with a 1-second page delay and a 5-second test duration, using the minimum code?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1_200_eng.csv", "repo": null, "row_in_file": "194", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_000196", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In the Flutter application, how to create an macro performance test with a one -second page delay and ten -second test time using the route`kbackdropfilterroutename`named`backdrop_filter_perf`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1_200_eng.csv", "repo": null, "row_in_file": "196", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_000198", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "\"In Flutter application, how to create a test that measures the animation performance with a macro benchmark test by navigation on the'cubic_bezier_perf'route called'Cubic_bezier_perf'route?\"", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1_200_eng.csv", "repo": null, "row_in_file": "198", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_000218", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter application, how do you create a macro performance test with a 10-second page delay and a 10-second test time using the 'kSimpleAnimationRouteName' route called 'simple_animation_perf'?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_201_400_eng.csv", "repo": null, "row_in_file": "18", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_000219", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter application, how do you create a Slider Performance Macro Benchmark Test that uses the route 'sliders_perf' and the route name `kSlidersRouteName`, with a 1-second page delay and a 10-second test duration?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_201_400_eng.csv", "repo": null, "row_in_file": "19", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_000220", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, a macro comparison test to measure text field performance (touch response, keyboard opening, etc.) by waiting for 5 seconds after touching a text field with a \"Basic-Textfield\" switch?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_201_400_eng.csv", "repo": null, "row_in_file": "20", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_000285", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In the Flutter application, how to create a page that can dynamically display detailed stock information (symbol, last sales price, percentage change, market value) for a particular stock market symbol (for example, \"AAPL\"), show the loading status and represent the share of stock with an animated arrow and how do you design this page in different contexts (for example, full screen and sub-page)?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_201_400_eng.csv", "repo": null, "row_in_file": "85", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_000306", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How to create a command line tool to archive the Flutter SDK to a specified output directory and optionally upload it to the Google Cloud Storage by using a temporary directory with a certain git revision and branch?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_201_400_eng.csv", "repo": null, "row_in_file": "106", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_000307", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we develop a tool that you can create a specific flutter version (specified with Commit hash) and its branch, based on the operating system (Linux, MacOS, Windows) and Dart Architecture (X64, ARM), including pre-compiled and cache SDK archives?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_201_400_eng.csv", "repo": null, "row_in_file": "107", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_000366", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In the Dart test environment, assuming the `FLUTTER_SDK_PATH_WITH_SPACE` environment variable is set to a Flutter SDK path containing a space, write a test to verify how this affects path splitting when the current working directory also contains a space.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_201_400_eng.csv", "repo": null, "row_in_file": "166", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_000372", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How to create an application skeleton that manages different Flutter Check-Outs, launches, cleanses, lists the versions and transition to the next version to create a command line interface (CLI)-based tool to manage and coordinate Flutter SDK versions, and how to transition to the next version?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_201_400_eng.csv", "repo": null, "row_in_file": "172", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_000383", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Create a Dart class `PackageAutoroller` that automatically updates package dependencies for the Flutter framework, regenerates Gradle lockfiles, and creates a pull request on GitHub.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_201_400_eng.csv", "repo": null, "row_in_file": "183", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_000409", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Dart/Flutter tests, how can we expose the `isA` matcher from the `test` package under the alias `isInstanceOf`, while re-exporting all other functions of the `test` package?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_401_600_eng.csv", "repo": null, "row_in_file": "9", "status": "P1_partial", "type": "seed"}, "task_type": "api_usage"}
{"difficulty": "hard", "id": "seed_000459", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "What is the code required to create an end-to-end test that evaluates the performance of the color filter with an unstable child element on Android devices in Flutter Devicelab?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_401_600_eng.csv", "repo": null, "row_in_file": "59", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_000634", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "On the iOS platform of the Flutter application, the IMPELLER GRAPHIC MOTOR is activated, while we can apply this scenario as an automated test to measure and analyze its performance in a complex scrolling scenario containing non-intersecting UIKITViews, and how to record the performance metrics (for example, the average framework time, the frame reduction rate), so we can record and report this scenario. Can we determine potential performance bottles and improvement areas in complex interfaces?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_601_800_eng.csv", "repo": null, "row_in_file": "34", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_000637", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Dart script using the `flutter_devicelab` framework to run a combined task of APK plugin tests. The task should test the following Android configurations: a Java plugin, a Kotlin plugin, a Dart-only plugin, and an FFI plugin template.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_601_800_eng.csv", "repo": null, "row_in_file": "37", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_000643", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Flutter devicelab task to test the `flutter drive --route` command on an iOS device. The task should run the integration test located at `dev/integration_tests/ui/lib/route.dart` on the target device, directing it to the route `/smuggle-it`, and verify that the process completes successfully.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_601_800_eng.csv", "repo": null, "row_in_file": "43", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_000697", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Dart script to upload Flutter performance test results to Skia Perf using the `metrics_center` package. Implement the following functions:\n1. `connectFlutterDestination()`: Connects to the Flutter destination using environment variables (`IS_TESTING`, `TOKEN_PATH`, `GCP_PROJECT`, `BENCHMARK_GCP_CREDENTIALS`).\n2. `parse()`: Parses the results JSON and benchmark tags into a list of `MetricPoint` objects.\n3. `upload()`: Uploads the metric points with the given commit timestamp and task name.\n4. `uploadToSkiaPerf()`: Orchestrates the reading of the results file, parsing, and uploading.\n5. `metricFileName()`: Generates a formatted metric file name based on task name and benchmark tags.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_601_800_eng.csv", "repo": null, "row_in_file": "97", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_000703", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Dart, how do you design a reusable, asynchronous function (e.g., `readJsonResults`) that processes the stdout and stderr streams of a running `Process`? The function should extract JSON data delimited by specific start, end, and prefix markers, handle process lifecycle events (such as intentionally terminating the process upon detecting a completion marker), and implement robust error handling for JSON parsing and non-zero process exit codes.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_601_800_eng.csv", "repo": null, "row_in_file": "103", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_000727", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we implement a custom `isInstanceOf<T>()` matcher using `isA<T>()` from the Dart `test` package, while exporting the package and hiding the deprecated built-in `isInstanceOf`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_601_800_eng.csv", "repo": null, "row_in_file": "127", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_000730", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In the Flutter Devicelab test environment, how can we design and implement a test scenario to verify that the `HostAgent` class correctly resolves the dump directory from the `FLUTTER_LOGS_DIR` environment variable, handling both cases where the variable is set and where it is absent?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_601_800_eng.csv", "repo": null, "row_in_file": "130", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_000734", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter Devicelab, how can we write a test suite to evaluate the reliability of `run.dart`? Specifically, we need to test rerun mechanisms (e.g., a test passing on the first attempt, and a test failing all reruns) and ensure that task results are successfully received before the task process shuts down, even under parallel execution, to prevent issues like race conditions, RPC errors, and timeouts.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_601_800_eng.csv", "repo": null, "row_in_file": "134", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_000736", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do you write unit tests to verify that the `TaskResult` class in Flutter Devicelab correctly serializes and deserializes JSON, preserving the structure for success (with and without data) and failure scenarios?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_601_800_eng.csv", "repo": null, "row_in_file": "136", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_000756", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can I dynamically place a platform view on a Stack and control its visibility using two different TextButtons with different visual features, managing their dimensions and positions to show/hide the platform view?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_601_800_eng.csv", "repo": null, "row_in_file": "156", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_000760", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, when hosting a native Android view (such as a color-changing button) and creating a full-screen (immersive mode) application suitable for automated testing with Flutter Driver, we can use the `android_driver_extensions` package to enable interaction with native driver commands. What configurations are needed at the start of the application, including hiding the debug banner, and how do you write a complete `main()` function that performs these configurations?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_601_800_eng.csv", "repo": null, "row_in_file": "160", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_000761", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Considering that a Flutter application uses local plugins specific to the Android platform, running it on other platforms may lead to incompatibility issues. How do you design the `ensureAndroidDevice()` function to verify during application initialization whether the code is running on Android, and if not, throw an error explaining this limitation (such as native dependencies) to prevent accidental execution on non-Android platforms?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_601_800_eng.csv", "repo": null, "row_in_file": "161", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_000763", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can I extend Flutter's `matchesGoldenFile` matcher to support automatic retries (e.g., `matchesGoldenFileWithRetries`) to handle transient issues like minor rendering differences or network delays? The design should allow configuring the number of retries, printing error messages on failure, and handling the asynchronous nature of golden file matching.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_601_800_eng.csv", "repo": null, "row_in_file": "163", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_000779", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Using the Integration Test Framework and a Special Method Channel to test Android accessibility features in flute applications, different UI components (Textfield, Checkbox, Radio, Switch, Popupmenubutton, dropdownbutton, Alertdialog, Appar) Ischecked, Ischeckable, Isenabled, Isfocusable, Isfocuseed, Ispassword, Action, Ignoreredctions, Text, ContentDescriptions, Isheading) and how to confirm the expected user interactions (touch, text input, selection, etc.), the test results to improve the test results. How can we configure the scenarios and provide the automation of these tests?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_601_800_eng.csv", "repo": null, "row_in_file": "179", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_000781", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we design a reusable and expandable test application architecture to test and display different UI components (such as selection controls, popups, text fields, and headings)? The architecture should define the route of each component page in a `Map<String, WidgetBuilder>` and use these routes on the home page to dynamically build a list of `MaterialButton` widgets for navigation.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_601_800_eng.csv", "repo": null, "row_in_file": "181", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_000783", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "When developing accessibility tests or automation frameworks specific to the Android platform in Flutter, how would you design the platform-specific messaging or command mechanism? Specifically, how would you define `AndroidClassName` and `AndroidSemanticsAction` to facilitate interactions with local Android UI elements (e.g., Checkbox, Button) and Semantics Actions (e.g., click, scroll forward), standardize messaging, and prevent misuse?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_601_800_eng.csv", "repo": null, "row_in_file": "183", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_000803", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we systematically test and evaluate basic message exchange scenarios across both known and unknown Flutter platform channels using a custom `ExtendedStandardMessageCodec` (supporting `DateTime` and `Pair` types) as well as standard codecs (`BinaryCodec`, `StringCodec`, `JSONMessageCodec`) in both foreground and background isolates?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_801_1000_eng.csv", "repo": null, "row_in_file": "3", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_000805", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do you design a `Pair` class in Dart that holds two dynamic values (left and right), ensures immutability, and provides a readable `toString()` representation?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_801_1000_eng.csv", "repo": null, "row_in_file": "5", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_000817", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In order to delay the initiation of the Flutter application and the display of GalleryApp and to test the performance potentially, design a pre-loading process that allocates large amounts of memory at regular intervals and releases this memory after a while; This process must have adjustable parameters to measure the degree of memory pressure affecting the launch of GalleryApp, and these parameters should include: The amount of memory allocated, frequency of allocation and release timing.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_801_1000_eng.csv", "repo": null, "row_in_file": "17", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_000818", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter application, how do you create a single central export file (barrel file) to make multiple UI/UX demo files (such as animation, calculator, colors, contacts, cupertino, fortnightly, images, material, pesto, shrine, transformations, typography, and video) easily accessible and reusable across the app?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_801_1000_eng.csv", "repo": null, "row_in_file": "18", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_000827", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Create a customizable and scrollable contact details screen in Flutter using a SliverAppBar. The screen should group communication categories (like phone, email, address, and events) using reusable widgets (`_ContactCategory` and `_ContactItem`). It should support different AppBar behaviors (pinned, floating, snapping) and use a custom theme (e.g., Indigo color scheme). Each action (like sending a message or opening a map) should trigger a snackbar notification.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_801_1000_eng.csv", "repo": null, "row_in_file": "27", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_000838", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can I design an iOS-style interface in Flutter using the `CupertinoTextField` widget to create a comprehensive sample application? The application should demonstrate various configurations (such as prefixes, keyboard types, text capitalization, autocorrect, obscured text, default values, and clear buttons) across different scenarios like name, email, location, PIN entry, tags, and chat messages.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_801_1000_eng.csv", "repo": null, "row_in_file": "38", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_000860", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter application containing multiple demo files (such as `backdrop_demo.dart`, `banner_demo.dart`, etc.), how can we create a single entry point (barrel file) to export all these components and make them easily accessible to the main application to ensure scalability?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_801_1000_eng.csv", "repo": null, "row_in_file": "60", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_000878", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Implement the main `ShrineApp` widget and theme configuration for the Flutter Shrine material design study. The app should configure a `MaterialApp` with a custom `ThemeData` (including `kShrineColorScheme` and a custom text theme), an initial route for login, and a home page that uses a `Backdrop` widget controlled by an `AnimationController`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_801_1000_eng.csv", "repo": null, "row_in_file": "78", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_000881", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter application, how to create and construct a dart file that defines and describes these color values ​​as`Color`objects in order to create a predetermined and consistent color palette, to re-use this color palette in different parts of the application, and to control how to affect the general appearance of the application?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_801_1000_eng.csv", "repo": null, "row_in_file": "81", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_000882", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Implement an animated, expandable bottom sheet shopping basket in Flutter using Scoped Model for state management. The implementation should optimize performance and support different screen sizes. Separate the code into reusable components: ExpandingBottomSheet, ProductThumbnailRow, ExtraProductsNumber, ProductThumbnail, and a helper _ListModel.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_801_1000_eng.csv", "repo": null, "row_in_file": "82", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_000883", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we design a home screen architecture for a product catalog application where the `HomePage` widget displays a background, foreground, and an expanding bottom sheet, while the `ProductPage` widget dynamically fetches the product list using `ScopedModelDescendant` with `AppStateModel`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_801_1000_eng.csv", "repo": null, "row_in_file": "83", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_000884", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Using Flutter, design a customized login page for a 'Shrine' themed application with username and password input fields. The page should include the 'Shrine' logo and title, a special color palette using `kShrineBrown900`, and beveled-edged text fields and buttons (using basic Flutter widgets instead of custom design system components). Implement a custom AppBar with a back button, and define the functionality for the 'Cancel' and 'Next' buttons to return to the previous page.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_801_1000_eng.csv", "repo": null, "row_in_file": "84", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_000885", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we implement an AppStateModel using the scoped_model package in Flutter to manage an e-commerce application's state? The model should support listing products, filtering by category, adding/removing products to/from a basket, clearing the basket, and calculating the total cost (including subtotal, shipping fee, and tax). It should load products from a `products_repository.dart` file and handle cases where the available products list is null or empty.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_801_1000_eng.csv", "repo": null, "row_in_file": "85", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_000888", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you design a custom themed shopping cart UI that displays products, shows summary information (subtotal, shipping, tax, total), and supports clearing the cart and removing items? Implement this using `scoped_model` for state management with `ShoppingCartPage`, `ShoppingCartSummary`, and `ShoppingCartRow` widgets, integrated with an `ExpandingBottomSheet`, using specific color palettes (such as `kShrinePink50`, `kShrinePink100`, `kShrineBrown900`) and text styles for visual consistency.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_801_1000_eng.csv", "repo": null, "row_in_file": "88", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_000890", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you implement a custom `CutCornersBorder` class that extends `OutlineInputBorder`? The class should support custom cut corner sizes, implement `copyWith`, `lerpFrom`, and `lerpTo` for smooth transitions, and override the `paint` method to draw the cut corners while properly handling the input decoration's label gap.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_801_1000_eng.csv", "repo": null, "row_in_file": "90", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_000897", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do we create a widget to edit a `BoardPoint` on a hexagonal board (represented by Q, R coordinates and color)? The widget should display the point's coordinates in a text label and provide a color selector. It should accept a `BoardPoint` object and an optional color selection callback as parameters. It should integrate the `BoardPoint` data structure from `transformations_demo_board.dart` and the `ColorPicker` widget from `transformations_demo_color_picker.dart`, using the standard color palette `boardPointColors` to allow changing the colors.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_801_1000_eng.csv", "repo": null, "row_in_file": "97", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_000924", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can I write a Flutter widget test to automatically confirm whether the semantic properties (such as button, focused, clicked, and labels) of interactive icons like `Icons.vignette` ('Update border shape') and `Icons.refresh` ('Reset chips') in the `ChipDemo` widget are correctly configured for accessibility?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_801_1000_eng.csv", "repo": null, "row_in_file": "124", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_000925", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you write a widget test to verify that the UserAccountsDrawerHeader remains at a fixed position while other elements in the Drawer shift their positions when the drawer content is dragged?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_801_1000_eng.csv", "repo": null, "row_in_file": "125", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_000936", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Flutter widget test that performs a smoke test on the Flutter Gallery application. The test should navigate through all demos, toggle options (like theme, system default, and sending feedback), and verify the `toStringDeep()` outputs of the widget, render, layer, and focus trees to ensure they do not contain 'Instance of' (missing `toString` overrides), trailing whitespaces, or unexpected empty lines.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_801_1000_eng.csv", "repo": null, "row_in_file": "136", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_000945", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Create a Flutter Driver test skeleton for the Flutter Gallery application to automate performance and stability testing. The setup should use `enableFlutterDriverExtension` with a custom message handler to:\n1. Return all gallery demos (`kAllGalleryDemos`) in JSON format.\n2. Profile a specific set of pre-defined demos (`kProfiledDemos`) and remove them from the remaining test set.\n3. Run and test the remaining untested demos.\nThe main entry point should run the `GalleryApp` in test mode.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_801_1000_eng.csv", "repo": null, "row_in_file": "145", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_000947", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can you get the performance data collected during Flutter integration tests (for example, frame rendering times, widget build periods) and write it to a JSON file? Specifically, how do you use the `responseDataCallback` in the integration test driver to save the performance data to a file named `e2e_perf_summary`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_801_1000_eng.csv", "repo": null, "row_in_file": "147", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_000957", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter application, how do you design and implement test scenarios to verify platform view integration (specifically focusing on thread merging, focus management, and Z-order) on iOS using `UiKitView`? Provide a complete Flutter application that includes a main page with navigation buttons (`platform_view_button`, `unmerge_button`, `platform_view_focus_test`, `platform_view_z_order_test`) and the corresponding test pages (`MergeThreadTestPage`, `FocusTestPage`, `ZOrderTestPage`), enabling the Flutter driver extension if configured.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_801_1000_eng.csv", "repo": null, "row_in_file": "157", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_000965", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we design and apply an InheritedWidget in Flutter to manage syntax highlighting styles (such as base, number, comment, keyword, string, punctuation, class, and constant styles)? What properties should it include, and how should the update notification mechanism be optimized to rebuild descendant widgets only when styles change?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_801_1000_eng.csv", "repo": null, "row_in_file": "165", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_000969", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter application, how can we create a custom `IconData` class (e.g., `GalleryIcons`) to use custom symbol fonts for various components (like tooltips, tabs, switches, etc.) instead of relying on a third-party font library?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_801_1000_eng.csv", "repo": null, "row_in_file": "169", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_000970", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter application, to install and display dynamic feature modules (deferred components), we need a mechanism that manages the loading process, ensures the module is loaded only once, shows a placeholder during installation, builds the specified widget when installation completes, and handles rebuilds correctly. How can we design a reusable and testable widget (`DeferredWidget`) and a placeholder widget to support modularity and dynamic content management, and what are the basic components of this approach?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_801_1000_eng.csv", "repo": null, "row_in_file": "170", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_001000", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In the Flutter Gallery application, how can we export all the Material Design component demo files (such as AppBar, Banner, BottomAppBar, etc.) located in 'package:gallery/demos/material/' from a single module or access point (barrel file) so they can be easily accessed by other parts of the application?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_801_1000_eng.csv", "repo": null, "row_in_file": "200", "status": "P1_partial", "type": "seed"}, "task_type": "refactor"}
{"difficulty": "easy", "id": "seed_001021", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how to create a colorful color selective component, which allows the user to choose a color from a predefined color set, visually emphasizes the selected color and reports the color selected through a recall function, to create a customizable color selective component, thus cenuring this color palette horizontally, each color sample will be a clicked button. Should it be designed to convey the color selected through the`ValueChanged <Color>`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1001_1200_eng.csv", "repo": null, "row_in_file": "21", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_001048", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we create a reusable widget called `BackLayer` that provides different interactive back layer content for each tab, integrated with a `TabBar` and `TabView` structure? The active tab's back layer should be interactive, while the back layers of other tabs should be inaccessible and unfocused. The implementation should use an abstract widget named `BackLayerItem` (which has an index), listen to changes from a `TabController`, and display the correct `BackLayerItem` while disabling focus on the others.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1001_1200_eng.csv", "repo": null, "row_in_file": "48", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_001102", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter e-commerce application using the Scoped Model architecture, how do you implement a shopping cart state management class (`AppStateModel`)? The class should handle product listing, filtering by category, adding/removing items, clearing the cart, and calculating the total quantity, subtotal, shipping fee, tax, and total cost, while ensuring the UI updates correctly.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1001_1200_eng.csv", "repo": null, "row_in_file": "102", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_001113", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do you define an immutable `InheritedWidget` class named `LayoutCache` in Flutter to store layout information (such as widget dimensions and positioning) in a `Map<String, List<List<int>>>` structure, allowing easy access throughout the application and updating the widget tree when layouts change?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1001_1200_eng.csv", "repo": null, "row_in_file": "113", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001135", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Flutter integration test for spell checking using `DefaultSpellCheckService` and `EditableText`. The tests should cover: 1. `fetchSpellCheckSuggestions` returning no misspelled words. 2. `fetchSpellCheckSuggestions` returning correct ranges with misspelled words. 3. Gboard composing region behaviors (ignoring or not ignoring). 4. `EditableText` applying `TextField.materialMisspelledTextStyle` to misspelled words when text is entered.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1001_1200_eng.csv", "repo": null, "row_in_file": "135", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_001147", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how to create an application that perceives the opening and closing of the keyboard, as the location of a Textfield in ListView changes, which follows the scroll position and provides a text that shows a text while the keyboard is open, and also provides an interface that can be tested with Flutter driver?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1001_1200_eng.csv", "repo": null, "row_in_file": "147", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_001153", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you enable the Flutter Driver extension with a handler that returns the default route name using `ui.PlatformDispatcher.instance.defaultRouteName` to identify the current screen in driver tests?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1001_1200_eng.csv", "repo": null, "row_in_file": "153", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_001164", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Flutter Driver integration test to verify that a text field (with the key 'minFrameNumber') displays a numeric value. The test should connect the Flutter driver, locate the widget, retrieve its text, verify it is numeric, and handle timeouts.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1001_1200_eng.csv", "repo": null, "row_in_file": "164", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_001166", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, when a TextField is covered by the keyboard inside a ListView, how do we write an integration test to verify that the TextField automatically scrolls into the visible area when the keyboard is shown? Provide a comprehensive test scenario using `flutter_driver` and keys from `integration_ui/keys.dart` that handles scrolling, tapping the TextField, waiting for the keyboard, and asserting the scroll offset changes.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1001_1200_eng.csv", "repo": null, "row_in_file": "166", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_001197", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How should the configuration of a `MaterialApp` widget (including a global navigator key, theme, title, and routes) be designed to allow easy manipulation during integration tests, while providing a minimum working interface at startup and the flexibility to change page routes and themes?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1001_1200_eng.csv", "repo": null, "row_in_file": "197", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_001204", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Using Flutter Integration Tests, write a test scenario for `web_e2e_tests/profile_diagnostics_main.dart`'s `main()` function. When the function is run, a `TypeError` exception is triggered in the application. How can we write an integration test to verify that this exception is captured as expected and the test passes?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "4", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_001208", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we design and implement Flutter Web integration tests to verify the behavior of text fields (such as TextFormField and SelectableText) and their interaction with the web platform? The tests should cover scenarios like focus, data input, keyboard events (e.g., Enter key, Tab transitions, and Tab transitions with CapsLock active), and read-only text selection, ensuring that native input/textarea elements behave correctly in the Flutter layer.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "8", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_001213", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In this Flutter application, it is aimed to create and display visuals using Display P3 color space with different methods (for example,`Image.MeMory`,`Custompaint`,`Drawimage`,`Container`and various gradians). In this context, whether the application provides the expected color accuracy and viability on devices and screens that support the Display P3 color space, in particular, different visual creation methods (Raster image, Drawn image, Containers, Linear Gradients, Radial Gradients, Radial Gradients, Conial Gradients, Sweep Gradients) What we should use in the devices that do not support the Display P3 color profile (SRGB), the performance of the application (especially when the`Drawimage`and`Imagefilterred`used) and how these visuals behave in different screen brightness and contrast settings?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "13", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001217", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we implement an undo and redo system for focus management in Flutter using a custom `ActionDispatcher` (e.g., `UndoableActionDispatcher`), custom `Action`s, and `Intent`s? Show how to integrate this into an application with keyboard shortcuts, and how to synchronize the 'UNDO' and 'REDO' buttons in the UI with the active/disabled states of the undo/redo stack.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "17", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001221", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can you create a Flutter application that dynamically controls and visualizes UI features like VisualDensity, TextScaler, Animation Speed (timeDilation), and RTL language support? Implement this using an `OptionModel` class (extending `ChangeNotifier`) and an `Options` widget to adjust these settings, and display their effects on common widgets like ListTile, TextField, Chips, Buttons, Checkbox, Radio Button, and IconButton.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "21", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001223", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter application, create a sample application demonstrating advanced focus management. The app should handle keyboard navigation (Tab, Shift+Tab, and arrow keys), control focus order using a `FocusTraversalGroup` with a `ReadingOrderTraversalPolicy`, prevent certain widgets from requesting focus, log focus changes, and visualize the focus tree using `debugDumpFocusTree()`. Implement custom `DemoButton` widgets with `FocusNode` and `autofocus` properties, and show how `KeyEvent`s affect focus behavior within a `FocusScope`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "23", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_001225", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can I ensure that ElevatedButton, TextButton, and IconButton widgets are emphasized with a different color (such as orange) when they receive focus? Additionally, how can I configure different focus styles for both filled and framed (outlined) TextField widgets?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "25", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_001234", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we write a Flutter smoke test for the `color_testing_demo` application that mocks HTTP image requests using `createMockImageHttpClient`, pumps two initial frames, performs two scroll/drag gestures, and verifies basic functionality?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "34", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_001256", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Dart class that wraps the Android Debug Bridge (ADB) to automate UI testing on a specific Android device (by serial number, emulator, or physical device). The class should support common operations like taking screenshots, tapping coordinates, sending home key events, and disabling animations. It must use dependency injection (e.g., via a ProcessManager) to facilitate testing, handle both string and binary command outputs, and manage device connection errors.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "56", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001264", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, during the postsubmit stage of Skia Gold-based visual regression tests, how do we handle a SkiaException to ensure it is transformed into a TestFailure? Specifically, how is a fake SkiaGoldClient used to design and apply this test scenario so developers can quickly identify failures?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "64", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_001274", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we design and implement a command-line tool in Dart to automatically manage, update, and verify the relationship between Material Design 3 design tokens and Flutter Material library components (such as AppBar, Buttons, Chips), reporting both token usage statistics and version compatibility?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "74", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001279", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we create a customizable `BottomAppBarTheme` template for a Flutter application adhering to the Material Design 3 specification, using `md.comp.bottom-app-bar` design tokens? Specifically, show how to implement a `TokenTemplate` class that generates the default values, integrates with `ColorScheme`, and uses `AutomaticNotchedShape` for the underlying shape.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "79", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001280", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we implement a code generator template class `BottomSheetTemplate` in Dart that extends `TokenTemplate` to generate Material Design 3 (M3) default configurations (`BottomSheetThemeData`) for a Bottom Sheet using design tokens?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "80", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001283", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can I design a code generator in Flutter for Material Design 3 (M3) to dynamically generate a customizable checkbox theme (`_${blockName}DefaultsM3` extending `CheckboxThemeData`) using a token-based template system? The generator should handle different states (disabled, selected, error, pressed, hovered, focused) and properties (border, fill color, check color, overlay color, splash radius, tap target size, visual density, shape) using helper functions like `getToken()` and `componentColor()`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "83", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001284", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Create a Dart code generator class `ChipTemplate` that extends `TokenTemplate` (defined in `template.dart`). This generator should output a Material Design 3 `ChipThemeData` subclass (`_${blockName}DefaultsM3`) for a \"Flat\" filter chip variant. The generated code must resolve design tokens for elevation, shape, colors, typography, icon theme, and borders, handling both enabled and disabled states, and adjusting label padding based on the text scaling factor.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "84", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001287", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In the Flutter Material 3 theme system, we can use templates to generate customizable and reusable dialog themes derived from design tokens. Show how to implement `DialogTemplate` and `DialogFullscreenTemplate` classes extending `TokenTemplate` to handle design tokens (colors, typography, shadows, shapes, etc.) for standard and full-screen dialog variations, transforming these tokens into default values in accordance with Material 3 specifications for `DialogThemeData`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "87", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001289", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Create a Dart class named `DrawerTemplate` that extends `TokenTemplate` to generate a Material Design 3 (M3) compliant `DrawerThemeData` subclass. The generated class should resolve design tokens for `backgroundColor`, `surfaceTintColor`, `shadowColor`, `elevation`, `shape`, and `endShape`, handling text direction (LTR/RTL) correctly for the shapes.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "89", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001303", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can I implement a `TokenTemplate` subclass in Dart to automatically generate Material Design 3 default theme classes (`_Circular${blockName}DefaultsM3` and `_Linear${blockName}DefaultsM3`) for Flutter's progress indicators, using design tokens for colors, track thickness, and gaps?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "103", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001304", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Create a Dart class `RadioTemplate` that extends `TokenTemplate` to generate the Material 3 defaults for a Flutter `Radio` widget. The template should output a `_RadioDefaultsM3` class implementing `RadioThemeData`, mapping Material Design 3 tokens (like `md.comp.radio-button.selected.icon` and state layers) to colors using the `componentColor` helper for various states (selected, unselected, disabled, pressed, hovered, focused).", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "104", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001307", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we design a Dart template engine class `SegmentedButtonTemplate` that generates `SegmentedButtonThemeData` defaults based on design tokens, handling various states (disabled, selected, pressed, hovered, focused) using `MaterialStateProperty` and resolving state colors?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "107", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001309", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter's Material Design 3 token-based generation system, how do you design a class named `SnackbarTemplate` that inherits from `TokenTemplate`? This class should manage token groups, access `BuildContext` to retrieve theme and color scheme information, and generate a `SnackBarThemeData` object using helper methods like `componentColor`, `textStyle`, `elevation`, and `shape`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "109", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_001310", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Create a new class called `SurfaceTintTemplate` that extends `TokenTemplate` (defined in `template.dart`). Override its `generate` method to return a string containing a constant list `_surfaceTintElevationOpacities` of `_ElevationOpacity` objects. These objects should represent Material Design surface tint elevations from level0 to level5, dynamically retrieving elevation values using the `getToken` function with corresponding opacity values (0.0, 0.05, 0.08, 0.11, 0.12, 0.14).", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "110", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001311", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can you create a template to dynamically generate a Material Design 3 (M3) Switch component configuration, including state-based color variations (disabled, selected, pressed, hovered, focused) for the thumb, track, outline, overlay, and icon, based on design tokens?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "111", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_001316", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Dart, design a system to track tokens (e.g., design tokens, API switches) used across different application versions, identifying unused or missing tokens, and reporting this usage to both the console and a file. Explain how to design this system using `_versionMap`, `_usedTokens`, and `_unavailableTokens` with appropriate data structures (Map, Set, SplayTreeSet) and how to initialize, update, query, and report this information in both verbose and summary formats. How do you emphasize the version information?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "116", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001331", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do you design a Dart code generator that creates a C++ header file defining the mappings for physical and logical keys (using USB HID codes and logical values in hexadecimal format) based on a template file named `key_codes_h.tmpl`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "131", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001346", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter project, we need to develop a high-performance, error-resistant, and flexible command-line tool to process localization resources. The tool should: 1) Load ARB files from a directory and map their key-value pairs and attributes into `Map` data structures keyed by `LocaleInfo` objects. 2) Automatically derive appropriate script codes based on language and country code combinations (e.g., zh_CN to Hans). 3) Parse command-line arguments to configure options such as overwriting files, removing undefined localizations, and generating code specifically for Material, Cupertino, or Widgets. Write the Dart implementation for this tool, including the `LocaleInfo` class, ARB loading logic, and argument parsing.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "146", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001352", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Dart test suite to verify the behavior of the Flutter SDK's `update_engine_version` script. The tests should cover how `bin/cache/engine.stamp` and `bin/cache/engine.realm` are updated under various conditions, including environment variables like `FLUTTER_PREBUILT_ENGINE_VERSION` and `FLUTTER_REALM`, local Git configurations (upstream/origin), and platform differences.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "152", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_001364", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Flutter framework integration test to verify that children of a `MultiChildRenderObjectElement` (such as a `Row`) show up in the timeline tracing when `debugProfileBuildsEnabled` is enabled. Use `ZoneIgnoringTestBinding` to manage the test environment, and ensure the test is skipped in browser environments.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "164", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_001377", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In the context of Flutter GPU, explain and demonstrate how the `CommandBuffer` class manages GPU commands, interacts with `GpuContext`, supports the creation of `RenderPass`, handles error management, and supports asynchronous completion. Provide a Dart implementation of the `CommandBuffer` class demonstrating these mechanisms.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "177", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001380", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In the Flutter GPU library, how should the `ColorAttachment`, `DepthStencilAttachment`, `RenderTarget`, and `RenderPass` classes be structured and verified to support multisample anti-aliasing (MSAA) and depth/stencil attachments? Provide an implementation that includes validation logic for texture formats, dimensions, sample counts, storage modes, and combinations of `LoadAction` and `StoreAction`, and show how these classes integrate with the native layer via functions like `_setColorAttachment` and `_setDepthStencilAttachment`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "180", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001381", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Provide the Dart implementation of the `RenderPipeline` class in the Flutter GPU package, demonstrating how it is initialized in the native layer through the `_initialize` method, how errors during initialization are handled, and how vertex and fragment shaders are referenced.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "181", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001392", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In the `dart.ui` library, design and implement the `KeyData` class along with `KeyEventType` and `KeyEventDeviceType` enums to represent keyboard events. Implement helper methods like `_nonValueBits` to extract platform-specific logical key code planes, `_logicalToString` to format logical keys, `_escapeCharacter` and `_quotedCharCode` for character representation, and `toString` / `toStringFull` for debugging output.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1201_1400_eng.csv", "repo": null, "row_in_file": "192", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_001418", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Automating the Flutter Web Engine's compilation and testing processes, various sub-commands (Build, Clean, RollfallbackFonts, Generatebuilderjson, Licenses, Test) through compilation, cleaning, updating font backups, Builder. In order to develop a modular and tested tool designed to close the command line arguments by listening to SIGINT and Sigterm signals and to process command line arguments, how should a command line interface (CLI) structure be designed for this tool, how to integrate error management and signal processing and sub-commands?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1401_1600_eng.csv", "repo": null, "row_in_file": "18", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001455", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Considering the various start scenarios (e.g., direct `autoStart`, initiation via `FlutterAppRunner`, and multi-view support) for initiating and managing a Flutter Web application, how would you design and organize the `AppBootstrap` class? Specifically, implement the `_initializeEngine`, `_runApp`, `prepareEngineInitializer`, `_prepareAppRunner`, and `_prepareFlutterApp` functions to handle initialization order and different start configurations efficiently.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1401_1600_eng.csv", "repo": null, "row_in_file": "55", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001493", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, design a `CkVertices` class optimized for drawing and processing complex geometric shapes using CanvasKit. The class should support vertex positions in different data formats (such as `ui.Offset` lists or direct `Float32List`), texture coordinates, colors, and indices, converting them into the expected formats. It must verify data integrity (e.g., matching list lengths, index validity), manage the creation and garbage collection of CanvasKit `SkVertices`, and control the lifecycle of these objects to optimize memory release. Detail the API design (factory constructors, properties, methods) and internal structure (data storage, transformation, error handling, resource management).", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1401_1600_eng.csv", "repo": null, "row_in_file": "93", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001495", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Flutter'da `ui.ColorFilter` arayüzünü uygulayan `EngineColorFilter` sınıfını, farklı renk filtreleme türlerini (mode, matrix, linearToSrgbGamma, srgbToLinearGamma) destekleyecek ve bu filtrelerin dahili gösterimini, yapılandırılmasını ve metinsel açıklamasını sağlayacak şekilde nasıl tasarlarsınız?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1401_1600_eng.csv", "repo": null, "row_in_file": "95", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001512", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "While interacting with JavaScript in Dart, especially when working with typed arrays such as `Uint8Array`, how can we create a safe and efficient abstraction layer that represents and manages the `Uint8Array` structure directly in Dart code? Specifically, we want to expand the existing `JSTypedArray` interface, create `Uint8Array` objects, create a sub-array on these objects, copy the source array, and access the length using the `dart:js_interop` library.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1401_1600_eng.csv", "repo": null, "row_in_file": "112", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001515", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Implement the Flutter Web Engine's layer tree and platform view styling system. Your implementation should include `PictureEngineLayer`, `LayerOperation` (with `pre`, `post`, and `mapRect` methods), `PlatformViewStyling` for positioning and clipping platform views, and `LayerBuilder` to efficiently manage and slice layers with complex visual effects (such as clipping, opacity, filters, and transforms).", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1401_1600_eng.csv", "repo": null, "row_in_file": "115", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001525", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a scenario with multiple Flutter views (e.g., different `HtmlElementView`s) in a Flutter Web application, how does the Flutter framework handle focus management between the DOM elements, especially when users use keyboard navigation? Explain how it determines the focus state and updates each view's `tabindex`, including the role of the `ViewFocusBinding` class and its interaction with `FlutterViewManager`. Which DOM event listeners (`focusin`, `focusout`, `keydown`, `keyup`) are used, and how do they manage the Shift key to change direction and handle focus exchange events?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1401_1600_eng.csv", "repo": null, "row_in_file": "125", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001537", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Implement a flexible, platform-agnostic rounded rectangle (`RRect`) rendering system in Dart. Define an abstract `RRectRenderer` class that handles the geometry calculations for drawing rounded rectangles (including scaling radii and handling clockwise/anticlockwise drawing), and provide concrete implementations for rendering to a Canvas (`RRectToCanvasRenderer`), a Flutter Path (`RRectToPathRenderer`), and a metric-gathering callback system (`RRectMetricsRenderer`).", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1401_1600_eng.csv", "repo": null, "row_in_file": "137", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001544", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter Web's engine semantics, how can we dynamically assign, update, and remove ARIA roles and attributes (such as `aria-checked` and `aria-disabled`) for checkable components (checkboxes, radio buttons, and switches) based on `SemanticsObject` flags and enabled states, and how is focus managed for these components?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1401_1600_eng.csv", "repo": null, "row_in_file": "144", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001560", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we implement `SemanticTab`, `SemanticTabPanel`, and `SemanticTabList` classes extending a base `SemanticRole` class in Dart to support screen readers with proper ARIA roles ('tab', 'tabpanel', 'tablist') and focus management via `focusAsRouteDefault`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1401_1600_eng.csv", "repo": null, "row_in_file": "160", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001564", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do you design and implement a custom `Uint8Buffer` class in Dart that provides a dynamically sized list structure backed by `Uint8List`? The design should maximize memory efficiency and processing speed, support basic list operations (adding, inserting, resizing, range operations), handle automatic capacity growth, fill with default values, and include proper bounds and error checking.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1401_1600_eng.csv", "repo": null, "row_in_file": "164", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001565", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do you design and implement the abstract MessageCodec and MethodCodec interfaces, the MethodCall data structure, and platform exception classes for Flutter's binary messaging protocol in Dart?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1401_1600_eng.csv", "repo": null, "row_in_file": "165", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001575", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Implement the `SkwasmImage` class in Dart for the SKWASM engine. The implementation should demonstrate: 1) memory management using `SkwasmFinalizationRegistry`, 2) copying pixel data from a `Uint8List` in a factory constructor, and 3) converting to PNG in `toByteData` using `DomImageBitmap`, `DomOffscreenCanvas`, and `DomBlob`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1401_1600_eng.csv", "repo": null, "row_in_file": "175", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001588", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain and demonstrate how to design Dart FFI bindings for the SKIA WebAssembly (SKWASM) engine to manage Paint objects and their effects (shaders, image filters, color filters, mask filters). Specifically, show how to bind `paint_create`, `paint_dispose`, `paint_setShader`, `paint_setImageFilter`, `paint_setColorFilter`, and `paint_setMaskFilter` using `@Native` syntax and appropriate handle types like `PaintHandle`, `ShaderHandle`, etc.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1401_1600_eng.csv", "repo": null, "row_in_file": "188", "status": "P1_partial", "type": "seed"}, "task_type": "api_usage"}
{"difficulty": "hard", "id": "seed_001591", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Create Dart FFI bindings for Skwasm (Skia WebAssembly) to manage PictureRecorders and Pictures. Implement bindings for creating, disposing, beginning/ending recording, and getting cull rects/approximate bytes used, using `@Native` annotations.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1401_1600_eng.csv", "repo": null, "row_in_file": "191", "status": "P1_partial", "type": "seed"}, "task_type": "api_usage"}
{"difficulty": "hard", "id": "seed_001598", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Create Dart FFI bindings using `@Native` annotations to interface with a C++ WebAssembly library (`skwasm`) for managing `LineMetrics`. The bindings should include functions to create, dispose, and retrieve properties of `LineMetrics` (such as hardBreak, ascent, descent, unscaledAscent, height, width, left, baseline, lineNumber, startIndex, and endIndex) using `isLeaf: true` for performance.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1401_1600_eng.csv", "repo": null, "row_in_file": "198", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001605", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter graphics engine using WebAssembly (WASM), how can we implement the abstract Flutter UI layer classes (`ui.Shader`, `ui.Gradient`, `ui.FragmentProgram`, and `ui.ImageShader`) using Skwasm equivalents (`SkwasmImageShader`, `SkwasmFragmentProgram`, `SkwasmFragmentShader`)? Specifically, how do we handle:\n1. Memory management (especially using `SkwasmFinalizationRegistry` and WASM disposal functions like `runtimeEffectDispose`).\n2. Interfacing with WASM functions (e.g., `runtimeEffectCreate`).\n3. Converting Dart native data types to WASM-expected types (e.g., `convertPointArrayToNative`, `convertColorArrayToNative`, `convertMatrix4toSkMatrix`).\n4. Managing state changes (e.g., `setFloat`, `setImageSampler`) and disposal processes in `SkwasmFragmentShader`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1601_1800_eng.csv", "repo": null, "row_in_file": "5", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_001614", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Design a singleton class `BrowserAutofillHints` in Dart to map Flutter autofill hints (e.g., 'birthday', 'creditCardNumber') to standard HTML autofill values (e.g., 'bday', 'cc-number') for web platforms. The class must include a method `flutterToEngine` that takes a Flutter-specific autofill hint string, returns the corresponding HTML autofill value if a match exists, and returns the original hint if no match is found.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1601_1800_eng.csv", "repo": null, "row_in_file": "14", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_001621", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we validate geometric and transformational data structures in Dart (such as `ui.Rect`, `ui.RRect`, `ui.RSuperellipse`, `ui.Offset`, `Float32List` for Matrix4, and `ui.Radius`) to prevent invalid values (especially NaN), and verify the compatibility of `Color` and `colorStops` lists for gradients?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1601_1800_eng.csv", "repo": null, "row_in_file": "21", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_001629", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter web application, how do you design an `EmbeddingStrategy` abstract class with a factory constructor `EmbeddingStrategy.create` that dynamically selects between a `CustomElementEmbeddingStrategy` (when a `DomElement` host is provided) and a `FullPageEmbeddingStrategy` (when it is null)? The class should also define members for `hostElement`, `globalEventTarget`, and `attachViewRoot`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1601_1800_eng.csv", "repo": null, "row_in_file": "29", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001642", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter web applications, how do you create a reliable and expandable `BrowserDetection` class as a singleton? The class should identify different browser engines (Blink, Webkit, Firefox) and operating systems (iOS, Android, Linux, Windows, MacOS) using the user agent, vendor, and platform information. It should also support testability via overrides (e.g., `@visibleForTesting` annotations, `debugUserAgentOverride`, `debugBrowserEngineOverride`, `debugOperatingSystemOverride`) and handle WASM environments using `const bool.fromEnvironment('dart.library.html')`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1601_1800_eng.csv", "repo": null, "row_in_file": "42", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001652", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Using Canvaskit in Flutter, we can test the visual accuracy and performance in a comprehensive way in case of interacting with the combination and invisible platform views of the`backdropfilter`widget widget in different scenarios, especially in the edges, and the visual accuracy and performance of the platform during these tests. By comparing the results of these tests with gold pictures, how can we be sure that these features work consistently on various devices and browsers?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1601_1800_eng.csv", "repo": null, "row_in_file": "52", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_001658", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In the test scenarios that uses the Canvaskit rendering engine in the Flutter web application, the Canvaskit variant (such as Chromium, Full, Auto) is correctly adjusted and how it can be temporarily changed through the`debugoverridejsconfiguration`function, and these changes are not permanent in the test environment and to restore the original Canvaskit variant Write a test scenario that explains in detail how the Canvaskite variant configuration is manipulated and verified in test processes.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1601_1800_eng.csv", "repo": null, "row_in_file": "58", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_001660", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a comprehensive suite of unit tests for the `HtmlViewEmbedder` in Flutter's CanvasKit web renderer. The tests should cover embedding interactive platform views, clipping with RRects, transforms, offsets, device pixel ratio conversions, overlay rendering and reuse, DOM node cleanup, invisible views, overlay optimization, and resource disposal.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1601_1800_eng.csv", "repo": null, "row_in_file": "60", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_001665", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Analyze the provided Dart code, which tests CanvasKit image processing in Flutter Web. Explain:\n1. The overall purpose of the code.\n2. The testing strategy for different image formats (JPEG, PNG, GIF, WebP, BMP) and loading methods (URL, byte arrays, ImageBitmap).\n3. How it handles specific scenarios like CORS errors, AVIF format detection, and animated GIFs.\n4. How the test assertions (dimensions, color space, byte data) confirm correctness.\n5. How these tests help maximize image processing performance and accuracy in a CanvasKit-based Flutter web application.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1601_1800_eng.csv", "repo": null, "row_in_file": "65", "status": "P1_partial", "type": "seed"}, "task_type": "code_to_explanation"}
{"difficulty": "hard", "id": "seed_001668", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In order to ensure that the Flutter Web application initializes basic services (such as engine initialization and user interface startup) at the expected times, we separately call the `initializeEngineServices` and `initializeEngineUi` functions. To verify that this separation works correctly and to control the results of `RawKeyboard.instance`, `KeyboardBinding.instance`, `EnginePlatformDispatcher.instance.implicitView`, and `domDocument.querySelector('flt-glass-pane')` (checking for potential issues like out-of-order services or incomplete dependencies), write a test that demonstrates this distinction and verifies the state of these components before and after each initialization step.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1601_1800_eng.csv", "repo": null, "row_in_file": "68", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_001678", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do you design and implement a Flutter CanvasKit integration test to verify that the 'flutter/skia' platform channel correctly handles the 'Skia.setResourceCacheMaxBytes' method call, including encoding/decoding with JSONMethodCodec and asserting a successful response?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1601_1800_eng.csv", "repo": null, "row_in_file": "78", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_001679", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Flutter web engine test using CanvasKit to verify how changes in the device pixel ratio and physical size adjustments affect the RenderCanvas and rasterizer frame sizes. The test should demonstrate updating the canvas logical size when the device-pixel ratio changes, rounding physical size to the nearest integer, and utilize test helper functions such as `setUpCanvasKitTest`, `newBitmap`, and `renderScene`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1601_1800_eng.csv", "repo": null, "row_in_file": "79", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_001680", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain and demonstrate via tests how the Flutter Web CanvasKit engine selects its rasterization strategy (OffscreenCanvasRasterizer vs. MultiSurfaceRasterizer) across different browsers (Chrome, Firefox, Safari) and configuration options like `canvasKitForceMultiSurfaceRasterizer`. Additionally, show how the engine optimizes rendering across multiple EngineFlutterView instances, specifically verifying that intermediate frames are skipped and only the first and last LayerTrees are rendered.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1601_1800_eng.csv", "repo": null, "row_in_file": "80", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_001685", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a comprehensive Dart test suite for the Flutter Web Engine's CanvasKit `Surface` class. The tests should cover scenarios such as surface size changes, device pixel ratio changes, WebGL context loss and restoration, `transferToImageBitmap` usage, and `MakeGrContext` failures. Demonstrate how to handle error processing, performance optimization, and lifecycle management of objects like `BitmapSize`, `CkSurface`, `DomOffscreenCanvas`, and `DomCanvasElement`. Utilize helper functions and configurations such as `setUpCanvasKitTest()`, `debugOverrideDevicePixelRatio()`, `debugOverrideJsConfiguration()`, and the `isDisplayCanvas` flag.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1601_1800_eng.csv", "repo": null, "row_in_file": "85", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_001687", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Provide Dart constants representing common test images (such as a transparent image, a 4x4 PNG, an animated GIF, and a translucent PNG) as Uint8List byte arrays for Flutter testing.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1601_1800_eng.csv", "repo": null, "row_in_file": "87", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001729", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write unit tests for the Flutter Web Engine's `ViewFocusBinding` class. The tests should verify its impact on `EnginePlatformDispatcher` and `EngineFlutterView` when multiple views are present. Ensure it accurately manages keyboard accessibility, focus transitions, and the expected focus/focal loss behaviors of the `requestViewFocusChange` method.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1601_1800_eng.csv", "repo": null, "row_in_file": "129", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_001732", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In order to ensure the correct creation and interaction of platform views in Flutter Web applications, the `createPlatformViewSlot` function in the `PlatformViewManager` class is used to set up the platform view slot and apply necessary style features (such as `pointer-events`). What test strategies and DOM examination techniques should be used to verify that the slot is rendered correctly, the inner slot's `name` attribute matches the `viewId`, and the auxiliary functions `getPlatformViewSlotName` and `getPlatformViewDomId` return the expected values?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1601_1800_eng.csv", "repo": null, "row_in_file": "132", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_001733", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter web application, when a virtual click event is created using `EngineFlutterView` and DOM manipulations, considering the hierarchical structure of the event source (Target) and potential text editing interactions, what are the expected behaviors of `computeEventOffsetToTarget` when `offsetX` and `offsetY` values are invalid or the event source is not the root element (e.g., initiated by a text editing area or TalkBack)? How do we verify and test these behaviors across different scenarios?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1601_1800_eng.csv", "repo": null, "row_in_file": "133", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_001736", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In order to ensure that the Rawkeyboard API on the Flutter Web, in different operating systems (especially MacOS and Linux) and different keyboard event scenarios (IME composition, commodity keys, shortcuts, repetitive events), which test scenarios and verification strategies should be used, especially the platform messages are sent to the Flutter engine. To determine whether the default browser behavior (for example, for TAB button) is prevented or prevented as expected?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1601_1800_eng.csv", "repo": null, "row_in_file": "136", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_001762", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter web application, when embedding Flutter in an existing HTML element using the `CustomElementEmbeddingStrategy` class, how does this strategy manipulate the target element and the Flutter glass pane? Provide a Dart test suite that verifies the behavior of `CustomElementEmbeddingStrategy` regarding the `flt-embedding` attribute, `isConnected` status, CSS styles (`position`, `display`, `width`, `height`, `overflow`, `touch-action`), and parent-child relationships.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1601_1800_eng.csv", "repo": null, "row_in_file": "162", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_001768", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter Web, how can we design and test the `HotRestartCacheHandler` class and the `registerElementForCleanup` function to maintain DOM consistency during Hot Restarts, minimizing memory leaks and performance issues across different browsers? Provide a Dart test implementation.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1601_1800_eng.csv", "repo": null, "row_in_file": "168", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_001859", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write comprehensive unit tests in Dart using the `test` package to verify the behavior of `dart:ui` classes such as `Offset`, `Size`, `Rect`, `RRect`, and `Radius`. The tests should cover comparison operators, corner rounding, geometric procedures (like intersection and expansion), and edge cases such as NaN values, negative radii, zero dimensions, and extreme dimensions.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1801_2000_eng.csv", "repo": null, "row_in_file": "59", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_001868", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Dart's `dart:ui` library, how can we configure and verify unit tests to ensure that the static `Image.onCreate` and `Image.onDispose` callbacks are invoked exactly once per image creation and disposal?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1801_2000_eng.csv", "repo": null, "row_in_file": "68", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_001870", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Dart/Flutter, write a comprehensive test suite using `package:test` to verify the behavior of `instantiateImageCodec` and `decodeImageFromPixels` when performing image sizing and scaling. The tests should cover the effects of `targetWidth`, `targetHeight`, and `allowUpscaling` parameters, how invalid parameters (such as negative dimensions) are handled, and the assertion errors that occur when scaling is not allowed.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1801_2000_eng.csv", "repo": null, "row_in_file": "70", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_001872", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Dart, I would like to write code that first clips a rectangle and then converts this clipped space into a picture, using `PictureRecorder`, `Canvas`, and `toImage` to create a picture of a certain size (e.g., 10x10). I want this code to include a unit test that confirms that the picture created is of the `Image` type and calls the `dispose` method to release the resources of the picture. How should I define `_createImage` and `_createPicture` functions correctly and write a complete unit test to confirm they run correctly?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1801_2000_eng.csv", "repo": null, "row_in_file": "72", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001884", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can I write a comprehensive test suite in Dart to verify the behavior of the `dart:ui` library's `ParagraphBuilder` and `Paragraph` classes? The tests should cover building and laying out a paragraph, verifying that calling `pushStyle()` after `build()` throws an error, retrieving text boxes using `getBoxesForRange()`, and computing line metrics using `computeLineMetrics()`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1801_2000_eng.csv", "repo": null, "row_in_file": "84", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_001885", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, different fonts (height, width, baseline, line boundaries, glyif knowledge, etc.) of the`Paragraph`object ('AHEM','Fluttertest'), text directions (LTR, RTL), Line, Number, Line end, text end) and various text. How is a comprehensive and automated test package designed and applied to verify that it calculates and reported in the figure, how the expected values ​​of these tests are precisely determined in the scenario of each text layout, and these tests, the potential edge situations that may affect the performance and determination of the`paragraph`object (empty paragraphs, deported paragraphs, unlawful indexes, etc.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1801_2000_eng.csv", "repo": null, "row_in_file": "85", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_001895", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "For the Shader tests of a Flutter application, starting from the build directory specified by the `FLUTTER_BUILD_DIRECTORY` environment variable, a fixed path `gen/flutter/lib/ui/fixtures/shaders` and a dynamic subfolder name (`leafFolderName`) are used to construct a directory path. How can we implement a platform-independent and robust function to construct this directory path in Dart, and what prerequisites are required for its correct operation?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1801_2000_eng.csv", "repo": null, "row_in_file": "95", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001900", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, text processing and style features (such as FontWeight, ParagraphStyle, TextStyle, TextHeightBehavior, TextRange, GlyphInfo, FontFeature, and FontVariation) must be thoroughly tested to ensure correct implementation. Create a comprehensive test suite covering various scenarios, edge cases, and potential error conditions. The tests should configure and verify file reading, font loading, paragraph creation, style application, and output verification to ensure Flutter's text rendering infrastructure is highly reliable and accurate.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1801_2000_eng.csv", "repo": null, "row_in_file": "100", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_001904", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, when using low-level `dart:ui` APIs, how can we design an `AnimatedColorSquareScenario` class and a `_NumberSwinger` helper class to animate a moving, color-changing square? Specifically, how do we use `SceneBuilder` and handle screen size changes in the `onMetricsChanged` method to ensure the square remains within the screen boundaries?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1801_2000_eng.csv", "repo": null, "row_in_file": "104", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001916", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, to create a monochrome blue background and constantly redraw it in each frame by extending a custom `Scenario` class, how are `SceneBuilder`, `PictureRecorder`, `Canvas`, and `Picture` objects used? In the `onBeginFrame` method, how is the blue background drawn using the `Color` class, how is the created scene rendered, and how are memory leaks prevented?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1801_2000_eng.csv", "repo": null, "row_in_file": "116", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001924", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "\"In the Flutter Engine store, in order to verify the SKIA Gold integration and detect errors, in the given directory (e2e_fixtures), the square visuals of various colors (solid_blue_square.png, solid_red_red_square.png, solid_green_square.png) Design the process and apply it, this process should check whether the SKIA Gold client is available, to upload the necessary identity to the SKIA Gold, to report and summarize the comparisons of the loading and comparison, and the failure of this test process (for example, should be stated in detail how to handle it with appropriate error codes and messages, and outlines how this process can be expanded for different visuals and test scenarios in the future.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1801_2000_eng.csv", "repo": null, "row_in_file": "124", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_001927", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Dart script that verifies the exported symbols of Flutter engine shared libraries (`Flutter.framework`, `libflutter.so`, and `libflutter_engine.so`) across iOS, Android, and Linux platforms using the `llvm-nm` tool.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1801_2000_eng.csv", "repo": null, "row_in_file": "127", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001943", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Flutter framework's descriptions of different platforms (Dart UI, Web UI, C ++, Java) enum definitions (AccessibilityFeatural, Semanticsaction, ApplifecyClestate, Semanticsflag) and Native APIs (especially`natifunctionbody``natifunctionbody`s) To verify the use, which test strategies and code analysis techniques do you use, and these strategies can detect API mismatch or misuse between Flutter's different layers (for example, nullable simple data types to native functions), and how comprehensively you can automatically correct these problems to the developers?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1801_2000_eng.csv", "repo": null, "row_in_file": "143", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_001953", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "For the Flutter engine repository, how do you write an automated test to ensure that the `HeaderFilterRegex` in the `.clang-tidy` file covers all non-excluded root directories?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1801_2000_eng.csv", "repo": null, "row_in_file": "153", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_001961", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Dart, demonstrate how to define and use compile-time constant instances (const instances) of a custom `Target` class. Create a comprehensive test scenario that showcases these constants within nested objects, collections (List, Set, Map), and other classes like `IgnoreMe` and `StaticConstInitializer` to illustrate compile-time constancy.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1801_2000_eng.csv", "repo": null, "row_in_file": "161", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_001971", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Create a Dart class `BuildPlan` for a Flutter engine build tool (`et`) that parses command-line arguments and environment variables. It should configure build aspects like LTO, RBE, concurrency, and build strategy, while handling validation and invalid argument combinations.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1801_2000_eng.csv", "repo": null, "row_in_file": "171", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_001989", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Design a Dart class `TargetPlatform` to represent and validate platform-specific identifiers (e.g., 'android-arm64', 'windows-x64') for Flutter compilation tools. The class should be immutable, use a private constructor to restrict instantiation, and provide robust parsing methods (`parse` and `tryParse`) with clear exception handling.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1801_2000_eng.csv", "repo": null, "row_in_file": "189", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_002000", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Dart test using the Flutter Engine tool test infrastructure to verify that the `fetch` and `sync` commands (triggered by `engine_tool`) correctly invoke `gclient sync -D` using a fake process manager and environment.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_1801_2000_eng.csv", "repo": null, "row_in_file": "200", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_002006", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do I write a platform-independent Dart test to verify that the `et` executable under the `bin/` directory of the Flutter engine repository runs successfully (e.g., with the 'help' command), using packages like `process_runner`, `platform`, and `path`, and printing detailed stdout/stderr on failure?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "6", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002028", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Dart application using the `args` and `command_runner` packages to implement git hooks (`post-checkout`, `post-merge`, `pre-push`, `pre-rebase`) for the `flutter/engine` repository. The application should support global options: `--flutter` (absolute path to the engine root, required), `--enable-clang-tidy` (flag to run clang-tidy on changed files), and `--verbose` (flag for verbose logging). It should validate these options and run the sub-commands.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "28", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002030", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "When developing a Flutter command-line interface (CLI) tool, we need a command called 'post-checkout' that runs automatically after updating a Git working tree, reminding the user to run 'gclient sync'. Implement this command using `package:args/command_runner` with the appropriate name, description, and asynchronous execution logic.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "30", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_002032", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Dart command class `PrePushCommand` using `package:args/command_runner.dart` to run checks before a 'git push'. It should integrate formatting tools and Clang-Tidy, support verbose mode, check Clang-Tidy's activation status, configure the Flutter root directory, and output detailed error reports. The command should return a boolean indicating success or failure.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "32", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002039", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a complete Dart command-line application using the 'header_guard_check' package. The application must run asynchronously, accept command-line arguments, and exit with a non-zero code if the check fails.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "39", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_002056", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Dart command-line tool using the `engine_build_configs` and `engine_repo_tools` packages to validate Flutter engine build configurations and the `.ci.yaml` file. It should check for duplicate configurations, invalid build names, and compliance with release build standards. It must support arguments for verbose mode, help, and the engine source path (`--engine-src-path`), and report success/failure status with error messages.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "56", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_002068", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In the Flutter engine repository, write unit tests to verify the structure and content of the `.ci.yaml` file. The tests should parse the YAML data into `CiConfig` objects, validate these configurations, and cover various scenarios (valid, invalid, and missing fields) to ensure correct behavior. How should the tests for `CiConfig` and its related classes be structured?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "68", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_002071", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Dart, how can we design an `Engine` class to represent and manage a specific file system structure (containing a `src` directory, a `flutter` subdirectory, and an `out` subdirectory)? The design should support testability, different scenarios, a class hierarchy, factory methods, custom exception classes, and methods such as `tryFindWithin`, `outputs`, and `latestOutput` to ensure the structure is verified, located, and managed properly.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "71", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002072", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In order to facilitate the interaction of the `engine_repo_tools` package with the Flutter engine repository, how should we test the expected behaviors and possible exceptional states of the `Engine` class and its related functions (especially `Engine.fromSrcPath`, `Engine.findWithin`, and `Engine.outputs`)? Specifically, how should these functions behave in invalid or missing engine storage structures and different output directories, and how can we write tests to ensure reliable tools for engine development workflows?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "72", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002078", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In the Flutter web engine codebase, the 'dart:js_util' and 'package:js' libraries should only be accessed by certain controlled files. Design a Dart test scenario that scans all `.dart` files in the codebase, confirms expected violations (e.g., in a mock file like 'alarm_clock.dart'), allows access only for audited libraries, and can be used in an integration environment to prevent future violations.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "78", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002085", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, by using a series of predefined offset points, a Catmull-Rom Spline curve, where we can also determine the start and end points, moves a particular widget (eg a circle) in a animated manner, enabling us to control the speed and fluency of this movement, which can be used to create a repetitive and privatizable animation and the animation techniques should be used. How should we implement that you can work with different curved types (eg`Curves.easeinout`) and different animation times?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "85", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002091", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Create a Flutter application demonstrating `CupertinoContextMenu.builder` on a yellow container with rounded corners. The menu should contain 'Copy', 'Share', 'Favorite', and 'Delete' actions. Animate the container's decoration using a `DecorationTween` (with `BoxShadow`) up to `CupertinoContextMenu.animationOpensAt` using `CurvedAnimation`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "91", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002100", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you create a sample application containing a `ListView` inside a `CupertinoPageScaffold` that demonstrates a basic iOS-style list interface using the `CupertinoListTile` widget with different variations (title, leading widget, trailing widget, both, two-line head and sub-head, background color) and features (leading widget size, key use)?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "100", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002109", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do we configure a list of `CupertinoRadio` widgets inside `CupertinoListTile` elements to create a selectable list of radio buttons? Specifically, how do we configure the `groupValue`, `value`, `onChanged`, and `toggleable` properties of `CupertinoRadio`, and update the interface using `setState` so that clicking an already selected option deselects it (updating the `_character` variable to null)?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "109", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002115", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do we create a Cupertino application containing a Cupertinosearchtextfield with a Cupertinosearchtextfield that has a \"Initial Text\" in accordance with the Cupertino style, with a \"search\" space -standing text, and how to control the value of this search area through the program, and how to remove this text area (Dispose)?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "115", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002126", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can I create a CupertinoTextField with a light-themed text controller containing a predetermined starter text, manage the lifecycle of this controller, and place it inside a CupertinoPageScaffold with a CupertinoNavigationBar?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "126", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002127", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do I create a complete user interface in Flutter using a CupertinoPageScaffold with a CupertinoNavigationBar titled 'CupertinoFormSection Sample', containing an inset-grouped CupertinoFormSection with multiple CupertinoTextFormFieldRows? The form should validate in real-time (AutovalidateMode.always) and trigger a save on any change using Form.maybeOf(primaryFocus!.context!).", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "127", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_002140", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, Material Design 3 in accordance with the design principles, a special shape Appar (for example, with a sloping edge at the bottom), to show a search text below this Appar (including Indian text, Prefix and Suffix icons), textfield's appearance (border color, filling color, etc.) to be special to the theme colors of the APP and the appari can be specially shifted to the theme colors. What kind of structure should I use to show the list (for example, with ListView.builder) and what roles do`Customappbarshape`class and`preferedsize`widget play in this structure?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "140", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002143", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Flutter application using Material 3 that features a Large App Bar (with a menu icon on the left, a 'more' icon on the right, and the title 'Large App Bar') inside a CustomScrollView. The scrollable content should be displayed inside a Card, and show how to style this content.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "143", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002147", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, using a`autocomplete`widget in the user interface by pulling data from an asynchronous API, using suggestions according to the text of the user entering the text, but the user will take the results of the latest search, and the results of the latest search will always show the results of the latest search query. How do you configure the`Autocomplete`widget, how do you simulate the data using the`_Fakeapi`class, and how do you optimize the performance and scalability of this configuration?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "147", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_002148", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we apply an `Autocomplete` widget with an asynchronous data source using a debouncing technique to prevent excessive API calls? Provide a complete implementation where the `optionsBuilder` of the `Autocomplete` widget uses a debounced search function, and a custom timer class manages the delays and cancels pending requests when a new search term is entered rapidly.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "148", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_002149", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do we implement an `Autocomplete` widget with an asynchronous data source, a debouncing mechanism, and network error handling? Specifically, we want to ensure that requests are debounced (e.g., by 500ms) to avoid sending a request for each character, and prevent the results of canceled requests from updating the user interface. How should we implement the `_AsyncAutocompleteState` class and relevant helper classes (such as a custom `_DebounceTimer`)?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "149", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002151", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "While developing the Flutter application, at the top of the application, the user is able to report an important message or action (for example, cookie policy approval, update notification or connection problems) and provide user interaction (for example, \"accept\", \"update\", \"Re -try\"), with a customizable background color, content, title symbol and multiple action button and multiplying, but to the user. How do I create a occupying materialbanner component and configure the basic features of this component (content message, symbol, background color, action buttons and the functionality of these buttons)?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "151", "status": "P1_partial", "type": "seed"}, "task_type": "api_usage"}
{"difficulty": "medium", "id": "seed_002154", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, create a customizable `BottomAppBar` and `FloatingActionButton` which are automatically hidden and shown depending on the direction of scroll, allowing the user to control the visibility of the `FloatingActionButton` and the height of the `BottomAppBar`. What are the steps to create a completely functional user interface that uses the Material 3 design language, and how do we apply these steps in accordance with Flutter's best practices?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "154", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002155", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you create a basic BottomNavigationBar structure representing three different tabs (Home, Business, School)? Each tab should display its corresponding text content (e.g., 'Index 0: Home', 'Index 1: Business', 'Index 2: School') and change the color of the selected tab. Please provide a detailed implementation covering the basic application structure (MaterialApp, StatelessWidget, StatefulWidget), BottomNavigationBar creation (items, currentIndex, selectedItemColor, onTap), state management (_selectedIndex, _onItemTapped), and the content list (_widgetOptions).", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "155", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002156", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do you create a stateful Flutter application with a BottomNavigationBar containing four sections (Home, Business, School, and Settings), each displaying a large text label and having a customized background color when selected?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "156", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002158", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can I configure the animation style of a sub-panel (bottom sheet) that is opened using the`showbottomsheet`function with different options (assumed, specially defined times, without animation) and how to change the animation time of the lower panel and the reverse animation time and the reverse animation time. How can I integrate with Widget so that I can update the`sheetanimationStyle`parameter according to the user selection?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "158", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002161", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, develop a sample application that demonstrates how to customize the opening and closing animations of a Modal Bottom Sheet (including custom duration, reverse duration, and completely disabling the animation) using the `showModalBottomSheet` function's `sheetAnimationStyle` parameter. The user should be able to select the animation style (Default, Custom, or None) using a `SegmentedButton` widget, managing its selection via the `onSelectionChanged` event.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "161", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002171", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, using the Material 3 theme, how do you write the minimum, reusable, and understandable code to create a list of three interactive `CheckboxListTile` widgets with 'Headline' titles and varying lengths of 'Supporting Text' subtitles, demonstrating how to align the checkbox to the top of the text using `isThreeLine`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "171", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002174", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you size and customize the avatar area using the `avatarBoxConstraints` property of the `RawChip` widget? Specifically, when using `BoxConstraints.tightForFinite()` in combination with label texts of different lengths, what is the effect on the appearance and behavior of the `RawChip` widget, and how can we ensure consistent layout behavior?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "174", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002182", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you customize the appearance and behavior of the text selection toolbar buttons (like cut, copy, paste) in a TextField while maintaining platform-adaptive behavior using AdaptiveTextSelectionToolbar and ContextMenuButtonItem? Also, how do you handle web-specific context menu conflicts?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "182", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002183", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we create a fully customized context menu for a TextField that detects if the selected text is a valid email address using Regex, and if so, adds a custom 'Send Email' menu item that opens a dialog? The solution should handle disabling the browser's default right-click menu on the web platform, manage the application lifecycle for this behavior, and use the platform-specific `AdaptiveTextSelectionToolbar`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "183", "status": "P1_partial", "type": "seed"}, "task_type": "api_usage"}
{"difficulty": "hard", "id": "seed_002184", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can I use the `contextMenuBuilder` feature on a `TextField` to create a completely custom context menu (e.g., arranged in a `GridView` with five custom buttons) while disabling the default browser context menu on the web platform? Please provide a complete example showing how to configure the menu's appearance, layout, and button actions.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "184", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002185", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter application, how can I customize the context menu triggered by right-click or long-press in a `SelectionArea` widget to keep default items, add a custom 'Print' action that shows a dialog, and ensure the browser's default context menu is disabled on web when the widget is active and re-enabled when it is disposed?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "185", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_002191", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, explain and write a complete example of how to use `RestorationMixin` and restorable properties to maintain the state of a `DateRangePickerDialog`. Create a `StatefulWidget` named `DatePickerExample` that uses `RestorationMixin` to store the selected date range, open the dialog via a `RestorableRouteFuture`, and restore the selected dates. Explain how this restoration works, including which data is saved and how it is restored.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2001_2200_eng.csv", "repo": null, "row_in_file": "191", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002202", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you create a user interface with a vertical divider (VerticalDivider) and equal-width cards on the left and right sides using the Material 3 design language? The interface should use the main color palette `0xFF6750A4` for the theme, have an AppBar titled 'Divider Sample', and use `EdgeInsets.all(16.0)` padding to control the gaps around the layout.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "2", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002204", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, using the values ​​received from a simple string list (`['One','Two','Three','Four']`), the first value of the list is the first element of the list, to create a Dropdownbutton in a customized appearance (arrow icon, deep purple colored text and sub-line) and update the value on the screen. What exactly should we design a code structure that holds the selected value of Dropdownbutton and updates it with Setstate?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "4", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002205", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you create a `DropdownButton` widget using a `Map<String, String>` of city names and their abbreviations? The dropdown's `items` should display the full city names, while the `selectedItemBuilder` should display the selected city's abbreviation inside a `Container` with blue, bold text. The UI should update when a new city is selected via `onChanged`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "5", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002207", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Create a Flutter application using `DropdownMenu` widgets to implement separate dropdowns for colors and icons. The app should dynamically display the selected color and icon as a text and icon combination. Deactivate one of the color options (e.g., Grey), enable search filtering on the icon dropdown, and use `ColorLabel` and `IconLabel` enums to manage the data.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "7", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002233", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Using Flutter, how can I create a basic MaterialApp and Scaffold structure containing a TextField with a send icon on the left, hint text, helper text, a character counter, and an OutlineInputBorder?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "33", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002235", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you create a simple text entry field inside a Scaffold using a TextField widget with a customized InputDecoration that shows a hint text, an error message, and an OutlineInputBorder, compatible with Material 3?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "35", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002236", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can I create a `TextFormField` widget with an `initialValue`, a `prefix` widget, and a `suffix` widget? The code should use the Material 3 theme and be contained within a Scaffold with an AppBar titled 'InputDecoration Sample'.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "36", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002237", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you style the floating label of a `TextFormField` using `WidgetStateTextStyle.resolveWith`? Provide a complete, working example using `useMaterial3: true` and `AutovalidateMode.always`. The floating label should have a letter spacing of 1.3, and its color should dynamically change: orange in the normal state, and the theme's error color (`Theme.of(context).colorScheme.error`) when a validation error occurs (e.g., when the field is left empty).", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "37", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002238", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how to create a dynamic \"Helper\" feature in a Textfield's Inputdecoration, which contains both text and a icon and provides precise control on the color, size of this icon and the manner under Textfield, is optimized in accordance with the principles of accessibility?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "38", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002240", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, I want to dynamically change the`labelstyle`feature in an`Inputdecoration`of a`Textformfield`of a`Textformfield`. This dynamic style change should ensure that the color of`labeltext`has a verification error to the error color of the theme, or a predetermined color (eg orange). In order to realize this behavior, how should I configure`labeltyle'correctly, which widgets or classes should I use, and what is the most appropriate approach to determine the error situation and apply the relevant style? In particular, the expression`widgetstatextStyle.resolvewith,`widgetstate`enum and`Theme.of (cont). Colorscheme.error`is correct and how can I guarantee whether this approach produces the expected result? If this approach is incorrect or improved, what is your proposal for an alternative solution?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "40", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002242", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, in order to control the size and alignment of the `prefixIcon` used in the `InputDecoration` of the `TextField` widget, we use `prefixIconConstraints`. Create a completely functional and well-documented example application that explains how it affects the minimum size and width of `prefixIcon` and how it can improve the user experience.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "42", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002244", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, explain how `InputDecoration`'s `suffixIcon`, `suffixIconConstraints`, and `isDense` properties interact to affect a `TextField`'s vertical dimensions and alignment. Provide a Flutter application demonstrating different `BoxConstraints` values for `suffixIconConstraints` to show how to achieve a consistent UI.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "44", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002246", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can I change the color of Textformfield's Prefixicon according to the situations that Texinput received (eg error, focus, assumed), so that it should be red, blue and other in other cases when it is focused on error and using this color, material 3 theme and`widgetstatecolor`How can I apply it; In addition, how can I add a simple confirmatory to ensure the accuracy of this application, trigger the error status with this confirmator`.com`and how can I ensure that the verification is continuously working by using`Autovalidatemode.Always`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "46", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002249", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we use the `ListTile` widget with different animations (specifically `Hero`, `FadeTransition`, and `SizeTransition`) to create a visually appealing and interactive user interface? Provide a complete, well-structured sample application demonstrating how to configure these animations.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "49", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002260", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we create a basic application skeleton that displays a `MenuBar` simulating platform-specific menu bars with sub-menus like 'File' and 'View' using `MenuAcceleratorLabel`? Additionally, how do we use `ScaffoldMessenger` to show notifications on interaction, and define a Ctrl+T shortcut to print the application's diagnostic information?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "60", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_002262", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do we create a context menu that can be triggered by both right -click (or secondary click) and keyboard shortcuts, take into account the platform -specific behaviors, depend on whether or not the message is displayed or not showing the display of the message and how we manage the selection and status of this menu (for example, background color, message visibility). To disable the menu and to re-activate it?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "62", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002271", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can I create a Flutter application featuring a NavigationRail on the left side of the screen where the user can interactively control its properties? Specifically, I want to be able to toggle the label appearance (none, selected, all), vertical alignment (top, center, bottom), and optional leading/trailing widgets (add button, more options icon). The destinations should include custom icons (some with notification badges using the Badge widget) for both selected and unselected states. The main content area should display the current state and provide SegmentedButton and SwitchListTile widgets to dynamically change these features.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "71", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002276", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter application, how do we configure `pageTransitionsTheme` in `ThemeData` to use a fading effect (such as `FadeForwardsPageTransitionsBuilder`) for page transitions across all platforms? Provide a complete example featuring a list of items (using `Colors.primaries` for avatars) that navigates to a detail page displaying the selected item's avatar, name, and message.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "76", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002278", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, when displaying a large and dynamic dataset (such as a series' episodes) using a `PaginatedDataTable`, how do you implement custom sorting logic for specific columns (e.g., sorting dates correctly and formatting the 'Episode' column as 'S[Season]E[Episode]')? Specifically, how do you extend the `DataTableSource` class, use a `setData` method, and define a `_displayIndexToRawIndex` constant to optimize sorting performance and keep the UI fluent?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "78", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002279", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you use the platform-specific menu bar (`PlatformMenuBar`) to create an application menu, manage actions of menu elements (`PlatformMenuItem`), assign shortcuts to these actions, group different menu elements (`PlatformMenuItemGroup`), and open an about dialog box (`showAboutDialog`)? Show how to create a menu structure containing multiple submenus, add standard platform-provided menu items (like Quit), and update a `Text` widget based on the selected menu options using best practices.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "79", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002282", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we customize the opening animation of the `PopupMenuButton` widget by integrating it with a `SegmentedButton` widget? The application should enable transitioning between different animation styles (default, custom, and non-animated) using the `AnimationStyle` class. Develop a sample application that demonstrates this behavior.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "82", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002288", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do I create a widget that displays a list of radio buttons for the names 'Hercules Mulligan', 'Eliza Hamilton', 'Philip Schuyler', 'Maria Reynolds', and 'Samuel Seabury'? The radio buttons should use their index as the value, be toggleable (allowing them to be deselected when tapped again), and be displayed on the home screen of the application.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "88", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002290", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can I create a customized widget called `LabeledRadio` to expand the touch area of the standard `Radio` widget, customize its label, and control its selection behavior? The `LabeledRadio` widget should accept parameters for the label text, padding, group value, value, and an `onChanged` callback. Additionally, show how to use this widget in a `LabeledRadioExample` stateful widget that displays two options and updates a state variable `_isRadioSelected` when a radio button is selected.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "90", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002292", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can I use the `RadioListTile` widget with Material 3 to allow users to select one option, and control the vertical alignment of the radio button when there is a long subtitle using the `isThreeLine` property? Please provide a complete example.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "92", "status": "P1_partial", "type": "seed"}, "task_type": "api_usage"}
{"difficulty": "medium", "id": "seed_002295", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you implement a customized `RefreshIndicator` (with a blue background, white foreground, and 4.0 stroke width) that can be triggered programmatically via a `FloatingActionButton` using a `GlobalKey`? The indicator should wrap a `ListView` with 25 items, and the refresh process should simulate a 3-second delay.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "95", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002296", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do you configure the `notificationPredicate` of a `RefreshIndicator` to target a nested `ListView.builder` inside a `CustomScrollView` (at depth 1) rather than the outer scroll view, and how do you enable drag gestures for all pointer devices using `MaterialScrollBehavior` in Flutter? Provide a complete code example.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "96", "status": "P1_partial", "type": "seed"}, "task_type": "api_usage"}
{"difficulty": "medium", "id": "seed_002299", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we create a reorderable list of 50 items using `ReorderableListView`, where each item is a `ListTile` colored differently based on whether its value is even or odd? Additionally, how do we customize the dragging appearance with a custom elevation animation using `proxyDecorator`, and properly update the underlying `_items` list in the `onReorder` callback?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "99", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002300", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we display a list of items in a `ReorderableListView` using Material 3, where the dragged card has a soft scale and elevation animation (using a custom `proxyDecorator`), alternating background colors for odd and even rows, and ensuring the reordering updates the state correctly?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "100", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002302", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, I would like to create a Reorderablelistview with 50 lists and to make it possible to change the elements in this list. How can I configure the background color of each listtile to have a more pronounced color tone for double elements and a lighter color tone for a single number of elements, and how should I implement the`Onreorder`function in order to ensure that this re-ranking process is realized (especially in the update of`Oldex`and`NewINDEX`)?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "102", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002307", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do we open an `endDrawer` programmatically using a `Scaffold` widget's `GlobalKey` and its `openEndDrawer()` method, while also controlling the swipe gesture using the `endDrawerEnableOpenDragGesture` property?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "107", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002317", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can I create a dynamically adjustable interface using a `SegmentedButton` to control a `SnackBar`'s animation style (such as default, custom duration/reverse duration, or no animation)? Write a complete and working sample code demonstrating how to apply these settings to `showSnackBar`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "117", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002320", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you create a 3-column GridView containing a vertical Scrollbar and show dynamically increasing text in each cell? Provide the basic structure of the application (MaterialApp, Scaffold, AppBar) and the necessary widgets (Scrollbar, GridView.builder, SliverGridDelegateWithFixedCrossAxisCount, Text) arranged in such a way that the scrollbar interacts with the grid content and the grid contains 120 items.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "120", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002328", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, using the Material 3 design language, how do we implement both single-selection (e.g., calendar view: day, week, month, year) and multi-selection (e.g., sizes: XS, S, M, L, XL) using the `SegmentedButton` widget? Provide a complete example integrating enums, `setState` for state management, and properties like `segments`, `selected`, `onSelectionChanged`, and `multiSelectionEnabled`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "128", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_002330", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do we make a custom widget selectable by the user with a customized selection area (for example, a rectangle with a certain fill around an icon), place the selection handles in the correct positions, and return the selected content (e.g., a 'Custom Text' string) and range (start and end offsets)? Specifically, how do we create the `_RenderSelectableAdapter` class, which is a custom `RenderObject` based on `RenderProxyBox`, and ensure that it correctly handles different types of `SelectionEvent` (such as selection starting, ending, and directional or granular selection expansion), updates the selection color, manages the starting and ending handles, and handles the selection geometry properly?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "130", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002331", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, create a complete sample application demonstrating how to enable text selection across the entire app. The app should use a `MaterialApp` structure, wrap the main layout in a `SelectionArea` widget, and contain a `Column` with three `Text` widgets displaying 'Row 1', 'Row 2', and 'Row 3'.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "131", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002337", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you implement two Sliders where the first slider's secondary track value (`secondaryTrackValue`) is controlled by the value of the second slider? Please provide a complete Flutter example using a `StatefulWidget` and `setState` to manage and update the state of both sliders independently.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "137", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002352", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can I create an interactive switchlisttil widget to change the status of a switch, and how can I configure this widget to emphasize text scrolling behavior and the vertical alignment of the key (both in the middle and the top) by using titles and sub-heads containing different amounts of text,", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "152", "status": "P1_partial", "type": "seed"}, "task_type": "api_usage"}
{"difficulty": "easy", "id": "seed_002360", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do you create a reusable, independent stateless widget (`ObscuredTextFieldSample`) in Flutter for entering sensitive information like passwords? The widget should have a width of 250 pixels and contain a framed `TextField` with `obscureText` set to true and a 'Password' label. Also, show how to use this widget inside a basic `MaterialApp` structure (`TextFieldExampleApp`) with a `Scaffold`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "160", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002362", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Create a Flutter application demonstrating Material 3 TextField designs. It should include an AppBar titled 'TextField Examples' and two TextFields: one filled and one outlined. Both TextFields should have a search icon as a prefix icon, a clear icon as a suffix icon, a label, hint text, and helper text, utilizing properties like useMaterial3, prefixIcon, suffixIcon, labelText, helperText, filled, and border.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "162", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002363", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, to create a form containing five textfieldfields, to save the value of each Textfield in this form, to ensure that the form is automatically verified in each change, to switch to the next Textfield from the keyboard to the next Textfield and to print the recorded values ​​to the console, how to maintain the general material design. And how do we position this arrangement in the center?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "163", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002372", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can I configure the default behavior of Tooltips centrally in the entire application using `TooltipThemeData` (specifically ensuring they appear above, not below, their contents), and demonstrate this with a rich text tooltip?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "172", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002374", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can I implement a customizable `WidgetStateInputBorder` (specifically an `UnderlineInputBorder`) that changes its appearance based on the text field's state (focused, hovered, disabled)? Additionally, how can I animate the width of the `TextField` dynamically based on focus, simplify state checks using an extension on `Set<WidgetState>`, and control the enabled/disabled state of the text field using a `FilterChip`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "174", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002375", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, when using a CustomScrollView with a SliverList.builder containing alphabetical elements, how can I dynamically change the scroll direction using radio buttons via an `_axisDirection` variable? Specifically, how should I use the `setState` method to ensure that the content of the `_getLeading` widget (including the arrow icons and text representations) updates correctly when the axis direction changes?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "175", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002377", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you create a MaterialApp covering the entire screen with a linear gradient background starting from the upper left corner and ending at the point (0.8, 1), using a multi-color gradient (including #5b0060 and #ffb56b) with TileMode.mirror, and a centered white 24-point text 'From Night to Day'?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "177", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002390", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In the Flutter application, to ensure that a particular Widget captures and processes the keyboard entry, listening to keyboard events using Focusnode and updating the user interface according to certain key strokes (for example, \"Q\" key), as well as show different messages in Debug and Release modes and can be used to re-use and re-use Focus. Which Life Cycle Methods (Dispose) should be used to prevent memory leaks when managing this widget's keyboard interaction?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "190", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002393", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can I dynamically change the system status bar and navigation bar colors in Flutter using SystemUiOverlayStyle, and ensure the UI elements adapt to the background color?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "193", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_002395", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Flutter in Flutter, a special virtual keyboard independent of the keyboard (myvirtualkeyboard) to create and direct the text inputs of this keyboard to a Textfield (Textinputcontrolexample), the visibility of the virtual keyboard (mytextinkputControl.visible) Texinputconttrol api's (Textinput.setinputcontrol, texinput.restoreplatformputcontrol, textinkput.updateeditingValue) to manage, Textfield's existing text content (texteditingValue) to update according to virtual keyboard inputs (adding and cursor positioning) (Focusnode) To control the virtual keyboard independently, how can we apply and manage the interaction between these components, including the correct use of the Textinputcontrol API (Register, Unregister, Show, Hide) and the correct use of text. It becomes visible when it focuses, and the virtual keyboard entries correctly update the existing text in Textfield, as well as cleaning icon in Textfield (Iconbutton) both Textfield is clean", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2201_2400_eng.csv", "repo": null, "row_in_file": "195", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002413", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do I create a minimal Flutter application using `WidgetsApp` that displays the text 'C8H10N4O2' using the 'Piazzolla' font and scientific subscript formatting (scientific inferiors)?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "13", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002425", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we use `FocusableActionDetector` to manage keyboard shortcuts (e.g., the 'X' key) and mouse interactions (hover, focus, click) for a custom reusable button component (`FadButton`)? The component should update its state, change color based on focus/hover, and handle actions/shortcuts. Provide a complete example showing this custom button alongside standard Flutter buttons.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "25", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002426", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you create and manage an `AnimatedGrid` with a maximum item width that supports animated addition and removal? Demonstrate how to animate the selection of grid elements (using scaling and color changes) and how to use strategies like `GlobalKey`, `RemovedItemBuilder`, and a custom `ListModel` class to optimize performance and state management.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "26", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002429", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we create a dynamically modifiable list with insert and delete animations using `AnimatedList.separated`? Explain the architecture and code structure, including the roles of a custom `ListModel` class, item builders (`_buildItem`), separator builders (`_buildSeparator`), and removed item builders, using custom `CardItem` and `ItemSeparator` widgets.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "29", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_002449", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you create a custom layout using `CustomMultiChildLayout` and `MultiChildLayoutDelegate` that arranges colored containers (Red, Green, Blue, Cyan) in a cascading pattern (overlapping by 30.0 pixels both horizontally and vertically) based on the text direction (LTR/RTL)? Provide a complete implementation demonstrating the layout principles, optimization strategies, and text direction handling.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "49", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002453", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you create a menu that organizes a series of icons horizontally and opens/closes in an animated manner using the `Flow` widget, `AnimationController`, and a custom `FlowDelegate`? The menu elements should be automatically dimensioned according to the screen size, emphasize the touched element, and animate smoothly.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "53", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002454", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, in a Scaffold covering the entire home screen, how do you write the Flutter code that is necessary to create a blue-framed DecoratedBox that covers 50% of both the width and height of the screen using the FractionallySizedBox widget?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "54", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002455", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how to create a stateful interface that dynamically changes the text of a particular button by using the `IgnorePointer` widget to disable and re-activate user interaction? In the interface, there should be a text label that shows the current `IgnorePointer` status (true/false), an `ElevatedButton`, and a `FilledButton` that changes the status of the `IgnorePointer`; at the same time, the text of the `FilledButton` should change dynamically according to the current situation (\"set ignoring to false\" or \"set ignoring to true\"). Explain how this interface will be configured in a basic Flutter application using `MaterialApp` and `Scaffold` widgets and how to manage the state using `setState`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "55", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002456", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we implement a Flutter application using StatefulWidgets, GestureDetectors, and an IndexedStack to manage a list of people (initially containing 'Dash', 'John', and 'Mary')? The app should allow adding new people via a TextField, incrementing an individual score for each person, and navigating through the people in the IndexedStack using gesture-based navigation buttons.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "56", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002461", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, when using the `Offstage` widget, the child widget is still laid out even when `offstage` is true. How can we reliably retrieve the size of an invisible `FlutterLogo` widget using a `GlobalKey` without causing rendering errors, and under what conditions is this size information guaranteed to be valid? Provide a complete Flutter example demonstrating this.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "61", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002469", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do we create an interface in the middle of the screen using a StatefulWidget that asks the user for the next number in the Fibonacci series (1, 1, 2, 3, 5, 8...)? The interface should use a TextEditingController to manage the TextField's content (and dispose of it to prevent memory leaks). If the user enters '13', show an AlertDialog saying 'That is correct!'.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "69", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002470", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you create a TextField that supports inserting images directly from the keyboard (e.g., via IME/gif keyboard), displays the inserted image on screen, and manages resources efficiently using a StatefulWidget and ContentInsertionConfiguration?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "70", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002472", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do we use TexteditingController to set the initial value of a Textfield Widget to \"Flutter\" and position the cursor at the beginning of this value (0. Index), how do we use TexteditingController and how to properly cleanse and automatically focus Textfield?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "72", "status": "P1_partial", "type": "seed"}, "task_type": "api_usage"}
{"difficulty": "medium", "id": "seed_002474", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you programmatically unfocus a TextField using different `UnfocusDisposition` behaviors? Provide a complete example of a white-background application containing multiple TextFields, radio buttons to select the `UnfocusDisposition` value, and an 'UNFOCUS' button that triggers the unfocus action based on the selected disposition.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "74", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002478", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do I create an interface consisting of two `Pane` widgets that use `FocusScope` to manage focus? The background pane should have a 'close' button, and the foreground pane should have a 'menu' button. When the 'menu' button is clicked, the foreground pane should animate down to reveal the background pane, and focus should shift to the background pane. How can I control the focusability (`canRequestFocus`) of the background pane based on the animation state?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "78", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002482", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, when a user tries to exit the application without saving changes made in a form, how can we show a customizable warning dialog? Specifically, how do we use the `Form` widget's `canPop` and `onPopInvokedWithResult` properties to manage the form's dirty state, determine when to show the dialog, and handle the application exit based on the user's selection?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "82", "status": "P1_partial", "type": "seed"}, "task_type": "api_usage"}
{"difficulty": "easy", "id": "seed_002496", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do we create a `StatefulWidget` in Flutter that displays a centered box containing a Flutter logo using the `AnimatedContainer` widget? When tapped, its width, height, color, and alignment should animate over 2 seconds with a smooth transition using the `Curves.fastOutSlowIn` curve.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "96", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002497", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you create an interactive and animated visual component where the size (widthFactor and heightFactor) of a Flutter logo, located inside a ColoredBox, changes along with its alignment and color based on user interaction (tap) with a predetermined speed and curve? Provide an example using the AnimatedFractionallySizedBox widget, demonstrating state management for the selection state.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "97", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002498", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we effectively use the`Animatedpadding`widget, which changes the fill of a container to animated, triggered by user interaction and provides a soft transition using the`Easeinout`curve; This use should be triggered through a button that changes the filling value between 0 and 100, includes a text label that shows the existing filling value, and to fully understand how this animated fill affects the dimensions and position of the container in different sizes of the screen, the basic structure of the application, the status management and the user interface elements (button, text label, animated and container)?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "98", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002499", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we create a reusable and customized AnimatedPositioned widget that animates the size and position of a ColoredBox based on user interaction, using a pre-defined duration and curve?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "99", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002501", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do you create a Flutter user interface that uses a FloatingActionButton to trigger an animated visibility transition (using SliverAnimatedOpacity) on a SliverFixedExtentList?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "101", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_002522", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter application using nested navigators, how can we handle system back gestures to either pop the nested navigator or return to the main page? Specifically, show how to use `NavigatorPopHandler` with a `GlobalKey<NavigatorState>` to manage a nested navigator that starts at `nested_navigators/one` and can navigate to `nested_navigators/one/another_one`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "122", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_002523", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Create a Flutter application demonstrating nested navigation with state restoration across tabs in a `BottomNavigationBar`. The application should use `RestorationMixin`, `RestorableValue`, `NavigatorPopHandler`, and `GlobalKey<NavigatorState>` to maintain tab and page stacks on restart and handle back button behavior correctly for each tab.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "123", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002528", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you create a basic application using `NestedScrollView`, `SliverAppBar`, and `TabBarView` (with lists for 'Months' and 'Days') that uses a `NotificationListener` to detect and print the start and end of scroll events to the console?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "128", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002530", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter application, how can we create a dynamic overlay that highlights a selected item in a `NavigationBar`? When a destination is selected, we want to draw a colored frame over it with explanatory text and an arrow icon, ensuring the overlay is within a `SafeArea`. The overlay should update dynamically based on the selected item, and we must properly manage the lifecycle of the `OverlayEntry` (creation, updating, and removal) to prevent memory leaks. Provide a clean, readable, and tested code structure using `OverlayEntry`, `Overlay`, `StatefulWidget`, `AlignmentDirectional`, `SafeArea`, and `NavigationBar`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "130", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002535", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, when switching between BottomNavigationBar tabs, how can we preserve the scroll position and other widget states (such as TextField content) to prevent them from being recreated? Provide a clean, reusable solution using PageStorage, PageStorageBucket, and PageStorageKey.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "135", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002536", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do you integrate Flutter components such as `TabController`, `TabPageSelector`, and `IconButton` to create an interactive page indicator for a three-page `PageView`? The indicator should be designed for desktop and web platforms (using conditional rendering to return `SizedBox.shrink()` on mobile), synchronize the page index, and provide smooth animated transitions between pages.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "136", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_002537", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, when using a dynamic data list (which can be reversed or reordered) inside a `PageView.custom` widget, how can we ensure that the state of the pages (created with `SliverChildBuilderDelegate`) is preserved correctly? Specifically, how do we implement `findChildIndexCallback` using `ValueKey` to handle reordering, and integrate `AutomaticKeepAliveClientMixin` to minimize memory impact while keeping pages alive? Provide a complete, working implementation.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "137", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002539", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you use the `PopScope` widget to prevent the default system back behavior (by setting `canPop` to `false`) and customize the back navigation using `onPopInvokedWithResult`? Specifically, show how to prompt the user with a confirmation dialog before leaving a form page, and explain how to manage the data flow by creating and comparing copies of a custom data class when returning to the previous page.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "139", "status": "P1_partial", "type": "seed"}, "task_type": "api_usage"}
{"difficulty": "medium", "id": "seed_002544", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, I would like to create a simple counter application using state restoration to maintain its application status. In this application, a widget must be created that increments an integer value (initially 42) one by one when clicking an `OutlinedButton` and shows this value on the screen. When the application is closed and re-opened, `RestorationMixin` and `RestorableInt` should be used to prevent the value of this counter from disappearing. Meeting these requirements, how do I write a complete Flutter code containing `RestorableValueExampleApp` and `RestorableValueExample`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "144", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002548", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do you design and implement a clean architecture in Flutter to listen to navigation events (such as pushing a page or returning to a previous page) and notify relevant widgets using the `RouteObserver`, `RouteAware`, and `NavigatorObserver` classes?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "148", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_002550", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, using Inheritedmodel, both through the Sliders who dynamically adjusts both Edgeinsets values ​​(upper notch, side gaps, sub-indicator), as well as the Switchlistililes that allow the display/hide of Safearea Widget and Appbar, and thus adjust this to affect the safety field and appearance of the application. Easily accessible and updated in different parts of the application (for example, safeareaexampleapp, safeareaexample), taking into account the performance optimization of Inheritedmodel's aspect feature?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "150", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002561", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, when the order of elements in a `ListView.custom` with `SliverChildBuilderDelegate` changes, how do we use `AutomaticKeepAliveClientMixin` to prevent re-creation of elements, and how do we implement the `findChildIndexCallback` function using `ValueKey` to find the new index of the items?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "161", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002568", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, explain how to share and mutate data safely across the widget tree without using global variables, external state management libraries, or custom `InheritedWidget` subclasses, by leveraging the built-in `SharedAppData` class. Provide a complete implementation showing how to define a `SharedObject`, access it using `SharedAppData.getValue`, update it using `SharedAppData.setValue` to trigger rebuilds, and initialize it when the application first opens. Show how a `CustomWidget` reads and updates this shared object.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "168", "status": "P1_partial", "type": "seed"}, "task_type": "api_usage"}
{"difficulty": "medium", "id": "seed_002594", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter application, how can I apply the platform -specific system context menu (copy, paste, cut, etc.) in a Textfield, depending on whether this menu system is supported to the system menu or adaptive toolbar, so that the application will maintain both the local experience of the platform?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "194", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_002596", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, to create a special number of entry fields (for auction and reduction functions) containing a`Textfield`and two`Outlinedbutton`, to control the value of this area with the keyboard arrow keys, to ensure that the value entered is only numerical, and to ensure that this special number of entrance space is included in the`Textfielddtapregion`How to designed and apply`spinnerfield`widget and a specific`Interspinerfield`widget; In this design, when the value in the text field changes or increases/reduction buttons are pressed, how to integrate the behaviors such as updating the value, defining the keyboard shortcuts and automatically focusing the text field, and how to protect the content of the text field in case of reconstruction of Widget?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "196", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_002599", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can I customize the default magnifier behavior of a TextField widget (specifically changing its shape, border color/thickness, size, focal point, and scale, as well as constraining its position to the text line boundaries)? How do I ensure it supports both Left-to-Right (LTR) and Right-to-Left (RTL) text directions?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2401_2600_eng.csv", "repo": null, "row_in_file": "199", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002601", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we create an application that allows a green square with 'Whee!' text to rotate in 10-second loops using AnimationController, TickerProviderStateMixin, AnimatedBuilder, and Transform.rotate, specifically preventing the re-creation of AnimatedBuilder's child parameter? Provide the complete code.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "1", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_002607", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, I would like to create a simple application that represents a counter using `ValueNotifier` on the screen through a `ListenableBuilder` widget, and also increases the value of the counter with a `FloatingActionButton`. It should include a `ListenableBuilderExample` stateful widget that forms the main structure of the application, with its state `_ListenableBuilderExampleState`. It must also include a `StatelessWidget` named `CounterBody`, which displays the value of the counter. How do I create Flutter code that meets these requirements, accurately updates the value of `ValueNotifier` with `ListenableBuilder`, and uses basic Material Design elements?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "7", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002608", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do we optimize performance using the `ListenableBuilder` widget and a `ChangeNotifier` to update a counter value in the interface? Specifically, when the `_count` variable of the `CounterModel` class is increased via the `increment` method, we want to rebuild only the relevant `Text` widget inside the `builder` function to prevent unnecessary rebuilds of the rest of the widget tree. How do we configure the `ListenableBuilder` widget correctly, connect the `CounterModel` instance to it, and instantly update the counter value on the screen when a `FloatingActionButton` is pressed?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "8", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002618", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Using Flutter, I would like to create a clicked interaction that softly changes the size of a Iconbutton to its tweananimationbuilder widget softly; In this interaction, every time Iconbutton is clicked, the size will be between 24.0 and 48.0, the animation time will be 1 second, Iconbutton's color will be blue and will show the \"aspect_ratio\" icon, but it will prevent the unnecessary re-scratching of the tweanimationbuilder's Builder function for performance optimization (for example How can I do it in a way by using it as a parameter?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "18", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002621", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, the `side` property of the `FilterChip` widget allows applying customized borders based on different widget states (such as pressed, hovered, or selected). How can we configure a `FilterChip` to show a green border when pressed, a blue border when hovered, and a red border when selected, ensuring the border updates correctly when the selection state changes?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "21", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002622", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we dynamically change the mouse cursor of a `ListTile` based on its `enabled` state using a custom `WidgetStateMouseCursor`? Provide a complete example where a `Switch` toggles the `ListTile`'s enabled state, and the cursor changes between `SystemMouseCursors.forbidden` (when disabled) and `SystemMouseCursors.click` (when enabled).", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "22", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_002624", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, using the `flutter_test` library, how do you write a widget test for the `AnimatedDigitApp` widget (from `flutter_api_samples/animation/animation_controller/animated_digit.0.dart`)? The test should verify the initial value, the increment mechanism via a FloatingActionButton, and the animation transitions using `pump()` and `pumpAndSettle()`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "24", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002625", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do I write an automated Flutter UI test for the `Curve2DExampleApp` widget? The test should find a `CircleAvatar` containing the letter 'B' moving along a 2D curve. It needs to advance the animation in steps using the `pump` method, and verify the widget's position at each step against a list of expected coordinates using the `moreOrLessEquals` matcher with an epsilon of 1 to tolerate small shifts.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "25", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002636", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you write a widget test for `CupertinoPopupSurface` to verify that a `ColoredBox` is displayed when a controlling `CupertinoSwitch` is active, and that the `ColoredBox` does not appear when the switch is toggled to inactive?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "36", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002640", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do you write a Flutter widget test to verify the properties of a `CupertinoListTile` (such as title, subtitle, leading, trailing, and background color) using `find.text`, `find.byIcon`, `find.byKey`, and `tester.firstWidget`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "40", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002647", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In the Flutter test environment, `flutter_api_samples/cupertino/picker/cupertino_picker.0.dart` defines the `CupertinoPickerApp` widget. We aim to test the manipulation of selected elements in `CupertinoPicker`. By simulating user interactions (such as drag and touch actions), we verify that the text content of the `CupertinoButton` widget changes as expected and the `CupertinoPicker`'s `scrollController` initial item is updated. How is such a test scenario designed and implemented?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "47", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002667", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do I write a Flutter widget test to verify that a CupertinoFormSection contains five CupertinoTextFormFieldRow widgets, and that entering text into the first row correctly updates and displays the text?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "67", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002683", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Using Flutter widget testing, write a test to verify whether the `AppBarExampleApp` widget's `AppBar` has a custom shape (`CustomAppBarShape`). Also, write a test scenario to verify whether a `TextField` widget is found in the bottom/subtitle of the `AppBar`. Demonstrate how to use the Flutter testing tools and functions: `find.descendant`, `find.byType`, `tester.pumpWidget`, and `tester.widget`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "83", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002685", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you write a widget test for `AppBarMediumApp` (which uses a `SliverAppBar`) to verify the number of `IconButton` widgets, the initial and post-scrolling position of the title text, and its style after scrolling?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "85", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002692", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you write widget tests for an `Autocomplete` widget that uses a fake API delay and debounce duration, including testing search filtering, debounce resetting, and displaying error messages on network errors?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "92", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002701", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "When `AnimationStyle` is used to customize the opening and closing animations of a BottomSheet opened with the `showBottomSheet` function in a Flutter application, how can we write a Widget test that confirms different `AnimationStyle` configurations correctly customize the animation by measuring the vertical position (DY) of the BottomSheet at specific millisecond intervals?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "101", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002708", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Flutter widget test using the `flutter_test` package to verify that the `Card` widget in the `CardExampleApp` from `flutter_api_samples/material/card/card.1.dart` has its `clipBehavior` property set to `Clip.hardEdge` by default.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "108", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_002728", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, when testing a customized context menu (right-click menu) built using `contextMenuBuilder` on a `SelectableRegion`, how can we write a widget test to verify that the `AdaptiveTextSelectionToolbar` containing a 'Print' option appears on a secondary click (right-click) and disappears when the primary mouse button (left-click) is clicked elsewhere?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "128", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002745", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Flutter widget test to verify the layout order of a `VerticalDivider` and two `Card` widgets in `VerticalDividerExampleApp`. Specifically, prove that the first card is to the left of the divider and the second card is to the right of the divider by comparing their coordinates.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "145", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_002752", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you write an atomic UI test to verify that the mouse cursor (text, click, or basic) correctly displays the expected behavior when hovering over different DropdownMenu/TextField elements? Specifically, how can we use RendererBinding to assert that the active cursor matches the expected SystemMouseCursors value?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "152", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002769", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, write a widget test for the `IconButtonApp` widget defined in `icon_button.2.dart`. The test should verify that there are 8 `IconButton` widgets using the `Icons.filter_drama` icon. It should confirm that 4 of these IconButtons are active (i.e., their `onPressed` callback is a valid `VoidCallback`) and the other 4 are disabled (i.e., their `onPressed` callback is null).", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "169", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_002775", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do we write an automated widget test to verify the interaction between `TextInputAction.done`, `InputChip` deletion, and the `ChipsInputState` object, specifically covering the `kObjectReplacementChar` mechanism in `ChipsInputEditingController`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "175", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002777", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you write a widget test to verify that a TextField Widget from the 'input_decoration.1.dart' sample is correctly decorated with an InputDecoration, specifically checking that its 'hintText' is present, 'contentPadding' is set to EdgeInsets.zero, and 'border' is an OutlineInputBorder?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "177", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002778", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, the `flutter_api_samples` package contains the `InputDecorationExampleApp` widget in `input_decoration.2.dart`. This widget contains a `TextField` with hint text and error text. What is the code required to create a widget test that verifies the `TextField` is present and its `decoration` is not null?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "178", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002788", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do we test how the `decoration` property of `TextFormField` changes based on different widget states (e.g., focused, unfocused), specifically ensuring that `prefixIconColor` gets different colors (grey and green respectively) in default and focused states using `MaterialStateExampleApp`? Show how to apply the scenario, verify the state-based color changes by using `WidgetStateColor` in this test scenario, and evaluate the state-based behavior of `InputDecoration`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "188", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002789", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do we write a Flutter widget test to verify that the `prefixIconColor` of a `TextFormField` dynamically updates based on its `WidgetState` (e.g., default, focused, error), and also validates that entering an invalid URL (e.g., missing '.com' TLD) displays the correct error message?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "189", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002794", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we write a widget test to automatically verify that the `leading` (a `CircleAvatar`) and `trailing` (an `Icon`) widgets of a `ListTile` are correctly aligned and positioned at expected offset values (e.g., (16.0, 16.0) and (752.0, 24.0)) relative to the `ListTile`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2601_2800_eng.csv", "repo": null, "row_in_file": "194", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_002805", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you write a Widget test to verify a context menu opened with the secondary mouse button? The test should ensure that menu elements are displayed correctly, keyboard navigation (arrow keys and Enter) works, and shortcut keys (e.g., Ctrl+S, Ctrl+R, Ctrl+G, Ctrl+B) trigger the correct menu actions, including showing/hiding messages and updating the selected state.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2801_3000_eng.csv", "repo": null, "row_in_file": "5", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002806", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Flutter widget test to verify that tapping an IconButton opens a MenuAnchor displaying three MenuItemButton elements labeled 'Item 1', 'Item 2', and 'Item 3'.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2801_3000_eng.csv", "repo": null, "row_in_file": "6", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002807", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you write a minimal and complete widget test for the `SimpleCascadingMenuApp` widget (from `flutter_api_samples/material/menu_anchor/menu_anchor.3.dart`) to verify that tapping the IconButton opens and closes the menu?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2801_3000_eng.csv", "repo": null, "row_in_file": "7", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002821", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we write a widget test in Flutter to verify the sorting and paging functionality of a `PaginatedDataTable` (specifically `DataTableExampleApp`), ensuring that 'Strange New Worlds' is visible on the first page, disappears after sorting, and behaves correctly when navigating pages?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2801_3000_eng.csv", "repo": null, "row_in_file": "21", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002833", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, a custom radio button component `LabeledRadio` is defined. To test its selection behavior, an application `LabeledRadioApp` is created. Write a detailed UI test scenario using the Flutter test framework to verify that the initial state of the radio buttons, user interaction (tapping), and the post-interaction `value` and `groupValue` properties change as expected.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2801_3000_eng.csv", "repo": null, "row_in_file": "33", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002834", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you write a widget test using the `flutter_test` package to verify that a `RadioListTile` group's state updates correctly? Specifically, write a test for `RadioListTileApp` that verifies the initial `groupValue` is `SingingCharacter.lafayette`, and after tapping the second radio button, the `groupValue` updates to `SingingCharacter.jefferson`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2801_3000_eng.csv", "repo": null, "row_in_file": "34", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_002837", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do we test the interaction of a `RangeSlider` widget using `WidgetTester`? Specifically, write a widget test using the `flutter_test` library and `find.byWidgetPredicate` to simulate dragging movements on a `RangeSlider` with 5 divisions between 0 and 100, verifying that the values update correctly (e.g., to `RangeValues(0, 80)` and `RangeValues(20, 80)`) based on the drag coordinates.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2801_3000_eng.csv", "repo": null, "row_in_file": "37", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002844", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, write a widget test for a `ReorderableListView` that simulates reordering an item by long-pressing and dragging it. Use `TestGesture` with the correct gesture timeouts to simulate the long press, and verify that the item's vertical position changes after the drag.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2801_3000_eng.csv", "repo": null, "row_in_file": "44", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002872", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you write a widget test for a `SegmentedButton` customized with `SegmentedButton.styleFrom`? Specifically, how can you verify the `foregroundColor` and `backgroundColor` for both selected and unselected states by finding the ancestor `Material` widget of a text label using `find.ancestor` and `find.byType`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2801_3000_eng.csv", "repo": null, "row_in_file": "72", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002880", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter application with two `Slider` widgets, the first slider's `secondaryTrackValue` is synchronized with the value of the second slider. Write a comprehensive widget test using the `flutter_test` library to verify this behavior. The test should simulate a touch/tap movement on the second slider and assert that the first slider's `secondaryTrackValue` updates accordingly, using the `closeTo` matcher to handle tolerance.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2801_3000_eng.csv", "repo": null, "row_in_file": "80", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002896", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we write Flutter widget tests for a TabBar and TabBarView interface managed by a DefaultTabController to cover these scenarios: 1) Verify the first tab is selected by default. 2) Verify that tab changes are logged via debugPrint. 3) Verify that DefaultTabControllerListener throws an expected FlutterError when used without a DefaultTabController?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2801_3000_eng.csv", "repo": null, "row_in_file": "96", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002901", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, using the `TextButtonExampleApp` example, how can we design and implement a widget test scenario to verify that the various `TextButton` widgets (with different text, states, icons, styles, and the smiley button visual updates) and `Switch` widgets respond correctly to user interactions and exhibit the expected visual changes?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2801_3000_eng.csv", "repo": null, "row_in_file": "101", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002903", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can I write a widget test for a widget named `TextFieldExampleApp` that contains a `TextField` with a 'Password' label and obscured text, to verify that `obscureText` is true and the label text matches?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2801_3000_eng.csv", "repo": null, "row_in_file": "103", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002904", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you write a widget test to verify that an `AlertDialog` correctly displays the text entered in a `TextField` along with its correct length (handling emojis and special characters using `characters.length`) after pressing the 'Done' action? Assume the widget under test is `TextFieldExampleApp`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2801_3000_eng.csv", "repo": null, "row_in_file": "104", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002905", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "When a Flutter application contains two text fields in 'TextFieldExamplesApp' with 'Filled' and 'Outlined' styles, featuring PrefixIcon, SuffixIcon, LabelText, HintText, and HelperText, how should widget tests be written to verify they are created correctly? How can we comprehensively assert that both TextField types have the expected UI elements and correct property values?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2801_3000_eng.csv", "repo": null, "row_in_file": "105", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002918", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you write an automated UI test for an application (`example.ExampleApp`) containing radio buttons that change the `AxisDirection`? The test should confirm that when the direction is changed to `AxisDirection.up`, the UI updates correctly (e.g., displaying 'AxisDirection.up', 'Axis.vertical', 'GrowthDirection.forward', and the corresponding 'Icons.arrow_upward_rounded' icons).", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2801_3000_eng.csv", "repo": null, "row_in_file": "118", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002920", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you write a widget test to verify the pixel-level visual appearance of a `MoodyGradient` widget using a golden file comparison and wrapping it in a `RepaintBoundary`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2801_3000_eng.csv", "repo": null, "row_in_file": "120", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002932", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you write a widget test to verify the behavior of an application that handles exit requests? The UI contains 'No exit requested yet', 'Do Not Allow Exit', 'Allow Exit', and 'Quit' buttons. The test should verify that tapping 'Quit' changes the status to 'App requesting cancelable exit'.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2801_3000_eng.csv", "repo": null, "row_in_file": "132", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002940", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "What is the Flutter code required to write a widget test that confirms that a `Text` widget inside `ExampleWidget` uses the 'Raleway' font family and has its font features set to `FontFeature.alternative(1)`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2801_3000_eng.csv", "repo": null, "row_in_file": "140", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002942", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we write a widget test to verify that a Text widget correctly applies the 'Piazzolla' font family and the FontFeature.caseSensitiveForms() font feature?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2801_3000_eng.csv", "repo": null, "row_in_file": "142", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002972", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, when using the `AnimatedList.separated` widget, how do you write an automated widget test to verify that items and separators are correctly displayed, added, and removed with animations? Which `WidgetTester` methods and `Finder` types (such as `find.text` and `find.byIcon`) are used for this?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2801_3000_eng.csv", "repo": null, "row_in_file": "172", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002985", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do we write a widget test to verify a form that uses the `AutofillGroup` widget? The form contains a 'Shipping Address', 'Billing Address', multiple `TextField`s, a `Checkbox`, and a 'Contact Phone Number', utilizing autofill features. The test should verify the behavior when the checkbox is toggled (which changes the form's interface), checking the number of text fields, the checkbox status, and the specific `AutofillHints` on the text fields.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2801_3000_eng.csv", "repo": null, "row_in_file": "185", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_002997", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Flutter widget test using `flutter_test` to verify that a `FractionallySizedBox` correctly scales a `DecoratedBox` child. The test should assume screen dimensions of 800x600, an AppBar height of 56.0, and width/height factors of 0.5. Use `WidgetTester` to verify the dimensions of the `DecoratedBox`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_2801_3000_eng.csv", "repo": null, "row_in_file": "197", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_003012", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, using the `OnChangedExampleApp` widget from `package:flutter_api_samples/widgets/editable_text/editable_text.on_changed.0.dart`, how do you write a complete widget test suite that confirms the correct labels are displayed, the dialog is shown/hidden based on the answer, and the dialog is closed when the 'OK' button is pressed?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3001_3200_eng.csv", "repo": null, "row_in_file": "12", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_003024", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Assuming that an application part containing a basic form verification functionality in Flutter is assumed to include an Appbar with a \"Form Sample\" title, a Textfield and an Elevatedbutton, to test the user interactions (empty shipping, text input and valid shipment) and to verify the functionality of the Flutter Test Libra How to improve a comprehensive Widget test that confirms verification messages and reactions to user inputs, and how to read and verify the value of Textfield's controller, trigger the button and update the interface accordingly?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3001_3200_eng.csv", "repo": null, "row_in_file": "24", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_003028", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you write a widget test using `WidgetTester` to verify a `GestureDetector` behavior? The widget contains a lightbulb icon (initially black with `Icons.lightbulb_outline` and text 'TURN LIGHT ON'). Tapping the `GestureDetector` should toggle the icon's color to `Colors.yellow.shade600` and text to 'TURN LIGHT OFF', and tapping it again should revert them. Provide a detailed test scenario using functions like `pumpWidget`, `find.byIcon`, `find.text`, `find.byType`, `tap`, and `expect`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3001_3200_eng.csv", "repo": null, "row_in_file": "28", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_003029", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Flutter widget test for `GestureDetectorExampleApp` to verify that tapping the `GestureDetector` toggles the `Container`'s color between white and yellow.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3001_3200_eng.csv", "repo": null, "row_in_file": "29", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_003046", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we write a Flutter widget test using the `flutter_test` library to verify the transformation matrices (such as the identity matrix and rotations around the Z-axis at specific intervals) of a `Transform` widget wrapping a 'Whee!' text widget, covering the initial state, intermediate steps, and the full rotation cycle?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3001_3200_eng.csv", "repo": null, "row_in_file": "46", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_003054", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Flutter widget test that verifies that when a `CupertinoTextField` is long-pressed, the `CupertinoTextMagnifier` widget is correctly displayed. Assume the widget is hosted inside `CupertinoTextMagnifierApp` from the Flutter API samples.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3001_3200_eng.csv", "repo": null, "row_in_file": "54", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_003092", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do you write a Flutter widget test to verify page transitions using `RouteObserver` and `RouteAware`? Specifically, how can we test that the `didPush` and `didPopNext` lifecycle methods are triggered the expected number of times when navigating forward and back, and which `WidgetTester` methods and assertions should be used?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3001_3200_eng.csv", "repo": null, "row_in_file": "92", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_003109", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Flutter widget test using the `flutter_test` library that verifies that the `example.ScrollbarApp` widget contains exactly 3 `Scrollbar` widgets when running on the desktop platform, using `TargetPlatformVariant.desktop()`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3001_3200_eng.csv", "repo": null, "row_in_file": "109", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_003143", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, a special magnifier in Textfield, displaying the widget of the widget and to test the behavior of this enlarger (positioning, appearance, interaction, etc.), especially in text selection and dragging processes, transform the text positions of the Rendereditable object into the world coordinates, and to manipulate the endpoints (endpoints). How to create and confirm comprehensive and reliable test scenarios covering, in these test scenarios from right to left (RTL) language support, platform differences (iOS, Android) and asynchronous procedures (animations, redraws), how to guarantee the expected location, content and interaction of the magnificent?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3001_3200_eng.csv", "repo": null, "row_in_file": "143", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_003149", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do you write a comprehensive widget test for `FadeTransitionExampleApp` (from `fade_transition.0.dart`) containing a `FlutterLogo` inside a `FadeTransition`? The test should verify that the animation values at the start, middle, and end points match the expected values calculated using the specified duration (`FadeTransitionExampleApp.duration`) and curve (`FadeTransitionExampleApp.curve`), and that the animation cycle completes correctly.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3001_3200_eng.csv", "repo": null, "row_in_file": "149", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_003166", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In the `WidgetStateMouseCursorExampleApp` widget, a `ListTile`'s `enabled` state is controlled by a `Switch` widget. Write a Flutter widget test scenario to verify that the mouse cursor changes to `SystemMouseCursors.click` when the `ListTile` is enabled, and to `SystemMouseCursors.forbidden` when it is disabled. The test should simulate mouse movement gestures and verify the active cursor.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3001_3200_eng.csv", "repo": null, "row_in_file": "166", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "easy", "id": "seed_003173", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Create a Dart entry point for a Flutter Driver integration test that enables the Flutter Driver extension and runs the main application.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3001_3200_eng.csv", "repo": null, "row_in_file": "173", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003177", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a low-level Flutter application using `dart:ui` that renders a custom scene. The scene should draw a square with a yellow-blue gradient in the center, rotated 45 degrees, a green translucent circle scaled by 0.5, and a red translucent circle at (150, 300). Apply a difference clip (`ClipOp.difference`) to exclude a rectangular area, and scale the rendering according to the device's pixel density using `SceneBuilder`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3001_3200_eng.csv", "repo": null, "row_in_file": "177", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003178", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, write a minimal, self-contained application using `dart:ui` and `PlatformDispatcher.onBeginFrame` that draws the text 'Hello, world.' centered on the screen. The text should be scaled according to the device's pixel ratio and logical dimensions, ensuring it displays correctly across different screen densities and dimensions.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3001_3200_eng.csv", "repo": null, "row_in_file": "178", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003180", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you create a low-level dynamic UI element (such as text on a green rectangle in the center of the screen) with multi-language support, using the `dart:ui` APIs like `PlatformDispatcher`, `ParagraphBuilder`, `Canvas`, and `SceneBuilder` while accounting for the device's pixel ratio and physical size?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3001_3200_eng.csv", "repo": null, "row_in_file": "180", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003188", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we create a custom `RenderSolidColorBox` that extends `RenderDecoratedBox`? The class should take a `desiredSize` (defaulting to `Size.infinite`) and a `backgroundColor` as parameters. If a dimension of `desiredSize` is infinite, it should be treated as 0.0 in the intrinsic width/height calculations. We need to override `computeMinIntrinsicWidth`, `computeMaxIntrinsicWidth`, `computeMinIntrinsicHeight`, `computeMaxIntrinsicHeight`, and `performLayout`. Additionally, how can we handle pointer events using `handleEvent` to change the background color to red on `PointerDownEvent` and restore it on `PointerUpEvent`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3001_3200_eng.csv", "repo": null, "row_in_file": "188", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_003223", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can I build a Flutter application that displays a dialogue from '2001: A Space Odyssey' with custom rich text styling for each speaker (Dave and HAL), allows toggling between styled and plain text on tap, and maintains a clean, sustainable code structure?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.8, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3201_3400_eng.csv", "repo": null, "row_in_file": "23", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003277", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Cupertino design language, to create customizable list items, both basic (base) and notched (notched) support support, title, subtitle, sub-title, additional information, leading widgets, which can include widgets, sensitive to touch interaction, minimum height, filler, text styles and colors, such as the fine adjustment of various visual parameters. How can we create a reusable Flutter Widget and how can we manage the behavior and appearance of this widget's different configurations (for example, non-sub-title, leading widget)?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3201_3400_eng.csv", "repo": null, "row_in_file": "77", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003289", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you design and apply a reusable, flexible, and accessible iOS-like modal bottom sheet transition that supports nested navigation, adapts to different themes, and handles drag-to-dismiss gestures? Provide an implementation using `CupertinoSheetTransition`, `_CupertinoDownGestureDetector`, and `_CupertinoDownGestureController` classes.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3201_3400_eng.csv", "repo": null, "row_in_file": "89", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_003303", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we configure the visual style of Cupertino switch and slider thumbs using a custom `CupertinoThumbPainter` class and related constants (such as colors and shadows)? Explain how to use the `color` and `shadows` properties, customize them with shadows like `_kSliderBoxShadows`, and paint them on a canvas.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3201_3400_eng.csv", "repo": null, "row_in_file": "103", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003312", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Dart Web applications, how do you determine both the real device platform and test environments in a correct and reliable way to implement platform-specific behavior? Specifically, how is the value of the `defaultTargetPlatform` variable determined? Explain the priority order and circumstances under which `debugDefaultTargetPlatformOverride`, `debugEmulateFlutterTesterEnvironment`, `browser.operatingSystem`, and `_operatingSystemToTargetPlatform` are used, and how this ensures consistency and accuracy across production and test environments.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3201_3400_eng.csv", "repo": null, "row_in_file": "112", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003323", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Dart, how do you design and implement a customizable `consolidateHttpClientResponseBytes` function and a `BytesReceivedCallback` to reliably process data from an `HttpClientResponse`? The solution should automatically handle compression (gzip), track download progress (providing cumulative bytes and total expected size), handle errors gracefully (including memory cleanup), and optimize performance and memory consumption for large downloads.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3201_3400_eng.csv", "repo": null, "row_in_file": "123", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_003332", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter application, how can we design a utility function that returns the runtime type of an object as a string during development (using `assert` to perform the expensive operation), but returns a pre-defined optimized string in production mode to maximize performance?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3201_3400_eng.csv", "repo": null, "row_in_file": "132", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003336", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Dart and Flutter, implement the `debugPrint` utility, including both synchronous (`debugPrintSynchronously`) and throttled (`debugPrintThrottled`) variations. Show how the throttled version manages console output limits using a queue, `Timer`, and `Completer` (with a capacity like `_kDebugPrintCapacity`). Additionally, implement the `debugWordWrap` helper function, which wraps text at a specified width, handles indentation patterns (`_indentPattern`), and uses a state machine with word-wrap parse modes (`_WordWrapParseMode`).", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3201_3400_eng.csv", "repo": null, "row_in_file": "136", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003339", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How would you design and implement a `StackFrame` class in Flutter/Dart to parse and represent stack trace lines from different platforms (VM, Web Debug, and Web Non-Debug) in a consistent format? The architecture should handle class names, methods, package information, as well as asynchronous suspensions and stack overflow elisions.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3201_3400_eng.csv", "repo": null, "row_in_file": "139", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003341", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Implement a high-performance timeline tracking system in Dart (`FlutterTimeline`) for measuring synchronous execution times during development. It should support start/finish sync blocks, aggregate timings, and minimize garbage collection overhead using custom chunked data structures like `_Float64ListChain`, `_StringListChain`, and `_BlockBuffer`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3201_3400_eng.csv", "repo": null, "row_in_file": "141", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003356", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Implement a polynomial least squares solver in Dart. The solver should take `x`, `y`, and `w` (weights) lists, and fit a polynomial of a specified degree. It should include basic vector and matrix operations (such as dot product, norm, and QR decomposition) to solve the system and calculate the confidence interval (R-squared).", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3201_3400_eng.csv", "repo": null, "row_in_file": "156", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003368", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Implement the `Velocity`, `VelocityEstimate`, `VelocityTracker`, `IOSScrollViewFlingVelocityTracker`, and `MacOSScrollViewFlingVelocityTracker` classes in Flutter/Dart. The implementation should demonstrate how pointer input data is collected via `addPosition` and how velocity is estimated via `getVelocityEstimate` using strategies like least squares fitting (for the default tracker) and weighted moving averages (for iOS and macOS scroll views).", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3201_3400_eng.csv", "repo": null, "row_in_file": "168", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003399", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Implement a custom `MaterialBanner` widget in Flutter that supports both Material Design 2 and Material Design 3 styling. The widget must handle accessibility (screen readers and keyboard navigation), custom animations (height and slide transitions), and support parameters like `content`, `actions`, `elevation`, `leading`, `backgroundColor`, `surfaceTintColor`, `shadowColor`, `dividerColor`, `padding`, `margin`, `leadingPadding`, `forceActionsBelow`, `overflowAlignment`, `animation`, `onVisible`, and `minActionBarHeight`. It should also integrate with `ScaffoldMessenger` and use a `Hero` widget for transitions.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3201_3400_eng.csv", "repo": null, "row_in_file": "199", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003456", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do you design and implement a comprehensive and flexible button theme management system in Flutter? Specifically, demonstrate the implementation of `FilledButtonThemeData` and `FilledButtonTheme` (as an `InheritedTheme`), including the `lerp` method for animations, the context-based `of` method, performance optimization via `updateShouldNotify`, and debugging support with `debugFillProperties`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3401_3600_eng.csv", "repo": null, "row_in_file": "56", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003478", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we customize and control the appearance, positioning, and interaction of the text magnifier in Flutter (using TextMagnifier, Magnifier, MagnifierController, and MagnifierInfo) to provide a consistent experience across iOS and Android?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3401_3600_eng.csv", "repo": null, "row_in_file": "78", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003483", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we design and apply a mixin on a State class to manage interactive states (such as hovered, pressed, and disabled) and optimize rebuilds when these material states change?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3401_3600_eng.csv", "repo": null, "row_in_file": "83", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003520", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you design a custom theme structure (`SearchViewThemeData` and `SearchViewTheme`) to control the appearance and behavior of a `SearchView` widget? The theme should cover parameters such as `backgroundColor`, `elevation`, `surfaceTintColor`, `side`, `shape`, `headerHeight`, `headerTextStyle`, `headerHintStyle`, `padding`, `barPadding`, `shrinkWrap`, and `dividerColor`. Explain how this theme affects sub-elements in the widget tree and how to support smooth transitions (interpolation) between themes at runtime.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3401_3600_eng.csv", "repo": null, "row_in_file": "120", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003584", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how is the `FractionalOffset` class designed to proportionally specify the position of an object within a rectangle? Provide an implementation extending the `Alignment` class, including factory methods (`fromOffsetAndSize`, `fromOffsetAndRect`), operator overloading (addition, subtraction, multiplication, division), pre-defined constants (like `topLeft`, `center`), and a `lerp` method.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3401_3600_eng.csv", "repo": null, "row_in_file": "184", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003588", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can you convert image data from a `Uint8List` into a `ui.Image` in Flutter while properly managing the lifecycle of the codec and buffer to optimize performance and memory footprint?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3401_3600_eng.csv", "repo": null, "row_in_file": "188", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003593", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we implement a customizable linear border (LinearBorder) that provides separate size and alignment control for the start, end, top, and bottom edges, supports animated transitions (using lerpFrom and lerpTo), handles EdgeInsetsGeometry dimensions, respects TextDirection, and provides a copyWith method? Show the implementation of LinearBorderEdge and LinearBorder classes, including their drawing algorithms.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3401_3600_eng.csv", "repo": null, "row_in_file": "193", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003603", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Within the framework of the Flutter, to create customizable star shapes using the`border`interface, parametric controlable (number of corners, internal radius ratio, corner and valley rounding, rotation, compression) of this class and this class`larpfrom`,`Lerpto`,`Paint`, How can we design and implement their methods such as`Circleborder`,`Stadiumborder`,`Roundedrectangleborder`to provide soft transitions with other`Shapeborder`classes, so that visually rich and dynamic user interfaces can be created through both static definitions and animations?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3601_3800_eng.csv", "repo": null, "row_in_file": "3", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003606", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter applications, how is the text scaling infrastructure (such as `TextScaler`) designed and implemented to support linear and non-linear scaling strategies, limit scaling factors, and meet accessibility requirements?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3601_3800_eng.csv", "repo": null, "row_in_file": "6", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003625", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, a special`renderbox`sub-class, which displays error messages using different styles (color, font, size, thickness) in error discovery mode and broadcast mode, is desired to be created; How can this`rendererbox`can be drawn effectively effectively with the predetermined internal gaps and a background color that visually emphasizes the error status in an area with maximum width and heights specified, and how possible errors should be discussed in this drawing process?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3601_3800_eng.csv", "repo": null, "row_in_file": "25", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003653", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we design and implement a custom `RenderTreeSliver` class in Flutter, extending `RenderSliverVariedExtentList`, to efficiently visualize and animate a hierarchical tree structure with dynamic node heights? The implementation should support indentation, handle expansion/contraction animations during node addition/removal, and dynamically calculate heights using an `itemExtentBuilder` function.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3601_3800_eng.csv", "repo": null, "row_in_file": "53", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003657", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do we build a `RenderBox` to display a texture from an external source (e.g., camera flow or a local video file) with support for freezing and setting filter quality? Structure the basic behaviors (sizing, layout, painting, hit testing).", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3601_3800_eng.csv", "repo": null, "row_in_file": "57", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003661", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, design a reusable and expandable abstract class `ViewportOffset` and a concrete implementation `_FixedViewportOffset` to control scroll offsets and strategies. Define the necessary abstract methods, their parameters, and how they handle scroll direction changes.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3601_3800_eng.csv", "repo": null, "row_in_file": "61", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003673", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Implement the `BackgroundIsolateBinaryMessenger` class in Flutter to manage asynchronous messaging through platform channels in background isolates. The implementation should include `ensureInitialized` using a `RootIsolateToken`, message sending using `Completer` and `PlatformDispatcher`, and an unsupported `setMessageHandler` method.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3601_3800_eng.csv", "repo": null, "row_in_file": "73", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_003674", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How should the `BackgroundIsolateBinaryMessenger` class be implemented for the Dart Web platform so that its `instance` getter and `ensureInitialized` method throw an `UnsupportedError` indicating that isolates are not supported on the web?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3601_3800_eng.csv", "repo": null, "row_in_file": "74", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003677", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How is Flutter's autofill API structured to manage and configure platform-level autofill (Android, iOS) consistently? Detail the classes, abstract classes, constants, mixins, and configuration objects (such as AutofillHints, AutofillConfiguration, AutofillClient, AutofillScope) and how they integrate with TextInput.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.8, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3601_3800_eng.csv", "repo": null, "row_in_file": "77", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_003684", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter application, how can we assign the value of the `FLUTTER_APP_FLAVOR` environment variable to a null-safe constant `appFlavor` during compilation, handling the case where the variable might not be set?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3601_3800_eng.csv", "repo": null, "row_in_file": "84", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_003687", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter application, how do you trigger different types of haptic feedback (e.g., general vibration, light impact, medium impact, heavy impact, selection click) using the platform channel (`SystemChannels.platform`)? Provide a class with separate asynchronous functions (`vibrate`, `lightImpact`, `mediumImpact`, `heavyImpact`, `selectionClick`) that call `HapticFeedback.vibrate` with different arguments (or without arguments) to achieve this.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3601_3800_eng.csv", "repo": null, "row_in_file": "87", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003696", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Design a reusable and customizable class in Flutter to manage mouse interactions (enter, exit, hover) and cursor behavior. The class should process mouse events (such as `PointerEnterEvent`, `PointerExitEvent`, and `PointerHoverEvent`) and cursor states (like `MouseCursor.defer`), while supporting debugging and monitoring by mixing in `Diagnosticable`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3601_3800_eng.csv", "repo": null, "row_in_file": "96", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_003716", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we design a reusable and testable API to trigger platform-specific system sounds using `SystemChannels.platform`, a `SystemSoundType` enum, and a `SystemSound.play()` method?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.8, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3601_3800_eng.csv", "repo": null, "row_in_file": "116", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003718", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Implement a custom `TextSelection` class in Dart that extends `TextRange`. It should be immutable and include properties for `baseOffset`, `extentOffset`, `affinity`, and `isDirectional`. Provide constructors (including a collapsed constructor and fromPosition), getters for `base` and `extent` as `TextPosition` objects, and methods like `copyWith`, `expandTo`, and `extendTo`. Also, override `operator ==`, `hashCode`, and `toString` to ensure correct equality and representation.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3601_3800_eng.csv", "repo": null, "row_in_file": "118", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003725", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do you structure the HtmlElementView implementation for non-web platforms in Flutter so that attempting to instantiate it (e.g., via createFromTagName) or build it throws an UnimplementedError?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.8, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3601_3800_eng.csv", "repo": null, "row_in_file": "125", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003748", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you design and implement a reusable and customizable `ColorFiltered` widget using `SingleChildRenderObjectWidget` and `RenderProxyBox` to optimize performance and handle compositing? Provide an implementation that follows best practices.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3601_3800_eng.csv", "repo": null, "row_in_file": "148", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_003751", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter application, design the `ContextMenuButtonItem` class and `ContextMenuButtonType` enum to manage text field context menu actions (such as cut, copy, paste). The enum should support standard actions (`cut`, `copy`, `paste`, `selectAll`, `delete`, `lookUp`, `searchWeb`, `share`, `liveTextInput`) and a `custom` option. The `ContextMenuButtonItem` class should include a callback function (`onPressed`), the action type (`type`), and an optional `label`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3601_3800_eng.csv", "repo": null, "row_in_file": "151", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003752", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Implement a `ContextMenuController` class in Flutter to manage context-sensitive menus. It should ensure only a single context menu is shown at a time using static tracking, manage an `OverlayEntry`, capture inherited themes using `InheritedTheme.capture`, and provide methods to show, remove, and rebuild the menu.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.8, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3601_3800_eng.csv", "repo": null, "row_in_file": "152", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003755", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter application, how do you design and manage text selection behavior using an `InheritedTheme` widget called `DefaultSelectionStyle`? Specifically, how do you provide default values (such as `cursorColor`, `selectionColor`, and `mouseCursor`), find the closest theme in the widget tree, trigger reconstruction when values change, and prevent potential errors related to the use of `DefaultSelectionStyle.fallback()`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3601_3800_eng.csv", "repo": null, "row_in_file": "155", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003764", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you design a reusable and customizable widget like `DualTransitionBuilder` that applies different transition effects depending on the animation direction (forward or reverse)? Explain how to manage complex transitions using `AnimationStatus`, `ProxyAnimation`, and `ReverseAnimation` while maintaining performance and consistency in the widget tree.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3601_3800_eng.csv", "repo": null, "row_in_file": "164", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_003768", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can you implement a customizable `FlutterLogo` widget in Flutter that takes size, text color, style (`FlutterLogoStyle`), animation duration, and curve as parameters, retrieves default size from `IconTheme`, animates changes using `AnimatedContainer`, and defines its visual design using `FlutterLogoDecoration`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.8, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3601_3800_eng.csv", "repo": null, "row_in_file": "168", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003782", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we implement a performant `ImageFiltered` widget in Flutter that minimizes the creation and redrawing of unnecessary compositing layers by dynamically toggling compositing and repaint boundary behaviors based on an `enabled` flag?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3601_3800_eng.csv", "repo": null, "row_in_file": "182", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003787", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how is the mechanism designed to transport InheritedThemes from one widget tree context ('from') to another ('to') while avoiding duplicate applications, respecting the restriction that 'to' must be an ancestor of 'from', and ensuring a reusable, high-performance implementation?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3601_3800_eng.csv", "repo": null, "row_in_file": "187", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003793", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how is the `LookupBoundary` mechanism designed and applied to limit access to and control the lookup of ancestor elements (such as InheritedWidgets, Widgets, States, or RenderObjects) in the widget tree? Explain how it affects tree navigation methods and how it can be used to detect hidden ancestors in debug tools, providing a complete implementation.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3601_3800_eng.csv", "repo": null, "row_in_file": "193", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003797", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do we use the `CustomMultiChildLayout` and `MultiChildLayoutDelegate` classes to create a customizable navigation toolbar (with leading, middle, and trailing widgets) that is sensitive to text direction (RTL/LTR), supports centering the middle widget (`centerMiddle`), and handles spacing (`middleSpacing`) consistently across different screen sizes?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3601_3800_eng.csv", "repo": null, "row_in_file": "197", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003799", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you design a reusable and customizable `NavigatorPopHandler` widget to intervene in a Navigator's pop process, prevent pop operations under certain conditions, or run callback functions when a pop occurs? The design should support both the deprecated `onPop` and the newer `onPopWithResult` callbacks. By listening to `NavigationNotification` and using the `PopScope` widget, how do you dynamically control the `canPop` behavior, handle the `didPop` argument, and ensure null safety and type safety?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3601_3800_eng.csv", "repo": null, "row_in_file": "199", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003854", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In order to create a widget that can be dynamically arranged according to SliverConstraints in Flutter, how do you design the `_RenderSliverLayoutBuilder` render object using the `ConstrainedLayoutBuilder` class? Based on `SliverConstraints`, how do you secure the positioning and drawing of the child widget in the scrollable area by correctly applying `childMainAxisPosition` and `applyPaintTransform` methods while implementing rendering stages such as `performLayout`, `hitTestChildren`, and `paint`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3801_4000_eng.csv", "repo": null, "row_in_file": "54", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "easy", "id": "seed_003861", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we design a reusable widget called `Spacer` to create a flexible gap in a Row or Column, customizing its flexibility using a `flex` parameter, and implementing it using `Expanded` and `SizedBox.shrink()`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3801_4000_eng.csv", "repo": null, "row_in_file": "61", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_003881", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we implement a robust and flexible undo/redo history mechanism in Flutter for text fields or editable content? Provide an implementation of `UndoHistory`, `UndoHistoryState`, `UndoHistoryController`, and an underlying undo stack that handles focus behavior, change tracking conditions, and throttled updates.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3801_4000_eng.csv", "repo": null, "row_in_file": "81", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_003907", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a comprehensive unit test suite using `flutter_test` to verify the behavior of Flutter's `Tween` class and its specialized subclasses (such as `ColorTween`, `RectTween`, `IntTween`, `StepTween`, `Matrix4Tween`, `ConstantTween`, `ReverseTween`, `CurveTween`, `BorderRadiusTween`, and `BorderTween`). The tests should cover error handling for unsupported types, chaining, animating, driving, and interpolation (lerp) behavior.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3801_4000_eng.csv", "repo": null, "row_in_file": "107", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_003919", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can you write a Flutter widget test to demonstrate the usage of `debugCheckHasCupertinoLocalizations` and verify that it throws an assertion error when CupertinoLocalizations are not available in the context, but succeeds when they are?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3801_4000_eng.csv", "repo": null, "row_in_file": "119", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_003925", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, when we customize the appearance of icons by using `IconTheme` in a widget tree, we can access these themes with the method `IconTheme.of(context)`. How can we adjust icon theme features (size, color, opacity, etc.) using both the basic `IconThemeData` and the platform-specific `CupertinoIconThemeData`, and how do we resolve these settings correctly through `IconTheme.of(context)` (for example, resolving `CupertinoIconThemeData` based on `platformBrightness`)?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3801_4000_eng.csv", "repo": null, "row_in_file": "125", "status": "P1_partial", "type": "seed"}, "task_type": "api_usage"}
{"difficulty": "hard", "id": "seed_003935", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we control and test the visual behavior of the `CupertinoPopupSurface` widget (including color filters, surface color, blur, and transparency) and their interactions with `brightness` theme, `debugIsVibrancePainted`, `isSurfacePainted`, and `blurSigma` across different platforms to ensure consistency with the iOS design language?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3801_4000_eng.csv", "repo": null, "row_in_file": "135", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_003942", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can I design and implement a robust widget test suite in Flutter to verify the behaviors, customization options, and properties of the CupertinoSearchTextField widget (such as decoration, prefix/suffix icons, padding, controller, keyboard type, cursor properties, and scroll animations)?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3801_4000_eng.csv", "repo": null, "row_in_file": "142", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_003947", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, when applying the iOS-style spelling inspection suggestion toolbar (CupertinoSpellCheckSuggestionsToolbar), we should write certain unit and widget tests to verify the behavior of the toolbar:\n1. How can we require the display of maximum three suggestions in the toolbar and how can we test that an error occurs if this restriction is exceeded?\n2. How can we verify that the toolbar correctly displays the first three suggestions proposed by spelling inspection in the current text field?\n3. When no suggestions are presented by the spelling inspection, how can we test the \"No Replacements Found\" button on the toolbar?\n4. How do we handle skipping these tests on the web platform (using kIsWeb)?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.8, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3801_4000_eng.csv", "repo": null, "row_in_file": "147", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_003950", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Flutter'da`cupertinotabview`widget'in different navigation scenarios (eg,`Home`,`Routes`,`ongerereteroute`,`sknownroute`uses,`navigator`switch with the navigation, status restore and Android button processing and how to test the testing, this is the test. How can I write the unit tests that explain the behavior and possible exceptions of each (for example, the situation of`null''null`s)?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3801_4000_eng.csv", "repo": null, "row_in_file": "150", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_003951", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you design and implement a comprehensive widget test scenario to verify that a `CupertinoTextField` correctly restores its state (including text content and scroll position) after app restoration? The test should cover scenarios with and without an external `RestorableTextEditingController`, and include keyboard input, scrolling, and state restoration using `WidgetTester.restartAndRestore` and `RestorationData`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3801_4000_eng.csv", "repo": null, "row_in_file": "151", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_003953", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we test the state restoration behavior (including text content, scrolling location, and validation errors) of `CupertinoTextFormFieldRow` under different scenarios, such as with or without an external `TextEditingController` or Form ancestor? Provide widget tests that demonstrate how to verify that the state is correctly restored.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3801_4000_eng.csv", "repo": null, "row_in_file": "153", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_003954", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a comprehensive suite of Flutter widget tests for CupertinoTextFormFieldRow to verify its behavior, user interactions, and form validation scenarios, ensuring it correctly passes properties to the underlying CupertinoTextField.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3801_4000_eng.csv", "repo": null, "row_in_file": "154", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_003973", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain how the `CachingIterable` class works on a `range` generator function with various `Iterable` methods (`where`, `map`, `skip`, `take`, `expand`). Write unit tests that verify the value of the `yieldCount` variable in the `range` function across different scenarios. These tests should verify the correct operation of `CachingIterable`'s lazy evaluation and caching behavior on multiple reads.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3801_4000_eng.csv", "repo": null, "row_in_file": "173", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_003976", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write Dart unit tests to verify the behavior of `listEquals`, `setEquals`, `mapEquals`, `binarySearch`, and `mergeSort` from `package:flutter/src/foundation/collections.dart`. The tests should cover null values, identical and different collections, and special cases, using `expect` with matchers like `isTrue`, `isFalse`, `equals`, and `lessThanOrEqualTo`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3801_4000_eng.csv", "repo": null, "row_in_file": "176", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_003977", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we comprehensively test the logic of processing data from an `HttpClientResponse` using `consolidateHttpClientResponseBytes`? Specifically, how do we verify scenarios involving `contentLength`, `compressionState`, `autoUncompress`, `onBytesReceived` interactions, and error handling (both from `HttpClientResponse` and `onBytesReceived` callbacks) using a `MockHttpClientResponse` and `expect` assertions?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3801_4000_eng.csv", "repo": null, "row_in_file": "177", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "easy", "id": "seed_003978", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do I write a Flutter test to verify the value of the `kIsWeb` constant in a test environment?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3801_4000_eng.csv", "repo": null, "row_in_file": "178", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004000", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a comprehensive unit test suite for Flutter's `GestureArenaManager` to verify gesture arena resolution. The tests should cover timing sensitivity (e.g., calling `resolve` before or after `close`), different `GestureDisposition` values, and hold/release/sweep behaviors. Implement a `TestGestureArenaMember` class to track `acceptGesture` and `rejectGesture` calls using boolean flags, and use a `primaryKey` constant for the arena key.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_3801_4000_eng.csv", "repo": null, "row_in_file": "200", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004001", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write Flutter unit and widget tests to verify the behavior of the `debugPrintGestureArenaDiagnostics` and `debugPrintRecognizerCallbacksTrace` flags during the gesture arena lifecycle of `TapGestureRecognizer`, including pointer addition, sweeping, and exceeding deadlines.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "1", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_004007", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we design and implement a test in Flutter to verify pointer event resampling using `GestureBinding`? Provide a custom `TestResampleEventFlutterBinding` that uses a custom `SamplingClock` to control timing, processes a `PointerDataPacket`, and verifies that the generated `PointerEvent`s have the correct timestamps, positions, and types when `resamplingEnabled` and `samplingOffset` are configured.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "7", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004008", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How does Flutter process and convert raw pointer data from different input devices (touch, mouse, stylus) into consistent PointerEvents? Provide a comprehensive suite of unit tests demonstrating how PointerEventConverter.expand handles screen density, faulty scroll data, primary button synthesis, and pan/zoom events.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "8", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004015", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Design a comprehensive set of Flutter unit and widget tests to verify the behavior of `DragGestureRecognizer` and its arena interactions. Specifically, cover: 1) Arena resolution and threshold control (`onlyAcceptDragOnThreshold`), 2) Input filtering using `allowedButtonsFilter` (e.g., primary vs. secondary mouse buttons), and 3) Custom gesture recognizers (like an eager pan recognizer) interacting with a `CustomScrollView`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "15", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004018", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In a Flutter application, how is the `PointerRouter` class designed to manage both per-pointer and global callbacks, handle re-entrant scenarios (such as adding/removing routes during routing), and apply event transformation matrices (Matrix4)? Provide a comprehensive test suite covering these scenarios.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "18", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004020", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we design and implement comprehensive, well-structured unit tests for custom `GestureRecognizer` and `PrimaryPointerGestureRecognizer` subclasses? Specifically, provide a test suite that covers winning the arena, losing the arena, and recycling the recognizer, while also verifying memory leak prevention using leak tracking.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "20", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004021", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write comprehensive Flutter unit tests for `PointerEventResampler` to test the resampling and interpolation of `PointerEvent`s. The tests should cover different scenarios in detail, including basic movements, rapid touches (quick taps), slow and rapid progress, event jumps (skips), stopping, synthetic movements, and different sampling timings. Ensure the tests verify how event characteristics (location, delta, timestamp, buttons, etc.) are calculated.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "21", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004023", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you write unit tests for `SerialTapGestureRecognizer` to verify its interaction with other gesture recognizers (such as `TapGestureRecognizer`, `DoubleTapGestureRecognizer`, and custom recognizers), handling of `kSerialTapDelay`, touchpoint distance, different mouse buttons, and gesture arena priority conflicts? Provide a comprehensive test suite.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "23", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004027", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how does placing a GestureDetector inside a Transform.scale widget affect the evaluation of kDoubleTapSlop? Provide widget test scenarios to verify how double-tap perception accuracy is evaluated under different scaling factors (both enlargement and reduction).", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "27", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004039", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how should a comprehensive test scenario be designed to verify the customization of action buttons (BackButton, CloseButton, DrawerButton, EndDrawerButton) using ActionIconTheme and ActionIconThemeData? The tests should verify the `copyWith` method, `debugFillProperties`, default values, and the correct functionality of the theme when applied via ThemeData or ActionIconTheme widget.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "39", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004052", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you test and verify the customization of the `Badge` widget's visual features (such as background color, text color, size, text style, padding, alignment, and offset) applied globally via `ThemeData` and locally via `BadgeTheme`? The tests should cover `BadgeThemeData`'s `copyWith`, `lerp`, default values, `debugFillProperties` behavior, and verify the priority and visual effects (size, position, style) when these themes are applied in the widget tree.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "52", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_004086", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Flutter'da, `DesktopTextSelectionToolbar` widget'inin `anchor` parametresi ile belirtilen konuma doğru şekilde konumlandığını ve bu konumlandırmanın, toolbar üzerindeki ilk `DesktopTextSelectionToolbarButton` widget'inin sol üst köşesinin, belirtilen `anchor` offset'i ile tam olarak eşleştiğini doğrulayan bir test yazın. Bu senaryoda `DesktopTextSelectionToolbar` widget'ı bir `MaterialApp` ve `Center` widget'ları içinde yer almalı ve en az bir tıklanabilir buton içermelidir.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "86", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004094", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a comprehensive suite of Flutter widget tests for `DropdownButtonFormField` to verify its behavior under various scenarios, including: when `disabledHint` is used, when the `items` list is empty or null, when `onChanged` is null, custom styling and icon sizes, different `AutovalidateMode` values, shadow/elevation rendering, `onTap` callbacks, form reset behavior, and the effect of `ButtonTheme.alignedDropdown`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "94", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004101", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a comprehensive Flutter widget test suite for the `ExpandIcon` widget. The tests should cover expected behavior and customization options across different scenarios, including Material 2 vs Material 3, light and dark themes, the `onPressed` callback, the `isExpanded` property, accessibility (semantics), sizing, and color options (default, active, disabled).", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "101", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004109", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you design and implement a comprehensive test scenario to verify the `FlexibleSpaceBar` widget's `stretch` feature and `StretchMode` enum values (`zoomBackground`, `blurBackground`, `fadeTitle`)? The tests should verify how these features interact with different `ScrollPhysics` (specifically `BouncingScrollPhysics` and `ClampingScrollPhysics`), covering the stretching behavior, Golden File comparisons, opacity changes, and size changes.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "109", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_004114", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do we write a widget test to verify that a GridTile widget with a header and footer is correctly arranged, that the header and footer display the expected text, that the header is positioned above the footer, and that a simple GridTile can be rendered? Use unique keys to confirm their relative positions.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "114", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004118", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do you design and implement comprehensive automated widget tests in Flutter to verify how `InheritedTheme.captureAll()` preserves thematic features (such as `ThemeData`, `PopupMenuThemeData`, `MaterialBannerThemeData`, `DividerThemeData`, `ListTileThemeData`, `SliderThemeData`, and `ToggleButtonsThemeData`) when navigating to new routes?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "118", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_004128", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter applications, accessibility and internationalization (i18N) requirements, in order to ensure that the materials design components are translated into different languages ​​consistently and complete and provide appropriate localization support, the Flutter Framework's MaterialLoCalizations Class (or any specific language) application of the MaterialLochalizations class (or any specific language) application of the assumed English (or any specific language), label, labels, labels, labels dates, keyboard keys, accessibility texts, etc.) What kind of comprehensive and automated tests should be applied to verify that it has non-Null values, protects the expected text formats and does not throw exceptions in case of incorrect input?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "128", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004131", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain how to use `MaterialStateMixin` in Flutter to dynamically update a widget's color based on different `MaterialState`s (such as pressed, focused, hovered). Provide a complete example showing how to use `updateMaterialState` with a `StreamController<bool>` to update the state, and write widget tests to verify that the color changes correctly for each `MaterialState`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "131", "status": "P1_partial", "type": "seed"}, "task_type": "api_usage"}
{"difficulty": "medium", "id": "seed_004133", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we write unit tests for `MaterialStatesController` to verify its constructor, state updates with `update()`, listener notifications, and proper memory disposal using `leak_tracker_flutter_testing`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "133", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004136", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how should a comprehensive test scenario be designed to verify the interaction and priority behaviors of `MenuBar`, `MenuTheme`, and `MenuBarTheme` widgets, specifically regarding style features (such as `backgroundColor`, `elevation`, `shape`, `padding`, and `foregroundColor`) when overridden by constructor parameters?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "136", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004148", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, demonstrate the different mechanisms used to customize the style of the `OutlinedButton` component (for example, direct style with `styleFrom`, `OutlinedButtonTheme`, and `ThemeData` overrides) and their relative priorities. For both Material Design 2 and Material Design 3, create a comprehensive set of widget tests that verify the appearance and behavior of `OutlinedButton` (including colors, shadows, shapes, dimensions, text styles, alignment, mouse cursor, touch feedback, animation duration, target size, and icon alignment) and how these styling mechanisms interact.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "148", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004153", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you test and verify the behavior of persistent and modal BottomSheets created using `Scaffold.bottomSheet` and `showBottomSheet`? Provide widget tests that verify their interactions with `FloatingActionButton`, `DraggableScrollableSheet`, `ScaffoldFeatureController.setState`, visual properties, re-creation optimizations, and `MediaQuery` padding.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "153", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004155", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, in order to provide consistent and customizable popupmenubutton behavior for both Material Design 2 (m2) and Material Design 3 (m3), the different features of Popupmenuthemedata (Color, Shape, Elevation, TextStyle, TextStyle, TextStyle, TextStyle, TextStyle, Mousecursor, Iconcolor, Iconcolor, Iconcolor, Iconcolor, Iconcolor ShadowColor, Surfacetintcolor, etc.) How can we control both the assumed theme values ​​and the values ​​specified directly specified in Popupmenubutton Widget and how these features interact with each other, especially in the materialstate (eg, enabled, disabled), taking into account the changing styles, mouse cursor behaviors and different platforms. How can we confirm with a comprehensive test strategy?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "155", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004164", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a comprehensive suite of Flutter widget tests to verify the behavior of the `RefreshIndicator` widget under various scrolling scenarios (such as normal, reverse, nested, and bouncing physics) and customizable properties (such as trigger mode, color, stroke width, edge offset, and adaptive behavior).", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "164", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004186", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write comprehensive Flutter widget tests to verify the behavior of `SwitchThemeData` and `SwitchTheme` in both Material Design 2 and Material Design 3. The tests should cover properties such as `thumbColor`, `trackColor`, `trackOutlineColor`, `trackOutlineWidth`, `materialTapTargetSize`, `overlayColor`, `splashRadius`, `thumbIcon`, and `padding`. Ensure you test how local `SwitchTheme` overrides the global `ThemeData.switchTheme`, how properties resolve under different `MaterialState` configurations (selected, focused, hovered, pressed), and verify the visual differences using canvas painting assertions.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "186", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004191", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Provide a set of Flutter testing utilities, custom widgets, and helper functions to test TabBar and TabController interactions. This should include helpers for retrieving tab text, creating controllers, tracking state lifecycles (initState, didUpdateWidget, dispose), testing AutomaticKeepAliveClientMixin, mocking scroll physics, and custom indicator painting/animations (such as elastic RRect animations).", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "191", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_004195", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, when a `TextField` widget's `helperText` is initially set to a value and then updated to `errorText` with the same value, both texts can temporarily coexist in the widget tree during the transition animation. How do you write a widget test to simulate this transition, handle the animation delay, and verify that both widgets are temporarily present?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "195", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004196", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, using the restoration mechanisms of `TextField` and `Scrollable` widgets, with both internal and external `TextEditingController` instances, the `TextField` content and scroll position are preserved after application restart. How can a comprehensive test scenario be created using `testWidgets` and `RestorationMixin` to test how the user's text input and scroll actions affect the restoration process?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "196", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004197", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do you write a comprehensive Flutter widget test to verify that a custom InteractiveInkFeatureFactory (such as a custom InkSplashFactory) configured in the theme successfully prevents InkSplash creation and cancellation when interacting with TextField widgets (e.g., tapping or dragging), without affecting standard behaviors?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "197", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004199", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, we can provide the status of Textformfields (Text content, Scroll position, validation errors) restoration API with both internal and external TexteditingController, and how to provide it with different Autovalidatemode options, without the top element of the form. (a) showing error messages during validation as a result of user interaction, (b)`Validate ()`not to trigger validation until the method is called, (c) protection of the scroll position, and (d) during the restoration of the text content and error messages correctly, and different device configurations of these processes (screen sizes) Closing and opening, hot restart) How can it be tested and verified?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4001_4200_eng.csv", "repo": null, "row_in_file": "199", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004204", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Flutter'da, TextSelectionToolbarTextButton widget'ının toolbar içerisindeki konumuna (ilk, orta, son, tek) göre genişliğinin, varsayılan/özel renklerinin (foreground ve background) doğru şekilde ayarlandığını ve ThemeData'daki TextButtonThemeData'nın bu widget'ın varsayılan arka plan rengini geçersiz kılmadığını doğrulayan bir widget testi nasıl yazılır?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "4", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004205", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a comprehensive Flutter unit test suite to verify the behavior of `TextTheme` methods, including `copyWith`, `apply`, `lerp`, and context-based lookups like `TextTheme.of(context)` and `TextTheme.primaryOf(context)`. The tests should cover null values, typography variations (Material 2018/2021), and various text style parameters.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "5", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_004207", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we design a comprehensive widget test suite to verify that the FloatingActionButton's properties (such as colors, shapes, elevations, constraints, padding, animation duration, and tap target size) match the expected values under both Material Design 2 and Material Design 3, for both enabled and disabled states, by inspecting the underlying RawMaterialButton?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "7", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004210", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we design and implement a comprehensive automated test suite in Flutter to verify the behavior of `TimePickerThemeData` across Material 2 and Material 3? The tests should cover default values, `debugFillProperties`, `copyWith`, `lerp`, both `TimePickerEntryMode.dial` and `TimePickerEntryMode.input` modes, the interaction with `InputDecorationTheme`, accurate color/style application, and ensuring text fields do not resize on faulty inputs.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "10", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004213", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Considering the various characteristics of the `ToggleButtons` component in Flutter with `ToggleButtonsThemeData`, the various features (text style, size restrictions, color restrictions, colors, border features, etc.), the default behaviors of these features, `copyWith`, `==`, `hashCode`, and how they interact with the `debugFillProperties` method, how these features can be adjusted for different situations (enabled, selected, disabled) and how these settings affect the appearance and behavior of the `ToggleButtons` component, taking into account the best application scenarios and possible corner cases. How to create a comprehensive test package that fully demonstrates the expected behavior?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "13", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004219", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Flutter widget test to verify the visual consistency of the Slider component's value indicator using Golden File Tests for both Material 2 and Material 3. The test should cover different text scales (using `MediaQuery.withClampedTextScaling`), wide labels, and simulate pressing the start, middle, and end of the slider while keeping the value indicator always visible using `SliderTheme`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "19", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004223", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we design and apply a flexible architecture to mock `XMLHttpRequest` and `HTMLImageElement` for web applications in Dart using the `dart:js_interop` library (specifically creating `TestHttpRequest` and `TestImgElement` classes) to control their behavior, handle event listeners, resolve promises, and simulate asynchronous operations in test scenarios?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "23", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_004226", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Flutter unit test suite that verifies the behavior of `ImageCache` under memory pressure, tests resource eviction using a custom `PaintingBinding` that tracks calls to `clear` and `clearLiveImages`, and asserts that `PaintingBinding.shaderWarmUp` is null by default.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "26", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004238", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "\"Flutter in the\" Decorationimage.lerp`function, different`deCorationimage`features (eg,`image`,`fit`,`fas`,`opacity`,`Scale`,`centerslice`) two`centerslice`) two`decoremage`object between the enterterpolya`object How can we test and verify the visual transitions and the accuracy of these transitions (compliance with the expected results) as they change the factor (`t`), especially these tests should include both the Golden File comparison and the color analysis at the pixel level and should not be employed on the web platform? \"", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "38", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004242", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, especially for testing purposes, how can I create a custom `ImageProvider` class (e.g., `FakeImageProvider`) that takes a predefined `ui.Codec` object and supports a scaling factor? The class should integrate with Flutter's image loading mechanism.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "42", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_004246", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a comprehensive test suite in Dart for Flutter's `LinearGradient`, `RadialGradient`, and `SweepGradient` classes. The tests should cover `lerp` methods, color interpolation, stop points management, transformations, `scale` methods, `AlignmentDirectional` behavior, and visual golden tests. Implement custom matchers like `_LinearGradientMatcher`, `_RadialGradientMatcher`, and `_SweepGradientMatcher` to verify the gradient properties.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "46", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004247", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, using a custom binding (`TestPaintingBinding`) that mixes in `PaintingBinding`, how can we write a test scenario to verify that a memory pressure event sent through the system channel before `initInstances` is called is correctly handled? Specifically, how does this test verify the initial status and subsequent update of a `_handled` flag and the behavior of the `imageCache`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "47", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_004252", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, the `ImageInfo.sizeBytes` property represents the size of an image in memory (width * height * 4 bytes). How do you write a Dart unit test using the `flutter_test` package and `dart:ui` library to verify that `ImageInfo` objects created from test images of sizes 10x20, 20x100, and 100x200 have `sizeBytes` values of 800, 8000, and 80000 respectively?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "52", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004257", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, write unit tests to verify how `AssetImage` selects the correct image variant based on the device's pixel ratio. Design and test the interactions between `AssetImage`, `AssetBundle`, `ImageConfiguration`, `AssetBundleImageKey`, and `AssetManifest`. Ensure that variants (e.g., '3.0x') specified in the manifest are correctly selected according to the `DevicePixelRatio`, and that it falls back to the main asset (1.0 scale) when no appropriate variant exists.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "57", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004262", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Implement a set of mock classes for testing Flutter's image loading mechanism. This should include custom implementations of `ImageInfo` (`TestImageInfo`), `ImageProvider` (`TestImageProvider`, `FailingTestImageProvider`, `ErrorImageProvider`, `ObtainKeyErrorImageProvider`, `LoadErrorImageProvider`, `LoadErrorCompleterImageProvider`), and `ImageStreamCompleter` (`TestImageStreamCompleter`) to simulate various success and failure scenarios during image loading, key obtaining, and stream completion.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "62", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "medium", "id": "seed_004266", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a comprehensive Flutter unit test suite for the `OvalBorder` class. The tests should verify default values, `copyWith`, equality (`==`), `hashCode`, `scale`, and `lerp` interpolation. Additionally, include tests for `getInnerPath` and `getOuterPath` to evaluate how the border behaves with different edge widths and rectangular dimensions.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "66", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004267", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we write a comprehensive Flutter test suite to verify and optimize the behavior of the `paintImage` function? Specifically, how do we test the interaction of parameters like `BoxFit`, `alignment`, `centerSlice`, and `scale`, as well as features like `debugInvertOversizedImages` and tracking image size information (`ImageSizeInfo`) across different scenarios?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "67", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_004268", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we design a `PaintingBindingSpy` class that extends `BindingBase` with `PaintingBinding` to accurately track the number of calls to the `instantiateImageCodecWithSize` method, while also neutralizing the license initialization process?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "68", "status": "P1_partial", "type": "seed"}, "task_type": "question_to_code"}
{"difficulty": "hard", "id": "seed_004270", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you write a unit test that uses a custom `ShaderWarmUp` implementation to simulate shader pre-compilation, replacing `PaintingBinding.shaderWarmUp` with a fake, capturing the image via `debugCaptureShaderWarmUpImage`, and verifying that `warmUpOnCanvas` is executed during `WidgetsFlutterBinding.ensureInitialized()`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "70", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004271", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, what kind of test strategy should be followed to comprehensively test and verify the `lerp` interpolation behavior and compound borders for `Border`, `BoxBorder`, `BorderDirectional`, `OutlinedBorder`, and `ShapeBorder` classes? The tests should cover interactions with `scale`, `dimensions`, `paint`, and `ShapeBorder.lerp` functions, specifically focusing on the interpolation of identical borders, combining different borders (e.g., `(b1 + b2) + b2`), scaling of border width, drawing sequence, and text direction.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "71", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004273", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How are automatic unit tests designed and applied for the `StadiumBorder` class in Flutter? Provide tests covering `BorderSide`, `copyWith`, `scale`, `lerp`, `getOuterPath`, `getInnerPath`, `paint`, `strokeAlign`, its relationship with `CircleBorder` and `RoundedRectangleBorder`, and various `BorderRadius` configurations (such as `BorderRadius.zero`, `BorderRadius.circular`, and `BorderRadiusDirectional`).", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "73", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004276", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, when system fonts change, how should a comprehensive test strategy be designed and implemented to ensure that relayout is triggered, caches are cleaned, and the user interface is updated as expected for text-containing widgets (such as Text, EditableText, CupertinoDatePicker, Slider, TimePicker) and custom render objects using RelayoutWhenSystemFontsChangeMixin?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "76", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_004282", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how do you write a comprehensive unit test for `ClampedSimulation` (using a `GravitySimulation`) to verify its behavior under different starting conditions, gravity values, and limit intervals? Specifically, show how to verify the `x(time)`, `dx(time)`, and `isDone(time)` functions under the constraints of `xMin`, `xMax`, `dxMin`, and `dxMax`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "82", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_004288", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Flutter unit test to verify that the `toString()` methods of the `Simulation` class and its subclasses (such as `ClampedSimulation`, `GravitySimulation`, `FrictionSimulation`, `BoundedFrictionSimulation`, and `SpringSimulation`), as well as `SpringDescription`, correctly and consistently represent their parameters in a human-readable format.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "88", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004295", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Considering the hierarchical structure of `PipelineOwner` objects in Flutter and the interaction with `RendererBinding`, the changes in the tree (order, semantic, visual update requirement) are notified to `RendererBinding`. How is this notification mechanism designed to synchronize visual rendering and semantics updates correctly and efficiently in the presence of more than one `PipelineOwner` (for example, intertwined widget trees or special rendering pipelines)? Specifically, what is the role of `BindingPipelineManifold` and `SemanticsOwner` in the creation and destruction process, and what scenarios and control points should I include in order to create unit tests that explain how to use the `ensureVisualUpdate` method in this process?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "95", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004298", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a comprehensive suite of unit tests for Flutter's `RenderBox` subclasses (such as `RenderPadding`, `RenderConstrainedBox`, `RenderDecoratedBox`, `RenderFlex`, `RenderConstraintsTransformBox`, `RenderParagraph`, `RenderBaseline`) to verify layout, sizing, hit testing, baseline calculations, and error handling for common misconfigurations (e.g., missing `performLayout`, setting size outside layout, negative intrinsic dimensions, etc.).", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "98", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004299", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Considering the role of the `RenderBox` class in the Flutter Rendering Pipeline, specifically baseline calculation and 'Dry Layout' mechanisms, how can we design and implement test scenarios to verify `computeMinIntrinsicWidth`, `computeMaxIntrinsicWidth`, `computeMinIntrinsicHeight`, `computeMaxIntrinsicHeight`, `computeDistanceToActualBaseline`, and `computeDryBaseline`? The tests should verify caching behaviors, consistency between dry baseline and actual baseline, error handling (such as accessing size during dry layout), and sensitivity to different `BoxConstraints`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "99", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004303", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we test the intrinsic size calculation mechanisms (minimum/maximum internal width/height) used in the sizing and arrangement of `RenderBox` objects? Specifically, by creating custom classes like `RenderFixedSize`, `RenderParentSize`, and `RenderInvalidIntrinsics`, how can we ensure that the intrinsic dimension calculations are correctly operational, integrated in layout processes, and that invalid intrinsic values (e.g., `-1`) are caught?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "103", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004304", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How do the `RenderEditable` object's `attach` and `detach` methods interact with pointer events and the `PointerRouter` in `GestureBinding`? Provide a Flutter unit test demonstrating how to verify that `RenderEditable` correctly registers and unregisters routes in the `PointerRouter` during attachment and detachment to ensure touch events are managed correctly.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "104", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004312", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can you isolate and manage the layout and paint cycles of an offscreen `RenderObject` tree (not attached to the main `RenderView`) from the onscreen tree? Provide a Dart test demonstrating how to independently trigger layout and paint phases for both trees using `PipelineOwner`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "112", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004315", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "The behaviors of various types of layers (eg Opacityer, CliPrectlayer, Leaderlayer, Followerlayer) in the Flutter rendering layer tree behavior, features (eg,`alwaysneedsaddtoscene`,`debugsubreneedsaddtoscene`,`Enginelayer`,`their relationship with each other (for example, layerlink, appnd/remove procedures), and the rendering pipeline of these layers (especially the composition phase) and rasterization optimization (for example, cases where the layers should be added to the stage,`Needsaddtoscene`flag,`supportsrasterization`) How can it be observed and tested by using error discovery and performance analysis tools (for example,`debugfillproperties`,`AddCompositionCallback`), and finally the source management of these layers (especially the`Dispose'method and the use of the`layerhandle`s) and the best practices and the best -to -use, Explain along Lifecycle", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "115", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004322", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we write unit tests in Flutter to verify the behavior of `RendererBinding` when managing multiple `RenderView`s? Specifically, we need to test: 1. Adding and removing `RenderView`s and how it updates the `renderViews` getter. 2. Handling metrics changes and updating configurations. 3. Directing semantic actions to the correct `RenderView` based on `viewId`. 4. Synchronizing frame composition across multiple views. 5. Ensuring hit-testing reaches the correct view based on `viewId`.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "122", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004325", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, when a rendering object is created by using a complex network of`RepaintBound`(including the background and the foreground painters),`RepaintBoundary`and`Placeholder`widgets, and then this rendering object is completely removed. How can we confirm the correct formation, painting, pouring and destroying of the object and the main`renderobject`, especially in cases where layer formation and painting processes are intertwined (for example, the fact that`Custompaint`s both background and the foreground painters) are; In this verification process, which`widgettester`APIs,`Layer`and`renderobject`features (for example,`Debugdisposed`,`Debuglayer`,`depthfirstiteretechildren`) and expectations (for example,`Expect`) should be used and this is the performance of the performance and the performance, the performance and the performance. What kind of inferences does it offer in terms of preventing leaks?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "125", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004327", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, a `RenderOffstage` widget hides its child sub-tree, meaning it should not be painted, but it should still undergo layout. Create a rendering test that verifies this behavior. Specifically, construct a render tree where a `RenderOffstage` contains a `RenderCustomPaint` (with a callback painter) and a nested `RenderConstrainedBox`. Write test assertions to verify that:\n1. The child is laid out and its size is correctly determined (taking constraints into account).\n2. The painter's paint method is not called (i.e., it is not painted).", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "127", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004336", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write Flutter unit tests to verify how RenderPositionedBox behaves with widthFactor and heightFactor (including null values), showing how it interacts with child dimensions and how changes trigger updates via pumpFrame.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "136", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "seed_004344", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Create a Flutter widget test and a reproducing widget (`RelayoutBoundariesCrash`) to demonstrate and test the layout and rendering behavior when a `SizedBox` transitions its dimensions between `null` and a constant value (triggered by a state change), affecting an inner `LayoutBuilder` and its children.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "144", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004345", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we test the behavior of `RenderRepaintBoundary` and non-repaint boundary widgets, including compositing processes, layer-creation behaviors, and nested repaint boundaries? Provide a test suite that demonstrates how to detect and report compositing errors correctly.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "145", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004349", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "When a certain size (100x100) restriction is applied by using the`renderConstrainedbox`widget in the Flutter rendering tree, whether this restriction is applied correctly and how this restriction affects the size of the`renderbox`object, especially after the`Layout`process, the size of the dimension is adjusted. What kind of a test scenario can be created to verify whether it is equal and whether the operating time type of the size object is`_DEBUGSIZE`?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "149", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004352", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, how can we design a test scenario by subclassing `RenderSliverFloatingPersistentHeader` and `RenderSliverFloatingPinnedPersistentHeader` to verify how their `maxScrollObstructionExtent` is affected (e.g., whether it is 0 or equal to `minExtent`)?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.95, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "152", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004358", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we design and implement comprehensive and systematic test scenarios for Flutter's `RenderViewport` and `RenderShrinkWrappingViewport` to verify their layout, hit testing, scroll offset management, and positioning of sub-elements across different `axisDirection`, `crossAxisDirection`, and `viewportOffset` configurations?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "158", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004361", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a comprehensive unit test suite for Flutter's `RenderTable` to verify its layout, sizing, cell addition/removal, border painting, and various column width configurations (such as FlexColumnWidth, IntrinsicColumnWidth, MaxColumnWidth, and MinColumnWidth).", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "161", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004368", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In Flutter, the `RenderWrap` widget's `computeMaxIntrinsicHeight`, `computeMinIntrinsicHeight`, `computeMaxIntrinsicWidth`, and `computeMinIntrinsicWidth` functions depend on direction (`Axis.horizontal`, `Axis.vertical`), `spacing`, `runSpacing`, child constraints (`BoxConstraints`), and special cases like `RenderRotatedBox`. How can we design a detailed test suite to verify the behavior of these functions in various scenarios to ensure `RenderWrap` correctly calculates intrinsic dimensions and respects clipping?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "168", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004369", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Flutter unit test using `SchedulerBinding` to verify that `timeDilation` defaults to 1.0, and that canceling a scheduled frame callback (using `cancelFrameCallbackWithId`) from within another frame callback successfully prevents the canceled callback from running when simulated with a `tick` function.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "169", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004389", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "How can we design unit tests in Flutter to verify the behavior of AutofillClients and AutofillConfigurations? Provide test scenarios covering TextInput channel simulation, multi-client management within the same scope, platform interaction simulation, and equality/hashCode behavior.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 0.9, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "189", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004390", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "In the Flutter test environment, we have a custom `BindingBase` subclass (`_TestBinding`) that simulates keyboard interactions through the `flutter/keyboard` channel. How can we write an automated test to verify that this custom binding captures messages sent to the platform channel, and that calling `initializationComplete` triggers the expected `System.initializationComplete` platform message?", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "190", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "hard", "id": "seed_004397", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Write a Flutter test suite to verify the integration and accuracy of the delta-based text entry model with `DeltaTextInputClient`. The tests should simulate sending valid and invalid `TextEditingDelta` objects through the platform channel using the `updateEditingStateWithDeltas` method. It should confirm that invalid inputs trigger expected `FlutterError`s containing details about the invalid `TextRange` (such as selection, delta, or composing ranges) and that these errors contain consistent, explanatory messages regarding text limits.", "role": "user"}], "metadata": {"provenance_status": "P1_partial", "quality_score": 1.0, "review_notes": "codex_strict_review_approved", "review_status": "approved"}, "source": {"commit": null, "license": null, "path": "flutter_code_with_questions_4201_4400_eng.csv", "repo": null, "row_in_file": "197", "status": "P1_partial", "type": "seed"}, "task_type": "test_generation"}
{"difficulty": "medium", "id": "bench_synth_bug_000", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Fix the bug in this Flutter code example 0", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "bug_fix"}
{"difficulty": "medium", "id": "bench_synth_bug_001", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Fix the bug in this Flutter code example 1", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "bug_fix"}
{"difficulty": "medium", "id": "bench_synth_bug_002", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Fix the bug in this Flutter code example 2", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "bug_fix"}
{"difficulty": "medium", "id": "bench_synth_bug_003", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Fix the bug in this Flutter code example 3", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "bug_fix"}
{"difficulty": "medium", "id": "bench_synth_bug_004", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Fix the bug in this Flutter code example 4", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "bug_fix"}
{"difficulty": "medium", "id": "bench_synth_bug_005", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Fix the bug in this Flutter code example 5", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "bug_fix"}
{"difficulty": "medium", "id": "bench_synth_bug_006", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Fix the bug in this Flutter code example 6", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "bug_fix"}
{"difficulty": "medium", "id": "bench_synth_bug_007", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Fix the bug in this Flutter code example 7", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "bug_fix"}
{"difficulty": "medium", "id": "bench_synth_bug_008", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Fix the bug in this Flutter code example 8", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "bug_fix"}
{"difficulty": "medium", "id": "bench_synth_bug_009", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Fix the bug in this Flutter code example 9", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "bug_fix"}
{"difficulty": "medium", "id": "bench_synth_bug_010", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Fix the bug in this Flutter code example 10", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "bug_fix"}
{"difficulty": "medium", "id": "bench_synth_bug_011", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Fix the bug in this Flutter code example 11", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "bug_fix"}
{"difficulty": "medium", "id": "bench_synth_bug_012", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Fix the bug in this Flutter code example 12", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "bug_fix"}
{"difficulty": "medium", "id": "bench_synth_bug_013", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Fix the bug in this Flutter code example 13", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "bug_fix"}
{"difficulty": "medium", "id": "bench_synth_bug_014", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Fix the bug in this Flutter code example 14", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "bug_fix"}
{"difficulty": "medium", "id": "bench_synth_bug_015", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Fix the bug in this Flutter code example 15", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "bug_fix"}
{"difficulty": "medium", "id": "bench_synth_bug_016", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Fix the bug in this Flutter code example 16", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "bug_fix"}
{"difficulty": "medium", "id": "bench_synth_bug_017", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Fix the bug in this Flutter code example 17", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "bug_fix"}
{"difficulty": "medium", "id": "bench_synth_bug_018", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Fix the bug in this Flutter code example 18", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "bug_fix"}
{"difficulty": "medium", "id": "bench_synth_bug_019", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Fix the bug in this Flutter code example 19", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "bug_fix"}
{"difficulty": "medium", "id": "bench_synth_bug_020", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Fix the bug in this Flutter code example 20", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "bug_fix"}
{"difficulty": "medium", "id": "bench_synth_bug_021", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Fix the bug in this Flutter code example 21", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "bug_fix"}
{"difficulty": "medium", "id": "bench_synth_bug_022", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Fix the bug in this Flutter code example 22", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "bug_fix"}
{"difficulty": "medium", "id": "bench_synth_bug_023", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Fix the bug in this Flutter code example 23", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "bug_fix"}
{"difficulty": "medium", "id": "bench_synth_bug_024", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Fix the bug in this Flutter code example 24", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "bug_fix"}
{"difficulty": "medium", "id": "bench_synth_comp_000", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Complete the following Flutter widget 0", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "completion"}
{"difficulty": "medium", "id": "bench_synth_comp_001", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Complete the following Flutter widget 1", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "completion"}
{"difficulty": "medium", "id": "bench_synth_comp_002", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Complete the following Flutter widget 2", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "completion"}
{"difficulty": "medium", "id": "bench_synth_comp_003", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Complete the following Flutter widget 3", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "completion"}
{"difficulty": "medium", "id": "bench_synth_comp_004", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Complete the following Flutter widget 4", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "completion"}
{"difficulty": "medium", "id": "bench_synth_comp_005", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Complete the following Flutter widget 5", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "completion"}
{"difficulty": "medium", "id": "bench_synth_comp_006", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Complete the following Flutter widget 6", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "completion"}
{"difficulty": "medium", "id": "bench_synth_comp_007", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Complete the following Flutter widget 7", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "completion"}
{"difficulty": "medium", "id": "bench_synth_comp_008", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Complete the following Flutter widget 8", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "completion"}
{"difficulty": "medium", "id": "bench_synth_comp_009", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Complete the following Flutter widget 9", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "completion"}
{"difficulty": "medium", "id": "bench_synth_comp_010", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Complete the following Flutter widget 10", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "completion"}
{"difficulty": "medium", "id": "bench_synth_comp_011", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Complete the following Flutter widget 11", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "completion"}
{"difficulty": "medium", "id": "bench_synth_comp_012", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Complete the following Flutter widget 12", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "completion"}
{"difficulty": "medium", "id": "bench_synth_comp_013", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Complete the following Flutter widget 13", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "completion"}
{"difficulty": "medium", "id": "bench_synth_comp_014", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Complete the following Flutter widget 14", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "completion"}
{"difficulty": "medium", "id": "bench_synth_comp_015", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Complete the following Flutter widget 15", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "completion"}
{"difficulty": "medium", "id": "bench_synth_comp_016", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Complete the following Flutter widget 16", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "completion"}
{"difficulty": "medium", "id": "bench_synth_comp_017", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Complete the following Flutter widget 17", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "completion"}
{"difficulty": "medium", "id": "bench_synth_comp_018", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Complete the following Flutter widget 18", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "completion"}
{"difficulty": "medium", "id": "bench_synth_comp_019", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Complete the following Flutter widget 19", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "completion"}
{"difficulty": "medium", "id": "bench_synth_comp_020", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Complete the following Flutter widget 20", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "completion"}
{"difficulty": "medium", "id": "bench_synth_comp_021", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Complete the following Flutter widget 21", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "completion"}
{"difficulty": "medium", "id": "bench_synth_comp_022", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Complete the following Flutter widget 22", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "completion"}
{"difficulty": "medium", "id": "bench_synth_comp_023", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Complete the following Flutter widget 23", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "completion"}
{"difficulty": "medium", "id": "bench_synth_comp_024", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Complete the following Flutter widget 24", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "completion"}
{"difficulty": "medium", "id": "bench_synth_ref_000", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Refactor this Flutter code to use best practices 0", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "refactor"}
{"difficulty": "medium", "id": "bench_synth_ref_001", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Refactor this Flutter code to use best practices 1", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "refactor"}
{"difficulty": "medium", "id": "bench_synth_ref_002", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Refactor this Flutter code to use best practices 2", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "refactor"}
{"difficulty": "medium", "id": "bench_synth_ref_003", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Refactor this Flutter code to use best practices 3", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "refactor"}
{"difficulty": "medium", "id": "bench_synth_ref_004", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Refactor this Flutter code to use best practices 4", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "refactor"}
{"difficulty": "medium", "id": "bench_synth_ref_005", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Refactor this Flutter code to use best practices 5", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "refactor"}
{"difficulty": "medium", "id": "bench_synth_ref_006", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Refactor this Flutter code to use best practices 6", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "refactor"}
{"difficulty": "medium", "id": "bench_synth_ref_007", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Refactor this Flutter code to use best practices 7", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "refactor"}
{"difficulty": "medium", "id": "bench_synth_ref_008", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Refactor this Flutter code to use best practices 8", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "refactor"}
{"difficulty": "medium", "id": "bench_synth_ref_009", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Refactor this Flutter code to use best practices 9", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "refactor"}
{"difficulty": "medium", "id": "bench_synth_ref_010", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Refactor this Flutter code to use best practices 10", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "refactor"}
{"difficulty": "medium", "id": "bench_synth_ref_011", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Refactor this Flutter code to use best practices 11", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "refactor"}
{"difficulty": "medium", "id": "bench_synth_ref_012", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Refactor this Flutter code to use best practices 12", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "refactor"}
{"difficulty": "medium", "id": "bench_synth_ref_013", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Refactor this Flutter code to use best practices 13", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "refactor"}
{"difficulty": "medium", "id": "bench_synth_ref_014", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Refactor this Flutter code to use best practices 14", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "refactor"}
{"difficulty": "medium", "id": "bench_synth_ref_015", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Refactor this Flutter code to use best practices 15", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "refactor"}
{"difficulty": "medium", "id": "bench_synth_ref_016", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Refactor this Flutter code to use best practices 16", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "refactor"}
{"difficulty": "medium", "id": "bench_synth_ref_017", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Refactor this Flutter code to use best practices 17", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "refactor"}
{"difficulty": "medium", "id": "bench_synth_ref_018", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Refactor this Flutter code to use best practices 18", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "refactor"}
{"difficulty": "medium", "id": "bench_synth_ref_019", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Refactor this Flutter code to use best practices 19", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "refactor"}
{"difficulty": "medium", "id": "bench_synth_ref_020", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Refactor this Flutter code to use best practices 20", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "refactor"}
{"difficulty": "medium", "id": "bench_synth_ref_021", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Refactor this Flutter code to use best practices 21", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "refactor"}
{"difficulty": "medium", "id": "bench_synth_ref_022", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Refactor this Flutter code to use best practices 22", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "refactor"}
{"difficulty": "medium", "id": "bench_synth_ref_023", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Refactor this Flutter code to use best practices 23", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "refactor"}
{"difficulty": "medium", "id": "bench_synth_ref_024", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Refactor this Flutter code to use best practices 24", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "refactor"}
{"difficulty": "medium", "id": "bench_synth_exp_000", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain the following Flutter widget: class Exp0 extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold(body: Center(child: Text('Example 0'))); } }", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "code_to_explanation"}
{"difficulty": "medium", "id": "bench_synth_exp_001", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain the following Flutter widget: class Exp1 extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold(body: Center(child: Text('Example 1'))); } }", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "code_to_explanation"}
{"difficulty": "medium", "id": "bench_synth_exp_002", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain the following Flutter widget: class Exp2 extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold(body: Center(child: Text('Example 2'))); } }", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "code_to_explanation"}
{"difficulty": "medium", "id": "bench_synth_exp_003", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain the following Flutter widget: class Exp3 extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold(body: Center(child: Text('Example 3'))); } }", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "code_to_explanation"}
{"difficulty": "medium", "id": "bench_synth_exp_004", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain the following Flutter widget: class Exp4 extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold(body: Center(child: Text('Example 4'))); } }", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "code_to_explanation"}
{"difficulty": "medium", "id": "bench_synth_exp_005", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain the following Flutter widget: class Exp5 extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold(body: Center(child: Text('Example 5'))); } }", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "code_to_explanation"}
{"difficulty": "medium", "id": "bench_synth_exp_006", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain the following Flutter widget: class Exp6 extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold(body: Center(child: Text('Example 6'))); } }", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "code_to_explanation"}
{"difficulty": "medium", "id": "bench_synth_exp_007", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain the following Flutter widget: class Exp7 extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold(body: Center(child: Text('Example 7'))); } }", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "code_to_explanation"}
{"difficulty": "medium", "id": "bench_synth_exp_008", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain the following Flutter widget: class Exp8 extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold(body: Center(child: Text('Example 8'))); } }", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "code_to_explanation"}
{"difficulty": "medium", "id": "bench_synth_exp_009", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain the following Flutter widget: class Exp9 extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold(body: Center(child: Text('Example 9'))); } }", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "code_to_explanation"}
{"difficulty": "medium", "id": "bench_synth_exp_010", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain the following Flutter widget: class Exp10 extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold(body: Center(child: Text('Example 10'))); } }", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "code_to_explanation"}
{"difficulty": "medium", "id": "bench_synth_exp_011", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain the following Flutter widget: class Exp11 extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold(body: Center(child: Text('Example 11'))); } }", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "code_to_explanation"}
{"difficulty": "medium", "id": "bench_synth_exp_012", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain the following Flutter widget: class Exp12 extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold(body: Center(child: Text('Example 12'))); } }", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "code_to_explanation"}
{"difficulty": "medium", "id": "bench_synth_exp_013", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain the following Flutter widget: class Exp13 extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold(body: Center(child: Text('Example 13'))); } }", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "code_to_explanation"}
{"difficulty": "medium", "id": "bench_synth_exp_014", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain the following Flutter widget: class Exp14 extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold(body: Center(child: Text('Example 14'))); } }", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "code_to_explanation"}
{"difficulty": "medium", "id": "bench_synth_exp_015", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain the following Flutter widget: class Exp15 extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold(body: Center(child: Text('Example 15'))); } }", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "code_to_explanation"}
{"difficulty": "medium", "id": "bench_synth_exp_016", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain the following Flutter widget: class Exp16 extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold(body: Center(child: Text('Example 16'))); } }", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "code_to_explanation"}
{"difficulty": "medium", "id": "bench_synth_exp_017", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain the following Flutter widget: class Exp17 extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold(body: Center(child: Text('Example 17'))); } }", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "code_to_explanation"}
{"difficulty": "medium", "id": "bench_synth_exp_018", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain the following Flutter widget: class Exp18 extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold(body: Center(child: Text('Example 18'))); } }", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "code_to_explanation"}
{"difficulty": "medium", "id": "bench_synth_exp_019", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain the following Flutter widget: class Exp19 extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold(body: Center(child: Text('Example 19'))); } }", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "code_to_explanation"}
{"difficulty": "medium", "id": "bench_synth_exp_020", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain the following Flutter widget: class Exp20 extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold(body: Center(child: Text('Example 20'))); } }", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "code_to_explanation"}
{"difficulty": "medium", "id": "bench_synth_exp_021", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain the following Flutter widget: class Exp21 extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold(body: Center(child: Text('Example 21'))); } }", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "code_to_explanation"}
{"difficulty": "medium", "id": "bench_synth_exp_022", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain the following Flutter widget: class Exp22 extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold(body: Center(child: Text('Example 22'))); } }", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "code_to_explanation"}
{"difficulty": "medium", "id": "bench_synth_exp_023", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain the following Flutter widget: class Exp23 extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold(body: Center(child: Text('Example 23'))); } }", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "code_to_explanation"}
{"difficulty": "medium", "id": "bench_synth_exp_024", "messages": [{"content": "You are a Flutter and Dart coding assistant.", "role": "system"}, {"content": "Explain the following Flutter widget: class Exp24 extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold(body: Center(child: Text('Example 24'))); } }", "role": "user"}], "metadata": {"synthetic": true}, "source": {"type": "synthetic"}, "task_type": "code_to_explanation"}