mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 02:07:39 +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(
|
decoration: const InputDecoration(
|
||||||
hintText: 'Eg: git@github.com:GitJournal/GitJournal.git',
|
hintText: 'Eg: git@github.com:GitJournal/GitJournal.git',
|
||||||
),
|
),
|
||||||
validator: (value) {
|
validator: (String value) {
|
||||||
|
value = value.trim();
|
||||||
if (value.isEmpty) {
|
if (value.isEmpty) {
|
||||||
return 'Please enter some text';
|
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
|
// We aren't calling setState as this isn't being used for rendering
|
||||||
_gitCloneUrl = sshUrl;
|
_gitCloneUrl = sshUrl.trim();
|
||||||
|
|
||||||
this._generateSshKey();
|
this._generateSshKey();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user