import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:mangayomi/utils/colors.dart'; import 'package:mangayomi/utils/media_query.dart'; class GeneralScreen extends ConsumerWidget { const GeneralScreen({super.key}); @override Widget build(BuildContext context, WidgetRef ref) { return Scaffold( appBar: AppBar( title: const Text("General"), ), body: Column( children: [ ListTile( onTap: () { showDialog( context: context, builder: (context) { return AlertDialog( title: const Text( "App language", ), content: SizedBox( width: mediaWidth(context, 0.8), child: ListView.builder( shrinkWrap: true, itemCount: 1, itemBuilder: (context, index) { return RadioListTile( dense: true, contentPadding: const EdgeInsets.all(0), value: index, groupValue: 0, onChanged: (value) { Navigator.pop(context); }, title: const Row( children: [Text("English")], ), ); }, )), actions: [ Row( mainAxisAlignment: MainAxisAlignment.end, children: [ TextButton( onPressed: () async { Navigator.pop(context); }, child: Text( "Cancel", style: TextStyle(color: primaryColor(context)), )), ], ) ], ); }); }, title: const Text("App language"), subtitle: Text( "English", style: TextStyle(fontSize: 11, color: secondaryColor(context)), ), ), ], ), ); } }