Skip to content

Commit

Permalink
fix code preview error
Browse files Browse the repository at this point in the history
  • Loading branch information
lohanidamodar committed Feb 2, 2021
1 parent 980e50c commit f35d204
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/core/presentation/widgets/preview.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'dart:io';

import 'package:flutter/foundation.dart';
/**
* Author: Damodar Lohani
* profile: https://github.com/lohanidamodar
Expand Down Expand Up @@ -65,7 +66,7 @@ class _DesignPreviewsPageState extends State<DesignPreviewsPage> {
},
),
IconButton(
icon: Platform.isIOS ? Icon(Icons.ios_share) : Icon(Icons.share),
icon: kIsWeb ? Icon(Icons.share) : Platform.isIOS ? Icon(Icons.ios_share) : Icon(Icons.share),
tooltip: "Share code",
onPressed: () {
Share.share('$githubRepo/blob/master/${widget.path}');
Expand Down

0 comments on commit f35d204

Please sign in to comment.