Run src.main.rs or src.lib
cargo run
add my_file.rs in examples/my_file.rs
cargo run --example my_file
| import 'dart:async'; | |
| import 'dart:math' as math; | |
| import 'package:flutter/material.dart'; | |
| import 'package:vector_math/vector_math.dart' as v; | |
| import 'model.dart'; | |
| void main() { | |
| runApp(const MyApp()); |
| import 'package:flutter/widgets.dart'; | |
| enum DeviceType { | |
| small(0), | |
| medium(768), | |
| large(1024), | |
| xlarge(1280); | |
| final int breakpoint; |
| import 'package:flutter/widgets.dart'; | |
| import 'package:universal_io/io.dart'; | |
| enum DeviceType { | |
| small, | |
| medium, | |
| large, | |
| xlarge, | |
| } |
| import 'package:flutter/material.dart'; | |
| import 'package:pal/pal.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| final _navigatorKey = GlobalKey<NavigatorState>(); |