skip to Main Content

Cancel flutter timer

I want to stop the timer when I navigate to another page. The following is my code //imports late Timer timer; class MyHomePage extends StatefulWidget { const MyHomePage({super.key, required this.title}); final String title; @override State<MyHomePage> createState() => _MyHomePageState(); } class…

VIEW QUESTION

GridView inside a row for Flutter Web

Im trying to put a gridview inside a row for flutter web development, but I got a few errors Another exception was thrown: Vertical viewport was given unbounded height. 36 Another exception was thrown: Assertion failed: file:///C:/dev/flutter/packages/flutter/lib/src/rendering/box.dart:1972:12 Another exception was…

VIEW QUESTION

Flutter – value is not updating inside bottom showModalBottomSheet using bloc

That's my main screen: class CreateApplyScreen extends StatefulWidget { const CreateApplyScreen({super.key}); @override State<CreateApplyScreen> createState() => _CreateApplyScreenState(); } class _CreateApplyScreenState extends State<CreateApplyScreen> { final bloc = CreateApplyBloc(); @override Widget build(BuildContext context) { return Scaffold( body: BlocProvider<CreateApplyBloc>( create: (context) => bloc, child:…

VIEW QUESTION

Flutter – How to use FittedBox inside Wrap

I have children widgets in a Wrap widget. class TestWidget extends StatefulWidget { const TestWidget({super.key}); @override State<TestWidget> createState() => _TestWidgetState(); } class _TestWidgetState extends State<TestWidget> { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text('Test'), ), body:…

VIEW QUESTION
Back To Top
Search