This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# To run, download the script or copy the code to a '.sh' file (for example 'fluttercleanrecursive.sh') and run like any other script: | |
# sh ./fluttercleanrecursive.sh | |
# or | |
# sudo sh fluttercleanrecursive.sh | |
echo "Flutter Clean Recursive (by jeroen-meijer on GitHub Gist)" | |
echo "Looking for projects... (may take a while)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
import '../../constants.dart'; | |
import '../../utils/index.dart'; | |
import 'index.dart'; | |
class FullCalendar extends StatefulWidget { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'dart:math'; | |
class FoldablePage extends StatefulWidget { | |
@override | |
_FoldableState createState() => _FoldableState(); | |
} | |
class _FoldableState extends State<FoldablePage> | |
with SingleTickerProviderStateMixin { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static Intent getYoutubePlayPlaylistIntent(Context context, String googleId) { | |
String url = String.valueOf("https://www.youtube.com/playlist?list="); | |
String mGoogleId = String.valueOf(googleId); | |
if (mGoogleId.length() != 0) { | |
url = url.concat(mGoogleId); | |
} | |
Uri uri = Uri.parse(url).buildUpon().appendQueryParameter("playnext", "1").build(); | |
Intent intent = new Intent("android.intent.action.VIEW", uri).setPackage("com.google.android.youtube"); | |
PackageManager packageManager = context.getPackageManager(); |