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/9/15 14:06 | |
// | |
import 'dart:async'; | |
import 'package:flutter/widgets.dart'; | |
extension SafeSetStateExtension on State { |
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] 2022/6/7 16:35 | |
// | |
import 'package:flutter/material.dart'; | |
/// A wrapped [Drawer] that typically useful when placed in a transparent route. | |
class CustomDrawer extends StatefulWidget { | |
const CustomDrawer({ |
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:convert'; | |
import 'package:crypto/crypto.dart'; | |
Map<String, String> sign({ | |
required String key, | |
DateTime? dateTime, | |
}) { | |
dateTime ??= DateTime.now(); | |
final int timestamp = dateTime.millisecondsSinceEpoch ~/ 1000; |
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] 2022/04/28 11:12 | |
/// | |
import 'package:flutter/widgets.dart'; | |
const None none = None(); | |
class None extends Widget { | |
const None({Key? key}) : super(key: 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
/// | |
/// [Author] Alex (https://github.com/AlexV525) | |
/// [Date] 2022/03/07 23:25 | |
/// | |
import 'dart:async'; | |
import 'dart:io'; | |
import 'package:device_info_plus/device_info_plus.dart'; | |
import 'package:flutter/gestures.dart'; | |
import 'package:flutter/material.dart'; |
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] 2021/10/22 18:38 | |
/// | |
import 'dart:async'; | |
import 'package:meta/meta.dart'; | |
void main() { | |
_initObservers(); |
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] 2021/10/13 14:36 | |
/// | |
import 'dart:math' as math; | |
import 'package:flutter/rendering.dart'; | |
import 'package:flutter/widgets.dart'; | |
@immutable |
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
// Use https://gist.github.com/AlexV525/5aff2a1621482e11abc8e97d88200ac1 instead. |
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
π Morning 178 commits βββββββββββββββββββββ 15.8% | |
π Daytime 503 commits βββββββββββββββββββββ 44.6% | |
π Evening 396 commits βββββββββββββββββββββ 35.1% | |
π Night 51 commits βββββββββββββββββββββ 4.5% |
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] 2021-04-30 12:41 | |
/// | |
import 'dart:math' as math; | |
import 'dart:ui'; | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); |