Moved to AlexV525/effective_flutter .
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
| # Build | |
| flutter build ios | |
| cd build/ios/iphoneos/Runner.app/Frameworks | |
| cd App.framework | |
| xcrun bitcode_strip -r app -o app | |
| cd .. | |
| cd Flutter.framework | |
| xcrun bitcode_strip -r Flutter -o Flutter | |
| cd ../../../../../../ |
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 { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| title: 'Flutter Demo', | |
| debugShowCheckedModeBanner: false, |
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
| void main() { | |
| print(getSpecificWeekdayInMonth( | |
| year: 2020, | |
| month: 8, | |
| whichWeek: 5, | |
| whichWeekday: 7, | |
| )); | |
| } | |
| DateTime? getSpecificWeekdayInMonth({ |
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
| void main() { | |
| final Duration duration = Duration(hours: 12, minutes: 34, seconds: 56); | |
| print(duration.splitToString(':')); | |
| } | |
| extension SplitDurationExtension on Duration { | |
| String splitToString( | |
| String divider, { | |
| bool shouldPadLeft = false, | |
| String padWith = '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
| import 'package:flutter/material.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| title: 'Flutter Demo', | |
| debugShowCheckedModeBanner: false, |
βββ βββββββ βββββββββββββ ββββ
βββ ββββββββ ββββββββββββββ βββββ
βββ βββ ββββ βββ βββββββββββ
βββ βββ βββ βββ βββββββββββ
βββββββββββββββββ βββ βββ βββ βββ
ββββββββ βββββββ βββ βββ βββ
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
| // Author: Alex Li (https://github.com/AlexV525) | |
| // Date: 2025/10/10 | |
| import 'dart:typed_data'; | |
| import 'dart:ui' as ui; | |
| import 'package:flutter/rendering.dart'; | |
| import 'package:flutter/widgets.dart'; | |
| /// Create an image from given [GlobalKey], which is attached to an exist |
Moved to https://github.com/AlexV525/dartpad_workshops/tree/main/implement_lazy_indexed_stack permanentely.
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
| /// | |
| /// [Author] Alex (https://github.com/AlexV525) | |
| /// [Date] 2020-12-26 11:51 | |
| /// | |
| import 'dart:async'; | |
| import 'package:flutter/foundation.dart'; | |
| /// ι²ζεθζ΅ | |
| /// |