123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- import 'package:flutter/material.dart';
- class Lang extends StatefulWidget {
- const Lang({
- Key? key,
- }) : super(key: key);
- @override
- State<Lang> createState() => _LangState();
- }
- class _LangState extends State<Lang> {
- var selectedIndex = 0;
- // void _changeLang() {
- // setState(() {
- // if (selectedIndex == 0) {
- // } else {
- // }
- // });
- // }
- @override
- Widget build(BuildContext context) {
- return Padding(
- padding: const EdgeInsets.all(8.0),
- child: Row(
- children: [
- // BackButton(),
- // Padding(
- // padding: const EdgeInsets.only(right: 0),
- // child: Text(
- // 'Kembali Pindai QR',
- // softWrap: true,
- // textAlign: TextAlign.left,
- // ),
- // ),
- Expanded(child: Container()),
- ElevatedButton(
- onPressed: () {
- print('EN');
- },
- style: ButtonStyle(
- foregroundColor: MaterialStateProperty.all<Color>(Colors.white),
- backgroundColor:
- MaterialStateProperty.all<Color>(Colors.white70),
- shape: MaterialStateProperty.all<RoundedRectangleBorder>(
- RoundedRectangleBorder(
- borderRadius: BorderRadius.only(
- topLeft: Radius.circular(16),
- bottomLeft: Radius.circular(16)),
- ))),
- child: Text('EN'),
- ),
- ElevatedButton(
- onPressed: () {
- print('ID');
- },
- style: ButtonStyle(
- foregroundColor:
- MaterialStateProperty.all<Color>(Colors.white),
- backgroundColor:
- MaterialStateProperty.all<Color>(Colors.orange),
- shape: MaterialStateProperty.all<RoundedRectangleBorder>(
- RoundedRectangleBorder(
- borderRadius: BorderRadius.only(
- topRight: Radius.circular(16),
- bottomRight: Radius.circular(16)),
- side: BorderSide(color: Color.fromARGB(164, 255, 164, 1)),
- ))),
- child: Text('ID'))
- ],
- ),
- );
- }
- }
|