// ignore_for_file: prefer_const_constructors import 'package:flutter/material.dart'; class Deneme extends StatefulWidget { const Deneme({Key? key}) : super(key: key); @override State createState() => _DenemeState(); } class _DenemeState extends State { bool kontrol = false; String yazi = ''; @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text('Container deneme'), ), body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ ElevatedButton( onPressed: () { setState(() { kontrol = true; yazi = 'İpucu: Sayı 2\'ye tam bölünmüyor.'; }); }, child: Text('2\'ye bölünüyor mu?')), ElevatedButton( onPressed: () { setState(() { kontrol = true; yazi = 'İpucu: Sayı 3\'e tam bölünmüyor.'; }); }, child: Text('3\'e bölünüyor mu?')), ElevatedButton( onPressed: () { setState(() { kontrol = true; yazi = 'İpucu: Sayının son basamağı 5'; }); }, child: Text('Son Basamak?')), ElevatedButton( onPressed: () { setState(() { kontrol = true; yazi = 'İpucu: Sayının rakamları toplamı : 7'; }); }, child: Text('Rakamları toplamı?')), Visibility( visible: kontrol, child: Text( yazi, ), ) ], ), ), ); } }