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
| package com.webianks.miniapps | |
| import android.graphics.Color | |
| import android.os.Bundle | |
| import androidx.activity.ComponentActivity | |
| import androidx.activity.SystemBarStyle | |
| import androidx.activity.compose.setContent | |
| import androidx.activity.enableEdgeToEdge | |
| import androidx.compose.animation.core.Animatable | |
| import androidx.compose.animation.core.FastOutSlowInEasing |
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
| package com.webianks.miniapps | |
| import android.graphics.Color as AndroidColor | |
| import android.os.Bundle | |
| import androidx.activity.ComponentActivity | |
| import androidx.activity.SystemBarStyle | |
| import androidx.activity.compose.BackHandler | |
| import androidx.activity.compose.setContent | |
| import androidx.activity.enableEdgeToEdge | |
| import androidx.annotation.DrawableRes |
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
| package com.webianks.miniapps | |
| import android.app.Activity | |
| import android.content.Context | |
| import android.os.Bundle | |
| import androidx.activity.ComponentActivity | |
| import androidx.activity.compose.setContent | |
| import androidx.annotation.DrawableRes | |
| import androidx.compose.foundation.Image | |
| import androidx.compose.foundation.background |
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 YoutubeUtils { | |
| private val client = OkHttpClient() | |
| suspend fun isYoutubeShortVideo(videoId: String): Boolean = | |
| withContext(Dispatchers.IO) { | |
| val url = "https://www.youtube.com/watch?v=$videoId" | |
| val request = Request.Builder().url(url).build() | |
| client.newCall(request).execute().use { response -> |
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.animation.AnimatorSet | |
| import android.animation.ObjectAnimator | |
| import android.annotation.SuppressLint | |
| import android.content.Context | |
| import android.util.AttributeSet | |
| import android.view.GestureDetector | |
| import android.view.MotionEvent | |
| import android.view.View | |
| import android.widget.FrameLayout | |
| import androidx.core.view.GestureDetectorCompat |
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/cupertino.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:scanning_aimation/scanner.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { |
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
| phoneNumberFocusNode.addListener(() { | |
| bool hasFocus = searchData.phoneNumberFocusNode.hasFocus; | |
| if (hasFocus) | |
| showOverlay(context); | |
| else | |
| removeOverlay(); | |
| }); |
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
| showOverlay(BuildContext context) { | |
| if (overlayEntry != null) return; | |
| OverlayState overlayState = Overlay.of(context); | |
| overlayEntry = OverlayEntry(builder: (context) { | |
| return Positioned( | |
| bottom: MediaQuery.of(context).viewInsets.bottom, | |
| right: 0.0, | |
| left: 0.0, | |
| child: InputDoneView()); | |
| }); |
NewerOlder