@@ -2,7 +2,6 @@ import 'package:auto_updater/auto_updater.dart';
2
2
import 'package:bot_toast/bot_toast.dart' ;
3
3
import 'package:flutter/foundation.dart' ;
4
4
import 'package:flutter/material.dart' ;
5
- import 'package:preference_list/preference_list.dart' ;
6
5
import 'package:window_manager/window_manager.dart' ;
7
6
8
7
class HomePage extends StatefulWidget {
@@ -51,31 +50,31 @@ class _HomePageState extends State<HomePage> with UpdaterListener {
51
50
}
52
51
53
52
Widget _buildBody (BuildContext context) {
54
- return PreferenceList (
53
+ return ListView (
55
54
children: < Widget > [
56
- PreferenceListSection (
57
- title: const Text ('METHODS' ),
55
+ Column (
56
+ // title: const Text('METHODS'),
58
57
children: [
59
- PreferenceListItem (
58
+ ListTile (
60
59
title: const Text ('setFeedURL' ),
61
- detailText : Text (_feedURL),
60
+ trailing : Text (_feedURL),
62
61
onTap: () {
63
62
_handleClickSetFeedURL ();
64
63
},
65
64
),
66
- PreferenceListItem (
65
+ ListTile (
67
66
title: const Text ('checkForUpdates' ),
68
67
onTap: () {
69
68
_handleClickCheckForUpdates ();
70
69
},
71
70
),
72
- PreferenceListItem (
71
+ ListTile (
73
72
title: const Text ('checkForUpdatesWithoutUI' ),
74
73
onTap: () {
75
74
_handleClickCheckForUpdatesWithoutUI ();
76
75
},
77
76
),
78
- PreferenceListItem (
77
+ ListTile (
79
78
title: const Text ('setScheduledCheckInterval' ),
80
79
onTap: () {
81
80
_handleClickSetScheduledCheckInterval ();
0 commit comments