Skip to content

Instantly share code, notes, and snippets.

View nyabla's full-sized avatar
🌿

nela nyabla

🌿
View GitHub Profile
@slightfoot
slightfoot / squircle.dart
Last active June 21, 2024 17:06
Flutter Squircle Shape
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Squircle',
home: new Scaffold(

Mac OS X Traffic Lights

Useful in Electron apps when the default title bar must be hidden. There are some slight issues with this rendering in browser, but it looks perfect inside Electron :)

A Pen by atdrago on CodePen.

License.