Skip to content

Instantly share code, notes, and snippets.

View Metal-666's full-sized avatar
🇺🇦
Russian warship, go fuck yourself!

Metal Metal-666

🇺🇦
Russian warship, go fuck yourself!
View GitHub Profile
@Metal-666
Metal-666 / userChrome.css
Created June 16, 2024 11:37
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 {
position: absolute !important;
@Metal-666
Metal-666 / .gitignore
Created August 16, 2023 17:16
My main Reaper project template
*.reapeaks
*.rpp-bak
@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 / settings.dart
Last active October 17, 2024 22:45
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 / 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 / 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 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
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 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',