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:io'; | |
/// Singleton Generator Script | |
/// | |
/// This script generates a singleton class file based on the provided class name | |
/// from the command line. The generated class follows the singleton pattern and | |
/// includes basic usage examples in the comments above the generated code. | |
/// | |
/// Usage: |
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
@Composable | |
fun ApplyTextColor( color: Color , content: @Composable () -> Unit) { | |
CompositionLocalProvider(LocalContentColor provides color) { | |
content() | |
} | |
} | |
// Example Usage | |
@Composable | |
fun ExampleUsage() { |
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 MainActivity : ComponentActivity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
enableEdgeToEdge() | |
setContent { | |
SampleUiDesignForCartTheme { | |
ScratchCardView() | |
} | |
} | |
} |
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 java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.Comparator; | |
import java.util.Random; | |
public class BagTripsCalculator { | |
// Default const values 1.01-3.0Kg | |
static final float MINIMUM_WEIGHT = 1.01f; | |
static final float MAXIMUM_WEIGHT = 3f; |
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
{{ states('input_text.redalert2') is defined and '专讞讜讘讜转' in states('input_text.redalert2') }} |