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/8 20:46 | |
| // | |
| import 'dart:convert'; | |
| import 'dart:io'; | |
| class CustomHttpOverrides extends HttpOverrides { | |
| @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
| // | |
| // [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 325 commits βββββββββββββββββββββ 22.4% | |
| π Daytime 571 commits βββββββββββββββββββββ 39.3% | |
| π Evening 489 commits βββββββββββββββββββββ 33.6% | |
| π Night 69 commits βββββββββββββββββββββ 4.7% |