Leland Richardson [G]
05/16/2019, 4:39 PMLeland Richardson [G]
05/16/2019, 4:40 PMLeland Richardson [G]
05/16/2019, 4:40 PMitnoles
05/17/2019, 4:15 AMbloder
05/17/2019, 5:33 PMGil Goldzweig
05/17/2019, 6:05 PMRyan Mentley
05/17/2019, 8:02 PMFudge
05/18/2019, 3:04 PMFudge
05/18/2019, 3:32 PMtextStyle
should actually be style
. The image illustrates the feedback given in Compose in the upper case, and the feedback given in Flutter in the bottom case.romainguy
05/18/2019, 4:07 PMFudge
05/18/2019, 4:07 PMromainguy
05/18/2019, 4:07 PMromainguy
05/18/2019, 4:08 PMFudge
05/18/2019, 4:08 PMLeland Richardson [G]
05/18/2019, 4:51 PMFudge
05/18/2019, 5:21 PM@Composable
fun MyApp() {
val currentWidgetState = +state { root }
val currentWidget = currentWidget.value
MaterialTheme {
GenericWidget(currentWidget, onOptionClicked ={currentWidgetState.value = it} )
}
}
was not welcomed by the framework.Leland Richardson [G]
05/18/2019, 5:51 PMcurrentWidget
here?Fudge
05/18/2019, 6:02 PMFudge
05/18/2019, 6:05 PMLeland Richardson [G]
05/18/2019, 6:45 PMwhen(currentFile){
is Folder -> FolderWidget(currentFile,onFileClicked ={currentFileState.value = it} )
is TextFile -> TextFileWidget(currentFile)
}
which should work fine. are you asking how to make something like your GenericWidget
?Fudge
05/18/2019, 6:46 PMFudge
05/19/2019, 3:27 PMAdam Powell
05/19/2019, 4:33 PMAdam Powell
05/19/2019, 4:35 PMAdam Powell
05/19/2019, 4:35 PMFoso
05/19/2019, 4:59 PMGil Goldzweig
05/19/2019, 5:43 PMNicolas Roard
05/19/2019, 11:52 PMnapperley
05/20/2019, 2:47 AMitnoles
05/20/2019, 2:48 AM