neis 1.0.5 copy "neis: ^1.0.5" to clipboard
neis: ^1.0.5 copied to clipboard

neis에서 시간표, 일정, 급식을 불러오는 플러그인 입니다.

example/lib/main.dart

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),
        ),
      ),
    );
  }
}
2
likes
125
points
28
downloads

Publisher

unverified uploader

Weekly Downloads

neis에서 시간표, 일정, 급식을 불러오는 플러그인 입니다.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, http, intl, plugin_platform_interface

More

Packages that depend on neis