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 'universal_platform_web.dart' | |
| if (dart.library.io) 'universal_platform_vm.dart'; | |
| /// A universal platform checker. | |
| /// | |
| /// Can be used to check active physical Flutter platform on all platforms. | |
| /// | |
| /// To check what host platform the app is running on use: | |
| /// | |
| /// * PlatformIs.android |
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( |
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(const MyApp()); | |
| } | |
| class MyApp extends StatefulWidget { | |
| const MyApp({Key? key}) : super(key: key); | |
| @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
| import 'dart:async' show Future; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/services.dart' show rootBundle; | |
| import 'package:flutter_svg/flutter_svg.dart'; | |
| /// Displays an SVG image provided in the applications asset bundle. | |
| /// | |
| /// The [assetName] is the path and name of the SVG file in the asset bundle. | |
| /// This SVG asset display widget is tuned for usage with the Undraw images |
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 Alert', | |
| theme: ThemeData( |
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( | |
| debugShowCheckedModeBanner: false, | |
| title: 'Text Edit', |
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
| import 'package:flutter/material.dart'; | |
| import 'package:flex_color_scheme/flex_color_scheme.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @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
| import 'package:flutter/material.dart'; | |
| /// Type definition for a builder function used by IfWrapper. | |
| typedef IfWrapBuilder = Widget Function(BuildContext context, Widget child); | |
| /// A builder that if the [condition] is true, will run its builder and the | |
| /// child will be wrapped by the builder, if false it just returns the child. | |
| /// | |
| /// A convenient way to wrap a widget with another widget, but only if | |
| /// the condition is true. It can save you from having to define a large widget, |
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:flex_color_picker/flex_color_picker.dart'; | |
| void main() => runApp(const ColorPickerDemo()); | |
| class ColorPickerDemo extends StatefulWidget { | |
| const ColorPickerDemo({Key key}) : super(key: key); | |
| @override | |
| _ColorPickerDemoState createState() => _ColorPickerDemoState(); |