Flutter showDialog without context using the navigatorKey

When trying to show a dialog box with flutter, it is required to specify the context like so: Example AlertDialog Box class _HomePageState extends State<HomePage> { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text("GeeksForGeeks"), backgroundColor: Colors.green, ), body: Container( child: Center( child: RaisedButton( onPressed: () { return showD...

How to write and deploy firebase functions

1. Create a firebase project First create a firebase project by reading here create a firebase project . Use this chance to setup your firebase billing and upgrade to blaze plan, firebase function deployment only works with the blaze plan, it won't work with the free spark plan. 2. Setup Node.js If you don't have node.js with npm installed, you can node.js here https://nodejs.org/en/ If you already have node.js installed, you can check and update node.js with the following c...

How to run .Net Core website on DigitalOcean Ubuntu 20.04

This tutorial is not about how to publish your .Net Core website to the DigitalOcean Ubuntu server, but on how to setup your Ubuntu server to run .NET Core website after you've published and uploaded your site to the server. There are 3 prerequisites before you can run your .Net Core website on Ubuntu, please follow them below before you continue with the tutorial: 1. Set up a Production-Ready Droplet 2. How to Install Nginx on Ubuntu 3. How to secure Nginx with...

Page 1 of 1
  • 1