Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 42d1024

Browse files
'feat:修改文件内容'
1 parent a2aceda commit 42d1024

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

‎lib/controller/index.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'package:efox_flutter/utils/appVersion.dart' show AppVersion;
55

66
void initState() async {
77
// 获取版本号
8-
Store.valueNotCtx<ConfigModel>().$getAppVersion();
8+
Store.valueNotCtx<ConfigModel>().getAppVersion();
99
// 登录
1010
Store.valueNotCtx<UserModel>().getLocalUserInfo().then((res) {
1111
if (res) {

‎lib/main.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class MainAppState extends State<MainApp> {
3131

3232
@override
3333
Widget build(BuildContext context) {
34-
Store.value<ConfigModel>(context).$getTheme();
34+
Store.value<ConfigModel>(context).getTheme();
3535

3636
return Store.connect<ConfigModel>(
3737
builder: (context, child, model) {

‎lib/page/home.dart‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ class _IndexState extends State<Index> {
4343
backgroundColor: Color(0xFFf7f7f7),
4444
type: BottomNavigationBarType.fixed,
4545
items: <BottomNavigationBarItem>[
46+
BottomNavigationBarItem(
47+
title: Text(AppLocalizations.$t('title_library')),
48+
icon: Icon(Icons.library_add)),
4649
BottomNavigationBarItem(
4750
title: Text(AppLocalizations.$t('title_component')),
4851
icon: Icon(Icons.dashboard)),
4952
BottomNavigationBarItem(
5053
title: Text(AppLocalizations.$t('title_comment')),
5154
icon: Icon(Icons.comment)),
52-
BottomNavigationBarItem(
53-
title: Text(AppLocalizations.$t('title_library')),
54-
icon: Icon(Icons.library_add)),
5555
BottomNavigationBarItem(
5656
title: Text(AppLocalizations.$t('title_my')),
5757
icon: Icon(Icons.person_outline)),
@@ -215,9 +215,9 @@ class _IndexState extends State<Index> {
215215
});
216216
},
217217
children: <Widget>[
218+
LibraryIndex.Index(),
218219
TabIndex.Index(),
219220
CommentIndex.Index(),
220-
LibraryIndex.Index(),
221221
MyIndex.Index(),
222222
],
223223
),

‎lib/page/mine/index.dart‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class _IndexState extends State<Index> {
113113
),
114114
ListTile(
115115
onTap: () {
116-
Store.value<ConfigModel>(context).$setIsPro();
116+
Store.value<ConfigModel>(context).setIsPro();
117117
},
118118
leading: Icon(Icons.verified_user),
119119
title: Text(Store.value<ConfigModel>(context).isPro
@@ -152,7 +152,7 @@ class _IndexState extends State<Index> {
152152
Widget Edage(name, color, context) {
153153
return GestureDetector(
154154
onTap: () {
155-
Store.value<ConfigModel>(context).$setTheme(name);
155+
Store.value<ConfigModel>(context).setTheme(name);
156156
},
157157
child: Container(
158158
color: Color(color),

‎lib/store/models/config_state_model.dart‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,27 @@ class ConfigInfo {
1212
}
1313

1414
class ConfigModel extends ConfigInfo with ChangeNotifier {
15-
Future $getAppVersion() async {
15+
Future getAppVersion() async {
1616
PackageInfo packageInfo = await PackageInfo.fromPlatform();
1717
appVersion = await packageInfo.version;
1818
notifyListeners();
1919
}
2020

21-
Future $getTheme() async {
21+
Future getTheme() async {
2222
String _theme = await LocalStorage.get('theme');
2323
print('config get Theme ${_theme}');
2424
if (_theme != null) {
25-
$setTheme(_theme);
25+
setTheme(_theme);
2626
}
2727
}
2828

29-
Future $setTheme(payload) async {
29+
Future setTheme(payload) async {
3030
theme = payload;
3131
LocalStorage.set('theme', payload);
3232
notifyListeners();
3333
}
3434

35-
Future $setIsPro() async {
35+
Future setIsPro() async {
3636
isPro = !isPro;
3737
notifyListeners();
3838
}

‎lib/widget/scrollview/nestedscrollview/index.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'demo.dart' as Demo;
55
class Index extends StatefulWidget {
66
static String title = 'NestedScrollView';
77
static String mdUrl = 'docs/widget/scrollview/nestedscrollview/index.md';
8-
static String originCodeUrl = 'https://docs.flutter.io/flutter/widgets/Scrollbar-class.html';
8+
static String originCodeUrl = 'https://docs.flutter.io/flutter/material/Scrollbar-class.html';
99

1010
@override
1111
_IndexState createState() => new _IndexState();

‎lib/widget/scrollview/scrollbar/index.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'demo.dart' as Demo;
55
class Index extends StatefulWidget {
66
static String title = 'Scrollbar';
77
static String mdUrl = 'docs/widget/scrollview/scrollbar/index.md';
8-
static String originCodeUrl = 'https://docs.flutter.io/flutter/widgets/Scrollbar-class.html';
8+
static String originCodeUrl = 'https://docs.flutter.io/flutter/material/Scrollbar-class.html';
99

1010
@override
1111
_IndexState createState() => new _IndexState();

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /