this main.dart file makes error on line 36 'http'. please fix it : import 'package:flutter/material.dart';
void main() {
 runApp(MyApp());
}

class MyApp extends StatelessWidget {
 const MyApp({Key? key}) : super(key: key);
 
 @override
 Widget build(BuildContext context) {
 return MaterialApp(
 home: Scaffold(
 appBar: AppBar(
 title: const Text('My First App'),
 ),
 body: Center(
 child: FutureBuilder(
 future: fetchData(),
 builder: (BuildContext context, AsyncSnapshot snapshot) {
 if (snapshot.hasData) {
 return Text(snapshot.data.toString());
 } else {
 return CircularProgressIndicator();
 }
 },
 ),
 ),
 ),
 );
 }

 Future fetchData() async {
 var url = 'https://opendart.fss.or.kr/api/list.json?crtfc\_key=de788b288a871f085343281becc1fa3cf8bfc366&corp\_code=00126380&bgn\_de=20200101&end\_de=20201231&last\_reprt\_at=Y&page\_count=100';
 var response = await http.get(Uri.parse(url));
 return response.body;
 }
}
user
to fix the error, you should import the `http` package, as it doesn't seem like you have the `http` package imported correctly. to do this, add the following line at the top of your file, right after the `material.dart` import:
```dart
import 'package:http/http.dart' as http;
```
here's the corrected code:
```dart
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;

void main() {
  runapp(myapp());
}

class myapp extends statelesswidget {
  const myapp({key? key}) : super(key: key);

  @override
  widget build(buildcontext context) {
    return materialapp(
      home: scaffold(
        appbar: appbar(
          title: const text('my first app'),
        ),
        body: center(
          child: futurebuilder(
            future: fetchdata(),
            builder: (buildcontext context, asyncsnapshot snapshot) {
              if (snapshot.hasdata) {
                return text(snapshot.data.tostring());
              } else {
                return circularprogressindicator();
              }
            },
          ),
        ),
      ),
    );
  }

  future fetchdata() async {
    var url = 'https://opendart.fss.or.kr/api/list.json?crtfc_key=de788b288a871f085343281becc1fa3cf8bfc366&corp_code=00126380&bgn_de=20200101&end_de=20201231&last_reprt_at=y&page_count=100';
    var response = await http.get(uri.parse(url));
    return response.body;
  }
}
```
now the code should work without errors related to the `http` package.
assistant
To fix the error, you should import the `http` package, as it doesn't seem like you have the `http` package imported correctly. To do this, add the following line at the top of your file, right after the `material.dart` import:
```dart
import 'package:http/http.dart' as http;
```
Here's the corrected code:
```dart
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('My First App'),
        ),
        body: Center(
          child: FutureBuilder(
            future: fetchData(),
            builder: (BuildContext context, AsyncSnapshot snapshot) {
              if (snapshot.hasData) {
                return Text(snapshot.data.toString());
              } else {
                return CircularProgressIndicator();
              }
            },
          ),
        ),
      ),
    );
  }

  Future fetchData() async {
    var url = 'https://opendart.fss.or.kr/api/list.json?crtfc_key=de788b288a871f085343281becc1fa3cf8bfc366&corp_code=00126380&bgn_de=20200101&end_de=20201231&last_reprt_at=Y&page_count=100';
    var response = await http.get(Uri.parse(url));
    return response.body;
  }
}
```
Now the code should work without errors related to the `http` package.
assistant