mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-08-02 20:17:54 +08:00
OnBoarding:: Do not show 'clone' button untill the key is generated
This commit is contained in:
@ -447,9 +447,16 @@ class OnBoardingSshKey extends StatelessWidget {
|
|||||||
FocusScope.of(context).requestFocus(new FocusNode());
|
FocusScope.of(context).requestFocus(new FocusNode());
|
||||||
|
|
||||||
Widget copyAndDepoyWidget;
|
Widget copyAndDepoyWidget;
|
||||||
|
Widget cloneButton;
|
||||||
if (this.publicKey.isEmpty) {
|
if (this.publicKey.isEmpty) {
|
||||||
copyAndDepoyWidget = Container();
|
copyAndDepoyWidget = Container();
|
||||||
|
cloneButton = Container();
|
||||||
} else {
|
} else {
|
||||||
|
cloneButton = OnBoardingButton(
|
||||||
|
text: "Clone Repo",
|
||||||
|
onPressed: this.doneFunction,
|
||||||
|
);
|
||||||
|
|
||||||
if (canOpenDeployKeyPage) {
|
if (canOpenDeployKeyPage) {
|
||||||
copyAndDepoyWidget = Row(
|
copyAndDepoyWidget = Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
@ -525,10 +532,7 @@ class OnBoardingSshKey extends StatelessWidget {
|
|||||||
publicKeyWidget,
|
publicKeyWidget,
|
||||||
SizedBox(height: 8.0),
|
SizedBox(height: 8.0),
|
||||||
copyAndDepoyWidget,
|
copyAndDepoyWidget,
|
||||||
OnBoardingButton(
|
cloneButton,
|
||||||
text: "Clone Repo",
|
|
||||||
onPressed: this.doneFunction,
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user