Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
ab9373bf
Unverified
Commit
ab9373bf
authored
4 years ago
by
Hans Muller
Committed by
GitHub
4 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed remaining obsolete button widget references (#67440)
parent
6620f831
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
16 deletions
+12
-16
buttons_demo.dart
...tests/flutter_gallery/lib/demo/material/buttons_demo.dart
+2
-2
main.dart
dev/integration_tests/ios_platform_view_tests/lib/main.dart
+3
-3
main_test.dart
..._tests/ios_platform_view_tests/test_driver/main_test.dart
+2
-2
main.dart
examples/platform_view/lib/main.dart
+1
-1
date_range_picker_dialog.dart
...er/lib/src/material/pickers/date_range_picker_dialog.dart
+3
-7
navigator.dart
packages/flutter/lib/src/widgets/navigator.dart
+1
-1
No files found.
dev/integration_tests/flutter_gallery/lib/demo/material/buttons_demo.dart
View file @
ab9373bf
...
...
@@ -193,7 +193,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
children:
<
Widget
>[
TextButton
.
icon
(
style:
style
,
icon:
const
Icon
(
Icons
.
add_circle_outline
d
,
size:
18.0
),
icon:
const
Icon
(
Icons
.
add_circle_outline
,
size:
18.0
),
label:
const
Text
(
'TEXT BUTTON'
,
semanticsLabel:
'TEXT BUTTON 2'
),
onPressed:
()
{
// Perform some action
...
...
@@ -201,7 +201,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
),
TextButton
.
icon
(
style:
style
,
icon:
const
Icon
(
Icons
.
add_circle_outline
d
,
size:
18.0
),
icon:
const
Icon
(
Icons
.
add_circle_outline
,
size:
18.0
),
label:
const
Text
(
'DISABLED'
,
semanticsLabel:
'DISABLED BUTTON 4'
),
onPressed:
null
,
),
...
...
This diff is collapsed.
Click to expand it.
dev/integration_tests/ios_platform_view_tests/lib/main.dart
View file @
ab9373bf
...
...
@@ -43,7 +43,7 @@ class _MyHomePageState extends State<MyHomePage> {
title:
Text
(
widget
.
title
),
),
body:
Column
(
children:
<
Widget
>[
Fla
tButton
(
Tex
tButton
(
key:
const
ValueKey
<
String
>(
'platform_view_button'
),
child:
const
Text
(
'show platform view'
),
onPressed:
()
{
...
...
@@ -55,7 +55,7 @@ class _MyHomePageState extends State<MyHomePage> {
},
),
// Push this button to perform an animation, which ensure the threads are unmerged after the animation.
Rais
edButton
(
Elevat
edButton
(
key:
const
ValueKey
<
String
>(
'unmerge_button'
),
child:
const
Text
(
'Tap to unmerge threads'
),
onPressed:
()
{},
...
...
@@ -82,7 +82,7 @@ class PlatformViewPage extends StatelessWidget {
width:
300
,
height:
300
,
),
Rais
edButton
(
Elevat
edButton
(
key:
button
,
child:
const
Text
(
'button'
),
onPressed:
(){},
...
...
This diff is collapsed.
Click to expand it.
dev/integration_tests/ios_platform_view_tests/test_driver/main_test.dart
View file @
ab9373bf
...
...
@@ -29,7 +29,7 @@ void main() {
await
driver
.
waitFor
(
plusButton
);
await
driver
.
waitUntilNoTransientCallbacks
();
// Tapping a
rais
ed button runs an animation that pumps enough frames to un-merge the threads.
// Tapping a
n elevat
ed button runs an animation that pumps enough frames to un-merge the threads.
await
driver
.
tap
(
plusButton
);
await
driver
.
waitUntilNoTransientCallbacks
();
...
...
@@ -56,7 +56,7 @@ void main() {
await
driver
.
tap
(
backButton
);
await
driver
.
waitUntilNoTransientCallbacks
();
// The animation of tapping a `
Rais
edButton` should pump enough frames to un-merge the thread.
// The animation of tapping a `
Elevat
edButton` should pump enough frames to un-merge the thread.
final
SerializableFinder
unmergeButton
=
find
.
byValueKey
(
'unmerge_button'
);
await
driver
.
waitFor
(
unmergeButton
);
...
...
This diff is collapsed.
Click to expand it.
examples/platform_view/lib/main.dart
View file @
ab9373bf
...
...
@@ -72,7 +72,7 @@ class _MyHomePageState extends State<MyHomePage> {
),
Padding
(
padding:
const
EdgeInsets
.
all
(
18.0
),
child:
Rais
edButton
(
child:
Elevat
edButton
(
child:
Platform
.
isIOS
?
const
Text
(
'Continue in iOS view'
)
:
const
Text
(
'Continue in Android view'
),
...
...
This diff is collapsed.
Click to expand it.
packages/flutter/lib/src/material/pickers/date_range_picker_dialog.dart
View file @
ab9373bf
...
...
@@ -10,7 +10,6 @@ import 'package:flutter/widgets.dart';
import
'../app_bar.dart'
;
import
'../back_button.dart'
;
import
'../button_theme.dart'
;
import
'../color_scheme.dart'
;
import
'../debug.dart'
;
import
'../dialog.dart'
;
...
...
@@ -518,13 +517,10 @@ class _CalendarRangePickerDialog extends StatelessWidget {
),
actions:
<
Widget
>[
if
(
orientation
==
Orientation
.
landscape
)
entryModeIcon
,
ButtonTheme
(
minWidth:
64
,
child:
TextButton
(
TextButton
(
onPressed:
onConfirm
,
child:
Text
(
confirmText
,
style:
saveButtonStyle
),
),
),
const
SizedBox
(
width:
8
),
],
bottom:
PreferredSize
(
...
...
This diff is collapsed.
Click to expand it.
packages/flutter/lib/src/widgets/navigator.dart
View file @
ab9373bf
...
...
@@ -5550,7 +5550,7 @@ typedef RouteCompletionCallback<T> = void Function(T result);
/// mainAxisSize: MainAxisSize.min,
/// children: <Widget>[
/// Text('Last count: ${_lastCount.value}'),
///
Rais
edButton(
///
Elevat
edButton(
/// onPressed: () {
/// // Show the route defined by the `RestorableRouteFuture`.
/// _counterRoute.present('Awesome Counter');
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment