Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Rafa Castillo Passols
/
peponator
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b77ddffa
authored
May 15, 2025
by
Diego Pérez Peña
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Creada pantalla principal, esperando a hacerla más bonita
parent
0ca3bf8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
1 deletions
lib/paginas/pantalla_principal.dart
lib/peponator_app.dart
lib/paginas/pantalla_principal.dart
0 → 100644
View file @
b77ddffa
import
'package:flutter/material.dart'
;
import
'package:peponator/paginas/paginas.dart'
;
class
PantallaPrincipal
extends
StatelessWidget
{
const
PantallaPrincipal
({
super
.
key
});
@override
Widget
build
(
BuildContext
context
)
{
return
Center
(
child:
Column
(
children:
[
TextButton
(
onPressed:
()
=>
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
BuildContext
context
)
=>
PantallaJuego
()
)
),
child:
Text
(
'Jugar'
)
),
TextButton
(
onPressed:
()
=>
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
BuildContext
context
)
=>
PantallaDificultad
()
)
),
child:
Text
(
'Dificultad'
)
),
TextButton
(
onPressed:
()
=>
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
BuildContext
context
)
=>
PantallaRecords
()
)
),
child:
Text
(
'Récords'
)
),
],
),
);
}
}
lib/peponator_app.dart
View file @
b77ddffa
import
'package:flutter/material.dart'
;
import
'package:peponator/modelo/listaDificultad.dart'
;
import
'package:peponator/paginas/pantalla_principal.dart'
;
import
'package:provider/provider.dart'
;
import
'package:peponator/paginas/paginas.dart'
;
import
'package:peponator/l10n/app_localizations.dart'
;
...
...
@@ -23,7 +24,7 @@ class PeponatorApp extends StatelessWidget {
supportedLocales:
AppLocalizations
.
supportedLocales
,
darkTheme:
ThemeData
.
dark
(),
themeMode:
ThemeMode
.
system
,
home:
Pantalla
Juego
(),
home:
Pantalla
Principal
(),
),
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment