neis 1.0.5  neis: ^1.0.5 copied to clipboard
neis: ^1.0.5 copied to clipboard
neis에서 시간표, 일정, 급식을 불러오는 플러그인 입니다.
import 'package:flutter/material.dart';
import 'package:neis/neis.dart';
void main() {
  runApp(const MyApp());
}
class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);
  @override
  State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
  final _neis = Neis(Region.chungnam, "8222021", SchoolType.els,"key");
  String meal = "";
  @override
  void initState() {
    super.initState();
    _neis.getMeals(2022, 07).then((value) {
      setState(() {
        meal = value.toString();
      });
    });
  }
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Text(meal),
        ),
      ),
    );
  }
}