RefreshHeaderProperties constructor

const RefreshHeaderProperties({
  1. TextStyle? textStyle,
  2. double height = 60,
  3. Widget? refreshView = const CupertinoActivityIndicator(color: Color.fromARGB(255, 0, 0, 0)),
  4. Widget? idleView = const Row(mainAxisAlignment: MainAxisAlignment.center, children: [Icon(Icons.arrow_downward, color: Color.fromARGB(255, 0, 0, 0)), Text("Pull down to refresh!", style: TextStyle(fontSize: 14, color: Color.fromARGB(255, 0, 0, 0), fontWeight: FontWeight.w400))]),
  5. Widget? failedView = const Text("Load Failed! Click retry!", style: TextStyle(fontSize: 14, color: Color.fromARGB(255, 0, 0, 0), fontWeight: FontWeight.w400)),
  6. Widget? completedView = const Text("Done!", style: TextStyle(fontSize: 14, color: Color.fromARGB(255, 0, 0, 0), fontWeight: FontWeight.w400)),
})

Implementation

const RefreshHeaderProperties(
    {this.textStyle,
    this.height = 60,
    this.refreshView = const CupertinoActivityIndicator(
      color: Color.fromARGB(255, 0, 0, 0),
    ),
    this.idleView = const Row(
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        Icon(
          Icons.arrow_downward,
          color: Color.fromARGB(255, 0, 0, 0),
        ),
        Text(
          "Pull down to refresh!",
          style: TextStyle(
              fontSize: 14,
              color: Color.fromARGB(255, 0, 0, 0),
              fontWeight: FontWeight.w400),
        )
      ],
    ),
    this.failedView = const Text(
      "Load Failed! Click retry!",
      style: TextStyle(
          fontSize: 14,
          color: Color.fromARGB(255, 0, 0, 0),
          fontWeight: FontWeight.w400),
    ),
    this.completedView = const Text(
      "Done!",
      style: TextStyle(
          fontSize: 14,
          color: Color.fromARGB(255, 0, 0, 0),
          fontWeight: FontWeight.w400),
    )});