Skip to content

Instantly share code, notes, and snippets.

View loic-sharma's full-sized avatar
🌴

Loïc Sharma loic-sharma

🌴
View GitHub Profile

Flutter Native

So you think React Native is better than Flutter because it uses native UI elements instead of rendering everything itself? Well, then let’s build the same thing for Flutter. I'll do it for macOS. Feel free to do it yourself for your platform instead.

Project Setup

Start like this.

flutter create --platforms=macos --empty flutter_native
@MaherSafadii
MaherSafadii / flutter_cupertino_example.dart
Last active August 23, 2025 01:46
Flutter Cupertino Example
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:native_ios_dialog/native_ios_dialog.dart';
import 'package:pull_down_button/pull_down_button.dart';
ValueNotifier<Brightness> brightness = ValueNotifier(Brightness.light);
ValueNotifier<Color> accentColor = ValueNotifier(CupertinoColors.activeBlue);
void main() {
runApp(MainApp());
@loic-sharma
loic-sharma / About.md
Last active October 26, 2024 03:22
Pub's migration to Swift Package Manager (2024-10-06)

Pub's migration to Swift Package Manager (2024-10-06)

These reports track the Pub ecosystem's migration from CocoaPods to Swift Package Manager.

This data was generated on 2024-10-06 using pub insights: https://github.com/loic-sharma/pub_insights

Results

  1. 10,900 packages contain a .podspec file.
  2. 444 packages contain a .modulemap file.
@loic-sharma
loic-sharma / tutorial.md
Last active March 4, 2026 17:41
How to debug the Flutter engine on Windows

How to debug the Flutter engine on Windows

Let's say your app is misbehaving because of a Flutter engine bug. Let's debug that!

Use Visual Studio to run your app

Let's open your app using Visual Studio:

  1. Run flutter build windows to ensure Flutter has generated a Visual Studio project for your app.
  2. Open ./build/windows/ALL_BUILD.vcxproj in Visual Studio. This project builds the native entry point for your Flutter app.
@lobre
lobre / zig_type_system.md
Last active April 29, 2026 06:42
Zig type system illustrated using ascii diagrams

Zig Type System

Zig aims to be a simple language. It is not easy to define what simple exactly means, but zig is also a low-level programming language that aims for c-compatibility. To reach this goal, it needs good semantics in its type system so that developers have a complete toolbox to manipulate data.

So types in zig are composable, but this can become rapidly overwhelming. See those examples. Are you able to understand them at a glance, as soon as you read them?

*const ?u8
?*const u8
*const [2]u8
@raysan5
raysan5 / raylib_vs_sdl.md
Last active March 30, 2026 02:19
raylib vs SDL - A libraries comparison

raylib_vs_sdl

In the last years I've been asked multiple times about the comparison between raylib and SDL libraries. Unfortunately, my experience with SDL was quite limited so I couldn't provide a good comparison. In the last two years I've learned about SDL and used it to teach at University so I feel that now I can provide a good comparison between both.

Hope it helps future users to better understand this two libraries internals and functionality.

Table of Content

@ZacharyPatten
ZacharyPatten / readme.md
Last active February 3, 2023 15:58
GitHub Repository Checklist (C#)

GitHub Repository Checklist (C#)

Have a repository on GitHub? Planning on making a repository on GitHub? This checklist is intended to introduce you to various features that may help you make the most of your GitHub repository with specific recommendations for C# repositories.

Checklist

These are only suggestions.
They may not be appropriate for all repositories.
They are in no particular order.
Click each item to expand for more information.

@DutchCaveman
DutchCaveman / docker-compose.yml
Created April 4, 2020 16:41
Docker usage of BaGet with basic authentication
version: '3'
services:
authenticate:
image: "quay.io/dtan4/nginx-basic-auth-proxy:latest"
ports:
- 80:80
environment:
- BASIC_AUTH_USERNAME=username
- BASIC_AUTH_PASSWORD=password
- PROXY_PASS=http://nuget.julian.wtf/
@loic-sharma
loic-sharma / prepare.ps1
Last active October 10, 2023 20:18
Scripts to setup development VM
# Requires:
# Set-ExecutionPolicy RemoteSigned -s CurrentUser
# Install apps
iex (New-Object Net.WebClient).DownloadString('https://get.scoop.sh')
scoop install git
scoop bucket add extras
scoop install vscode
@joelverhagen
joelverhagen / .gitattributes
Last active May 2, 2018 20:57
Generate a test CA for NuGet package signing, props to @dtivel for initial implementation
*.conf text eol=lf
*.config text eol=lf
*.sh text eol=lf