eyflutter_uikit 0.1.12 copy "eyflutter_uikit: ^0.1.12" to clipboard
eyflutter_uikit: ^0.1.12 copied to clipboard

eyflutter项目工具库

example/lib/main.dart

import 'dart:io';

import 'package:eyflutter_uikit_example/home.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:oktoast/oktoast.dart';

void main() {
  runApp(const OKToast(
    child: MyApp(),
  ));
  if (Platform.isAndroid) {
    SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
      statusBarColor: Colors.transparent,
      statusBarIconBrightness: Brightness.dark,
      statusBarBrightness: Brightness.light,
    ));
  }
}

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: Home(),
    );
  }
}