mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 01:45:55 +08:00
OnBoarding: Trim the gitClone url just in case
This commit is contained in:
@ -41,7 +41,8 @@ class OnBoardingGitUrlState extends State<OnBoardingGitUrl> {
|
||||
decoration: const InputDecoration(
|
||||
hintText: 'Eg: git@github.com:GitJournal/GitJournal.git',
|
||||
),
|
||||
validator: (value) {
|
||||
validator: (String value) {
|
||||
value = value.trim();
|
||||
if (value.isEmpty) {
|
||||
return 'Please enter some text';
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ class OnBoardingScreenState extends State<OnBoardingScreen> {
|
||||
);
|
||||
|
||||
// We aren't calling setState as this isn't being used for rendering
|
||||
_gitCloneUrl = sshUrl;
|
||||
_gitCloneUrl = sshUrl.trim();
|
||||
|
||||
this._generateSshKey();
|
||||
|
||||
|
Reference in New Issue
Block a user