mirror of
https://github.com/MaidFoundation/maid.git
synced 2023-12-01 22:17:36 +03:00
rename image
This commit is contained in:
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
@@ -11,9 +11,10 @@ void main() {
|
||||
MemoryManager.init();
|
||||
SystemChrome.setSystemUIOverlayStyle(
|
||||
const SystemUiOverlayStyle(
|
||||
statusBarColor: Colors.transparent,
|
||||
statusBarIconBrightness: Brightness.dark,
|
||||
statusBarBrightness: Brightness.dark),
|
||||
statusBarColor: Colors.transparent,
|
||||
statusBarIconBrightness: Brightness.dark,
|
||||
statusBarBrightness: Brightness.dark
|
||||
),
|
||||
);
|
||||
runApp(MaidApp(key: maidAppKey));
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ class _CharacterPageState extends State<CharacterPage> {
|
||||
children: [
|
||||
const SizedBox(height: 10.0),
|
||||
CircleAvatar(
|
||||
backgroundImage: const AssetImage("assets/defaultResponseProfile.png"),
|
||||
backgroundImage: const AssetImage("assets/default_profile.png"),
|
||||
foregroundImage: Image.file(character.profile).image,
|
||||
radius: 75,
|
||||
),
|
||||
|
||||
@@ -13,7 +13,7 @@ import 'package:image/image.dart';
|
||||
Character character = Character();
|
||||
|
||||
class Character {
|
||||
File profile = File("assets/defaultResponseProfile.png");
|
||||
File profile = File("assets/default_profile.png").absolute;
|
||||
String name = "Maid";
|
||||
String prePrompt = "";
|
||||
String userAlias = "";
|
||||
@@ -94,7 +94,7 @@ class Character {
|
||||
}
|
||||
|
||||
Future<String> importJSON(BuildContext context) async {
|
||||
try{
|
||||
try {
|
||||
File? file = await FileManager.load(context, "Load Character JSON", [".json"]);
|
||||
|
||||
if (file == null) return "Error loading file";
|
||||
|
||||
@@ -39,7 +39,7 @@ class ChatControlsState extends State<ChatControls> {
|
||||
...[
|
||||
const SizedBox(width: 10.0),
|
||||
CircleAvatar(
|
||||
backgroundImage: const AssetImage("assets/defaultResponseProfile.png"),
|
||||
backgroundImage: const AssetImage("assets/default_profile.png"),
|
||||
foregroundImage: Image.file(character.profile).image,
|
||||
radius: 16,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user