Skip to content

Instantly share code, notes, and snippets.

View Lootwig's full-sized avatar

David Lootwig

View GitHub Profile
@Lootwig
Lootwig / main.dart
Last active October 21, 2024 22:12
MouseRegion / AnimatedOpacity
import 'package:flutter/material.dart';
void main() {
runApp(const MainApp());
}
class MainApp extends StatelessWidget {
const MainApp({super.key});
@override
enum Timespan {
year,
month,
week,
day,
hour,
minute,
moment;
String get plural => '${name}s';
@Lootwig
Lootwig / main.dart
Created October 11, 2023 17:26
tropical-performance-7429
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@Lootwig
Lootwig / main.dart
Last active September 11, 2023 08:53
enchanted-rainbow-1284
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@Lootwig
Lootwig / main.dart
Last active September 3, 2023 17:22
flutter portal bug
import 'package:flutter/material.dart';
import 'package:flutter_portal/flutter_portal.dart';
void main() {
runApp(const App());
}
class App extends StatefulWidget {
const App({super.key});
@Lootwig
Lootwig / main.dart
Created August 29, 2023 11:55
solar-midnight-7981
import 'package:flutter/material.dart';
import 'package:flutter_animate/flutter_animate.dart';
void main() {
runApp(Home());
}
class Home extends StatefulWidget {
const Home({
super.key,
@Lootwig
Lootwig / main.dart
Created August 20, 2023 22:45
xenial-rose-4702
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Material App',
// theme: ThemeData.dark(),
@Lootwig
Lootwig / main.dart
Last active August 20, 2023 20:09
divine-aqueduct-3735
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@Lootwig
Lootwig / main.dart
Created August 10, 2023 12:25
solar-midnight-7981
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.
@Lootwig
Lootwig / main.dart
Created August 9, 2023 13:02
solar-midnight-7981
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override