Skip to content

Commit

Permalink
🔧 Fix: NetworkInfoTestPage 命名错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Cranyozen committed Jan 8, 2023
1 parent 9e04b8e commit 8af5971
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions kitx_mobile/lib/pages/test_page.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:kitx_mobile/pages/test_pages/device_sensors.dart';

import 'test_pages/device_test.dart';
import 'test_pages/device_sensors.dart';
import 'test_pages/network_info_test.dart';

class TestPage extends StatefulWidget {
Expand Down Expand Up @@ -48,7 +48,7 @@ class _TestPageState extends State<TestPage> {
child: DeviceSensorsPage(),
),
Center(
child: NetworkInfoPage(),
child: NetworkInfoTestPage(),
),
],
),
Expand Down
12 changes: 6 additions & 6 deletions kitx_mobile/lib/pages/test_pages/network_info_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import 'package:flutter/services.dart';
// _enablePlatformOverrideForDesktop();
// }

class networkInfoTestPage extends StatelessWidget {
class NetworkInfoTestPage extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
Expand All @@ -27,21 +27,21 @@ class networkInfoTestPage extends StatelessWidget {
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: _networkInfoTestPage(title: 'Flutter Demo Home Page'),
home: _NetworkInfoTestPage(title: 'Flutter Demo Home Page'),
);
}
}

class _networkInfoTestPage extends StatefulWidget {
_networkInfoTestPage({Key? key, this.title}) : super(key: key);
class _NetworkInfoTestPage extends StatefulWidget {
_NetworkInfoTestPage({Key? key, this.title}) : super(key: key);

final String? title;

@override
_networkInfoTestPageState createState() => _networkInfoTestPageState();
_NetworkInfoTestPageState createState() => _NetworkInfoTestPageState();
}

class _networkInfoTestPageState extends State<_networkInfoTestPage> {
class _NetworkInfoTestPageState extends State<_NetworkInfoTestPage> {
String _connectionStatus = 'Unknown';
final NetworkInfo _networkInfo = NetworkInfo();

Expand Down

0 comments on commit 8af5971

Please sign in to comment.