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/foundation.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_local_notifications/flutter_local_notifications.dart'; | |
| import 'package:timezone/data/latest_all.dart' as tz; | |
| import 'package:timezone/timezone.dart' as tz; | |
| extension EasyFlutterLocalNotifications on FlutterLocalNotificationsPlugin { | |
| Future<void> easyInitialize() async { | |
| tz.initializeTimeZones(); | |
| await initialize( |
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/gestures.dart'; | |
| import 'package:flutter/material.dart'; | |
| class TripleTapDetector extends StatelessWidget { | |
| const TripleTapDetector({ | |
| super.key, | |
| required this.child, | |
| required this.onTripleTap, | |
| }); | |
| final Widget child; |
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/foundation.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:uri/uri.dart'; | |
| class PathRouteMatch { | |
| PathRouteMatch( | |
| {required this.parameters, | |
| required this.route, |
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'; | |
| import 'package:flutter_web3/flutter_web3.dart'; | |
| import 'package:get/get.dart'; | |
| import 'package:niku/niku.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { |
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
| // BSD 3-Clause License | |
| // | |
| // Copyright (c) 2021, Mike Rydstrom (Rydmike) | |
| // All rights reserved. | |
| // | |
| // Redistribution and use in source and binary forms, with or without | |
| // modification, are permitted provided that the following conditions are met: | |
| // | |
| // 1. Redistributions of source code must retain the above copyright notice, | |
| // this list of conditions and the following disclaimer. |
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
| // MIT License | |
| // | |
| // Copyright (c) 2019 Simon Lightfoot | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is | |
| // furnished to do so, subject to the following conditions: |
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:math' show Random; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/rendering.dart' show RendererBinding; | |
| void main() { | |
| runApp(MaterialApp( | |
| home: Home(), | |
| )); | |
| } |
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/widgets.dart'; | |
| class TextEditingControllerBuilder extends StatefulWidget { | |
| /// Exposes a [TextEditingController] to the child, which allows | |
| /// us to convert any [TextField] into a declarative version. | |
| /// | |
| /// Typically used for wiring up many state fields to form inputs | |
| /// and making sure everything stays in sync. | |
| /// | |
| /// If [text] is updated, the consuming [TextField] will also be updated. |
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
| /// Finds unused dependencies from pubspec.yaml | |
| /// | |
| /// Achieves this by parsing pubspec.yaml and recursively | |
| /// searching the lib folder for an import statement that | |
| /// contains the name of each package. Prints out the results. | |
| const fs = require("fs"); | |
| const YAML = require("yaml"); | |
| const { execSync } = require("child_process"); | |
| /// Read pubspec.yaml |
NewerOlder