skip to Main Content

trying to use fl_chart of flutter but when i import it i got this kind of error : Error: 'TextScaler' isn't a type

Time when trying to import fl_chart.dart it through this error : Error: 'TextScaler' isn't a type. base_chart_painter.dart:31 final TextScaler textScaler; ^^^^^^^^^^ : Error: The getter 'textScaler' isn't defined for the class 'MediaQueryData'. line_chart_renderer.dart:27 'MediaQueryData' is from 'package:flutter/src/widgets/media_query.dart' ('/C:/flutter/packages/flutter/lib/src/widgets/media_query.dart'). media_query.dart:1 Try…

VIEW QUESTION

How to convert large active record data to json format – laptop get stucked and get hang during data.to_json – export, import in ROR

user_mails = UserMail.all data = {user_mails: user_mails} File.open("demo_data.json", "w") { |f| f.write data.to_json } json_data['user_mails'].each do |data| UserMail.where(data).first_or_create! end When i trying this my system get stuck and get hang then i need to restart my system, i found that…

VIEW QUESTION
Back To Top
Search