Skip to content

Instantly share code, notes, and snippets.

View ch-muhammad-adil's full-sized avatar
🏠
Working from home

Muhammad Adil ch-muhammad-adil

🏠
Working from home
View GitHub Profile

Enhancing SEO in Flutter Web Projects with Next.js Integration

When building websites with Flutter, a significant challenge encountered is Search Engine Optimization (SEO). The main issue arises because search engine crawlers often fail to index the text content in Flutter web applications. This limitation stems from the fact that Flutter web builds essentially result in static websites, which aren't crawler-friendly by default.

Addressing this challenge with Flutter alone is a daunting task. Given the nature of static sites produced by Flutter web builds, incorporating an additional web project, like one built with Next.js, becomes essential. This approach is not only about solving crawling issues but also about dynamically providing appropriate meta tags based on the content, which is nearly impossible with just Flutter.

Rather than struggling with these limitations, a practical solution involves embedding your Flutter web site within a server-side rendering project like Next.js. This method allows fo

@ch-muhammad-adil
ch-muhammad-adil / main.dart
Created May 17, 2023 16:51 — forked from plotsklapps/main.dart
Flutter Architecture #3
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
// MAIN
void main() {
runApp(
MultiProvider(
providers: [
ChangeNotifierProvider(create: (_) {
return DonutBottomBarSelectionService();
@ch-muhammad-adil
ch-muhammad-adil / GFQuery.m
Last active August 1, 2018 20:09
Modified version of GeoFire for iOS. it allows to fetch whole snapshot of the queried result.
//
// GFQuery.m
// GeoFire
//
// Created by Jonny Dimond on 7/3/14. Modified by Adil on 17/03/2018
// Copyright (c) 2014 Firebase. All rights reserved.
//
#import <FirebaseDatabase/FirebaseDatabase.h>