main.dart 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. import 'package:flutter/material.dart';
  2. import 'package:nrf/scanner.dart';
  3. void main() {
  4. runApp(const MyApp());
  5. }
  6. class MyApp extends StatelessWidget {
  7. const MyApp({Key? key}) : super(key: key);
  8. // This widget is the root of your application.
  9. @override
  10. Widget build(BuildContext context) {
  11. return MaterialApp(
  12. debugShowCheckedModeBanner: false,
  13. title: 'nRF Connect',
  14. theme: ThemeData(
  15. // This is the theme of your application.
  16. //
  17. // Try running your application with "flutter run". You'll see the
  18. // application has a blue toolbar. Then, without quitting the app, try
  19. // changing the primarySwatch below to Colors.green and then invoke
  20. // "hot reload" (press "r" in the console where you ran "flutter run",
  21. // or simply save your changes to "hot reload" in a Flutter IDE).
  22. // Notice that the counter didn't reset back to zero; the application
  23. // is not restarted.
  24. primarySwatch: Colors.blue,
  25. ),
  26. home: const Scanner(),
  27. );
  28. }
  29. }