假设我有一个笔记应用程序,我需要安全地存储用户的笔记。我可以将笔记以纯文本格式存储在 sqlite 数据库中吗?或者它们也应该在本地加密吗?
另外,我应该在将其发送到 Firestore 数据库之前对其进行加密吗?我研究过加密包,但很难理解。有这方面的好的教程吗?
如果我应该加密,我应该使用什么类型的加密?
Today when I updated Flutter I began to get an error with my paint method which had never caused any problems before:
@override
void paint(
PaintingContext context,
Offset center, {
Animation<double> activationAnimation,
Animation<double> enableAnimation,
bool isDiscrete,
TextPainter labelPainter,
RenderBox parentBox,
SliderThemeData sliderTheme,
TextDirection textDirection,
double value,
}) {
Run Code Online (Sandbox Code Playgroud)
This is the error:
error: 'CustomSlider.paint' ('void Function(PaintingContext, Offset, {Animation<double> activationAnimation, Animation<double> enableAnimation, bool isDiscrete, TextPainter labelPainter, RenderBox parentBox, SliderThemeData sliderTheme, TextDirection textDirection, double value})')
isn't a valid override of 'SliderComponentShape.paint' ('void …Run Code Online (Sandbox Code Playgroud)