main.dart 1023 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * QR.Flutter
  3. * Copyright (c) 2019 the QR.Flutter authors.
  4. * See LICENSE for distribution and usage details.
  5. */
  6. import 'package:fis_lib_qrtest/qrcode_withlogo.dart';
  7. import 'package:flutter/material.dart';
  8. import 'package:flutter/services.dart';
  9. void main() => runApp(ExampleApp());
  10. /// The example application class
  11. class ExampleApp extends StatelessWidget {
  12. // This widget is the root of your application.
  13. @override
  14. Widget build(BuildContext context) {
  15. SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
  16. statusBarColor: Colors.white,
  17. statusBarIconBrightness: Brightness.dark,
  18. systemNavigationBarColor: Colors.white,
  19. systemNavigationBarIconBrightness: Brightness.dark,
  20. ));
  21. return MaterialApp(
  22. title: 'QR.Flutter',
  23. theme: ThemeData.light(),
  24. debugShowCheckedModeBanner: false,
  25. home: QRCodeWithLogo(
  26. "https://www.baidu.com/",
  27. codeStatement: "二维码说明",
  28. operationStatement: "复制链接",
  29. ),
  30. );
  31. }
  32. }