Daddoon / BlazorMobile

Create full C# driven hybrid-apps for iOS, Android, UWP & Desktop with Blazor!
MIT License
413 stars 55 forks source link

Using MatBlazor with BlazorMobile #165

Closed sorainnosia closed 4 years ago

sorainnosia commented 4 years ago

MatBlazor needs the wwwroot/index.html to include a javascript file and a css file and add the package from Nuget

I have added the css file and js file like below and added the Nuget package, it works in Blazor project (client version) on browser, but does not work on Android project (emulator version).

The css is messed up or javascript does not run. I dont know how to debug android web view.

Anyone know why?

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>BlazorMobile.BlazorApp</title>
    <base href="/" />
    <link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" />
    <link href="css/site.css" rel="stylesheet" />
    <link href="_content/MatBlazor/dist/matBlazor.css" rel="stylesheet" />
</head>
<body>
    <app>Loading...</app>
    <script type="text/javascript" src="_framework/blazor.webassembly.js"></script>
    <script src="_content/MatBlazor/dist/matBlazor.js"></script>
</body> 
</html>
Daddoon commented 4 years ago

The RCL library support was missing from BlazorMobile but has been implemented some days ago by myself.

I will ship a new version that fix this issue today or tomorrow !

Please be a little patient. I will close and update this issue when shipped.

sorainnosia commented 4 years ago

Thanks a lot @Daddoon for the hard work, really appreciate it a lot

Daddoon commented 4 years ago

Just for tracking purpose, this issue is similar to https://github.com/Daddoon/BlazorMobile/issues/160

Daddoon commented 4 years ago

Should come in the upcoming release today !

Daddoon commented 4 years ago

Hi, @sorainnosia !

The update with the fix has been released ! Please update to the last version of BlazorMobile.

sorainnosia commented 4 years ago

Hi Daddoon

Do I need to build the source code or can use the command dotnet new -i