This file contains hidden or 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
/** Copied [DefaultMediaItemConverter] but with subtitle support. */ | |
@OptIn(UnstableApi::class) | |
class CastMediaItemConverter : MediaItemConverter { | |
private val KEY_MEDIA_ITEM = "mediaItem" | |
private val KEY_PLAYER_CONFIG = "exoPlayerConfig" | |
private val KEY_MEDIA_ID = "mediaId" | |
private val KEY_URI = "uri" | |
private val KEY_TITLE = "title" | |
private val KEY_MIME_TYPE = "mimeType" | |
private val KEY_DRM_CONFIGURATION = "drmConfiguration" |
This file contains hidden or 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'; | |
void main() => runApp(new MyApp()); | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@override | |
Widget build(BuildContext context) { | |
return new MaterialApp( | |
title: 'Flutter Demo', |
This file contains hidden or 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
function get_os { | |
base=`uname` | |
if [ $base == 'Darwin' ]; then | |
brew install zsh zsh-completions; | |
elif [ $base == 'Linux' ]; then | |
os=`lsb_release -i | cut -f 2-` | |
if [ $os == 'Ubuntu' ]; then | |
sudo apt install zsh -y; | |
elif [ $os == 'Fedora' ]; then | |
sudo dnf install zsh -y; |