Skip to content

Commit 7706a9d

Browse files
author
10457
committed
移除部分无效代码
1 parent 0fdb7ea commit 7706a9d

File tree

5 files changed

+24
-36
lines changed

5 files changed

+24
-36
lines changed

example/lib/input_page.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import 'package:flutter/material.dart';
2-
import 'package:flutter/services.dart';
32
import 'package:keyboard_utils_example/keyborad_bloc.dart';
43
import 'package:keyboard_utils_fork/keyboard_utils.dart';
54
import 'package:keyboard_utils_fork/keyboard_listener.dart'

example/lib/main.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import 'package:flutter/material.dart';
2-
import 'package:keyboard_utils_example/input_page.dart';
32
import 'package:keyboard_utils_example/main_page.dart';
4-
import 'package:keyboard_utils_example/normal_page.dart';
53

64
void main() {
75
runApp(const MyApp());

example/lib/normal_page.dart

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -160,28 +160,28 @@ class _NormalPageState extends State<NormalPage> with WidgetsBindingObserver {
160160
],
161161
),
162162
);
163-
return AnimatedContainer(
164-
duration: const Duration(milliseconds: 20),
165-
height: tempSafeHeight + tempHeight + 1,
166-
alignment: Alignment.center,
167-
child: Padding(
168-
padding: EdgeInsets.only(bottom: tempSafeHeight),
169-
child: Column(
170-
children: [
171-
const Divider(height: 1),
172-
Expanded(
173-
child: SingleChildScrollView(
174-
child: Column(
175-
children: List.generate(
176-
30,
177-
(index) => Text('$index' * 30),
178-
),
179-
),
180-
),
181-
),
182-
],
183-
),
184-
),
185-
);
163+
// return AnimatedContainer(
164+
// duration: const Duration(milliseconds: 20),
165+
// height: tempSafeHeight + tempHeight + 1,
166+
// alignment: Alignment.center,
167+
// child: Padding(
168+
// padding: EdgeInsets.only(bottom: tempSafeHeight),
169+
// child: Column(
170+
// children: [
171+
// const Divider(height: 1),
172+
// Expanded(
173+
// child: SingleChildScrollView(
174+
// child: Column(
175+
// children: List.generate(
176+
// 30,
177+
// (index) => Text('$index' * 30),
178+
// ),
179+
// ),
180+
// ),
181+
// ),
182+
// ],
183+
// ),
184+
// ),
185+
// );
186186
}
187187
}

example/test/widget_test.dart

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,4 @@
55
// gestures. You can also use WidgetTester to find child widgets in the widget
66
// tree, read text, and verify that the values of widget properties are correct.
77

8-
import 'package:flutter/material.dart';
9-
import 'package:flutter_test/flutter_test.dart';
10-
11-
import '../lib/main.dart';
12-
13-
void main() {
14-
15-
}
8+
void main() {}

test/keyboard_utils_test.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import 'dart:async';
2-
31
import 'package:flutter/services.dart';
42
import 'package:flutter_test/flutter_test.dart';
53
import 'package:keyboard_utils_fork/keyboard_listener.dart';

0 commit comments

Comments
 (0)