Skip to content

Instantly share code, notes, and snippets.

@Metal-666
Metal-666 / main.dart
Created January 7, 2022 21:49
Challenge 1
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) => const MaterialApp(
title: 'Challenge 1',
@Metal-666
Metal-666 / main.dart
Last active January 11, 2022 12:05
Challenge 2 (setState)
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) => MaterialApp(
home: Scaffold(body: MyWidget()),
);
}
@Metal-666
Metal-666 / main.dart
Created January 11, 2022 12:04
Challenge 2 (BLoC)
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) => BlocProvider(
create: (BuildContext context) => RootBloc(1),
child: MaterialApp(
@Metal-666
Metal-666 / main.dart
Created January 20, 2022 17:53
Challenge 3 (BLoC)
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'dart:ui' as ui;
import 'dart:math';
void main() => runApp(App());
//------------------------------Widgets-----------------------------
class App extends StatelessWidget {
final Color _primaryColor = Colors.deepPurple[700]!;
@Metal-666
Metal-666 / main.dart
Created February 3, 2022 11:34
Challenge 4 (BLoC)
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'dart:ui' as ui;
import 'dart:math';
void main() => runApp(App());
//------------------------------Widgets-----------------------------
class App extends StatelessWidget {
final Color _primaryColor = Colors.deepPurple[700]!;
@Metal-666
Metal-666 / settings.dart
Last active April 5, 2025 15:17
[MOVED TO: https://github.com/Metal-666/my_flutter_bricks] A small script to get and save preferences using enum values. Uses the shared_preferences package.
import 'package:shared_preferences/shared_preferences.dart';
// Source:
//
// https://gist.github.com/Metal-666/823a13392c6edbb3736e6452a1a0735d
//
// Usage:
//
// Add your settings to the Settings enum below (like setting1 and setting2).
//
@Metal-666
Metal-666 / analysis_options.yaml
Created April 26, 2023 22:06
My favorite analysis options for Flutter
include: package:flutter_lints/flutter.yaml
analyzer:
language:
strict-casts: true
strict-inference: true
strict-raw-types: true
linter:
rules:
@Metal-666
Metal-666 / .gitignore
Created August 16, 2023 17:16
My main Reaper project template
*.reapeaks
*.rpp-bak
@Metal-666
Metal-666 / userChrome.css
Last active April 30, 2025 21:15
My custom userChrome.css (intended to be used with Tree Style Tab) (barely works and is very buggy)
#TabsToolbar {
display: none;
}
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"]
#sidebar-header {
display: none;
}
#nav-bar {
@Metal-666
Metal-666 / Metal666 - Insert Playthrough Footage.py
Last active March 19, 2025 16:44
My Reaper script for inserting playthrough footage into the timeline. Check the comments for usage info.
import os
import sys
from datetime import datetime, date, time, timedelta
# Config
FOOTAGE_DIRECTORY = "D:\\Files\\PlaythroughFootage" # <- this directory will be searched for the video clips
FOOTAGE_TRACK_NAME = "FOOTAGE" # <- the full footage track name will be: <SOURCE_TRACK_NAME> <FOOTAGE_TRACK_NAME>
FOOTAGE_FILE_EXTENSION = ".mkv" # <- used to filter the files found in the footage directory
FOOTAGE_LATENCY_COMPENSATION = 0.25 # <- shifts the inserted footage to the left by this amount (in seconds)