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.Context | |
import android.util.Log | |
import android.view.View | |
import android.view.ViewGroup | |
import androidx.compose.ui.semantics.SemanticsNode | |
import androidx.compose.ui.semantics.SemanticsOwner | |
import androidx.compose.ui.semantics.SemanticsProperties | |
import androidx.compose.ui.semantics.SemanticsPropertyKey | |
import androidx.compose.ui.semantics.SemanticsPropertyReceiver | |
import androidx.compose.ui.semantics.getOrNull |
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 'dart:async'; | |
import 'dart:convert'; | |
import 'package:collection/collection.dart'; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter_riverpod/flutter_riverpod.dart'; | |
import 'package:web_socket_channel/io.dart'; | |
import 'package:web_socket_channel/web_socket_channel.dart'; | |
import '../../../config/app_config.dart'; |
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 dev.logickoder.printer | |
import android.app.Dialog | |
import android.content.Context | |
import android.graphics.Bitmap | |
import android.graphics.Canvas | |
import android.graphics.Rect | |
import android.graphics.pdf.PdfDocument | |
import android.view.View | |
import androidx.compose.foundation.gestures.scrollBy |
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
object DeviceRestartChecker { | |
private const val PREFS_NAME = "device_restart_prefs" | |
private const val KEY_LAST_UPTIME = "last_uptime" | |
operator fun invoke(context: Context): Boolean { | |
val prefs = context.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE) | |
val savedUptime = prefs.getLong(KEY_LAST_UPTIME, 0L) | |
val currentUptime = SystemClock.uptimeMillis() | |
return if (currentUptime < savedUptime) { |
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
# From .github/workflows/build-production.yml | |
name: Build and upload android app to Google Play Store | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'android/**' |
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'; | |
/// A progress indicator that is divided into sections, each section represents a part of the total progress | |
/// The current position of the progress indicator is represented by the [current] property | |
/// The [sections] property represents the sections of the progress indicator | |
/// The length of the [sections] list represents the total number of sections | |
class MultiProgressIndicator extends StatelessWidget { | |
/// The current position of the progress indicator in relation to the sections | |
final int current; |
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 androidx.compose.foundation.layout.Box | |
import androidx.compose.foundation.layout.Column | |
import androidx.compose.foundation.layout.fillMaxSize | |
import androidx.compose.foundation.layout.height | |
import androidx.compose.foundation.layout.padding | |
import androidx.compose.foundation.layout.width | |
import androidx.compose.material3.Card | |
import androidx.compose.material3.CardDefaults | |
import androidx.compose.material3.Surface | |
import androidx.compose.material3.Text |
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 dev.logickoder.compose.chart | |
import androidx.compose.foundation.Canvas | |
import androidx.compose.foundation.background | |
import androidx.compose.foundation.layout.Arrangement | |
import androidx.compose.foundation.layout.Box | |
import androidx.compose.foundation.layout.Column | |
import androidx.compose.foundation.layout.Row | |
import androidx.compose.foundation.layout.fillMaxWidth | |
import androidx.compose.foundation.layout.height |
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 CurvedOverlayScreen extends StatelessWidget { | |
const CurvedOverlayScreen({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
body: LayoutBuilder(builder: (_, constraints) { | |
return Stack( |
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
Feature | REST | SOAP | GraphQL | |
---|---|---|---|---|
Data format | Flexible (JSON, XML, etc.) | Primarily XML | JSON | |
Message structure | No predefined pattern | Envelope encompassing header and body | Query employing fields | |
Message size | Variable based on data | Generally larger due to XML verbosity and envelope | Compact due to query specificity | |
Message complexity | Simplicity to moderate based on resource design | Moderate to high due to XML syntax and RPC semantics | Simple to high depending on query depth | |
Message validation | Lack of standardized validation method | XML Schema Definition (XSD) for validation | Schema for query and response validation |
NewerOlder