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 '../../router/app_navigator.dart'; | |
| import '../../utilities/constants.dart/constants.dart'; | |
| import '../../utilities/theming/app_styles.dart'; | |
| class AppToast { | |
| final String message; | |
| final bool userCanDismiss; | |
| final Duration duration; |
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/services.dart'; | |
| class DateInputFormatter extends TextInputFormatter { | |
| final String separator; | |
| static const _maxLength = 8; | |
| DateInputFormatter({required this.separator}); | |
| @override | |
| TextEditingValue formatEditUpdate( | |
| TextEditingValue oldValue, TextEditingValue newValue) { | |
| // Remove any non-numeric characters from the new value |
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'; | |
| import '../../core/app_view_model/api_response.dart'; | |
| abstract class DeepLinkService { | |
| @mustCallSuper | |
| void configure(DeepLinkConfiguration config) { | |
| this.config = config; |
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
| class DeviceInfoData { | |
| final String deviceModel; | |
| final String deviceId; | |
| final String appVersion; | |
| const DeviceInfoData( | |
| {@required this.deviceModel, | |
| @required this.deviceId, | |
| @required this.appVersion}); | |
| } |
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:firebase_dynamic_links/firebase_dynamic_links.dart'; | |
| import 'package:flutter/widgets.dart'; | |
| import '../base/data_base_classes/data_base_classes.dart'; | |
| import '../base/view_base_classes/app_toast.dart'; | |
| import '../utilities/constants/constants.dart'; | |
| /// Original written by MajorE | |
| /// Github: Meghatronics |
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:meta/meta.dart'; | |
| import 'package:socket_io_client/socket_io_client.dart' as io; | |
| import '../../data/models/chat_message.dart'; | |
| import '../../data/models/room.dart'; | |
| class ChatData { | |
| final bool matchIsTyping; |
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'; | |
| void main() => runApp(PeekUp()); | |
| class PeekUp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( |
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() { | |
| List<double> unsortedList = [2, 5, 3, 4, 7.2, 1, 3, 10, 200, 54, 21, 46, 8]; | |
| List sortedList = sort(unsortedList); | |
| print(sortedList); | |
| } | |
| ///Sorts a list of doubles [unsortedArray] in ascending order. | |
| /// | |
| ///Takes an unordered list of doubles [unsortedArray] and returns a list of its elements, | |
| ///arranged in ascending order. |
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( | |
| MaterialApp( | |
| home: Scaffold( | |
| body: BarnCounter(), | |
| ), | |
| ), | |
| ); |