| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import 'package:flutter/material.dart';
- import '../styles/colors.dart';
- import 'dart:ui';
- import '../styles/totast.dart';
- class Rechrage extends StatefulWidget {
- @override
- RechrageState createState() => RechrageState();
- }
- class RechrageState extends State<Rechrage> {
- @override
- Widget build(BuildContext context) {
- return new WillPopScope(
- child: Scaffold(
- appBar: AppBar(
- backgroundColor: PRIMARY_COLOR,
- title: Text('充值'),
- centerTitle: true,
- elevation:0,
- ),
- body: RefreshIndicator(
- color: PRIMARY_COLOR,
- backgroundColor: BG_COLOR,
- onRefresh: () async {
- await new Future.delayed(const Duration(seconds: 1));
-
- },
- child: Container(
- color: BG_COLOR,
- ),
- )),
- onWillPop: () {
- Toast.hide();
- print("返回键点击了");
- Navigator.pop(context);
- return Future.value(false);
- });
-
- }
- }
|