Skip to content

Commit

Permalink
Merge commit '8e3fc8306ce749c48f493278dcc5e0552801fb1a'
Browse files Browse the repository at this point in the history
* commit '8e3fc8306ce749c48f493278dcc5e0552801fb1a':
  fix network image error when release (#389)
  • Loading branch information
violinday committed Dec 29, 2022
2 parents ac3bd85 + 8e3fc83 commit 7b46e06
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 30 deletions.
21 changes: 11 additions & 10 deletions example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.bruno">
<application
android:label="bruno"

<uses-permission android:name="android.permission.INTERNET" />
<application
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
android:icon="@mipmap/ic_launcher"
android:label="bruno">
<activity
android:name=".MainActivity"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:exported="true"
android:hardwareAccelerated="true"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme" />
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
Expand Down
36 changes: 16 additions & 20 deletions example/lib/sample/home/setting.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,26 +60,22 @@ class Setting extends StatelessWidget {
title: "主题定制切换",
describe: "当切换为 Pad 主题样式请选用 Pad 设备查看",
onPressed: () {
BrnPopupListWindow.showPopListWindow(
context,
_themeKey,
data: ['App 主题样式', 'Pad 主题样式'],
onItemClick: (int index, item) {
if (index == 0) {
BrnInitializer.register(
allThemeConfig:
BrnDefaultConfigUtils.defaultAllConfig);
BrnToast.showInCenter(
text: "已切换为 App 主题样式", context: context);
} else {
BrnInitializer.register(
allThemeConfig: BrnPadThemeConfig.allConfig);
BrnToast.showInCenter(
text: "已切换为 Pad 主题样式", context: context);
}
return false;
},
);
BrnPopupListWindow.showPopListWindow(context, _themeKey,
data: ['App 主题样式', 'Pad 主题样式'],
onItemClick: (int index, item) {
if (index == 0) {
BrnInitializer.register(
allThemeConfig: BrnDefaultConfigUtils.defaultAllConfig);
BrnToast.showInCenter(
text: "已切换为 App 主题样式", context: context);
} else {
BrnInitializer.register(
allThemeConfig: BrnPadThemeConfig.allConfig);
BrnToast.showInCenter(
text: "已切换为 Pad 主题样式", context: context);
}
return false;
}, arrowOffset: 100);
},
),
],
Expand Down

0 comments on commit 7b46e06

Please sign in to comment.