Skip to content

bug: flet build apk error Unhandled exception: Exception: Invalid color value #6498

@yst-one

Description

@yst-one

Duplicate Check

Describe the bug

       Unhandled exception:                                                                          
       Exception: Invalid color value                                                                
       #0      parseColor (package:flutter_native_splash/cli_commands.dart:416:3)                    
       #1      _createSplashByConfig (package:flutter_native_splash/cli_commands.dart:87:25)         
       #2      createSplash (package:flutter_native_splash/cli_commands.dart:43:3)                   
       #3      main                                                                                  
       (file:///C:/Users/Administrator/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_native_splash-2
       .4.6/bin/create.dart:94:5)                                                                    
       #4      _delayEntrypointInvocation.<anonymous closure>                                        
       (dart:isolate-patch/isolate_patch.dart:312:33)                                                
       #5      _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:193:12)

Code sample

Code
import flet as ft

def main(page: ft.Page):
    page.title = "Flet counter example"
    page.vertical_alignment = ft.MainAxisAlignment.CENTER

    input = ft.TextField(value="0", text_align=ft.TextAlign.RIGHT, width=100)

    def minus_click(e):
        input.value = str(int(input.value) - 1)

    def plus_click(e):
        input.value = str(int(input.value) + 1)

    page.add(
        ft.Row(
            alignment=ft.MainAxisAlignment.CENTER,
            controls=[
                ft.IconButton(ft.Icons.REMOVE, on_click=minus_click),
                input,
                ft.IconButton(ft.Icons.ADD, on_click=plus_click),
            ],
        )
    )

ft.run(main)

To reproduce

1

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Operating System

Windows

Operating system details

11

Flet version

0.85.1

Regression

No, it isn't

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions