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
| class MainFragment : Fragment() { | |
| private lateinit var exoPlayer: SimpleExoPlayer | |
| private lateinit var playerView: PlayerView | |
| private lateinit var videoSource: MediaSource | |
| private lateinit var videoSource2: MediaSource | |
| private lateinit var dataSourceFactory: DataSource.Factory | |
| private lateinit var concatenate: ConcatenatingMediaSource | |
| private val videoURL = | |
| "https://vodcmssec-a.akamaihd.net/omnisport/ready/HD/transferscript/287/240219-EN-PERFORM-KLOPP-SALAH-RV-2_1551036339725_287.mp4" |
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 android.content.* | |
| import android.support.v7.app.AppCompatActivity | |
| import android.os.Bundle | |
| import android.os.Build | |
| import android.support.annotation.RequiresApi | |
| import kotlinx.android.synthetic.main.activity_main.* | |
| import android.widget.EditText | |
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
| paste_button.setOnClickListener { | |
| val editText2 = findViewById<EditText>(R.id.editText2) | |
| val clipBoardText = clipboardManager.primaryClip!!.description | |
| editText2.setText(clipBoardText.label) | |
| } |
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
| paste_button.setOnClickListener { | |
| val editText2 = findViewById<EditText>(R.id.editText2) | |
| if (clipboardManager.primaryClip!!.getItemAt(0).text == "Male"){ | |
| clipboardManager.primaryClip = ClipData.newPlainText("text", "Female") | |
| } | |
| val clipBoardText = clipboardManager.primaryClip!!.getItemAt(0).text | |
| editText2.setText(clipBoardText) | |
| } |
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
| class ScrollControllerPlayground extends StatefulWidget { | |
| @override | |
| _ScrollControllerPlaygroundState createState() => | |
| _ScrollControllerPlaygroundState(); | |
| } | |
| class _ScrollControllerPlaygroundState | |
| extends State<ScrollControllerPlayground> { | |
| AppBar firstAppbar = AppBar( | |
| title: Text('FIRST APPBAR'), |
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'; | |
| class CustomTextField extends StatefulWidget { | |
| String errorText; | |
| String labelText; | |
| EdgeInsets margin; | |
| bool isPasswordField; | |
| Function(String value) onSave; | |
| Function validator; |
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'; | |
| import 'package:qr_flutter/qr_flutter.dart'; | |
| import 'package:screenshot/screenshot.dart'; | |
| class QRCodePlayground extends StatefulWidget { | |
| @override | |
| _QRCodePlaygroundState createState() => _QRCodePlaygroundState(); | |
| } | |
| class _QRCodePlaygroundState extends State<QRCodePlayground> { |
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
| // This function helps to add a string at the back of each file name IF that | |
| // file already exists in the user's file system, so that each file name will | |
| // be unique. | |
| Future<String> makeFileName(String path, String fileName) async { | |
| bool fileExists = await File('$path/$fileName').exists(); | |
| if (fileExists) { | |
| int counter = 1; | |
| List newFileExt = fileName.split('.'); | |
| String ext = newFileExt[1]; // refers to the file extension. |
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
| http: ^0.13.5 | |
| share_plus: ^6.3.0 | |
| path_provider: ^2.0.11 | |
| flutter_pdfview: ^1.2.5 |
OlderNewer