Skip to content

Instantly share code, notes, and snippets.

View AdnanKhan45's full-sized avatar
💙
Fluttering

Muhammad Adnan AdnanKhan45

💙
Fluttering
View GitHub Profile
@AdnanKhan45
AdnanKhan45 / main.dart
Created February 18, 2024 07:03
Use MaterialStateController to increase access to text widget state
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@AdnanKhan45
AdnanKhan45 / main.dart
Last active February 18, 2024 07:07
Example Flutter code to build a ChatBot using google_generative_ai package.
// Import necessary packages
import 'package:flutter/material.dart';
import 'package:google_generative_ai/google_generative_ai.dart';
// Replace with your actual API key
const apiKey = 'YOUR_API_KEY';
// Main app widget
class MyChatApp extends StatefulWidget {
@override

WhatsApp Clone (Push Notifications)

For more very small changes, you'll found them in the video.

Setup Node Server

To setup a node server create an empty directory and open it in VS Code or any editor and open Terminal and run:

$ npm init

Install Dependencies

Install some necessary dependencies:

$ npm install express

@AdnanKhan45
AdnanKhan45 / README.md
Last active July 26, 2023 18:34
NumbersApp which swaps two int values is for visualizing "Keys under the hood".

NumbersApp which swaps two int values is for visualizing "Keys under the hood" -- Blog post on medium

@AdnanKhan45
AdnanKhan45 / README.md
Last active July 9, 2023 15:22
The complete code of example how flutter render widgets.
@AdnanKhan45
AdnanKhan45 / README.md
Last active June 25, 2023 07:07
Schedule Cloud Functions with Cloud Tasks (for Document TTL) Part 1