admin
2022-03-31 02f1c9fd2c594323f772f8e8f0f2187a285c1749
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import 'dart:ui';
 
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import '../api/http.dart';
import 'common/browser.dart';
import 'widget/dialog.dart';
import 'widget/nav.dart';
import '../utils/cache_util.dart';
import '../utils/config_util.dart';
import '../utils/event_bus_util.dart';
import '../utils/pageutils.dart';
import '../utils/push_util.dart';
import '../utils/setting_util.dart';
import '../utils/string_util.dart';
import '../utils/ui_constant.dart';
import '../utils/ui_utils.dart';
import '../utils/user_util.dart';
import 'package:package_info/package_info.dart';
 
void main() {
  runApp(MyApp());
}
 
class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: '视频收藏',
      theme: ThemeData(primaryColor: const Color(0xFFF5F5F5)),
      home: DemoPage(title: ''),
    );
  }
}
 
class DemoPage extends StatefulWidget {
  DemoPage({Key? key, required this.title}) : super(key: key);
 
  // This widget is the home page of your application. It is stateful, meaning
  // that it has a State object (defined below) that contains fields that affect
  // how it looks.
 
  // This class is the configuration for the state. It holds the values (in this
  // case the title) provided by the parent (in this case the App widget) and
  // used by the build method of the State. Fields in a Widget subclass are
  // always marked "final".
 
  final String title;
 
  @override
  _DemoPageState createState() => _DemoPageState();
}
 
class _DemoPageState extends State<DemoPage>
    with SingleTickerProviderStateMixin {
 
  @override
  void initState() {
    super.initState();
  }
 
 
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        backgroundColor: const Color(0xFFF5F5F5),
        body: Flex(
          direction: Axis.vertical,
          children: [
            TopNavBar(title: "我的收藏"),
             InkWell(onTap: (){
               popPage(context);
             }, child: Text("结束页面"),)
 
          ],
 
 
        ));
  }
}