This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'package:flutter/material.dart'; | |
import 'package:pull_to_refresh_notification/pull_to_refresh_notification.dart'; | |
class PullToRefreshHeader extends StatefulWidget { | |
@override | |
_PullToRefreshHeaderState createState() => _PullToRefreshHeaderState(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class CustomScrollBehavior extends ScrollBehavior { | |
@override | |
Widget buildViewportChrome( | |
BuildContext context, Widget child, AxisDirection axisDirection) { | |
// TODO: implement buildViewportChrome | |
switch (getPlatform(context)) { | |
case TargetPlatform.iOS: | |
return child; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
typedef OnMySliverAppBarScroll = void Function(double shrinkOffset); | |
///Sliver App bar | |
class MySliverAppBar extends StatefulWidget { | |
final Color backgroundColor; | |
final double expandedHeight; |
NewerOlder