小编Ali*_*tak的帖子

与使用 firebase_auth 和 flutter_localizations 包的冲突

包 firebase_auth 和 flutter_localizations 导致以下错误。有没有办法来解决这个问题?

Because firebase_auth >=0.20.1 <0.21.0-1.0.nullsafety.0 depends on firebase_auth_web ^0.3.3 and no versions of firebase_auth match >0.20.0+1 <0.20.1, firebase_auth >0.20.0+1 <0.21.0-1.0.nullsafety.0 requires firebase_auth_web ^0.3.3.
And because firebase_auth 0.20.0+1 depends on firebase_auth_web ^0.3.2+6, firebase_auth >=0.20.0+1 <0.21.0-1.0.nullsafety.0 requires firebase_auth_web ^0.3.2+6.
And because firebase_auth_web >=0.3.0-dev.1 <0.4.0-1.0.nullsafety.0 depends on intl ^0.16.1 and every version of flutter_localizations from sdk depends on intl 0.17.0, firebase_auth >=0.20.0+1 <0.21.0-1.0.nullsafety.0 is incompatible with flutter_localizations from sdk.
So, because geschenk depends on both flutter_localizations any from sdk …
Run Code Online (Sandbox Code Playgroud)

localization firebase-authentication flutter

5
推荐指数
1
解决办法
1975
查看次数

在 Dart 中合并两个对象列表

我有具有参数名称和参数计数器的对象。这些对象存储在列表中。我的列表中的某些项目具有重复的参数“名称”。我想删除列表内的重复项,并将该重复项的计数器添加到重复对象参数中。

class Person{ 
Person({this.name, this.counter)};
  String name;
  int counter;
}

List<Person> theList = [];

theList.add(Person(name:"Ben", counter: 2);
theList.add(Person(name:"Ben", counter: 5);

//I need a function that changes the List to show Ben with counter 7
Run Code Online (Sandbox Code Playgroud)

merge list object dart flutter

3
推荐指数
1
解决办法
1473
查看次数