This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// roipeker 2023. | |
/// | |
/// #short tutorial: https://youtu.be/I8Yo9jq4hXs | |
/// | |
import 'package:flutter/material.dart'; | |
import 'package:graphx/graphx.dart'; | |
void main() { | |
runApp(const MyApp()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/cupertino.dart'; | |
abstract class Entity { | |
late final onDispose = Signal0(); | |
late bool _disposed = false; | |
bool get disposed => _disposed; | |
@mustCallSuper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Author: roipeker 2023. | |
/// | |
/// Particles in GraphX | |
/// | |
/// video example: | |
/// https://giphy.com/gifs/VXZ0GvQSRh49AUYX9b | |
/// | |
Future<void> addParticles() async { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Copyright 2022 roipeker | |
/// | |
/// Licensed under the Apache License, Version 2.0 (the "License"); | |
/// you may not use this file except in compliance with the License. | |
/// You may obtain a copy of the License at | |
/// | |
/// http://www.apache.org/licenses/LICENSE-2.0 | |
/// | |
/// Unless required by applicable law or agreed to in writing, software | |
/// distributed under the License is distributed on an "AS IS" BASIS, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
runApp( | |
MaterialApp( | |
home: GameWrapper(), | |
debugShowCheckedModeBanner: false, | |
), | |
); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:graphx/graphx.dart'; | |
/// Live demo: | |
/// https://graphx-puzzle-ref.surge.sh/ | |
/// Remember, add graphx to your pubspec! | |
/// You can get the image used in the demo here | |
/// https://graphx-puzzle-ref.surge.sh/assets/assets/ath.jpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// in puspec dependency: native_device_orientation: ^1.1.4 | |
// sample for nir. | |
import 'dart:async'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:native_device_orientation/native_device_orientation.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// use a CustomPaint and pass the Canvas. | |
// sample https://ibb.co/TH35KcB | |
import 'dart:typed_data'; | |
import 'package:flutter/material.dart'; | |
import 'dart:ui' as ui; | |
void drawFigma(Canvas canvas){ | |
Path path; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// roipeker 2022. | |
/// | |
/// Original Tweet: | |
/// https://twitter.com/roipekr/status/1527026419649454081 | |
/// | |
/// | |
/// This code uses "shader" package to simplify testing. | |
/// Add it with: `flutter pub add shader` | |
/// | |
/// If you want to compile locally, get "shaderc" for your platform [https://github.com/google/shaderc/blob/main/downloads.md] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// roipeker 2021 | |
/// live demo at: | |
/// https://roi-particles-manu.surge.sh | |
import 'dart:math'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/scheduler.dart'; | |
import 'package:vector_math/vector_math_64.dart' hide Matrix4, Colors; |
NewerOlder