rename image

This commit is contained in:
dane madsen
2023-11-15 20:38:20 +10:00
parent 06790fb110
commit 18f653551a
5 changed files with 8 additions and 7 deletions

View File

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB

View File

@@ -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));
}

View File

@@ -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,
),

View File

@@ -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";

View 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,
)