~garritfra/FlutterFlux

185fb3b24920a6a25b3bef38b1bc2eef8b64d593 — Garrit Franke 3 years ago 30181eb
feat: style user_input_view
1 files changed, 26 insertions(+), 29 deletions(-)

M lib/views/user_input_view.dart
M lib/views/user_input_view.dart => lib/views/user_input_view.dart +26 -29
@@ 28,39 28,36 @@ class _UserInputViewState extends State<UserInputView> {
        child: Center(
          child: SizedBox(
            width: 400.0,
            child: Padding(
              padding: EdgeInsets.all(10.0),
              child: ListView(
                children: [
                  Expanded(
                    child: Container(
                      padding: EdgeInsets.all(5.0),
                      child: TextField(
                        controller: _serverTextController,
                        decoration: InputDecoration(
                            border: OutlineInputBorder(), labelText: "Server"),
                      ),
                    ),
                  ),
                  Expanded(
                    child: Container(
                      padding: EdgeInsets.all(5.0),
                      child: TextField(
                        controller: _apiKeyTextController,
                        decoration: InputDecoration(
                            border: OutlineInputBorder(), labelText: "API Key"),
                      ),
            child: ListView(
              children: [
                Expanded(
                  child: Container(
                    padding: EdgeInsets.all(5.0),
                    child: TextField(
                      controller: _serverTextController,
                      decoration: InputDecoration(
                          border: OutlineInputBorder(), labelText: "Server"),
                    ),
                  ),
                  Container(
                ),
                Expanded(
                  child: Container(
                    padding: EdgeInsets.all(5.0),
                    child: ElevatedButton(
                      onPressed: _onSubmit,
                      child: Text("Save"),
                    child: TextField(
                      controller: _apiKeyTextController,
                      decoration: InputDecoration(
                          border: OutlineInputBorder(), labelText: "API Key"),
                    ),
                  )
                ],
              ),
                  ),
                ),
                Container(
                  padding: EdgeInsets.all(5.0),
                  child: ElevatedButton(
                    onPressed: _onSubmit,
                    child: Text("Save"),
                  ),
                )
              ],
            ),
          ),
        ),