2025-01-21 14:24:31 +03:00
|
|
|
|
import 'package:flutter/material.dart';
|
2025-02-26 13:40:43 +03:00
|
|
|
|
import 'package:go_router/go_router.dart';
|
2025-01-21 14:24:31 +03:00
|
|
|
|
|
|
|
|
|
|
class MainScreen extends StatelessWidget {
|
|
|
|
|
|
const MainScreen({super.key});
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
|
return Scaffold(
|
|
|
|
|
|
appBar: AppBar(
|
|
|
|
|
|
title: const Text('Main Screen'),
|
2025-02-26 13:40:43 +03:00
|
|
|
|
),
|
|
|
|
|
|
body: Center(
|
|
|
|
|
|
child: Column(
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
|
children: [
|
|
|
|
|
|
ElevatedButton(
|
|
|
|
|
|
onPressed: () {
|
|
|
|
|
|
context.push('/profile');
|
|
|
|
|
|
},
|
|
|
|
|
|
child: const Text('Открыть профиль'),
|
|
|
|
|
|
),
|
|
|
|
|
|
const SizedBox(height: 16),
|
|
|
|
|
|
ElevatedButton(
|
|
|
|
|
|
onPressed: () {
|
|
|
|
|
|
context.push('/profile_scope');
|
|
|
|
|
|
},
|
|
|
|
|
|
child: const Text('Открыть профиль с областью видимости'),
|
|
|
|
|
|
),
|
|
|
|
|
|
],
|
|
|
|
|
|
),
|
|
|
|
|
|
),
|
2025-01-21 14:24:31 +03:00
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|