Skip to content

Instantly share code, notes, and snippets.

View Alvarocda's full-sized avatar
🎯
Focusing

Álvaro Claro Alvarocda

🎯
Focusing
  • Cuiabá, Mato Grosso, Brasil
  • 15:20 (UTC -04:00)
  • LinkedIn in/alvarocda
View GitHub Profile
import 'package:camera/camera.dart';
import 'package:camera_example/camera_screen_controller.dart';
import 'package:flutter/material.dart';
///
///
///
class CameraScreen extends StatefulWidget {
///
///
@Alvarocda
Alvarocda / example.dart
Last active March 17, 2022 12:33
Minimal reproducible code
import 'package:camera/camera.dart';
import 'package:flutter/material.dart';
import 'package:video_player/video_player.dart';
///
///
///
class FlutterTest extends StatefulWidget {
///
///
Feb 9 15:04:42 geia-OptiPlex-3070 bluetoothd[782]: src/profile.c:ext_device_remove() :1.36/Profile/HSPHSProfile/00001108-0000-1000-8000-00805f9b34fb
Feb 9 15:04:42 geia-OptiPlex-3070 bluetoothd[782]: src/service.c:btd_service_unref() 0x5585dc751d80: ref=0
Feb 9 15:04:42 geia-OptiPlex-3070 bluetoothd[782]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci0/dev_20_1B_88_67_DD_3C
Feb 9 15:04:42 geia-OptiPlex-3070 bluetoothd[782]: src/device.c:device_free() 0x5585dc755e80
Feb 9 15:04:42 geia-OptiPlex-3070 bluetoothd[782]: src/adapter.c:remove_whitelist_complete() 20:1B:88:67:DD:3C removed from kernel whitelist
Feb 9 15:04:43 geia-OptiPlex-3070 bluetoothd[782]: src/adapter.c:start_discovery() sender :1.98
Feb 9 15:04:43 geia-OptiPlex-3070 bluetoothd[782]: src/adapter.c:update_discovery_filter()
Feb 9 15:04:43 geia-OptiPlex-3070 bluetoothd[782]: src/adapter.c:discovery_filter_to_mgmt_cp()
Feb 9 15:04:43 geia-OptiPlex-3070 bluetoothd[782]: src/adapter.c:trigger_start_discovery()
Feb 9 15:04:
Feb 9 15:00:55 geia-OptiPlex-3070 bluetoothd[782]: src/adapter.c:start_discovery() sender :1.98
Feb 9 15:00:55 geia-OptiPlex-3070 bluetoothd[782]: src/adapter.c:update_discovery_filter()
Feb 9 15:00:55 geia-OptiPlex-3070 bluetoothd[782]: src/adapter.c:discovery_filter_to_mgmt_cp()
Feb 9 15:00:55 geia-OptiPlex-3070 bluetoothd[782]: src/adapter.c:trigger_start_discovery()
Feb 9 15:00:55 geia-OptiPlex-3070 bluetoothd[782]: src/adapter.c:cancel_passive_scanning()
Feb 9 15:00:55 geia-OptiPlex-3070 bluetoothd[782]: src/adapter.c:start_discovery_timeout()
Feb 9 15:00:55 geia-OptiPlex-3070 bluetoothd[782]: src/adapter.c:start_discovery_timeout() adapter->current_discovery_filter == 0
Feb 9 15:00:55 geia-OptiPlex-3070 bluetoothd[782]: src/adapter.c:start_discovery_complete() status 0x00
Feb 9 15:00:55 geia-OptiPlex-3070 bluetoothd[782]: src/adapter.c:discovering_callback() hci0 type 7 discovering 1 method 0
Feb 9 15:00:55 geia-OptiPlex-3070 bluetoothd[782]: src/adapter.c:device_found_callback() hci0 add
Feb 9 14:13:07 geia-OptiPlex-3070 bluetoothd[782]: src/device.c:connect_profiles() /org/bluez/hci0/dev_20_1B_88_67_DD_3C (all), client :1.79
Feb 9 14:13:07 geia-OptiPlex-3070 bluetoothd[782]: src/device.c:btd_device_set_temporary() temporary 0
Feb 9 14:13:07 geia-OptiPlex-3070 bluetoothd[782]: src/device.c:connect_profiles() Resolving services for /org/bluez/hci0/dev_20_1B_88_67_DD_3C
Feb 9 14:13:07 geia-OptiPlex-3070 bluetoothd[782]: src/adapter.c:add_whitelist_complete() 20:1B:88:67:DD:3C added to kernel whitelist
Feb 9 14:13:09 geia-OptiPlex-3070 bluetoothd[782]: src/adapter.c:connected_callback() hci0 device 20:1B:88:67:DD:3C connected eir_len 35
Feb 9 14:13:09 geia-OptiPlex-3070 bluetoothd[782]: src/device.c:device_probe_profiles() Probing profiles for device 20:1B:88:67:DD:3C
Feb 9 14:13:09 geia-OptiPlex-3070 bluetoothd[782]: profiles/audio/avrcp.c:avrcp_controller_probe() path /org/bluez/hci0/dev_20_1B_88_67_DD_3C
Feb 9 14:13:09 geia-OptiPlex-3070 bluetoothd[782]: profiles/audio/control.c:contr
Feb 8 16:26:24 geia-OptiPlex-3070 systemd[1]: Starting Bluetooth service...
Feb 8 16:26:24 geia-OptiPlex-3070 bluetoothd[118897]: Bluetooth daemon 5.53
Feb 8 16:26:24 geia-OptiPlex-3070 pulseaudio[116220]: Bluetooth daemon appeared
Feb 8 16:26:24 geia-OptiPlex-3070 systemd[1]: Started Bluetooth service.
Feb 8 16:26:24 geia-OptiPlex-3070 bluetoothd[118897]: Starting SDP server
Feb 8 16:26:24 geia-OptiPlex-3070 dbus-daemon[807]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.218' (uid=0 pid=118897 comm="/usr/lib/bluetooth/bluetoothd " label="unconfined")
Feb 8 16:26:24 geia-OptiPlex-3070 bluetoothd[118897]: Bluetooth management interface 1.14 initialized
Feb 8 16:26:24 geia-OptiPlex-3070 pulseaudio[116220]: Unknown interface org.freedesktop.DBus.Introspectable found, skipping
Feb 8 16:26:24 geia-OptiPlex-3070 pulseaudio[116220]: Unknown interface org.bluez.AgentManager1 found, skipping
Feb 8 16:26:24 geia-OptiPle
$ blueman-applet --loglevel debug
blueman-applet version 2.1.2 starting
Stale PID, overwriting
blueman-applet 16.26.31 INFO PluginManager:85 load_plugin: ['KillSwitch', 'ShowConnected', 'AuthAgent', 'AppIndicator', 'NetUsage', 'SerialManager', 'DhcpClient', 'StandardItems', 'Networking', 'TransferService', 'PPPSupport', 'DBusService', 'GameControllerWakelock', 'DiscvManager', 'PowerManager', 'NMPANSupport', 'ExitItem', 'NMDUNSupport', 'StatusIcon', 'Menu', 'RecentConns']
blueman-applet 16.26.31 INFO PluginManager:156 __load_plugin: loading <class 'blueman.plugins.applet.Menu.Menu'>
blueman-applet 16.26.31 INFO PluginManager:156 __load_plugin: loading <class 'blueman.plugins.applet.StatusIcon.StatusIcon'>
blueman-applet 16.26.31 DEBUG Base:74 do_g_properties_changed: /org/bluez/hci0 {'Address': '00:1A:7D:DA:71:03', 'AddressType': 'public', 'Name': 'geia-OptiPlex-3070', 'Alias': 'geia-OptiPlex-3070', 'Class': 1835268, 'Powered': True, 'Discoverable': False, 'DiscoverableTimeout': 180, 'Pairable':
import 'dart:async';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
///
///
///
class ExampleScreen extends StatefulWidget {
///
StackLayout stkContainer = new StackLayout
{
MinimumHeightRequest = 90,
HorizontalOptions = LayoutOptions.FillAndExpand,
Orientation = StackOrientation.Horizontal,
TabIndex = index,
StyleId = "stkContainer" + index
};
StackLayout stkIconeArquivo = new StackLayout
public class ComandosImpressora
{
public static byte FONT_24PX = (byte)0x01; //24����������
public static byte FONT_32PX = (byte)0x00;
public static byte FONT_24PX_UNDERLINE = (byte)0x81;
public static byte FONT_32PX_UNDERLINE = (byte)0x80;
public static byte FONT_48PX_HEIGHT = (byte)0x12;
public static byte FONT_48PX_HEIGHT_UNDERLINE = (byte)0x92;
public static byte FONT_48PX_WIDTH = (byte)0x21;
public static byte FONT_48PX_WIDTH_UNDERLINE = (byte)0xA1;