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
| /// | |
| /// pmatatias | |
| /// | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(const MyApp()); | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.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
| import 'package:flutter/material.dart'; | |
| import 'dart:math'; | |
| Future<String> apiCall() async { | |
| print("apiCall is executed..."); | |
| await Future.delayed(const Duration(seconds: 3)); | |
| return Future.value("${Random().nextInt(100)} update"); | |
| } | |
| void main() => runApp(MyApp()); |
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'; | |
| typedef MyBuilder = void Function( | |
| BuildContext context, void Function() methodFromChild); | |
| 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'; | |
| typedef MyBuilder = void Function( | |
| BuildContext context, void Function() methodFromChild); | |
| 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(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| title: 'Flutter Demo', | |
| debugShowCheckedModeBanner: false, |
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:io'; | |
| import 'package:file_picker/file_picker.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:image_picker/image_picker.dart'; | |
| import 'package:webview_flutter/webview_flutter.dart'; | |
| // ignore: depend_on_referenced_packages | |
| import 'package:webview_flutter_android/webview_flutter_android.dart' | |
| as webview_flutter_android; | |
| import 'package:image_picker/image_picker.dart' as image_picker; |
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
| // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
| // for details. All rights reserved. Use of this source code is governed by a | |
| // BSD-style license that can be found in the LICENSE file. | |
| import 'package:flutter/material.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
| /// Describe timestamp | |
| /// Example dart extension #6 | |
| /// Inspired from example on Google IO 2023 | |
| /// Updated by pmatatias | |
| /// follow me on twitter: @pmataias_ | |
| /// connet with me on Linkedind: /in/pmatatias | |
| import 'package:intl/intl.dart'; | |
| void main() { |
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 DynamicAppbar extends StatefulWidget { | |
| const DynamicAppbar({super.key}); | |
| @override | |
| State<DynamicAppbar> createState() => _DynamicAppbarState(); | |
| } | |
| class _DynamicAppbarState extends State<DynamicAppbar> { | |
| late ScrollController _scrollController; | |
| bool lastStatus = true; | |
| double height = 390; |
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
| /// Responsive card widget for dashboard | |
| /// created with love by pmatatias | |
| /// | |
| /// reach me out: | |
| /// https://www.linkedin.com/in/pmatatias/ | |
| /// https://twitter.com/pmatatias_ | |
| /// | |
| import 'package:flutter/material.dart'; |