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
@SuppressLint("WrongConstant") | |
@Composable | |
fun FallingVerticalText(modifier: Modifier = Modifier) { | |
val text = "「春は、曙。」" | |
val textSize = 64.sp | |
val infiniteTransition = rememberInfiniteTransition() | |
val offsets = text.mapIndexed { index, _ -> | |
infiniteTransition.animateFloat( |
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
enum class CellType { | |
Space, Wall | |
} | |
data class MazeTile(val x: Int, val y: Int, var type: CellType = CellType.Wall) | |
@RequiresApi(Build.VERSION_CODES.VANILLA_ICE_CREAM) | |
class Maze(private val width: Int, private val height: Int) { | |
val maze: Array<Array<MazeTile>> = Array(height) { y -> | |
Array(width) { x -> MazeTile(x, y) } |
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
@Preview(showBackground = true, showSystemUi = true) | |
@Composable | |
fun ShowLineChartPreview() { | |
val chartData = listOf( | |
Pair(1, 1.5), | |
Pair(2, 1.75), | |
Pair(3, 3.45), | |
Pair(4, 2.25), | |
Pair(5, 6.45), | |
Pair(6, 3.35), |
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:get/get.dart'; | |
void main() { | |
runApp(GetMaterialApp( | |
initialRoute: '/home', | |
getPages: [ | |
GetPage( | |
name: '/home', | |
page: () => HomePage(), |
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 SABT extends StatefulWidget { | |
final Widget child; | |
const SABT({ | |
Key key, | |
@required this.child, | |
}) : super(key: key); | |
@override | |
_SABTState createState() { | |
return new _SABTState(); | |
} |
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 OverlayWithHole extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar(title: Text("Flutterclutter: Holes")), | |
body: _getExperimentOne() | |
); | |
} |
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
/// | |
/// Copyright (C) 2020 Andrious Solutions | |
/// | |
/// Licensed under the Apache License, Version 2.0 (the "License"); | |
/// you may not use this file except in compliance with the License. | |
/// You may obtain a copy of the License at | |
/// | |
/// http://www.apache.org/licenses/LICENSE-2.0 | |
/// | |
/// Unless required by applicable law or agreed to in writing, software |
NewerOlder