|
|
@ -12,13 +12,18 @@
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
// limitations under the License.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import 'dart:io';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import 'package:flutter/foundation.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
import 'package:window_size/window_size.dart';
|
|
|
|
|
|
|
|
|
|
|
|
import 'data_transfer_page.dart';
|
|
|
|
import 'data_transfer_page.dart';
|
|
|
|
import 'infinite_process_page.dart';
|
|
|
|
import 'infinite_process_page.dart';
|
|
|
|
import 'performance_page.dart';
|
|
|
|
import 'performance_page.dart';
|
|
|
|
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
void main() {
|
|
|
|
|
|
|
|
setupWindow();
|
|
|
|
runApp(
|
|
|
|
runApp(
|
|
|
|
const MaterialApp(
|
|
|
|
const MaterialApp(
|
|
|
|
home: HomePage(),
|
|
|
|
home: HomePage(),
|
|
|
@ -26,6 +31,17 @@ void main() {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const double kWindowWidth = 1024;
|
|
|
|
|
|
|
|
const double kWindowHeight = 800;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void setupWindow() {
|
|
|
|
|
|
|
|
if (!kIsWeb && (Platform.isWindows || Platform.isLinux || Platform.isMacOS)) {
|
|
|
|
|
|
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
|
|
|
|
|
|
setWindowTitle('Isolate Example');
|
|
|
|
|
|
|
|
setWindowMinSize(const Size(kWindowWidth, kWindowHeight));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class HomePage extends StatelessWidget {
|
|
|
|
class HomePage extends StatelessWidget {
|
|
|
|
const HomePage({Key? key}) : super(key: key);
|
|
|
|
const HomePage({Key? key}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
|
|