This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ///flutter bytes buffer / byte data | |
| import 'dart:typed_data'; | |
| void main() { | |
| final bytes = Uint8List.fromList([0,0,1,0]); | |
| final bd = ByteData.sublistView(bytes, 0, 4); | |
| print(bd.getInt32(0));//256 | |
| bd.setInt32(0, 65536); | |
| print(bd.getInt32(0));//65536 | |
| print(bytes);//[0, 1, 0, 0] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name ThreadsByeByeGhostPosts | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2025-10-30 | |
| // @description bye bye ghost posst @ Threads | |
| // @author rena2019 | |
| // @match https://www.threads.com/ | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=threads.com | |
| // @run-at document-idle | |
| // @noframes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Flutter ValueNotifier + ValueListenableBuilder (reactive way to manage state) | |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| MyApp({super.key}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Flutter OverlayEntry with ValueNotifier | |
| import 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(const MyApp()); | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.key}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //different text styles in 1 Text | |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.key}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| //figma button with shadow | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| MyApp({super.key}); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| MyApp({super.key}); | |
| @override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| //Progress Popup Widget with Stream | |
| /// Beispiel-Datenmodell, das vom Stream gesendet wird. | |
| class MyStreamData { | |
| final double progress; // 0.0 .. 1.0 | |
| final String? message; | |
| final bool done; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| //Overlay Popup with Stream | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) => MaterialApp(home: HomePage()); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // showDialog | |
| /* | |
| onPressed: () { | |
| showDialog( | |
| context: context, | |
| builder: (context) { | |
| return Dialog( | |
| child: Text('DIALOG'), | |
| ); | |
| }, |
NewerOlder