Skip to content

Instantly share code, notes, and snippets.

View ebeem's full-sized avatar

Ebeem ebeem

View GitHub Profile
@ebeem
ebeem / emuelec-bluetooth
Created May 30, 2023 15:09
emuelec bluetooth fix
#!/usr/bin/env python
from subprocess import Popen, PIPE
from bluetool import Bluetooth
def execute(cmd):
out = []
with Popen(cmd, stdout=PIPE, bufsize=1, universal_newlines=True) as p:
for line in p.stdout:
[Icon Theme]
Name=elementary
Comment=Smooth modern theme designed to be intuitive.
Example=directory-x-normal
Directories=scalable/actions,sctions/16,actions@2x/16,actions@3x/16,actions/24,actions@2x/24,actions@3x/24,actions/32,actions@2x/32,actions@3x/32,actions/48,actions@2x/48,actions@3x/48,actions/64,actions@2x/64,actions@3x/64,actions/128,actions@2x/128,actions@3x/128,actions/symbolic,actions@2x/symbolic,actions@3x/symbolic,apps/16,apps@2x/16,apps@3x/16,apps/24,apps@2x/24,apps@3x/24,apps/32,apps@2x/32,apps@3x/32,apps/48,apps@2x/48,apps@3x/48,apps/64,apps@2x/64,apps@3x/64,apps/128,apps@2x/128,apps@3x/128,apps/symbolic,apps@2x/symbolic,apps@3x/symbolic,categories/16,categories@2x/16,categories@3x/16,categories/24,categories@2x/24,categories@3x/24,categories/32,categories@2x/32,categories@3x/32,categories/48,categories@2x/48,categories@3x/48,categories/64,categories@2x/64,categories@3x/64,categories/128,categories@2x/128,categories@3x/128,categories/symbolic,categories@2x/symbolic,categories@3x/symbolic,d
@ebeem
ebeem / main.dart
Created June 22, 2018 18:05
miss calculation in skip painting a the last sliver list element if the direction is rtl
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatefulWidget {
@override
State<StatefulWidget> createState() {
return new MyAppState();
}
}
@ebeem
ebeem / main.dart
Created June 22, 2018 17:20
weird shader blends fading overflowing text
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatefulWidget {
@override
State<StatefulWidget> createState() {
return new MyAppState();
}
}
@ebeem
ebeem / main.dart
Created June 22, 2018 10:40
drawer's elements are not painted after an element with a Chip trailing is painted
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatefulWidget {
@override
State<StatefulWidget> createState() {
return new MyAppState();
}
}
@ebeem
ebeem / main.dart
Created June 18, 2018 08:27
GestureDetector multiple callbacks
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
theme: new ThemeData(platform: TargetPlatform.android),
home: new Scaffold(
@ebeem
ebeem / main.dart
Created June 16, 2018 08:44
hidden sliver list elements
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
theme: new ThemeData(platform: TargetPlatform.android),
home: new Scaffold(
@ebeem
ebeem / localizations.dart
Created June 9, 2018 15:57
flutter release mode crashes when localization entries are large
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter_localization/l10n/messages_all.dart';
import 'package:intl/intl.dart';
class AppLocalizations {
static AppLocalizations localizations;
static Future<AppLocalizations> load(Locale locale) {