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
d8833376
Commit
d8833376
authored
Aug 23, 2019
by
lisa-liao
Committed by
MH Johnson
Aug 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Shrine] Adding outlines to text fields (#38895)
* Adding outlines to text fields
parent
7ca3ed12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
8 deletions
+20
-8
login.dart
examples/flutter_gallery/lib/demo/shrine/login.dart
+20
-8
No files found.
examples/flutter_gallery/lib/demo/shrine/login.dart
View file @
d8833376
...
...
@@ -24,6 +24,12 @@ class LoginPage extends StatefulWidget {
class
_LoginPageState
extends
State
<
LoginPage
>
{
final
TextEditingController
_usernameController
=
TextEditingController
();
final
TextEditingController
_passwordController
=
TextEditingController
();
static
const
ShapeDecoration
_decoration
=
ShapeDecoration
(
shape:
BeveledRectangleBorder
(
side:
BorderSide
(
color:
kShrineBrown900
,
width:
0.5
),
borderRadius:
BorderRadius
.
all
(
Radius
.
circular
(
7.0
)),
),
);
@override
Widget
build
(
BuildContext
context
)
{
...
...
@@ -61,20 +67,26 @@ class _LoginPageState extends State<LoginPage> {
const
SizedBox
(
height:
120.0
),
PrimaryColorOverride
(
color:
kShrineBrown900
,
child:
TextField
(
controller:
_usernameController
,
decoration:
const
InputDecoration
(
labelText:
'Username'
,
child:
Container
(
decoration:
_decoration
,
child:
TextField
(
controller:
_usernameController
,
decoration:
const
InputDecoration
(
labelText:
'Username'
,
),
),
),
),
const
SizedBox
(
height:
12.0
),
PrimaryColorOverride
(
color:
kShrineBrown900
,
child:
TextField
(
controller:
_passwordController
,
decoration:
const
InputDecoration
(
labelText:
'Password'
,
child:
Container
(
decoration:
_decoration
,
child:
TextField
(
controller:
_passwordController
,
decoration:
const
InputDecoration
(
labelText:
'Password'
,
),
),
),
),
...
...
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