three_dart icon indicating copy to clipboard operation
three_dart copied to clipboard

Three Js Color class is in conflit with Color from dart ui

Open SENSKA opened this issue 3 years ago • 1 comments

When importing import 'package:three_dart/three_dart.dart';

All my Color.fromRGBO are wrong because the dart ui and three dart Color Classes are in conflit.

Edit : Can be contourned by import 'package:three_dart/three_dart.dart' as Three.

SENSKA avatar Nov 20 '22 14:11 SENSKA

There is two ways to handle this one is the way you suggested

import 'package:three_dart/three_dart.dart' as Three;

The other way is if you don't need the three_dart color class just hide it

import 'package:three_dart/three_dart.dart' hide Color;

Knightro63 avatar Jun 09 '23 19:06 Knightro63