On this website you can download and install https://code.visualstudio.com/download
After you download VSCode and have it in your Downloads folder, be sure to drag it from there into the Applications folder.
On this website you can download and install https://code.visualstudio.com/download
After you download VSCode and have it in your Downloads folder, be sure to drag it from there into the Applications folder.
import 'package:flutter/material.dart'; | |
import 'package:video_player/video_player.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
// This widget is the root of your application. |
import 'package:flutter/material.dart'; | |
import 'package:provider/provider.dart'; | |
//add provider: to the dependencies in pubspec.yaml | |
//update your formatter in analysis_options.yaml | |
// The provider file to be imported in files that need it | |
class NameProvider extends ChangeNotifier { | |
List<String> _names = ['Bob', 'Louise']; | |
//similar in concept to a State variable but it will be |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MaterialApp( | |
home: LoginPage(), | |
)); | |
} | |
class LoginPage extends StatefulWidget { | |
@override |
import 'package:flutter/material.dart'; | |
import 'package:theming/components/mybutton.dart'; | |
import 'package:theming/theme/theme.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); |
import 'package:flutter/material.dart'; | |
class FocusTextFieldScreen extends StatefulWidget { | |
@override | |
_FocusTextFieldScreenState createState() => _FocusTextFieldScreenState(); | |
} | |
class _FocusTextFieldScreenState extends State<FocusTextFieldScreen> { | |
FocusNode textField1FocusNode = FocusNode(); | |
FocusNode textField2FocusNode = FocusNode(); |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
@override |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |