Fix history provider

This commit is contained in:
poka 2021-01-29 03:44:09 +01:00
parent e402be8cca
commit 2d136f89cf
1 changed files with 4 additions and 3 deletions

View File

@ -13,7 +13,7 @@ class HistoryScreen extends StatelessWidget with ChangeNotifier {
final TextEditingController _outputPubkey = TextEditingController();
ScrollController scrollController = ScrollController();
final nRepositories = 20;
HistoryProvider _historyProvider;
// HistoryProvider _historyProvider;
bool isTheEnd = false;
List _transBC;
@ -67,11 +67,12 @@ class HistoryScreen extends StatelessWidget with ChangeNotifier {
disabledBorder: InputBorder.none,
),
style: TextStyle(fontSize: 14.0, fontWeight: FontWeight.bold)),
if (_historyProvider.pubkey != '') historyQuery(),
if (_historyProvider.pubkey != '') historyQuery(context),
]));
}
historyQuery() {
historyQuery(context) {
HistoryProvider _historyProvider = Provider.of<HistoryProvider>(context);
return Expanded(
child: Column(
mainAxisAlignment: MainAxisAlignment.start,