simc / auto_size_text

Flutter widget that automatically resizes text to fit perfectly within its bounds.
https://pub.dev/packages/auto_size_text
MIT License
2.06k stars 240 forks source link

Could not resolve the package 'auto_size_text' in 'package:auto_size_text/auto_size_text.dart'. #58

Open maguireong opened 4 years ago

maguireong commented 4 years ago

Steps to Reproduce Please tell me exactly how to reproduce the problem you are running into. After importing the necessary documents, the error was called

Code sample Widget questionTemplate(index, question) { return Card( // margin: EdgeInsets.fromLTRB(100, 100, 100, 100), // child: // // Padding( // // padding: const EdgeInsets.all(21.0), child: Column( children: [ Padding( padding: EdgeInsets.fromLTRB(100, 100, 100, 100), child: Container( child: AutoSizeText( question[index].text, style: TextStyle( fontSize: 22, fontWeight: FontWeight.bold, color: Colors.black, ), ), ), ), ], ), // ), ); } Provide a few simple lines of code to show your problem.



**Screenshots**

If applicable, add screenshots to help explain your problem.

**Version**
 - Flutter version: [e.g. 1.5.4]
 - auto_size_text version: [e.g. 1.2.1]