Files
Nikolai Rodionov 4819f6f534
All checks were successful
ci/woodpecker/push/build Pipeline was successful
Prepare everything for the projects creation
Signed-off-by: Nikolai Rodionov <iam@allanger.xyz>
2026-06-09 13:19:27 +02:00

54 lines
1.5 KiB
Dart

import 'dart:developer';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:softplayer_web/features/test/application/test_controller.dart';
class DashboardPage extends ConsumerStatefulWidget {
const DashboardPage({super.key});
@override
ConsumerState<DashboardPage> createState() => _DashboardPage();
}
class _DashboardPage extends ConsumerState<DashboardPage> {
bool debug = false;
@override
Widget build(BuildContext context) {
final ctrl = ref.read(pingControllerProvider.notifier);
return LayoutBuilder(
builder: ((context, constraints) {
return Scaffold(
appBar: AppBar(
title: Text("Softplayer"),
actions: [
DropdownButtonHideUnderline(
child: DropdownButton<String>(
items: [
DropdownMenuItem(value: "test", child: Text("test")),
DropdownMenuItem(value: "test2", child: Text("test2")),
],
onChanged: (value) => log(value!),
),
),
],
),
body: SafeArea(
child: Row(
children: [
ElevatedButton(
onPressed: () {
ctrl.ping();
},
child: Text("pong"),
),
],
),
),
);
}),
);
}
}