<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Abrar Ahmed Abrar Ahmed</title>
    <description>The latest articles on DEV Community by Abrar Ahmed Abrar Ahmed (@abrar_ahmedabrarahmed_e).</description>
    <link>https://dev.to/abrar_ahmedabrarahmed_e</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4126287%2F41475944-8e54-4403-8844-5daa0b2813d6.png</url>
      <title>DEV Community: Abrar Ahmed Abrar Ahmed</title>
      <link>https://dev.to/abrar_ahmedabrarahmed_e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abrar_ahmedabrarahmed_e"/>
    <language>en</language>
    <item>
      <title>How I Built a 32K+ Flutter &amp; Dart Code Repair Dataset for LLM Fine-Tuning</title>
      <dc:creator>Abrar Ahmed Abrar Ahmed</dc:creator>
      <pubDate>Tue, 15 Sep 2026 12:24:49 +0000</pubDate>
      <link>https://dev.to/abrar_ahmedabrarahmed_e/how-i-built-a-32k-flutter-dart-code-repair-dataset-for-llm-fine-tuning-4e8i</link>
      <guid>https://dev.to/abrar_ahmedabrarahmed_e/how-i-built-a-32k-flutter-dart-code-repair-dataset-for-llm-fine-tuning-4e8i</guid>
      <description>&lt;p&gt;Most coding datasets focus on generating code.&lt;/p&gt;

&lt;p&gt;But there is another problem that deserves more attention:&lt;/p&gt;

&lt;p&gt;Can an AI model actually understand broken Flutter/Dart code and repair it correctly?&lt;/p&gt;

&lt;p&gt;While working with Flutter development and LLM fine-tuning, I started building a dataset specifically around this problem.&lt;/p&gt;

&lt;p&gt;The result is a 32K+ record Flutter &amp;amp; Dart Code Repair Dataset designed for supervised fine-tuning (SFT) and code-repair experiments.&lt;/p&gt;

&lt;p&gt;What Is a Flutter &amp;amp; Dart Code Repair Dataset?&lt;/p&gt;

&lt;p&gt;A code repair dataset contains examples where a model receives problematic code and needs to identify the issue and produce a corrected version.&lt;/p&gt;

&lt;p&gt;This is different from ordinary code-generation datasets.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;Code generation:&lt;/p&gt;

&lt;p&gt;"Create a Flutter login screen."&lt;/p&gt;

&lt;p&gt;The model generates new code.&lt;/p&gt;

&lt;p&gt;Code repair:&lt;/p&gt;

&lt;p&gt;"This Flutter code contains a Dart type error. Diagnose the problem and provide the corrected code."&lt;/p&gt;

&lt;p&gt;The model needs to understand existing code, identify the cause of the problem, and modify the code without unnecessarily breaking the rest of the application.&lt;/p&gt;

&lt;p&gt;That is the problem I wanted this dataset to focus on.&lt;/p&gt;

&lt;p&gt;Why Flutter and Dart?&lt;/p&gt;

&lt;p&gt;General programming datasets are useful, but frameworks have their own patterns and failure modes.&lt;/p&gt;

&lt;p&gt;Flutter is a good example.&lt;/p&gt;

&lt;p&gt;A model may understand basic Dart syntax but still struggle with:&lt;/p&gt;

&lt;p&gt;Flutter widget trees&lt;br&gt;
StatefulWidget and StatelessWidget&lt;br&gt;
BuildContext&lt;br&gt;
build() methods&lt;br&gt;
Null safety&lt;br&gt;
Widget properties&lt;br&gt;
Dart type mismatches&lt;br&gt;
Flutter-specific APIs&lt;br&gt;
State-related problems&lt;br&gt;
Dart analyzer errors&lt;/p&gt;

&lt;p&gt;A model that performs well on general programming tasks does not automatically become good at repairing Flutter applications.&lt;/p&gt;

&lt;p&gt;This is why I focused specifically on Dart and Flutter code repair.&lt;/p&gt;

&lt;p&gt;Dataset Overview&lt;/p&gt;

&lt;p&gt;The current dataset contains 32K+ supervised fine-tuning records focused on Flutter and Dart code diagnosis and repair.&lt;/p&gt;

