start on the form
This commit is contained in:
commit
02dc3e5757
130 changed files with 5702 additions and 0 deletions
48
lib/main.dart
Normal file
48
lib/main.dart
Normal file
|
@ -0,0 +1,48 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:fluxcloud/add_server_modal.dart';
|
||||
|
||||
void main() {
|
||||
runApp(const MainApp());
|
||||
}
|
||||
|
||||
class MainApp extends StatelessWidget {
|
||||
const MainApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
theme: ThemeData(
|
||||
useMaterial3: true,
|
||||
colorSchemeSeed: Colors.teal,
|
||||
brightness: Brightness.light
|
||||
),
|
||||
darkTheme: ThemeData(
|
||||
useMaterial3: true,
|
||||
colorSchemeSeed: Colors.teal,
|
||||
brightness: Brightness.dark
|
||||
),
|
||||
themeMode: ThemeMode.system,
|
||||
color: Color(0x002EC1EB),
|
||||
home: Scaffold(
|
||||
floatingActionButton: Builder(
|
||||
builder: (context) {
|
||||
return FloatingActionButton(
|
||||
child: Icon(Icons.add),
|
||||
onPressed: () {
|
||||
showModalBottomSheet(
|
||||
isScrollControlled: true,
|
||||
context: context,
|
||||
showDragHandle: true,
|
||||
builder: (context) => AddServerModal()
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
),
|
||||
body: Center(
|
||||
child: Text('nice World!'),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue