Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #22

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

test #22

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions lib/src/loadmore_widget.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'dart:async';

// ! TESTANDO MATHEUS
import 'package:flutter/material.dart';

/// return true is refresh success
Expand Down Expand Up @@ -396,9 +396,7 @@ class DefaultLoadMoreDelegate extends LoadMoreDelegate {
SizedBox(
width: _loadmoreIndicatorSize,
height: _loadmoreIndicatorSize,
child: CircularProgressIndicator(
backgroundColor: Colors.blue,
),

),
Padding(
padding: const EdgeInsets.all(8.0),
Expand All @@ -422,16 +420,16 @@ String _buildChineseText(LoadMoreStatus status) {
String text;
switch (status) {
case LoadMoreStatus.fail:
text = "加载失败,请点击重试";
text = "";
break;
case LoadMoreStatus.idle:
text = "等待加载更多";
text = "";
break;
case LoadMoreStatus.loading:
text = "加载中,请稍候...";
text = "";
break;
case LoadMoreStatus.nomore:
text = "到底了,别扯了";
text = "";
break;
default:
text = "";
Expand All @@ -443,16 +441,16 @@ String _buildEnglishText(LoadMoreStatus status) {
String text;
switch (status) {
case LoadMoreStatus.fail:
text = "load fail, tap to retry";
text = "";
break;
case LoadMoreStatus.idle:
text = "wait for loading";
text = "";
break;
case LoadMoreStatus.loading:
text = "loading, wait for moment ...";
text = "";
break;
case LoadMoreStatus.nomore:
text = "no more data";
text = "";
break;
default:
text = "";
Expand Down