在android studio中自定义flutter应用程序:打开android flutter代码

时间:2019-03-15 15:30:34

标签: android android-studio flutter flutter-dependencies

我开发了一个应用程序。我想为其添加功能(例如Ironsoure广告中介),该功能目前没有任何抖动包。是否可以通过打开由flutter生成的Android代码直接在android studio中添加此类功能?我该怎么做?

1 个答案:

答案 0 :(得分:0)

您应该编写特定于平台的<ListView VerticalOptions="StartAndExpand" ItemsSource="{Binding Items}"> <ListView.ItemTemplate> <DataTemplate> <ViewCell> <Grid> <ff:CachedImage x:Name="Image" Source="https://www.allibert-trekking.com/uploads/media/images/thumbnails/AMin3_10-photo-montagne-chine-lac.jpeg?v2" /> <ActivityIndicator Color="OrangeRed" IsRunning="{Binding IsLoading}" IsVisible="{Binding IsLoading}" BindingContext="{x:Reference Name=Image}" /> </Grid> </ViewCell> </DataTemplate> </ListView.ItemTemplate> </ListView> 并使用dart代码实现。

点击此链接, https://flutter.dev/docs/development/platform-integration/platform-channels