This repository is a Flutter project. The environment has all Dart and Flutter dependencies pre-fetched during setup, but network access is disabled afterwards. Use the commands below to work with the project.
flutter pub get --enforce-lockfile
#!/bin/bash | |
set -e | |
# Environment variables | |
FLUTTER_VERSION="3.29.2" | |
# Detect shell profile | |
SHELL_PROFILE="" | |
if [[ "$SHELL" == */zsh ]]; then | |
SHELL_PROFILE="$HOME/.zshrc" |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
home: SliverDemo(), | |
); |
import 'package:flutter/material.dart'; | |
import 'dart:math'; | |
import 'dart:async'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatefulWidget { | |
const MyApp({super.key}); |