1
0
Fork 0

Finish to add configuration tutorial

This commit is contained in:
Florian RICHER (MrDev023) 2022-03-31 21:34:28 +02:00
parent a3b25c3ee1
commit 4e8fd12fdc
9 changed files with 236 additions and 39 deletions

View file

@ -2,7 +2,9 @@ import 'package:desktopapp/widgets/components/link.dart';
import 'package:flutter/material.dart';
class Step1 extends StatelessWidget {
const Step1({Key? key}) : super(key: key);
const Step1({Key? key, required this.onNext}) : super(key: key);
final VoidCallback onNext;
Widget buildFieldDescription(String field, String description) {
return Row(
@ -60,7 +62,7 @@ class Step1 extends StatelessWidget {
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
TextButton(onPressed: () {}, child: const Text('Étape suivante'))
TextButton(onPressed: onNext, child: const Text('Étape suivante'))
],
),
)