Skip to content

Instantly share code, notes, and snippets.

@sooxt98
sooxt98 / main.dart
Created June 17, 2022 23:01
Phyllotaxis Visualizer Flutter
// Copyright 2019 the Dart project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file.
import 'dart:math' as math;
import 'package:flutter/material.dart';
const Color primaryColor = Colors.orange;
const TargetPlatform platform = TargetPlatform.android;
@sooxt98
sooxt98 / main.dart
Last active April 28, 2021 01:08
TikTok Spinner Loader
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
@sooxt98
sooxt98 / main.dart
Last active February 13, 2021 15:38
flame example
import 'dart:math' as math;
import 'dart:ui';
import 'package:flame/components.dart';
import 'package:flame/game.dart';
import 'package:flame/gestures.dart';
import 'package:flame/palette.dart';
import 'package:flutter/material.dart';
import 'package:flame/extensions.dart';
@sooxt98
sooxt98 / main.dart
Created December 28, 2020 16:53
Card Swap Z-Index Hack
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
debugShowCheckedModeBanner: false,
@sooxt98
sooxt98 / main.dart
Last active December 2, 2020 12:55
Flutter Bottom Center Button
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override