Some updates
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import 'dart:html';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:grpc/grpc_web.dart';
|
||||
import 'package:softplayer_web/api/grpc/accounts.dart';
|
||||
import 'package:softplayer_web/components/create_env_form.dart';
|
||||
import 'package:softplayer_web/components/environments.dart';
|
||||
import 'package:softplayer_web/components/login_form.dart';
|
||||
|
||||
@@ -61,10 +63,12 @@ class _StateRootWidget extends State<RootWidget> {
|
||||
if (!isSignedIn()) {
|
||||
return Scaffold(
|
||||
body: Container(
|
||||
width: double.infinity,
|
||||
height: double.infinity,
|
||||
decoration: const BoxDecoration(
|
||||
image: DecorationImage(
|
||||
image: AssetImage("assets/login_background.jpg"),
|
||||
fit: BoxFit.fill,
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
),
|
||||
child: LoginForm(
|
||||
@@ -73,8 +77,9 @@ class _StateRootWidget extends State<RootWidget> {
|
||||
),
|
||||
));
|
||||
} else {
|
||||
EnvirnomentList envList = EnvirnomentList(channel: widget.channel);
|
||||
return Scaffold(
|
||||
body: EnvirnomentList(channel: widget.channel),
|
||||
body: envList,
|
||||
appBar: AppBar(
|
||||
title: const Text("Softplayer"),
|
||||
actions: [
|
||||
@@ -88,7 +93,12 @@ class _StateRootWidget extends State<RootWidget> {
|
||||
],
|
||||
),
|
||||
floatingActionButton: FloatingActionButton(
|
||||
onPressed: () => print("1"),
|
||||
child: const Icon(Icons.add),
|
||||
onPressed: () => showDialog(
|
||||
context: context,
|
||||
builder: (context) =>
|
||||
CreateEnvForm(widget.channel),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user