&lt;p&gt;The dataset is designed for developers and researchers experimenting with:&lt;/p&gt;

&lt;p&gt;Large Language Models&lt;br&gt;
Supervised Fine-Tuning&lt;br&gt;
QLoRA&lt;br&gt;
AI coding assistants&lt;br&gt;
Automated code repair&lt;br&gt;
Flutter/Dart developer tools&lt;/p&gt;

&lt;p&gt;The records are structured for machine-learning workflows and focus on the relationship between:&lt;/p&gt;

&lt;p&gt;Problem → Diagnosis → Corrected Code&lt;/p&gt;

&lt;p&gt;What Types of Errors Are Covered?&lt;/p&gt;

&lt;p&gt;The dataset covers multiple categories of Flutter and Dart programming problems.&lt;/p&gt;

&lt;p&gt;Syntax Errors&lt;/p&gt;

&lt;p&gt;Examples involving invalid Dart syntax, missing elements, malformed expressions, and related programming mistakes.&lt;/p&gt;

&lt;p&gt;Type Errors&lt;/p&gt;

&lt;p&gt;Problems where variables, expressions, function arguments, or return values have incompatible types.&lt;/p&gt;

&lt;p&gt;Null-Safety Errors&lt;/p&gt;

&lt;p&gt;Examples involving nullable and non-nullable values, null checks, null assertions, and related Dart null-safety behavior.&lt;/p&gt;

&lt;p&gt;Flutter Widget Errors&lt;/p&gt;

&lt;p&gt;Problems involving Flutter widgets, widget properties, widget composition, and incorrect widget usage.&lt;/p&gt;

&lt;p&gt;Static Analysis Issues&lt;/p&gt;

&lt;p&gt;Examples based around problems that can be identified through Dart and Flutter analysis.&lt;/p&gt;

&lt;p&gt;The goal isn't simply to teach a model how to generate Dart code.&lt;/p&gt;

&lt;p&gt;The goal is to help models become better at repairing existing Dart and Flutter code.&lt;/p&gt;

&lt;p&gt;What Does a Training Example Look Like?&lt;/p&gt;

&lt;p&gt;A simplified example of the training concept looks like this:&lt;/p&gt;

