Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

flutter_cupertino_settings

a flutter widget to create an ios settings-table (static tableview).


import 'package:flutter_cupertino_settings/flutter_cupertino_settings.dart';

cswidgetstyle brightnessstyle = const cswidgetstyle(
    icon: const icon(icons.brightness_medium, color: colors.black54)
);

cupertinosettings(
    items: <widget>[
        const csheader('brightness'),
        cswidget(cupertinoslider(value: 0.5), style: brightnessstyle),
        cscontrol(
            namewidget: text('auto brightness'),
            contentwidget: cupertinoswitch(value: true), 
            style: brightnessstyle,
        ),
        csheader('selection'),
        csselection<int>(
            items: const <csselectionitem<int>>[
                csselectionitem<int>(text: 'day mode', value: 0),
                csselectionitem<int>(text: 'night mode', value: 1),
            ],
            onselected: (index) {print(index);},
            currentselection: 0,
        ),
        csdescription('using night mode extends battery life on devices with oled display',),
        const csheader(''),
        cscontrol(
            namewidget: text('loading...'), 
            contentwidget: cupertinoactivityindicator(),
        ),
        csbutton(csbuttontype.default, "licenses", (){ print("it works!"); }),
        const csheader(''),
        csbutton(csbuttontype.destructive, "delete all data", (){})
    ]
);

scr1


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Top