Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
566 B
1
Indexable
Never
import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '../onepage/onepagevm.dart';

class SecondPage extends StatelessWidget {
  late final OnePageVM _onePageVM = Get.find();
  SecondPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: TextButton(
          onPressed: () {
            _onePageVM.isApproved.value = !_onePageVM.isApproved.value;
            Get.back();
          },
          child: const Text('Değeri Değiştir'),
        ),
      ),
    );
  }
}