&lt;p&gt;{&lt;br&gt;
  "instruction": "Fix the Dart/Flutter code.",&lt;br&gt;
  "input": "problematic Dart or Flutter code",&lt;br&gt;
  "output": "corrected Dart or Flutter code"&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;The actual dataset contains structured records designed for supervised fine-tuning workflows.&lt;/p&gt;

&lt;p&gt;The important relationship is:&lt;/p&gt;

&lt;p&gt;Problem → Diagnosis → Repair&lt;/p&gt;

&lt;p&gt;This makes the dataset suitable for experiments involving models that need to repair code rather than only generate code.&lt;/p&gt;

&lt;p&gt;Why Dataset Quality Matters&lt;/p&gt;

&lt;p&gt;One of the biggest lessons I learned while building this dataset is that a large dataset isn't automatically a good dataset.&lt;/p&gt;

&lt;p&gt;A dataset can contain thousands of examples and still produce poor training results if it contains:&lt;/p&gt;

&lt;p&gt;Incorrect fixes&lt;br&gt;
Unrealistic errors&lt;br&gt;
Duplicate examples&lt;br&gt;
Placeholder code&lt;br&gt;
Broken corrections&lt;br&gt;
Ambiguous problems&lt;br&gt;
Code that does not actually work&lt;/p&gt;

&lt;p&gt;For code repair, quality and verification matter just as much as quantity.&lt;/p&gt;

&lt;p&gt;That is why I focused on validating the examples instead of simply generating a large number of records.&lt;/p&gt;

&lt;p&gt;What Can You Build With This?&lt;/p&gt;

&lt;p&gt;There are several possible applications.&lt;/p&gt;

&lt;p&gt;AI Coding Assistants&lt;/p&gt;

&lt;p&gt;Use the dataset as training data for experiments involving Flutter/Dart coding assistants.&lt;/p&gt;

&lt;p&gt;Automated Code Repair&lt;/p&gt;

&lt;p&gt;Train or fine-tune models to identify programming problems and generate corrected code.&lt;/p&gt;

&lt;p&gt;Flutter Developer Tools&lt;/p&gt;

&lt;p&gt;Use code-repair training data as part of an IDE plugin or developer assistant.&lt;/p&gt;

&lt;p&gt;LLM Research&lt;/p&gt;

&lt;p&gt;Experiment with:&lt;/p&gt;

&lt;p&gt;SFT&lt;br&gt;
QLoRA&lt;br&gt;
Code intelligence&lt;br&gt;
Automated program repair&lt;br&gt;
LLM-based developer tools&lt;br&gt;
Programming-focused language models&lt;br&gt;
Who Is This Dataset For?&lt;/p&gt;

&lt;p&gt;This dataset may be useful for:&lt;/p&gt;

&lt;p&gt;Flutter developers building AI-powered developer tools.&lt;/p&gt;

&lt;p&gt;ML researchers experimenting with programming-focused language models.&lt;/p&gt;

&lt;p&gt;LLM developers looking for domain-specific SFT data.&lt;/p&gt;

&lt;p&gt;AI coding assistant builders working on automated error diagnosis and repair.&lt;/p&gt;

&lt;p&gt;Students and researchers studying code intelligence and automated program repair.&lt;/p&gt;

&lt;p&gt;Explore the Project&lt;/p&gt;

&lt;p&gt;I've made supporting resources available so developers can explore the project and understand how the dataset is structured.&lt;/p&gt;

&lt;p&gt;GitHub&lt;/p&gt;

&lt;p&gt;The GitHub repository contains project documentation and sample resources.&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://github.com/AbrarAhmedDev/flutter-code-repair-dataset" rel="noopener noreferrer"&gt;https://github.com/AbrarAhmedDev/flutter-code-repair-dataset&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Full Dataset&lt;/p&gt;

&lt;p&gt;The complete dataset is available here:&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://5220745837352.gumroad.com/l/flutter-code-repair-dataset" rel="noopener noreferrer"&gt;https://5220745837352.gumroad.com/l/flutter-code-repair-dataset&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What Would You Add?&lt;/p&gt;

&lt;p&gt;I'm interested in hearing from other developers and ML researchers.&lt;/p&gt;

&lt;p&gt;If you were training an LLM specifically for Flutter/Dart code repair:&lt;/p&gt;

&lt;p&gt;What type of errors would you want the training dataset to contain more of?&lt;/p&gt;

&lt;p&gt;Would you focus more on:&lt;/p&gt;

&lt;p&gt;Null-safety errors?&lt;br&gt;
Flutter widget errors?&lt;br&gt;
State management?&lt;br&gt;
Type errors?&lt;br&gt;
Multi-error files?&lt;br&gt;
Larger real-world applications?&lt;/p&gt;

&lt;p&gt;And in your experience, is code repair harder than code generation?&lt;/p&gt;

&lt;p&gt;I'd love to hear your thoughts in the comments.&lt;/p&gt;

&lt;p&gt;Final Thoughts&lt;/p&gt;

&lt;p&gt;I started this project with a simple question:&lt;/p&gt;

&lt;p&gt;Can smaller language models become significantly better at repairing Flutter and Dart code when they are trained on domain-specific code-repair data?&lt;/p&gt;

&lt;p&gt;There is still a lot to experiment with.&lt;/p&gt;

&lt;p&gt;Model size, training methodology, dataset quality, error complexity, and evaluation are all important parts of the problem.&lt;/p&gt;

&lt;p&gt;I'm continuing to work on the dataset and Flutter/Dart code-repair models, and I'm interested in hearing from others working on similar problems.&lt;/p&gt;

&lt;p&gt;If you're building something related to LLMs, code repair, Flutter, or developer AI, share what you're working on below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flzjhlz78fjzeydcke9k4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flzjhlz78fjzeydcke9k4.png" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>flutter</category>
      <category>dart</category>
      <category>ai</category>
      <category>machinelearning</category>
    </item>
  </channel>
</rss>
