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:go_router/go_router.dart'; | |
| main() { | |
| CustomNavigationHelper.instance; | |
| runApp(const App()); | |
| } | |
| class App extends StatelessWidget { | |
| const App({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
| name: Flutter Web | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| name: Build Web | |
| env: | |
| my_secret: ${{secrets.commit_secret}} |
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'; | |
| import 'package:universal_html/html.dart' as html; | |
| // Also add id="app_container" to web/index.html body tag | |
| // | |
| // | |
| //<!DOCTYPE html> | |
| //<html> | |
| //<head> |
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:args/args.dart'; | |
| main(List<String> arguments) { | |
| final ArgParser argParser = ArgParser(); | |
| argParser.addOption("name", abbr: "n"); | |
| ArgResults results = argParser.parse(arguments); | |
| if (results['name'] != null) { |
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'; | |
| /// able to show scrollbar always with following example | |
| /// available with changes from this branch https://github.com/onatcipli/flutter/tree/scrollbar_display_always | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatefulWidget { | |
| @override | |
| _MyAppState createState() => _MyAppState(); |
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:daily_tasks/pages/home_page.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:firebase_auth/firebase_auth.dart'; | |
| import 'package:google_sign_in/google_sign_in.dart'; | |
| class LoginPage extends StatefulWidget { | |
| @override | |
| _LoginPageState createState() => _LoginPageState(); | |
| } |
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:daily_tasks/pages/login_page.dart'; | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| title: 'Flutter Demo', |
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
| FloatingActionButton( | |
| onPressed: () async { | |
| await CustomAlertBox.showCustomAlertBox( | |
| context: context, | |
| willDisplayWidget: Container( | |
| child: Text('My custom alert box, used from example!!'), | |
| )); | |
| }, | |
| tooltip: 'Show Custom Alert Box', | |
| child: Icon(Icons.message), |
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
| library custom_alert_box; | |
| import 'package:flutter/material.dart'; | |
| class CustomAlertBox { | |
| /// Bu şekilde döküman yorumları oluşturabilirsiniz kullanan kişiler için faydalı olur. | |
| static Future showCustomAlertBox({ | |
| @required BuildContext context, | |
| @required Widget willDisplayWidget, | |
| }) { |
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() { | |
| var myText = "1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222 |