'GItlab: has there any way we can select the variable values as drop down menu
In Gitlab ci We have declared our variables like below
USER_NAME:
value: ""
description: "Enter Username"
File_Name:
description: "Enter the file name"
It only give a text box where We can enter the value.
Can I make a drop down select box is there any option available to make it a select box.Then we can select the value from drop down.
Solution 1:[1]
No it is not possible. What we ended up doing, if we want to have a better configurable way, was using the gitlab pages with a form, which will use the API or a POST to create a new pipeline. This way we are quiet flexible with the options to provide to the users.
Solution 2:[2]
I see an active proposal for it https://gitlab.com/gitlab-org/gitlab/-/issues/29159 (almost 2 years). But no activity for the moment.
Solution 3:[3]
It's not possible yet Backend ticket is created for it May 19, 2022
https://gitlab.com/gitlab-org/gitlab/-/issues/362934
Original proposal https://gitlab.com/gitlab-org/gitlab/-/issues/29159
Solution 4:[4]
What was missing for me is this migration https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects. Notably, your MainActivity needs to extend io.flutter.embedding.android.FlutterActivity and not io.flutter.app.FlutterActivity.
Also,you need to configure an AutoFill service in the system settings.
Working sample code:
@override
Widget build(BuildContext context) => Scaffold(
appBar: AppBar(
title: Text("Login"),
),
body: AutofillGroup(
child: Column(
children: [
TextField(
autofillHints: [AutofillHints.email],
keyboardType: TextInputType.emailAddress,
),
TextField(
autofillHints: [AutofillHints.password],
keyboardType: TextInputType.text,
),
],
)));
For More Checkout this Video Reference :
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Simon Schrottner |
| Solution 2 | Alex Malyshev |
| Solution 3 | Reza |
| Solution 4 | Tasnuva Tavasum oshin |
