main.dart 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import 'package:flutter/material.dart';
  2. import 'package:luojigou_thinking_core/luojigou_thinking_core.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. title: 'Flutter Demo',
  13. theme: ThemeData(
  14. primarySwatch: Colors.blue,
  15. ),
  16. home: const MyHomePage(title: 'Flutter Demo Home Page'),
  17. );
  18. }
  19. }
  20. class MyHomePage extends StatefulWidget {
  21. const MyHomePage({Key? key, required this.title}) : super(key: key);
  22. final String title;
  23. @override
  24. State<MyHomePage> createState() => _MyHomePageState();
  25. }
  26. class _MyHomePageState extends State<MyHomePage> {
  27. @override
  28. Widget build(BuildContext context) {
  29. return Scaffold(
  30. appBar: AppBar(
  31. title: Text(widget.title)
  32. ),
  33. backgroundColor: const Color(0xFF7293F7),
  34. body: const Center(
  35. child: SizedBox(
  36. width: 150,
  37. height: 150,
  38. child: RadarChart(),
  39. )
  40. ),
  41. );
  42. }
  43. }