- import 'package:flutter/material.dart';
- import 'package:slide_countdown_clock/slide_countdown_clock.dart';
- class deepQuestions extends StatefulWidget {
- @override
- _deepQuestionsState createState() => _deepQuestionsState();
- }
- class _deepQuestionsState extends State<deepQuestions>
- with TickerProviderStateMixin {
- /*int endTime = DateTime.now().millisecondsSinceEpoch + 60000;*/
- int _counter = 0;
- AnimationController _controller;
- int levelClock = 180;
- @override
- void dispose() {
- _controller.dispose();
- super.dispose();
- }
- void _incrementCounter() {
- setState(() {
- _counter++;
- });
- }
- @override
- void initState() {
- super.initState();
- _controller = AnimationController(
- vsync: this,
- duration: Duration(
- seconds:
- levelClock) // gameData.levelClock is a user entered number elsewhere in the applciation
- );
- _controller.forward();
- }
- int _groupValue = -1;
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- backgroundColor: Colors.white,
- centerTitle: false,
- leading: IconButton(
- icon: Icon(
- Icons.arrow_back,
- color: Colors.orange,
- ),
- onPressed: () => Navigator.pop(context),
- ),
- title: new Text(
- 'Deep 46',
- style: TextStyle(color: Colors.teal),
- ),
- ),
- body: Column(
- children: [
- Row(
- children: [
- Container(
- color: Colors.deepOrange,
- width: MediaQuery.of(context).size.width / 1.4,
- height: 30,
- child: Padding(
- padding: EdgeInsets.only(left: 100),
- child: SlideCountdownClock(
- duration: Duration(minutes: 5),
- slideDirection: SlideDirection.Up,
- separator: ":",
- textStyle: TextStyle(
- fontSize: 25,
- fontWeight: FontWeight.bold,
- color: Colors.white,
- ),
- onDone: () {
- /*_scaffoldKey.currentState.showSnackBar(SnackBar(content: Text('Clock 1 finished')));*/
- },
- ),
- )
- ),
- SizedBox(
- width: 140, // <-- match_parent
- child: ElevatedButton(
- style:
- ElevatedButton.styleFrom(
- primary: Colors.teal,
- ),
- onPressed: () {
- showModalBottomSheet<void>(
- context: context,
- builder: (BuildContext context) {
- return Container(
- height: 400,
- color: Colors.white,
- child: Center(
- child: Column(
- mainAxisAlignment:MainAxisAlignment.start,
- mainAxisSize: MainAxisSize.min,
- children: <Widget>[
- Row(
- children: [
- IconButton(
- icon: Icon(
- Icons.arrow_back,
- color: Colors.orange,
- ),
- onPressed: () =>
- Navigator.pop(context),
- ),
- Text(
- 'Deep 46 Materi',
- style: TextStyle(
- fontSize: 18,
- color: Colors.teal,
- fontWeight:
- FontWeight.bold,
- ),
- )
- ],
- ),
- Image.asset('Assets/tb.PNG'),
- ],
- ),
- ),
- );
- },
- );
- },
- child:
- Row(
- children: [
- Icon( Icons.image),
- Text('Lihat Materi'),
- ],
- )
- ),
- ),
- ],
- ),
- SizedBox(height: 30),
- Container(
- color: Colors.white,
- height: 600,
- child: Column(
- children: [
- Padding(padding: EdgeInsets.only(left: 10, right: 10),
- child:Text('1. Berikut Adalah Bentuk untuk melakukan Kerjasama antar bank untuk memaksimalkan keuntungan', style: TextStyle(
- fontSize: 18
- ),
- ),),
- _myRadioButton(
- title: "Bank Garansi",
- value: 0,
- onChanged: (newValue) => setState(() => _groupValue = newValue),
- ),
- _myRadioButton(
- title: "Pengembangan OTR Mobile remittance",
- value: 1,
- onChanged: (newValue) => setState(() => _groupValue = newValue),
- ),
- _myRadioButton(
- title: "Pinjaman Sindikasi untuk Perusahaan Besar",
- value: 2,
- onChanged: (newValue) => setState(() => _groupValue = newValue),
- ),
- _myRadioButton(
- title: "Transaksi ekspor impor",
- value: 3,
- onChanged: (newValue) => setState(() => _groupValue = newValue),
- ),
- SizedBox(height:20),
- SizedBox(
- width: MediaQuery.of(context).size.width / 1.1, // <-- match_parent
- child: ElevatedButton(
- style:
- ElevatedButton.styleFrom(
- primary: Colors.deepOrange,
- ),
- onPressed: () {
- Navigator.push(
- context,
- MaterialPageRoute(
- builder: (context) => deepQuestions(),
- ),
- );
- },
- child:
- const Text('Submit'),
- ),
- ),
- ],
- ),
- )
- ],
- /*Text('Deep46 Questions Page'),*/
- ),
- );
- }
- }
- Widget _myRadioButton({String title, int value, Function onChanged}) {
- var _groupValue=-1;
- return RadioListTile(
- value: value,
- groupValue: _groupValue,
- onChanged: onChanged,
- title: Text(title),
- );
- }
[text] flutttt
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Editor
You can edit this paste and save as new:
File Description
- flutttt
- Paste Code
- 14 Jun-2021
- 7.81 Kb
You can Share it:
Latest Code Pastes