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 '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 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 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 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 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 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 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" |
NewerOlder