skip to Main Content

How to change color of Container on basis of array data in flutter?

IOWebSocketChannel? ioChannel; List<CustomRunners>? oldData = []; List<CustomRunners>? newData = []; void getSocket(){ ioChannel = IOWebSocketChannel.connect( Uri.parse( 'wss://xxx.xyz/port=${widget.port}/?logged=true&source=0'), headers: { 'Origin': 'https://abc.io', }, ); ioChannel?.stream.listen((message) { final data = jsonDecode(message); if (data[0] != null) { final match = SocketModel.fromJson(data[0]); newData!.clear(); for…

VIEW QUESTION
Back To Top
Search