title: Error: The getter 'u' isn't defined for the class 'AssetBundleImageProvider'
body: <p>Guide me on what went wrong?</p>
  <p>here is the whole error message.</p>
  <p>Launching lib\main.dart on RMX2103 in debug mode...
  : Error: Expected ';' after this.
  data = await key.bundle.load(key.name);7u
  ^
  : Error: Expected ';' after this.
  data = await key.bundle.load(key.name);7u
  ^
  : Error: The getter 'u' isn't defined for the class 'AssetBundleImageProvider'.</p>
  <ul>
  <li>'AssetBundleImageProvider' is from 'package:flutter/src/painting/image_provider.dart' ('../../flutter/packages/flutter/lib/src/painting/image_provider.dart').</li>
  </ul>
  <p>Try correcting the name to the name of an existing getter, or defining a getter or field named 'u'.
  data = await key.bundle.load(key.name);7u
  ^</p>
  <p>FAILURE: Build failed with an exception.</p>
  <ul>
  <li><p>Where:
  Script 'C:\Users\Muhammad Umar\Documents\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1102</p>
  </li>
  <li><p>What went wrong:
  Execution failed for task ':app:compileFlutterBuildDebug'.</p>
  </li>
  </ul>
  <blockquote>
  <p>Process 'command 'C:\Users\Muhammad Umar\Documents\flutter\bin\flutter.bat'' finished with non-zero exit value 1</p>
  </blockquote>
  <ul>
  <li><p>Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.</p>
  </li>
  <li><p>Get more help at <a href="https://help.gradle.org" rel="nofollow noreferrer">https://help.gradle.org</a></p>
  </li>
  </ul>
  <p>BUILD FAILED in 25s
  Exception: Gradle task assembleDebug failed with exit code 1
  Exited (sigterm)</p>
  <pre><code>file 1 &quot;main.dart&quot;
  import 'package:flutter/material.dart';
  import 'package:flutter_application_1/pages/welcome_page.dart';
  
  void main(){
    runApp(const MyApp());
  }
  
  class MyApp extends StatelessWidget {
    const MyApp({ Key? key }) : super(key: key);
  
    @override
    Widget build(BuildContext context) {
      return MaterialApp(
        title: &quot;Flutter Demo&quot;,
        debugShowCheckedModeBanner: false,
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: const WelcomePage(),
      );
    }
  }
  
  file 2 &quot;welcome_page.dart&quot;
  import 'package:flutter/material.dart';
  
  class WelcomePage extends StatefulWidget {
    const WelcomePage({ Key? key }) : super(key: key);
  
    @override
    State&lt;WelcomePage&gt; createState() =&gt; _WelcomePageState();
  }
  
  class _WelcomePageState extends State&lt;WelcomePage&gt; {
    List images = [
      &quot;welcome-one.png&quot;,
      &quot;welcome-two.png&quot;,
      &quot;welcome-three.png&quot;,
    ];
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        body: PageView.builder(
          scrollDirection: Axis.vertical,
          itemCount: images.length,
          itemBuilder: (_,index){
            return Container(
              width: double.maxFinite,
              height: double.maxFinite,
              decoration: BoxDecoration(
                image: DecorationImage(
                  image: AssetImage(
                    &quot;img/&quot;+images[index]
                  ))
              ),
            );
        }),
      );
    }
  }
  </code></pre>