-
Flutter Examples Repo
I’ve set up a github repo with some Flutter examples (here). Planning to keep adding to these as I do spare time learning. Three examples up there… That last one is a project I did because I couldn’t figure out something I needed for work. I built a Flutter project from the ground up to…
-
Flutter: Displaying debug info
To send info to the debug console add the following import: – …then, in your code, add debug output using: –
-
Add Git Bash to Windows
If you’re after using a bash prompt then I’d suggest using; https://git-scm.com/download/win Once installed, you can open a bash prompt just by doing Start->git bash
-
Removing the Debug Banner from a Flutter app
The debug banner is added by MaterialApp. If you simply add a “debugShowCheckedModeBanner: false” to MaterialApp then the banner will be removed. e.g.
-
Useful Flutter Commands
Quick list of Flutter commands. I’ll keep adding to this as I think of them… flutter doctor This does a health check on your flutter installation and checks that everything is set up as it’s supposed to be. It’ll flag problems and will usually give instructions on how to solve those problems If you want…
-
Set up Visual Studio Code for use with Flutter
Install Visual Studio Code. Go here for the installer; https://code.visualstudio.com/ Click the “Download for Windows” (I’m assuming you’re using Windows) When the installer finishes downloading then run it. Agree to the terms and conditions (if you agree with them) and click “Next” Select the install location (I leave it at the defaults) and click “Next”…
-
Installing Flutter
Go to https://docs.flutter.dev/get-started/install and select the OS that works for you I’m working with Windows so I’ll step through what’s needed for that Download the Flutter SDK by clicking the “flutter_windows_3.3.7-stable.zip” or whatever version it’s up to by the time you read this (approx 820MB) Extract to c:\src Add the c:\src\flutter\bin folder to your path…
-
Iterating a C++ std::list
Set up a list to store pointers to a “Points” class… list<Point*> m_pointList; Add to the list… Point* p = new Point(x, y);m_pointList.push_back(p); Then iterate the list using this… std::list<Point*>::iterator it = m_pointList.begin(); while (it != m_pointList.end()) { Point* p = *it; // do something with the Point here! it++; } …or, if you’d prefer…
-
Adding to a C++ std::list
So, I define a std::list to store pointers to a “Point” class as follows… list<Point*> m_pointList; If I then want to add to the list I do… Point* p = new Point(x, y);m_pointList.push_back(p);
-
Installing CUDA
Here’s the process for installing CUDA. I’m installing version 11.4 update 2, but the process has been the same for a while now. Go to the CUDA SDK download page here 2. Select the OS. As you select content, more buttons will appear to narrow the download content so it’s specific to your device. When…
